
/* --- slide news and program list  a.item-info --- */

var mouseover_ticketlink = false;
var hoverintent_fired_over = false;

$(document).ready(function(){
		$(".narrowcolumn li").hoverIntent (
		function () {	
			if (!mouseover_ticketlink) {
				$(this).find(".extra-details").show();
				
				var height = $(this).find("span.event-info").height();	
				var height2 = $(this).find("img.alignleft").height();
				if (height2 > height)height=height2;
				if (height < 142 ) {
					height = 142;
				}
				$(this).find("a.item-info").animate({ 
						height: height+"px"
						
					}, 600 , function(){});	
			}
			else {
				hoverintent_fired_over = this;
			}
		},
		function () {
			$(this).find("a.item-info").animate({ 
				height: "117px"
				
			}, 200 );	
			//$(this).find(".extra-details").hide();
		}
	);

});


function resizeVideos(){

var videos = $(".video object embed");

if(videos !='undefined' && videos != null){
for (i=0;i<videos.length;i++)
{
var ratio = videos[i].width / videos[i].height;
videos[i].width = 300;
videos[i].height = parseInt(videos[i].width / 1,2);

}
}
}
