

$(document).ready(function() {
	$('#country').change(function(e){					   
		var d = $("#country").val();
		if(d!=''){
			var c = '<div style="padding:10px; border:1px solid #ccc; background:#FFFFC6"><b>Please Dial &nbsp;&nbsp;&nbsp;<span class="font14 satan">'+ d +'</span></b></div>';
			$('#num').html(c);
		}else{
			$('#num').html('');
		}
		
	});

//Orbit Slider on Homepage	
$('#apparatus').orbit({
	 animation: 'fade', //fade, horizontal-slide, vertical-slide
     animationSpeed: 500, //how fast animations are
     advanceSpeed: 3000, //if timer advance is enabled, time between transitions 
     startClockOnMouseOut: true, //if timer should restart on MouseOut
     startClockOnMouseOutAfter: 3000, //how long after mouseout timer should start again
     directionalNav: false, //manual advancing directional navs
     timer: true, //if the circular timer is wanted
     bullets: false //true or false to activate the bullet navigation

});

	/* This is basic - uses default settings */
	$("a#fancybox").fancybox({
		'autoDimensions'	: true,
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	500, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
	
	/* Using custom settings */
	$("a.iframe").fancybox({
		'autoDimensions'	: false,
		'width'		:	'500',
		'height'	:	'500',
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});

	/* Apply fancybox to multiple items */
	$("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
	// Scroll
	jQuery.localScroll();

	//Equal Column Heights
	//set the starting bigestHeight variable
	var biggestHeight = 0;
	//check each of them
	$('.equal').each(function(){
		//if the height of the current element is
		//bigger then the current biggestHeight value
		if($(this).height() > biggestHeight){
			//update the biggestHeight with the
			//height of the current elements
			biggestHeight = $(this).height();
		}
	});
	//when checking for biggestHeight is done set that
	//height to all the elements
	$('.equal').height(biggestHeight);
	
	
});

