function changeImg(url){
document.getElementById('imgarea').getElementsByTagName('IMG')[0].src = url;
}
function initRollovers() {
	if (!document.getElementById) return;
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'ov') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}
function Init()
{
  initRollovers();
  fscRef();
}
function InitMap(lat,lng)
{
  if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("map_canvas"));
    var center = new GLatLng(lat,lng);
    map.addControl(new GOverviewMapControl());
    map.addControl(new GMapTypeControl());
    map.setCenter(center, 13);

    var marker = new GMarker(center, {draggable: true});

    map.addOverlay(marker);
  }
  initRollovers();
  fscRef();
}


function displayHeader(mno)
{
  document.write("<div id=\"header\" class=\"clearfix\"><!-- header -->");
    document.write("<div id=\"logoleft\">");
      document.write("<a href=\"/index.html\"><img src=\"/images/logo2.gif\" width=\"328\" height=\"48\" alt=\"とうきょう産業立地ナビ\" /></a>");
    document.write("</div>");
    document.write("<div id=\"logoright\">");
      document.write("<div id=\"language\"><!-- Language Select  -->");
        document.write("<a href=\"/index.html\" class=\"current\">日本語</a>");
        document.write("<a href=\"/english/index.html\">English</a>");
        document.write("<a href=\"/chinese/index.html\">中文（簡体）</a>");
        document.write("<a href=\"/chinese_t/index.html\">中文（繁体）</a>");
        document.write("<a href=\"/korean/index.html\">한글</a>");
      document.write("</div><!-- Language Select end -->");
      document.write("<div id=\"textsize\"><!-- Font Size  -->");
        document.write("<img src=\"/images/icon_font.gif\" alt=\"文字のサイズ\" width=\"18\" height=\"13\" hspace=\"4\" />文字のサイズ");
         document.write("<a href=\"#\"><img src=\"/images/textsize_m.gif\" alt=\"中\" width=\"26\" height=\"19\" hspace=\"6\" align=\"absmiddle\" onClick=\"fsc('default');return false;\" /></a>");
        document.write("<a href=\"#\"><img src=\"/images/textsize_l.gif\" alt=\"大\" width=\"26\" height=\"19\" align=\"absmiddle\" onClick=\"fsc('larger');return false;\"/></a>");
      document.write("</div><!-- Font Size end -->");
      document.write("<div id=\"search\">");
        document.write("<form id=\"search\" name=\"search\" action=\"/msearch.cgi\" method=\"get\">");
          document.write("<img src=\"/images/icon_loupe.gif\" alt=\"サイト内検索\" width=\"14\" height=\"15\" hspace=\"4\" align=\"absmiddle\" />サイト内検索　");
          document.write(" <input size=\"20\" name=\"query\"> ");
          document.write("<input type=\"image\" src=\"/images/search_btn3.gif\" alt=\"検索\" value=\"submit\" border=\"0\" align=\"top\" on />");
          document.write("<input type=\"hidden\" value=\"0\" name=\"whence\">");
        document.write("</form>");
      document.write("</div><!-- Search end -->");
    document.write("</div><!-- logoright end -->");
  document.write("</div><!-- header end -->");

  document.write("<h1><img src=\"/images/title3.gif\" width=\"418\" height=\"14\" alt=\"東京への立地・移転、事業展開をサポートするビジネス情報サイト\" /></h1>");

  document.write("<ul class=\"gm\">");
    if (mno == 1) {
      document.write("<li><img src=\"/images/navi3_1_on.gif\" width=\"158\" height=\"40\" alt=\"ホーム\" /></li>");
    } else {
      document.write("<li><a href=\"/index.html\"><img src=\"/images/navi3_1.gif\" width=\"158\" height=\"40\" alt=\"ホーム\" /></a></li>");
    }
    if (mno == 2) {
      document.write("<li><img src=\"/images/navi3_2_on.gif\" width=\"158\" height=\"40\" alt=\"東京の立地環境\" /></li>");
    } else {
      document.write("<li><a href=\"/advantage/index.html\"><img src=\"/images/navi3_2.gif\" width=\"158\" height=\"40\" alt=\"東京の立地環境\" /></a></li>");
    }
    if (mno == 3) {
      document.write("<li><img src=\"/images/navi3_3_on.gif\" width=\"158\" height=\"40\" alt=\"地域の特色\" /></li>");
    } else {
      document.write("<li><a href=\"/region/index.html\"><img src=\"/images/navi3_3.gif\" width=\"158\" height=\"40\" alt=\"地域の特色\" /></a></li>");
    }
    if (mno == 4) {
      document.write("<li><img src=\"/images/navi3_4_on.gif\" width=\"158\" height=\"40\" alt=\"立地企業への支援\" /></li>");
    } else {
      document.write("<li><a href=\"/measure/index.html\"><img src=\"/images/navi3_4.gif\" width=\"158\" height=\"40\" alt=\"立地企業への支援\" /></a></li>");
    }
    if (mno == 5) {
      document.write("<li><img src=\"/images/navi3_5_on.gif\" width=\"158\" height=\"40\" alt=\"土地・建物・施設の検索\" /></li>");
    } else {
      document.write("<li><a href=\"/search/index.html\"><img src=\"/images/navi3_5.gif\" width=\"158\" height=\"40\" alt=\"土地・建物・施設の検索\" /></a></li>");
    }
    if (mno == 6) {
      document.write("<li><img src=\"/images/navi3_6_on.gif\" width=\"160\" height=\"40\" alt=\"特集企画\" /></li>");
    } else {
      document.write("<li><a href=\"/special/index.html\"><img src=\"/images/navi3_6.gif\" width=\"160\" height=\"40\" alt=\"特集企画\" /></a></li>");
    }
  document.write("</ul>");
}


function displayFooter()
{
  document.write("<div id=\"footer\" class=\"clearfix\"><!--footer-->");
    document.write("<ul>");
      document.write("<li><a href=\"/ui72b2000000232c.html\">このサイトの利用に関して</a></li>");
      document.write("<li><a href=\"/ui72b2000000231m.html\">リンク</a></li>");
      document.write("<li><a href=\"/ui72b20000002r9j.html\">サイトマップ</a></li>");
      document.write("<li><a href=\"/inquiry/index.html\">お問い合わせ</a></li>");
    document.write("</ul>");
    document.write("<address>Copyright&copy;2011 TOKYO METROPOLITAN GOVERNMENT All rights Reserved.</address>");
  document.write("</div><!--footer end-->");
}
