var flag=1;

var selected = "";

DOC_LAY = (document.layers) ? 1 : 0;

DOC_ALL = (document.all) ? 1 : 0;

var ver4 = (navigator.appVersion.indexOf("MSIE 4.")>=0);

function showpage(filename) {
mywin = window.open(filename,"", 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=354,height=360');
         mywin.focus();
      }

function LayerButOn(lay, but) {

	clearReset();

	if (!DOC_LAY) {

		if (ver4) document.all["button"+but].src=img_a[but].src;

		else document.getElementById("button"+but).src=img_a[but].src;

		}

	else {document.layers[lay].document.images["button"+but].src = img_a[but].src;}

	}

function LayerButOff(lay, but) {

	if (!DOC_LAY) {

		if (ver4) document.all["button"+but].src=img_n[but].src;

		else document.getElementById("button"+but).src=img_n[but].src;

		}

	else {document.layers[lay].document.images["button"+but].src = img_n[but].src;}

	}

function ButOn(but) {

	if (!DOC_LAY) {

		if (ver4) document.all["button"+but].src=img_a[but].src;

		else document.getElementById("button"+but).src=img_a[but].src;

		}

	else {document.images["button"+but].src = img_a[but].src;}

	}

function ButOff(but) {

	if (!DOC_LAY) {

		if (ver4) document.all["button"+but].src=img_n[but].src;

		else document.getElementById("button"+but).src=img_n[but].src;

		}

	else {document.images["button"+but].src = img_n[but].src;}

	}

function ToggleBG(but, col) {

	if (DOC_ALL) document.all["button"+but].style.setAttribute("backgroundColor", col,"false");
	else document.getElementById("button"+but).style.backgroundColor = col;
	
}
