// This script centers the Homepage Video Slideshow vertically on page load.
//function center_slideshow(){
	/*window.height_flag=1;
	window.prev_height=0;
	$('#content>.section>h1,#content>.section>div').each(function(i,o){
		//console.log($(o).attr("class"));
		if ($(o).hasClass("region-content-top")){
			if ($(o).find(".view-homepage-slideshow").size()>0){
				window.height_flag=0;
			}
		}
		//console.log(window.prev_height+" + ("+window.height_flag+" * "+$(o).outerHeight()+") = "+(window.prev_height+($(o).outerHeight()*window.height_flag)));
		window.prev_height+=$(o).outerHeight()*window.height_flag;
	});/**/
	
//	window.prev_height=$("#content-area .content table tr:first").offset();
//	if (typeof(window.prev_height)!="undefined"){
//		window.prev_height=window.prev_height.top;
		//console.log("tr top: "+window.prev_height);
		
//		window.prev_height+=Math.floor($("#content-area .content table tr:first").outerHeight()
//			-(312/2))-10-20;//312=video element height, 20=controls bar height
		
		//console.log("final offset: "+window.prev_height);
		//fix ie
		//	if ($("body").hasClass("ie")){window.prev_height-=Math.floor($("#content h1.title").offset().top*0.75);}
//		window.prev_height-=Math.floor($("#content h1.title").offset().top*0.75);
			
		//	$(".view-homepage-slideshow").css({top:window.prev_height+"px",left:"188px"});
//	}else{
		//undefined, we're in IE
//		alert("IE");
//	}
//}
//
//$(function(){
//	center_slideshow();
//});

