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_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_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];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function RunSwf() {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="710" height="430">\n');
  document.write('<param name="movie" value="img/open.swf">\n');
  document.write('<param name="quality" value="high">\n');
  document.write('<embed src="img/open.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="710" height="430"></embed>\n');	
  document.write('</object>\n');
} 

//<![CDATA[

function load() {
 if (GBrowserIsCompatible()) {
  var icon = new GIcon();
  icon.image = "image/mark.png";/// アイコンURL
  icon.shadow = "image/marksh.png";/// 影のURL
  icon.iconSize = new GSize(52, 52);/// アイコンサイズ
  icon.shadowSize = new GSize(52, 52);/// 影のサイズ
  icon.iconAnchor = new GPoint(19, 52);/// アイコンの中心点
  icon.infoWindowAnchor = new GPoint(25, 0);/// 吹き出しの位置

  var map = new GMap2(document.getElementById("map"));
  map.addControl(new GLargeMapControl());/// 大きなマップコントローラー
  map.addControl(new GMapTypeControl());/// マップ・タイプ
		//map.addControl(new GOverviewMapControl());/// 小窓マップ表示
		map.addControl(new GScaleControl());/// 縮尺レベル表示
  map.setCenter(new GLatLng(36.559877,139.888101), 15);/// 地図の座標
		
		///マーカー座標
		var point = new GLatLng(36.561439,139.886175);
		///インフォHTML
		var info = ("<img src='image/maplogo.jpg' align='middle'><div id=mark style='font-size:13px; border-top:1px dashed #666; margin-top:3px; padding-top:3px;'>〒320-0000&nbsp;栃木県宇都宮市大通り</div>");
		
		/// マーカー(アクセス時)
		var marker = new GMarker(point, icon);
		map.addOverlay(marker);
		//marker.openInfoWindowHtml(info);

  /// マーカー(クリック時)
  //var marker = createMarker(point, icon, info);
  //map.addOverlay(marker);
  }
 }
	
 function createMarker(point, icon, html) {
  var marker = new GMarker(point, icon);
  //GEvent.addListener(marker, 'click', function() {
   //marker.openInfoWindowHtml(html);
  //});
  return marker;
 }

//]]>

thePromos = new Array(9);
thePromos[0]='<img src="/img/home_7meet2003.jpg" width="508" height="302" border="0">';
thePromos[1]='<img src="/img/home_tochi3.jpg" width="508" height="302" border="0">';
thePromos[2]='<img src="/img/home_7meet2001.jpg" width="508" height="302" border="0">';
thePromos[3]='<img src="/img/home_7fes2001.jpg" width="508" height="302" border="0">';
thePromos[4]='<img src="/img/home_levinikko.jpg" width="508" height="302" border="0">';
thePromos[5]='<img src="/img/home_7meet2002.jpg" width="508" height="302" border="0">';
thePromos[6]='<img src="/img/home_7meet2004.jpg" width="508" height="302" border="0">';
thePromos[7]='<img src="/img/home_tmf2006.jpg" width="508" height="302" border="0">';
thePromos[8]='<img src="/img/home_7meet2006.jpg" width="508" height="302" border="0">';
maxImages = 9;
imagesNo = Math.floor(Math.random() * maxImages);

thePromos2 = new Array(9);
thePromos2[0]='<img src="/img/home_film0.jpg" width="600" height="157" border="0">';
thePromos2[1]='<img src="/img/home_film1.jpg" width="600" height="157" border="0">';
thePromos2[2]='<img src="/img/home_film2.jpg" width="600" height="157" border="0">';
thePromos2[3]='<img src="/img/home_film3.jpg" width="600" height="157" border="0">';
thePromos2[4]='<img src="/img/home_film1.jpg" width="600" height="157" border="0">';
thePromos2[5]='<img src="/img/home_film2.jpg" width="600" height="157" border="0">';
thePromos2[6]='<img src="/img/home_film3.jpg" width="600" height="157" border="0">';
thePromos2[7]='<img src="/img/home_film0.jpg" width="600" height="157" border="0">';
thePromos2[8]='<img src="/img/home_film1.jpg" width="600" height="157" border="0">';
maxImages = 9;
imagesNo = Math.floor(Math.random() * maxImages);
