/* ©2001 Copyright(C) iArchitects, All Rights Reserved */
/* 
include Menuvars.js before this js file, in order to initialize vars properly.
*/
//draw the menu 
function turnoff() {
	eval(turnoffall);
	}

function writeMenu(id) {
	if (isNav) {
		document.write('<layer id="'+menuID[id]+'" clip="'+menuWidth[id]+','+menuHeight[id]+'" width="'+menuWidth[id]+'" left="'+eval(menuLeft[id]-0)+'" top="'+eval(menuTop[id])+'" visibility="hidden" z-index="99" onmouseout="hide('+id+');turnoff();"><img usemap="#menuMap'+id+'" border="0" width="'+menuWidth[id]+'" height="'+menuHeight[id]+'" src="'+menuSrc[id]+'" name="'+menuImgName[id]+'"></layer>');
	} else if (isNav6) {
		document.write('<div id="test_'+menuID[id]+'" style="position: absolute; left:'+eval(menuLeft[id]-0)+'; top:'+eval(menuTop[id]-0)+'; width:'+menuWidth[id]+'; visibility: hidden;" onmouseover="show('+id+');" OnMouseOut="hide('+id+');turnoff();"><img usemap="#menuMap'+id+'" border="0" width="'+menuWidth[id]+'" height="'+menuHeight[id]+'" src="'+menuSrc[id]+'" name="'+menuImgName[id]+'"></div>');
	} else if (isIE) {
		document.write('<div id="'+menuID[id]+'" style="position: absolute; left:'+eval(menuLeft[id]-0)+'; top:'+eval(menuTop[id]-0)+'; width:'+menuWidth[id]+'; visibility: hidden;" onmouseover="show('+id+');" onmouseout="hide('+id+');"><a href="#" onmouseout="turnoff();"><img usemap="#menuMap'+id+'" border="0" width="'+menuWidth[id]+'" height="'+menuHeight[id]+'" src="'+menuSrc[id]+'" name="'+menuImgName[id]+'"></a></div>');
	} else { } //do nothing
	document.write('<map name="menuMap'+id+'">'+menuMap[id]+'</map>'); //write menuMap[ID]
}
//toggle on and off the menus
function show(id) {
		if (isNav6) {
			eval( "document.getElementById('test_"+menuID[id]+"').style.visibility = 'visible'" );
		}
		else {
			eval( "document."+coll+menuID[id]+styleObj+".visibility = 'visible'" );
		}
}

function hide(id) {
		if (isNav6) {
					eval( "document.getElementById('test_"+menuID[id]+"').style.visibility = 'hidden'" );
				}
				else {
					eval( "document."+coll+menuID[id]+styleObj+".visibility = 'hidden'" );
				}
}
function init() {
	var xcoord = window.width;
	var ycoord = window.height;
	alert(xcoord + ':' + ycoord);
}


