

MenuObj = function(link,target,alt,directory,status){
	this.myURL = link;
	this.myTARGET = target;
	this.myALT = alt;
	this.myDIRECTORY = directory;
	this.mySTATUS = status;
	return this;
}


menuList = new Array();
menuList.push(new MenuObj('index.htm','_self','TOP','',1));
menuList.push(new MenuObj('outline.htm','_self','開催概要','outline',1));
menuList.push(new MenuObj('titles.htm','_self','出展タイトル','titles',1));
menuList.push(new MenuObj('information.htm','_self','イベント情報','information',1));
menuList.push(new MenuObj('map.htm','_self','ブースMAP','map',1));
menuList.push(new MenuObj('mobilesite.htm','_self','モバイルサイト','mobilesite',1));



currentLocation = window.location.href;
liText = "";

for(var i=0;i<menuList.length;i++){
	if(currentLocation.indexOf(menuList[i].myURL) > -1){
		menuList[i].mySTATUS = -1;
	}


	if(menuList[i].mySTATUS == 1){
		aHead = '<a onFocus="blur();" href="' + menuList[i].myURL + '" target="' + menuList[i].myTARGET
		+ '" onMouseOver="swapImage(\'menu' + (i + 1) + '\',1)'
		+ '" onMouseOut="swapImage(\'menu' + (i + 1) + '\',0)">';

		imgCode = "e";
		aEnd = "</a>";
	}else if(menuList[i].mySTATUS == -1){
		aHead = aEnd = "";
		imgCode = "p";
	}else{
		aHead = aEnd = "";
		imgCode = "d";
	}
		

	liText += '<li>' + aHead
		+ '<img src="common-images/header/menu0' + (i + 1)
		+ imgCode + '.gif" width="146" height="33" alt="' + menuList[i].myALT
		+ '" id="menu' + (i + 1) + '" />' + aEnd + '</li>';
}


document.write('<ul id="menus">' + liText + '</ul>');

