//style sheet ref.

if (navigator.appName == "Netscape") {
	document.write('<link rel="stylesheet" href="../netscape.css">');
} else {
	document.write('<link rel="stylesheet" href="../ie.css">');
}


function popwin(urlstr)
{
	NewWin=window.open(urlstr,"window","status=no,location=no,menubar=no,toolbar=no,directories=no,scrollbars=yes,resizable=yes,width=470,height=480");
}
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

var requirements=0;
var agentbase=0;
var browserbase="nsnav";

if (navigator.userAgent.indexOf("Mozilla/4.0") != -1) agentbase=4;
else if (navigator.userAgent.indexOf("Mozilla/4.5") != -1) agentbase=4;
else if (navigator.userAgent.indexOf("Mozilla/3.0") != -1) agentbase=3;
else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1) agentbase=2;
else if (navigator.userAgent.indexOf("Mozilla/1.0") != -1) agentbase=1;
else agentbase=0;
if (navigator.userAgent.indexOf("MSIE") != -1) browserbase="msie";

var visibleVar="null";

function layerinit(){
if (agentbase>3){
	if (navigator.appName == "Netscape") {
		layerStyleRef="layer.";
		layerRef="document.layers";
		styleSwitch="";
		visibleVar="show";
	}else{
		layerStyleRef="layer.style.";
		layerRef="document.all";
		styleSwitch=".style";
		visibleVar="visible";
			}
		}
	else{;}
}

function init() {
	if (n) block = document.main
	if (ie) block = main.style
	block.ypos = parseInt(block.top)
	moveme = 0
}

// cloaking code
function init2(){

if (agentbase>3){

	if (navigator.appName == "Netscape") {
			layerStyleRef="layer.";
			layerRef="document.layers";
			styleSwitch="";
			visibleVar="show";
			}else{

			layerStyleRef="layer.style.";
			layerRef="document.all";
			styleSwitch=".style";
			visibleVar="visible";
			}
	}
	else{;}
	}    



function hideLayer(layerName){
   if (agentbase>3){
       eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
   }
   else{;}
   }

if (document.layers) {n=1;ie=0}
if (document.all) {n=0;ie=1}


function moveup() {
	if (moveme == 1) {
		if (block.ypos >-700) {
			block.ypos -= 10
			block.top = block.ypos
			setTimeout("moveup()",10)
		}
	}
}

function movedown() {
	if (moveme == 1) {
		if (block.ypos < 3) {
			block.ypos += 10
			block.top = block.ypos
			setTimeout("movedown()",10)
		}
	}
}

function gototop() {
	block.ypos = 88
	block.top = block.ypos
}

vis01down = new Image();vis01down.src = "../images/scroll-up-over.gif";
vis01up = new Image();vis01up.src = "../images/scroll-up.gif";
vis02down = new Image();vis02down.src = "../images/scroll-down-over.gif";
vis02up = new Image();vis02up.src = "../images/scroll-down.gif";

var isNav, isIE;
if (navigator.appName == "Netscape") {
                isNav = true;
        } else {
                isIE = true;
        }
 
function handleResize() {
        location.reload()
        return false
}
 
if (isNav) {
        window.captureEvents(Event.RESIZE)
        window.onresize = handleResize
}

