function launch(url, options) 
{
	window.open(url, "remote", options); 
} 

function launchCentered( url, width, height, options) {
	var left = ( screen.width - width ) / 2;
	var top = ( screen.height - height ) / 2;
	
	var options = "top="+top+",left="+left+",width="+width+",height="+height+","+options;
	launch( url, options );
}

// JavaScript Document

var ie = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;


function showLayer( item )
{
	if (ie)
	{ 
		document.all[item].style.visibility = 'visible';
	}
	else if (ns4)
	{
		document.layers[item].visibility = 'show';
	}
	else if (ns6)
	{
		document.getElementById(item).style.visibility = 'visible';
	}
}

function hideLayer( item )
{
	if (ie)
	{ 
		document.all[item].style.visibility = 'hidden';
	}
	else if (ns4)
	{
		document.layers[item].visibility = 'hidden';
	}
	else if (ns6)
	{
		document.getElementById(item).style.visibility = 'hidden';
	}
}
