// JavaScript Document

function kikik(layName){
	if(document.getElementById)return document.getElementById(layName).style;
	if(document.layers)return document.layers[layName];
	if(document.all)return document.all(layName).style;
}

function ROfunction(){
	var imgNum=document.getElementsByTagName("img");
	var inputNum=document.getElementsByTagName("input");
	overNum=new Array;
	for(i=0;i<imgNum.length;i++){overNum[i]=imgNum[i];}
	for(i=0;i<inputNum.length;i++){overNum[i+imgNum.length]=inputNum[i];}
	for(i=0;i<overNum.length;i++){
		if(overNum[i].className.indexOf("Rover")!=-1){
			overNum[i].overimg=new Image();
			Replace=overNum[i].src.split(".gif");
			overNum[i].overimg.src=Replace[0]+"o.gif";
		}else if(overNum[i].className.indexOf("Hover")!=-1){
			overNum[i].overimg=new Image();
			Replace=overNum[i].src.split("c.gif");
			overNum[i].overimg.src=Replace[0]+"s.gif";
		}
		if(overNum[i].className.indexOf("Rover")!=-1 || overNum[i].className.indexOf("Hover")!=-1){
			overNum[i].setAttribute("out",overNum[i].src);
			overNum[i].onmouseover=new Function('this.src=this.overimg.src;');
			overNum[i].onmouseout=new Function('this.src=this.getAttribute("out");');
		}
	}
}
window.onload=ROfunction;

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 MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); 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];}
}


// happy guide '/manten/special/200805/index.html'

var StarLoadImg = new Array
StarLoadImg[0] = "/manten/special/200805/img/happy_shop.gif";
StarLoadImg[1] = "/manten/special/200805/img/happy_shop001.jpg";
StarLoadImg[2] = "/manten/special/200805/img/happy_shop002.jpg";
StarLoadImg[3] = "/manten/special/200805/img/happy_shop003.jpg";
StarLoadImg[4] = "/manten/special/200805/img/happy_shop004.jpg";
StarLoadImg[5] = "/manten/special/200805/img/happy_shop005.jpg";
StarLoadImg[6] = "/manten/special/200805/img/happy_shop006.jpg";
StarLoadImg[7] = "/manten/special/200805/img/happy_shop007.jpg";
StarLoadImg[8] = "/manten/special/200805/img/happy_shop008.jpg";

function StarLoad(){
	document.write(
		'<div class="manten_starload">'
		+'<p>'
		+'<img src="img/happy_map.gif" alt="" width="580" height="296" border="0" usemap="#Map">'
		+'<map name="Map">'
		+'<area shape="circle" coords="88,156,16" href="#station" alt="池袋駅">'
		+'<area shape="circle" coords="53,115,16" href="#shop01" onmouseover="StarLoadSwitch(1);" onmouseout="StarLoadSwitch(0);"alt="グリル満天星 麻布十番 池袋東武店">'
		+'<area shape="circle" coords="259,204,16" href="#shop02" onmouseover="StarLoadSwitch(2);" onmouseout="StarLoadSwitch(0);" alt="パフェテラス ミルキーウェイ">'
		+'<area shape="circle" coords="299,130,16" href="#shop03" onmouseover="StarLoadSwitch(3);" onmouseout="StarLoadSwitch(0);" alt="Patisserie Swallowtail White Rose">'
		+'<area shape="circle" coords="301,191,16" href="#shop04" onmouseover="StarLoadSwitch(4);" onmouseout="StarLoadSwitch(0);" alt="Neo Tokyo Fooding Bar MYSTERIOUS池袋店">'
		+'<area shape="circle" coords="500,223,16" href="#shop05" onmouseover="StarLoadSwitch(5);" onmouseout="StarLoadSwitch(0);" alt="プラネタリウム“満天”">'
		+'<area shape="circle" coords="531,239,16" href="#shop06" onmouseover="StarLoadSwitch(6);" onmouseout="StarLoadSwitch(0);" alt="サンシャインシティ国際水族館">'
		+'<area shape="circle" coords="287,158,16" href="#shop07" onmouseover="StarLoadSwitch(7);" onmouseout="StarLoadSwitch(0);" alt="BIG ECHO サンシャイン通り店">'
		+'<area shape="circle" coords="367,166,16" href="#shop08" onmouseover="StarLoadSwitch(8);" onmouseout="StarLoadSwitch(0);" alt="東急ハンズ 池袋店">'
		+'</map>'
		+'</p>'
		+'<p class="manten_starloadImg"><img src="/manten/special/200805/img/happy_shop.gif" id="manten_starload" alt="" width="170" height="140"></p>'
		+'</div>'
	);
}

function StarLoadSwitch(Num){
	document.images['manten_starload'].src=StarLoadImg[Num];
}














