// JavaScript Document

// Home page slider script starts
function mycarousel_initCallback(carousel)
{

	jQuery('.jcarousel-control a').bind('click', function() {
			carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
			return false;
		});

	// Disable autoscrolling if the user clicks the prev or next button.
	carousel.buttonNext.bind('click', function() {
		carousel.startAuto(0);
	});

	carousel.buttonPrev.bind('click', function() {
		carousel.startAuto(0);
	});

	// Pause autoscrolling if the user moves with the cursor over the clip.
	carousel.clip.hover(function() {
		carousel.stopAuto();
	}, function() {
		carousel.startAuto();
	});
};
	
$(document).ready(function(){
	
	jQuery('#banner ul').jcarousel({
		scroll: 1,
		auto: 4,
		wrap: 'last',
		initCallback: mycarousel_initCallback
	});
	
});

$(document).ready(function(){
	
	jQuery('#banner1 ul').jcarousel({
		vertical: false,
		scroll: 1,
		auto: 4,
		wrap: 'last',
		initCallback: mycarousel_initCallback
	});
	
});



// Home page slider script starts

// Slider Hightlight Starts
var Lst;
function CngClass(obj){
 if (Lst) Lst.className='nav_button';
 obj.className='nav_button_active';
 Lst=obj;
}

var pupfun;
function thickCngClass(numvalue){
 if (pupfun) pupfun.className='num_nav_button';
 numvalue.className='num_nav_button_active';
 pupfun=numvalue;
}

// Slider Highlight Ends
