

function h() 
{ 
document.getElementById("searchvideo").style.display='none'; 
document.getElementById("searchdate").style.display='none'; 
document.getElementById("searchname").style.display='';
document.getElementById("wowbox").setAttribute('src','index_guest_a.html')
} 
function s() 
{
document.getElementById("searchvideo").style.display='none'; 
document.getElementById("searchname").style.display='none'; 
document.getElementById("searchdate").style.display=''; 
document.getElementById("wowbox").setAttribute('src','index_date.html')
}
function v() 
{ 
document.getElementById("searchvideo").style.display=''; 
document.getElementById("searchdate").style.display='none'; 
document.getElementById("searchname").style.display='none';
document.getElementById("wowbox").setAttribute('src','video_guest_a.html')
} 

function PopupPic(deep,sPicURL,caption) {
	if (document.getElementById) {
		window.open( deep+"images/popup.html?"+sPicURL+"?"+caption, "", "resizable=1,HEIGHT=200,WIDTH=200");
	}
	else {
		window.open( deep+"images/"+sPicURL, "", "resizable=1,HEIGHT=470,WIDTH=570");
	}
} 

// Set a few variables

var otherWin = null;
var otherWinP = null;
var tvWin = null;
var popupWidth=425;
var popupHeight=400;
var popupScroll='no';
var popupResize='yes';
var popupLeft='1';



// ----------------------------------------------------------------------------
// Open TV Popup; takes arguments bw (bandwidth) and video filename

function openTV(bw,videoFN) {
	
	if (tvWin != null)	{
		if (tvWin.closed == false)	{
			tvWin.close();
		}
	}

	if(bw=='low')	{
		theWidth=430;
		theHeight=212;
	}
	else	{
		theWidth=566;
		theHeight=333;
	}
	theURL = "../media/tv_" + bw + ".html?" + videoFN;
	
	if (tvWin) {
		if(tvWin.closed==false) {
			tvWin.focus();
		}
		else	{
			tvWin = opendetails(theURL,theWidth,theHeight,'no','no','150','1','theTV');
		}
	}
	else	{
		tvWin = opendetails(theURL,theWidth,theHeight,'no','no','150','1','theTV');
	}
	//openedRadio = true;
}

function opendetails(theURL,popupWidth,popupHeight,scrollBars,resizable,left,top,windowName)	{
	detailswin = null;
	detailsDetails = 'scrollbars=' + scrollBars + ',resizable=' + resizable + ',width=' + popupWidth + ',height=' + popupHeight +  ',left=' + left + ',top=' + top;
	detailswin=window.open(theURL,windowName,detailsDetails);
	detailswin.focus();
	return (detailswin);
}

 
