// JavaScript Document

if (language='Javascript') {var javascript_version = 1.0; }
else {var javascript_version = 1.1; }
var newwin;

function launchwin(winurl,winname)
{
	var bversion = parseInt(navigator.appVersion);
	var bname = navigator.appName;
	if (bversion>=4)
	{
		winfeatures='width='+(screen.width - 10)+',height='+(screen.height - 70)+',screenX=0,screenY=0, fullscreen=0,dependent=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=0,toolbar=0,left=0,top=0';
	}
	else
	{
		winfeatures='dependent=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=0,toolbar=0';
	} 
	newwin = window.open(winurl,winname,winfeatures);
	if (javascript_version > 1.0)
	{
		setTimeout('newwin.focus();',250);
	}
}
function OpenDemo(address)
{
	newwin = window.open(address,'Demo','scrollbars=no,status=no,titlebar=yes,toolbar=no,menubar=no,location=no,resizable=no,fullscreen=no,width=637,height=500');
}
function OpenWind(address,winname,larg,haut)
{
	newwin = window.open(address,winname,'dependant=no,scrollbars=yes,status=no,titlebar=yes,toolbar=no,menubar=no,location=no,resizable=yes,fullscreen=no,width=' + larg + 'height=' + haut);
}
function toggleLayer(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}
