function MM_displayStatusMsg(msgStr)  { //v3.0

	status=msgStr; document.MM_returnValue = true;

}



function MM_findObj(n, d) { //v3.0

  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;

}

function MM_swapImage() { //v3.0

  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

}

function MM_swapImgRestore() { //v3.0

  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}



function MM_preloadImages() { //v3.0

 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

}



function fwLoadMenus() {

  if (window.fw_menu_0) return;

window.fw_menu_0 = new Menu("root",160,18,"Osaka, MS UI Gothic",12,"#000000","#ffffff","#eeeeee","#336699");
fw_menu_0.addMenuItem("［ご挨拶］","location='../message/index.html'");
fw_menu_0.addMenuItem("［会社概要］","location='../profile/index.html'");
fw_menu_0.addMenuItem("［沿革］","location='../history/index.html'");
fw_menu_0.addMenuItem("［業績の推移］","location='../achievement/index.html'");
fw_menu_0.addMenuItem("［各店舗連絡先］","location='../contact/index.html'");
fw_menu_0.hideOnMouseOut=true;

window.fw_menu_1 = new Menu("root",160,18,"Osaka, MS UI Gothic",12,"#000000","#ffffff","#eeeeee","#336699");
fw_menu_1.addMenuItem("［事業内容］","location='../enterprise/index.html'");
fw_menu_1.addMenuItem("［関連事業］","location='../affiliated/index.html'");
fw_menu_1.hideOnMouseOut=true;

window.fw_menu_2 = new Menu("root",160,18,"Osaka, MS UI Gothic",12,"#000000","#ffffff","#eeeeee","#336699");
fw_menu_2.addMenuItem("［人事・給与制度］","location='../treatment/index.html'");
fw_menu_2.addMenuItem("［定期・中途採用］","location='../employment/index.html'");
fw_menu_2.addMenuItem("［募集要綱］","location='../entry/index.html'");
fw_menu_2.addMenuItem("［先輩社員メッセージ］","location='../senior/index.html'");
fw_menu_2.addMenuItem("［会社説明会］","location='../explanation/index.html'");
fw_menu_2.hideOnMouseOut=true;

window.fw_menu_3 = new Menu("root",280,18,"Osaka, MS UI Gothic",12,"#000000","#ffffff","#eeeeee","#336699");
fw_menu_3.addMenuItem("［プレスリリース］","location='../release/index.html'");
fw_menu_3.addMenuItem("［業績の推移］","location='../achievement/index.html'");
fw_menu_3.addMenuItem("［財務情報］","location='../financial/index.html'");
fw_menu_3.addMenuItem("［株価情報］","location='../prices/index.html'");
fw_menu_3.addMenuItem("［アナリストカバレッジ］","location='../analyst/index.html'");
fw_menu_3.addMenuItem("［平成17年10月中間期会社説明会資料］","window.open('../ir/IR2005_10.htm', '_blank', 'width=960,height=600');");
fw_menu_3.addMenuItem("［平成18年4月期会社説明会資料］","window.open('../ir/IR2006_4.htm', '_blank', 'width=960,height=600');");
fw_menu_3.addMenuItem("［平成18年10月中間期会社説明会資料］","window.open('../ir/IR2006_10.htm', '_blank', 'width=960,height=600');");
fw_menu_3.addMenuItem("［平成19年4月期決算説明会資料］","window.open('../ir/IR2007_04.htm', '_blank', 'width=960,height=600');");
fw_menu_3.addMenuItem("［平成20年10月期決算説明会資料］","window.open('../ir/IR2007_10.htm', '_blank', 'width=960,height=600');");
fw_menu_3.addMenuItem("［平成20年4月期決算説明会会資料］","window.open('../ir/IR2008_04.htm', '_blank', 'width=960,height=600');");
fw_menu_3.addMenuItem("［平成21年4月期第2四半期決算説明会資料］","location='../ir/IR2009_04.pdf'");

fw_menu_3.hideOnMouseOut=true;

window.fw_menu_4 = new Menu("root",220,18,"Osaka, MS UI Gothic",12,"#000000","#ffffff","#eeeeee","#336699");
fw_menu_4.addMenuItem(" [テンポス市場］","location='http://www.tenpos.com'");

fw_menu_3.writeMenus();

} // fwLoadMenus()



function NN_FW_showMenu( FWmenuID, targetObj, offsetX, offsetY )

{

	var x, y;



	if(document.layers) {

		// Navigator 4

		if ( targetObj.href ){

			// text link

			x = targetObj.x ;

			y = targetObj.y ;

			for(i=0; i<document.layers.length; i++){

				for(j=0; j<document.layers[i].document.links.length; j++){

					if(document.layers[i].document.links[j] == targetObj ){

						x += document.layers[i].left;

						y += document.layers[i].top;

					}

				}

			}



		} else {

			// image link

			var imageObject = document.images[targetObj];

			if (!imageObject){

				for(i=0; i<document.layers.length; i++){

					if(document.layers[i].document.images[targetObj]){

						imageObject = document.layers[i].document.images[targetObj];

						x = imageObject.x ;

						y = imageObject.y ;

						x += document.layers[i].left;

						y += document.layers[i].top;

					}

				}

			}else{

				x = imageObject.x ;

				y = imageObject.y ;

			}

		}

		x -= 1; y-= 1;	 // adjust



		x += offsetX;

		y += offsetY;

	} else {

		// IE , NN6

		var version = navigator.appVersion;



		if ( (document.all && version.indexOf( "MSIE 4", 0 ) >= 0 )){

			 //  IE4.x

			 x = event.x + document.body.scrollLeft ;

			 y = event.y  + document.body.scrollTop ;

		} else {

			if( targetObj.href ){

				// text link

				x = targetObj.offsetLeft;

				y = targetObj.offsetTop;

				tempEl = targetObj.offsetParent;





			} else {

				// image link

				var targetObj = document.images[targetObj] ;

				x = eval(targetObj).offsetLeft;

				y = eval(targetObj).offsetTop;

				tempEl = eval(targetObj).offsetParent;

			}

			while (tempEl != null) {

				x += tempEl.offsetLeft;

				y += tempEl.offsetTop;

				tempEl = tempEl.offsetParent;

			}

			if ( document.all && navigator.appVersion.indexOf("Mac") >= 0) {

				// Mac IE

				y += parseInt(document.body.topMargin );

				x += parseInt(document.body.leftMargin) ;

			}



			x += offsetX;

			y += offsetY;

		}

	 }



	window.FW_showMenu( FWmenuID, x, y );

}