var panels = new Array('panel1', 'panel2', 'panel3', 'panel4', 'panel5');

function showPanel(tab, panelName)
{
	var panelToShow = document.getElementById(panelName);

	for(i = 0; i< panels.length; i++)
	{
		// Get the current panel
		var curPanel = document.getElementById(panels[i]);

		// If it exists, hide it
		if (curPanel != null)
			curPanel.style.display = 'none';
	}

	// This line works around a display bug in Gecko-based browsers
	panelToShow.style.display = 'inline';

	// Show the panel
	panelToShow.style.display = 'block';

	return false;
}


<!-- pop up
function openScript(url, width, height) {
        var Win = window.open(url,"newWindow",'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no,menubar=no,status=no,toolbar=no,top=50,left=20' );
				if(window.focus){Win.focus();	}	

}
//-->

function openVideoPlayer(cat,clipid) {
			var url = "/video/mediacenter.asp?cat="+cat+"&clipid="+clipid;
			var newWin = window.open(url, "VideoPlayer",'width=710,height=470,resizable=no,scrollbars=no,menubar=no,statusbar=no,toolbar=no');
			if (window.focus) {
				newWin.focus();
				
			}
		}
		
//here you place the ids of every element of movie demo on the home page
var ids=new Array('demo1','demo2','demo3','demo4');

function switchid(id){	
	hideallids();
	showdiv(id);
}

function hideallids(){
	//loop through the array and hide each element by id
	for (var i=0;i<ids.length;i++){
		hidediv(ids[i]);
	}		  
}

function hidediv(id) {
	//safe function to hide an element with a specified id
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'none';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'none';
		}
		else { // IE 4
			document.all.id.style.display = 'none';
		}
	}
}

function showdiv(id) {
	//safe function to show an element with a specified id
		  
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) { // Netscape 4
			document.id.display = 'block';
		}
		else { // IE 4
			document.all.id.style.display = 'block';
		}
	}
}
