$(document).ready(function() {
	
	widgetHeight = $(".container-landing-widget").height();
	widgetWidth = $(".container-landing-widget").width();
	
	/*$("#indicator-c").hover(function() {
		$("#widget-c").stop().animate({width: "282px",height: "163px"},animationStyle);
		$("#widget-c").find(".image-inner-container").stop().animate({width: "119px",height: "125px"},animationStyle);
		$("#widget-c").find("h3").stop().animate({paddingTop: 0},animationStyle);
		$("#widget-c").find(".container-outer-container").stop().animate({paddingLeft: "14px", paddingTop: "14px",paddingRight: "14px", paddingBottom: "14px"},animationStyle);
		$("#widget-c").find(".container-outer-container-left").stop().animate({width: "125px"},animationStyle);
		$("#widget-c").find(".container-outer-container-right").stop().animate({width: "117px"},animationStyle);
		$("#widget-c").find(".widget-content").stop().animate({height: "131px"},animationStyle);
	},function() {
		$("#widget-c").find(".widget-content").stop().animate({height: "43px"},animationStyle);
		$("#widget-c").find(".container-outer-container-right").stop().animate({width: "90px"},animationStyle);
		$("#widget-c").find(".container-outer-container-left").stop().animate({width: "87px"},animationStyle);
		$("#widget-c").find(".container-outer-container").stop().animate({paddingLeft: "3px", paddingTop: "3px",paddingRight: "3px", paddingBottom: "3px"},animationStyle);
		$("#widget-c").find("h3").stop().animate({paddingTop: "13px"},animationStyle);
		$("#widget-c").find(".image-inner-container").stop().animate({width: "81px",height: "49px"},{duration: animationSpeed, queue: false});
		$("#widget-c").stop().animate({width: widgetWidth + "px",height: widgetHeight + "px"},{duration: animationSpeed, queue: false});
	});*/
	
	$(".container-landing-widget, .prius-indicator").hover(function() {
		animationSpeed = 800;
		$selectElement = $(this);
		if ($(this).attr("class") == "prius-indicator") {
			$selectElement = $("#"+$(this).attr("id").replace("indicator","widget"));
		}		
		$($selectElement).stop().animate({width: "282px",height: "160px"},{duration: animationSpeed, queue: false});
		$($selectElement).find("h3").stop().animate({paddingTop: 0},{duration: animationSpeed, queue: false});
		$($selectElement).find(".container-outer-container").stop().animate({paddingLeft: "14px", paddingTop: "14px",paddingRight: "14px"},{duration: animationSpeed, queue: false});
		$($selectElement).find(".container-outer-container-right").stop().animate({width: "117px"},{duration: animationSpeed, queue: false});
		$($selectElement).find(".widget-content").stop().animate({height: "140px"},{duration: animationSpeed, queue: false});
		$($selectElement).find(".container-outer-container-left").stop().animate({width: "125px"},{duration: animationSpeed, queue: false});
		$($selectElement).find(".image-inner-container").stop().animate({width: "119px",height: "125px"},{duration: animationSpeed, queue: false});
	},function() {
		$($selectElement).find(".widget-content").stop().animate({height: "43px"},{duration: animationSpeed, queue: false});
		$($selectElement).find(".container-outer-container-right").stop().animate({width: "86px"},{duration: animationSpeed, queue: false});
		$($selectElement).find(".container-outer-container").stop().animate({paddingLeft: "10px", paddingTop: "3px",paddingRight: "3px", paddingBottom: "3px"},{duration: animationSpeed, queue: false});
		$($selectElement).find("h3").stop().animate({paddingTop: "11px"},{duration: animationSpeed, queue: false});
		$($selectElement).find(".image-inner-container").stop().animate({width: "81px",height: "49px"},{duration: animationSpeed, queue: false});
		$($selectElement).stop().animate({width: widgetWidth + "px",height: widgetHeight + "px"},{duration: animationSpeed, queue: false});
		$($selectElement).find(".container-outer-container-left").stop().animate({width: "87px"},{duration: animationSpeed, queue: false});
	});
	
	/* only IE6 nees this if they want to use PNG hack */
	$(".container-landing-widget").click(function() {
		locationUrl = $(this).find('.widget-link').attr('href')
		location.href=locationUrl;
	});
		
});

