// What Browser?
var isIE4=false, isIE5=false, isNav4=false, isNav6=false;
if (document.getElementById && document.all){isIE5 = true;}
else if (document.getElementById){isNav6 = true;}
else if (document.all){isIE4 = true;}
else if (document.layers){isNav4 = true;}
if (isIE5){isIE4 = true};

// Assembles correct DOM reference (used on svmaps.html page)
function getObj(name){
	if (isIE4){return document.all[name].style;}
	if (isIE5 || isNav6){return document.getElementById(name).style;}
	if (isNav4){return document.layers[name];}
}

// Select ie or nn styles
if (isNav4) {
document.write("<LINK TYPE='text/css' REL='stylesheet' HREF='scripts/sv_nn.css'>");
}
else {
document.write("<LINK TYPE='text/css' REL='stylesheet' HREF='scripts/sv.css'>")
}

// general purpose pop-up
function newWindow(url,xx,yy,ew,ns){
	specs = "\'location=yes,menubar=yes,toolbar=yes,scrollbars=yes,status=yes,resizable=yes,width=" + xx +",height=" + yy + ",left=" + ew + ",top=" + ns + "\'"
	infotext = window.open(url, 'infowin', specs);
}

// extra pop-up (used on svmaps.html page)
function auxWindow(url,xx,yy,ew,ns){
	specs = "\'location=yes,menubar=yes,toolbar=yes,scrollbars=yes,status=yes,resizable=yes,width=" + xx +",height=" + yy + ",left=" + ew + ",top=" + ns + "\'"
	auxwin = window.open(url, 'auxwin', specs);
}

// extra pop-up (used on svmaps.html page)
function navWindow(url,xx,yy,ew,ns){
	specs = "\'location=no,menubar=no,toolbar=no,scrollbars=no,status=no,resizable=no,width=" + xx +",height=" + yy + ",left=" + ew + ",top=" + ns + "\'"
	auxwin = window.open(url, 'auxwin', specs);
}
