function dispatchGallery(ie7Path, otherPath)
{ 
	w = window.open ((isIE7()?ie7Path:otherPath),
	"gallery","status=0,toolbar=0,width=800,height=600,resizable=yes",false);
	if(!w) 
	{
		alert("Please disable popup blocker.");
	} 
	
	try
	{ 

		w.focus();
	} 
	catch(e)
	{ 
		alert("There might already be a gallery opened in the background. Somewhere? Over the rainbow?");
	} 
		
} 

function isIE7() 
{ 
	return (navigator.appVersion.indexOf("MSIE 7.")==-1) ? false : true;
	//return true;
} 

function hide(id)
{
	//if(isIE7())
	//	document.getElementById(id).style.visibility  = 'collapse;';
	//else
		document.getElementById(id).style.display = 'none';
} 

function show(id)
{
//	if(isIE7())
//		document.getElementById(id).style.visibility  = "visible;";
//	else
		document.getElementById(id).style.display = '';
}

function showVideoContainer(ie7,other)
{
	if(isIE7())
	{ 
//		alert("Hello.");
//		alert(ie7 + " " + other);
//		show(ie7);
//		hide(other);
		document.getElementById(ie7).style.display='block';
		document.getElementById(other).style.display = 'none';
//		alert("Hello1.");
	} 
	else
	{
//		show(other);
//		hide(ie7);
		document.getElementById(ie7).style.display='none'
		document.getElementById(other).style.display = 'block';	
	}
}

