// Alan Rogers Travel Service Master JavaScript

function WebCode()
{
	// if initial value, empty box.
	if(document.getElementById('SiteARNo').value == "eg. FR12345T")
	{
		document.getElementById('SiteARNo').value = '';
	}
	else
	{
		// else if not initial, let user decide to delete (select all)
		document.getElementById('SiteARNo').select();
	}
}



/**
 * Homepage Carousel
 */
	function mycarousel_initCallback(carousel) {
		jQuery('.jcarousel-control a').bind('click', function() {
			carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
			return false;
		});
		
	   // Pause autoscrolling if the user moves with the cursor over the clip.
		carousel.clip.hover(function() {
			carousel.stopAuto();
		}, function() {
			carousel.startAuto();
		});
	};
	

	
	
	//jQuery(document).ready(function() {
	//    jQuery('#feature').jcarousel({
	//      auto: 2,
	//		scroll: 1,
	//      wrap: 'last',
	//      initCallback: mycarousel_initCallback
	//    });
	//});
	
	
	
	
