// JavaScript Document

function OpenWin(url,w,h)
{

  screenW = screen.availWidth; 
  winLeftPos = (screenW - w) / 2;
  args = "width="+w+",height="+h+",left="+winLeftPos+",resizable=yes,status=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes"
  
  myWindow=window.open(url,'showWin',args);
  myWindow.focus();
} 

function OpenWin2(url,w,h)
{

  screenW = screen.availWidth; 
  winLeftPos = (screenW - w) / 2;
  args = "width="+w+",height="+h+",left="+winLeftPos+",resizable=0,status=0,scrollbars=0,toolbar=0,menubar=0,location=0"
  
  myWindow=window.open(url,'showWin',args);
  myWindow.focus();
} 

function viewChildNav(element)
{
		
		if(document.getElementById(element).style.visibility=="hidden" || document.getElementById(element).style.visibility=="")
			document.getElementById(element).style.visibility="visible";
		else
			document.getElementById(element).style.visibility="hidden";	
	}
function offChildNav(element)
{
	document.getElementById(element).style.visibility="hidden";
	}
	
	
	
	function ViewName(info_id)
{
 
	document.getElementById("thumb"+info_id).style.display = "none";
	document.getElementById("name"+info_id).style.display = "block";
	
	} 
function ViewThumb(info_id)
{

	document.getElementById("name"+info_id).style.display = "none";
	document.getElementById("thumb"+info_id).style.display = "block";
	

} 


