var sCurrentVideoTab = 'related';
var aLoadedVideoTabs = new Array();

function show_video_tab(sVideoTab,sURL)
{
	if(sVideoTab == sCurrentVideoTab) return false;
	
	if('undefined' != typeof sURL && 'undefined' == typeof aLoadedVideoTabs[sVideoTab])
	{
		aLoadedVideoTabs[sVideoTab] = true;
		var oIFrame = window.document.createElement('iframe');
	
		oIFrame.setAttribute('src', sURL);
		oIFrame.style.height = '491px';
		oIFrame.style.width = '241px';
		oIFrame.style.border = 'none';
	
		$('video_'+sVideoTab+'_tab_contents').appendChild(oIFrame);
	}
	
	$('video_'+sCurrentVideoTab+'_on').style.display = 'none';
	$('video_'+sCurrentVideoTab+'_off').style.display = '';
	$('video_'+sCurrentVideoTab+'_tab_contents').style.display = 'none';
	
	$('video_'+sVideoTab+'_on').style.display = '';
	$('video_'+sVideoTab+'_off').style.display = 'none';
	$('video_'+sVideoTab+'_tab_contents').style.display = '';
	
	sCurrentVideoTab = sVideoTab;
	return false;
}
