myimg=new Image();
myimg.src='../images/home/tooltipBG.png';

$(document).ready(function() {
	
	slideSpeed = 8000;
	
	$(".slideShow").jCarouselLite({
		auto: slideSpeed,
        speed: 500,
		btnNext: ".next",
		btnPrev: ".prev",
		visible: 1,
		circular: true
		});
		
		
	$(".slideShowImg").jCarouselLite({
		auto: slideSpeed,
		speed: 500,
		btnNext: ".next",
		btnPrev: ".prev",
		visible: 1,
		circular: true
	});
	
	// when the user clicks the next-back controls, the slideshow will go from auto to manual.
	$(".prev,.next").bind("click", function(e) {
		//clearTimeout();
		$(document.carouselInterval).each(function(){
			clearTimeout(this);										   
		});
	});


	/*$(".slideShow").jCarouselLite({
		auto: 15000,
        speed: 1000,
		btnNext: ".next",
		btnPrev: ".prev",
		visible: 1
		
	});
	
	$(".slideShowImg").jCarouselLite({
		auto: 15000,
        speed: 1000,
		btnNext: ".next",
		btnPrev: ".prev",
		visible: 1
		
	});*/
	
	
	//News slider rollover
	$('.newsBox').cluetip(
		{
			cluetipClass: 'rounded', 
			dropShadow: false,
			splitTitle: '|',
			sticky: true,
			positionBy: 'fixed',
			mouseOutClose: true,
			topOffset: -8,
			leftOffset: -205,
			width:220,      // The width of the clueTip
			height:144,
			closeText: ''
			}
		);

	
}); // end of $(document).ready
