	
$(function(){



//preload the images
//$.cacheImage([
	//preloadimg
//]);
//'/images/red/to/an/image.png',
//'/path/to/another/image.png'
//$('.preload img').cacheImage();

rotatingbanner = function(imageArray){
	if (typeof totalImages == "undefined"){
		totalImages= imageArray.length;
	}
	if (typeof counter == "undefined"){
		counter = 0;
	}

	if (counter <= totalImages-1){
		
		$("a#rotatelink").attr("href", imageArray[counter].href);
	
		$("img#rotateimg").attr("src", imageArray[counter].src);
		$("div#rotateprodtitle").text(imageArray[counter].text);
		counter++;
	
	} else{
	counter = 0;
}
},

setInterval(function(){rotatingbanner(imageArray);}, 4000);

$(".prodhover").live(
	"mouseover",function()
	{
		
		//$(this).addClass(".prodimghoverover");
		$(this).children(".prodcontaininner").children(".prodcontainerimg").children(".prodimghover").hide();
		
	}
);
	
$(".prodhover").live(
	"mouseout",function()
	{
		//$(this).removeClass(".prodimghoverover");
		$(this).children(".prodcontaininner").children(".prodcontainerimg").children(".prodimghover").show();
		
	}
);

//set the height of the expandable area

var newexpandheight= $("#bodyleft").height();
$("#bodyrightstretch").height(newexpandheight-60);




});