var curr_id = 0;

window.onload = function() 
{
	showVideo(1);
}
function insertYouTube(movie_url, width, height)
{
	if (width == undefined) width = 425;
	if (height == undefined) height = 350;
	document.write('<object type="application/x-shockwave-flash" style="width:' + width + 'px;height:' + height + 'px;" data="' + movie_url + '&rel=0">');
	document.write('<param name="movie" value="' + movie_url + '" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('</object>');
}

function showVideo(video_id)
{
	if(video_id != curr_id)
	{
		vidToShow = document.getElementById("video_detail" + video_id);
		if (vidToShow) vidToShow.style.display = "block";
		
		linkToShow = document.getElementById("video_title" + video_id);
		if (linkToShow) linkToShow.style.fontWeight = "bold";
		
		vidToHide = document.getElementById("video_detail" + curr_id);
		if (vidToHide) vidToHide.style.display = "none";
		
		linkToHide = document.getElementById("video_title" + curr_id);
		if (linkToHide) linkToHide.style.fontWeight = "normal";
		curr_id = video_id;
	}
}

function showVideoPanel(panel_id)
{
	vidDetails = document.getElementById("video_details" + panel_id);
	if (vidDetails.style.display != "block")
	{
		vidDetails.style.display = "block";
	}
}

