// 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: 3,
		//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;
}
// Slider Highlight Ends
