
//Hide or Show individual tabs
function toggle(id_on, id_off) 
{
	var subOn = document.getElementById(id_on);
	var subOff = document.getElementById(id_off);

	if(subOn.style.display == "block") 
	{
		subOn.style.display = "none";
		subOff.style.display = "block";
	}
	else 
	{
		subOn.style.display = "block";
		subOff.style.display = "none";
	}
} 

//Show all tabs
function toggleAllOn(id_on, id_off) 
{
	var subOn = document.getElementById(id_on);
	var subOff = document.getElementById(id_off);

	if(subOn.style.display != "block") 
	{
		subOn.style.display = "block";
		subOff.style.display = "none";
	}
} 

//Turn iFrame on
function toggleOnOnce(id_on) 
{
	var subOn = document.getElementById(id_on);
	subOn.style.display = "block";
} 

//Hides all tabs that do not have the selected video playing
function toggleAll(contentDiv, controlDiv) 
{
	var subOn = "";
	var subOff = "";
	
	if (contentDiv.constructor == Array) 
	{
		  for(i=0; i < contentDiv.length; i++) 
		  {
			  subOn = document.getElementById(contentDiv[i]);
			  subOff = document.getElementById(controlDiv[i]);

			  subOn.style.display = "none";
			  subOff.style.display = "block"; 
		  }
	}
}

//sets the iframe to proper size for certain video
function toggleVideoOff(iframeDisplay, iFrameSrc) 
{
	var display = document.getElementById(iframeDisplay);
	var source = new String(iFrameSrc);
	display.src = source;
	
	if(source == "videos/2006/halloween/video1.html" || source == "videos/2006/halloween/video2.html" || source == "videos/2006/halloween/video3.html")
	{
		display.width = "320px";
		display.height = "240px";
	}
	else
	{
		display.width = "640px";
		display.height = "480px";
	}
}


