$(function() {
    $("#whyLVPart1").ImgMouseEventChange({
    	over:'/img/home/playPart01on.jpg', 
    	down:'/img/home/playPart01.jpg', 
    	out:'/img/home/playPart01.jpg'
    });
    
    $("#whyLVPart2").ImgMouseEventChange({
    	over:'/img/home/playPart02on.jpg', 
    	down:'/img/home/playPart02.jpg', 
    	out:'/img/home/playPart02.jpg'
    });
    
    $("#whyLVPart3").ImgMouseEventChange({
    	over:'/img/home/playPart03on.jpg', 
    	down:'/img/home/playPart03.jpg', 
    	out:'/img/home/playPart03.jpg'
    });
    
    $("#buyNowWidgetBtn").ImgMouseEventChange({
    	over:'/img/home/buyNowon.jpg', 
    	down:'/img/home/buyNow.jpg', 
    	out:'/img/home/buyNow.jpg'
    });
    
	$("#speechEngineBanner .accuracyGraph").css("cursor", "pointer");	
	$("#speechEngineBanner .phoneDemo").css("cursor", "pointer");
	
	$("#speechEngineBanner .accuracyGraph").mouseover(function(){
		$(this).css("background-image", "url(/img/home/accuracyStudyOvr.jpg)");
	});
	
	$("#speechEngineBanner .accuracyGraph").mouseout(function(){
		$(this).css("background-image", "url(/img/home/accuracyStudy.jpg)");
	});
	
	$("#speechEngineBanner .phoneDemo").mouseover(function(){
		$(this).css("background-image", "url(/img/home/phoneDemoOvr.jpg)");
	});
	
	$("#speechEngineBanner .phoneDemo").mouseout(function(){
		$(this).css("background-image", "url(/img/home/phoneDemo.jpg)");
	});
	
	$("#speechEngineBanner .accuracyGraph").click(function(){
		$.cookie('speechEngineTab', 'tabAccuracyStudy')
		document.location = "/products/speech_engine/";
	});
	
	$("#speechEngineBanner .phoneDemo").click(function(){
		document.location = "/resources/phonedemos/";
	});


   	$("#carouselMarque").HomeMarquee();
	$("#tabContainer").TabControl();

});
