// Initialization variables
	bWidth=0;
	adjX=0;
	contentWidth=740;
	browza=0;
	if(document.all){
		browza=1;
	}else if(document.layers){
		browza=2;
	}else if (document.getElementById){
		browza=3;
	}

function moveDivs(){
	getDims();
	domlay("subInfo",1,adjX+5);
	domlay("subMenu",1,adjX+210);
	if (browza==2)makeSub(0);
}
function getDims(){
	bWidth = (browza==1) ? document.body.clientWidth : innerWidth;
	bWidth = (browza==2) ? bWidth-22 : bWidth;
	adjX = (bWidth<contentWidth) ? 0 : parseInt(( (bWidth/2) - (contentWidth/2) ));
}

function menu(subItems){
	window.focus();
	domlay("subMenu",1,null,null,makeSub(subItems));
}

function itemInfo(info){
	info = '<table width="180" border="0" cellspacing="0" cellpadding="0"><tr><td class="subInfo">'+info+'</td></tr></table>';
	domlay("subInfo",1,null,null,info);
}

function makeSub(theseThings){
	codeOut = "";
	if(subItemsArray[theseThings][0] != ""){
//		codeOut = '<span class="subMenu">';	clip: rect(0 390 16 0);
		codeOut = '<table width="390" border="0" cellspacing="0" cellpadding="0"><tr><td class="subMenu">';
		for(i=0;i<subItemsArray[theseThings].length;i++){
			codeOut += '<a href = "'+subItemsArray[theseThings][i][1]+'" onmouseout="itemInfo(\'\')" onmouseover = "itemInfo(\''+subItemsArray[theseThings][i][2]+'\')"><span class="subMenu">'+subItemsArray[theseThings][i][0]+'</span></a>';
	 		codeOut = ( i < (subItemsArray[theseThings].length)-1 )?codeOut+' &nbsp;||&nbsp; ':codeOut+"";
		}
//		codeOut += "</span>";
		codeOut += "</tr></td></table>";
	} else {
        itemInfo(subItemsArray[theseThings][i][2]);
    }
	return codeOut;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
