window.onerror = null;

var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);

var NS4 = (bName == "Netscape" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);

var i=0;

var layerRef;
var styleSwitch;

if (NS4 || IE4) {
	if (navigator.appName == "Netscape") {
		layerRef="document.layers";
		styleSwitch="";
	} else {
		layerRef="document.all";
		styleSwitch=".style";
	}
}

function set_layer_visiblity(layerName, vis) {
	if (document.getElementById) {
		document.getElementById(layerName).style.visibility = vis;
	} else if (NS4 || IE4) { 
		eval(layerRef + "[\"" + layerName + "\"]" + styleSwitch + ".visibility=\"" + vis + "\"");
	}
}

function Blink(layerName, l_on, l_off){
	Blink_next(layerName, l_on, l_off, true);
}

function Blink_next(layerName, l_on, l_off, l_next) {
	if (l_next) {
		set_layer_visiblity(layerName, "visible");
	} else {
		set_layer_visiblity(layerName, "hidden");
	}
	setTimeout("Blink_next(\"" + layerName + "\", " + l_on + ", " + l_off + ", " + (l_next? "false": "true") + ")", l_next? l_on: l_off);
}

