function selectMachine(){
	var num = document.form0.machine.selectedIndex;
	var code = document.form0.machine[num].value;
	
	location.href = "/perl/slot/search.pl?id="+code;
}

function printHeaderMap(path) {
  var str = "";

  str += "<map name='siteID'>";
  str += "  <area shape='rect' coords='12,9,93,35'   href='" + path + "index.html' alt='山佐株式会社'>";
  str += "</map>";
  str += "<map name='header'>";
  str += "  <area shape='rect' coords=' 92,0,139,12' onMouseOver=\"changeHeaderImage('" + path + "old_img/header/04_ov01.gif')\" onMouseOut=\"changeHeaderImage('" + path + "old_img/header/04.gif')\" href='/perl/slot/search.pl' alt='パチスロ'>";
  str += "  <area shape='rect' coords='140,0,209,12' onMouseOver=\"changeHeaderImage('" + path + "old_img/header/04_ov02.gif')\" onMouseOut=\"changeHeaderImage('" + path + "old_img/header/04.gif')\" href='" + path + "homegame/index.html' alt='家庭用ゲーム'>";
  str += "  <area shape='rect' coords='210,0,268,12' onMouseOver=\"changeHeaderImage('" + path + "old_img/header/04_ov03.gif')\" onMouseOut=\"changeHeaderImage('" + path + "old_img/header/04.gif')\" href='/perl/slotworld/index.pl' alt='携帯サイト'>";
  str += "  <area shape='rect' coords='269,0,318,12' onMouseOver=\"changeHeaderImage('" + path + "old_img/header/04_ov04.gif')\" onMouseOut=\"changeHeaderImage('" + path + "old_img/header/04.gif')\" href='" + path + "company/index.html' alt='会社情報'>";
  str += "  <area shape='rect' coords='319,0,407,12' onMouseOver=\"changeHeaderImage('" + path + "old_img/header/04_ov05.gif')\" onMouseOut=\"changeHeaderImage('" + path + "old_img/header/04.gif')\" href='" + path + "licensee/index.html' alt='ライセンシー募集'>";
  str += "  <area shape='rect' coords='408,0,457,12' onMouseOver=\"changeHeaderImage('" + path + "old_img/header/04_ov06.gif')\" onMouseOut=\"changeHeaderImage('" + path + "old_img/header/04.gif')\" href='" + path + "company/recruit.html' alt='採用情報'>";
  str += "  <area shape='rect' coords='458,0,510,12' onMouseOver=\"changeHeaderImage('" + path + "old_img/header/04_ov07.gif')\" onMouseOut=\"changeHeaderImage('" + path + "old_img/header/04.gif')\" href='" + path + "lounge/index.html' alt='ラウンジ'>";
  str += "</map>";

  document.write(str);
}

function printFooterMap(path) {
  var str = "";

  str += "<map name='footer'>";
  str += "  <area shape='rect' coords=' 50, 7,106,16' onMouseOver=\"changeFooterImage('" + path + "old_img/footer/02_ov01.gif')\" onMouseOut=\"changeFooterImage('" + path + "old_img/footer/02.gif')\" href='javascript:;'                    alt='サイトマップ' onClick=\"sitemapPopupWindow('" + path + "')\">";
  str += "  <area shape='rect' coords='107, 7,154,16' onMouseOver=\"changeFooterImage('" + path + "old_img/footer/02_ov07.gif')\" onMouseOut=\"changeFooterImage('" + path + "old_img/footer/02.gif')\" href='javascript:;'                    alt='RSS概要'      onClick=\"rssPopupWindow('" + path + "')\">";
  str += "  <area shape='rect' coords='155, 7,222,16' onMouseOver=\"changeFooterImage('" + path + "old_img/footer/02_ov02.gif')\" onMouseOut=\"changeFooterImage('" + path + "old_img/footer/02.gif')\" href='" + path + "contact/index.html'  alt='お問い合わせ'>";
  str += "  <area shape='rect' coords='223, 7,272,16' onMouseOver=\"changeFooterImage('" + path + "old_img/footer/02_ov03.gif')\" onMouseOut=\"changeFooterImage('" + path + "old_img/footer/02.gif')\" href='" + path + "about/about_01.html' alt='注意事項'>";
  str += "  <area shape='rect' coords='273, 7,322,16' onMouseOver=\"changeFooterImage('" + path + "old_img/footer/02_ov04.gif')\" onMouseOut=\"changeFooterImage('" + path + "old_img/footer/02.gif')\" href='" + path + "about/about_02.html' alt='免責事項'>";
  str += "  <area shape='rect' coords='  0,20, 99,29' onMouseOver=\"changeFooterImage('" + path + "old_img/footer/02_ov05.gif')\" onMouseOut=\"changeFooterImage('" + path + "old_img/footer/02.gif')\" href='" + path + "about/about_03.html' alt='プライバシーポリシー'>";
  str += "  <area shape='rect' coords='100,20,322,29' onMouseOver=\"changeFooterImage('" + path + "old_img/footer/02_ov06.gif')\" onMouseOut=\"changeFooterImage('" + path + "old_img/footer/02.gif')\" href='" + path + "about/about_04.html' alt='「個人情報の保護に関する法律」に基づく公表事項'>";
  str += "</map>";

  document.write(str);

  var str2 = "";
  str2 += "<script src='http://www.google-analytics.com/urchin.js' type='text/javascript'></script>";
  str2 += "<script type='text/javascript'>";
  str2 += "_uacct = 'UA-4418575-1';";
  str2 += "urchinTracker();";
  str2 += "</script>";
  document.write(str2);
}

function sitemapPopupWindow(path) {
  var theURL   = path + "sitemap/index.html";
  var winName  = "sitemappopup";
  var features = "scrollbars=yes,width=530,height=500";
  subwin = window.open(theURL,winName,features);
  subwin.focus();
}

function rssPopupWindow(path) {
  var theURL   = path + "about/about_06.html";
  var winName  = "rsspopup";
  var features = "scrollbars=no,width=400,height=480";
  subwin = window.open(theURL,winName,features);
  subwin.focus();
}

function getRoot(curpath){
//	tmp = document.location.href.split("/");
	rootPath="/";
//	for(loop =0;loop < 3;loop++){
//	rootPath += tmp[loop]+curpath;
//	}
	return rootPath;
}

function printHeader() {
  printHeader2(getRoot("/"));
}

function printFooter() {
  printFooter2(getRoot("/"));
}

function printHeader2nd() {
  printHeader2(getRoot("/"));
}

function printFooter2nd() {
  printFooter2(getRoot("/"));
}
function printPopupHeader() {
  printPopupHeader2(getRoot("/"));
}

function printPopupFooter() {
  printPopupFooter2(getRoot("/"));
}

function printPopupFooter2nd() {
  printPopupFooter2(getRoot("/"));
}

function printHeader2(path) {
  var str = "";
  var i;

  str += "<table width='720' border='0' cellspacing='0' cellpadding='0'>";
  str += "  <tr>";
  str += "    <td rowspan='3'><img src='" + path + "old_img/header/01.gif' width='210' height='48' border='0' usemap='#siteID'></td>";
  str += "    <td><img src='" + path + "old_img/header/02.gif' width='510' height='7'></td>";
  str += "  </tr>";
  str += "  <tr>";
  str += "    <td background='" + path + "old_img/header/03.gif'>";
  str += "      <table border='0' align='right' cellpadding='0' cellspacing='0'>";
  str += "        <form name='form0' method='post' action='/perl/slot/search.pl'>";
  str += "        <td><img src='" + path + "old_img/header/11.gif' alt='機種名検索' width='60' height='28'></td>";
  str += "          <td>";
  str += "            <select name='machine' onchange='selectMachine()'>";
  str += "              <option value='000' selected>機種名を選択してください</option>";
  for (i = 0; i < slot.length; i++) {
    str += "            <option value='" + slot[i].slotId + "'>" + slot[i].name + "</option>";
  }
  str += "            </select>";
  str += "          </td>";
  str += "          <td><img src='" + path + "old_img/header/03.gif' width='10' height='28'></td>";
  str += "        </tr>";
  str += "        </form>";
  str += "      </table>";
  str += "    </td>";
//  str += "    <td><img src='" + path + "old_img/header/03.gif' width='510' height='28'></td>";
  str += "  </tr>";
  str += "  <tr>";
  str += "    <td><img src='" + path + "old_img/header/04.gif' width='510' height='13' border='0' usemap='#header' name='headerimg'></td>";
  str += "  </tr>";
  str += "</table>";

  document.write(str);

  printHeaderMap(path);
}

function printFooter2(path) {
  var str = "";

  str += "<table width='720' border='0' cellspacing='0' cellpadding='0'>";
  str += "  <tr>";
  str += "    <td><img src='" + path + "old_img/footer/01.gif' width='392' height='35' border='0'></td>";
  str += "    <td><img src='" + path + "old_img/footer/02.gif' width='328' height='35' border='0' usemap='#footer' name='footerimg'></td>";
  str += "  </tr>";
  str += "</table>";

  document.write(str);

  printFooterMap(path);
}

function printPopupHeader2(path) {
  var str = "";

/*
  str += "<table width='100%' border='0' cellpadding='0' cellspacing='0' background='" + path + "old_img/header/popup_bg.gif'>";
  str += "  <tr>";
  str += "    <td><img src='" + path + "old_img/header/popup_01.gif' alt='山佐株式会社' width='70' height='25'></td>";
  str += "  </tr>";
  str += "</table>";
*/
  str += "<div id=\"pop_layout\">"
  str += "<div id =\"pop_contents\">"
  str += "<a name=\"top\" id=\"top\"></a>"
  str += "<!--ヘッダーSTARTー-->"
  str += "<div id=\"pop_hd\"><img name=\"ympp_hd\" src=\"/contents/popup/img/ym-pp_hd.gif\" width=\"508\" height=\"46\" border=\"0\" id=\"ympp_hd\" alt=\"\" /></div>"
  str += "<!--ヘッダーENDー-->"

  document.write(str);
}

function printPopupFooter2(path) {
  var str = "";

/*
  str += "<table width='100%' border='0' cellspacing='0' cellpadding='0' background='" + path + "old_img/footer/popup_bg.gif'>";
  str += "  <tr>";
  str += "    <td><img src='" + path + "old_img/footer/popup_01.gif' width='281' height='35'></td>";
  str += "    <td align='right'><img src='" + path + "old_img/footer/popup_02.gif' width='81' height='35' border='0' usemap='#popupFooter'></td>";
  str += "  </tr>";
  str += "</table>";
  str += "<map name='popupFooter'>";
  str += "  <area shape='rect' coords='0,9,73,28' href='javascript:;' alt='閉じる' onClick='window.close()'>";
  str += "</map>";
*/

str += "<!--フッターSTART-->";
str += "<div id=\"pop_ft\"><img src=\"/contents/popup/img/ym-pp_ft.gif\" alt=\"\" name=\"ympp_ft\" width=\"508\" height=\"45\" border=\"0\" usemap=\"#ympp_ftMap\" id=\"ympp_ft\" />";
str += "<map name=\"ympp_ftMap\" id=\"ympp_ftMap\"><area shape=\"rect\" coords=\"430,13,498,45\" href=\"javascript:void(0);\" alt=\"CLOSE\" onclick=\"window.close(); return(false);\" onmouseover=\"MM_swapImage('ympp_ft','','/contents/popup/img/ym-pp_ft_r.gif',1)\" onmouseout=\"MM_swapImgRestore()\" />";
str += "</map></div>";
str += "<!--フッターEND-->";
str += "</div>";
str += "</div>";
str += "</div>";

  document.write(str);
}


function popupWindowResize() {
  popupWindowResize2(630);
}

function popupWindowResize2(width) {
  sw = screen.availWidth;
  sh = screen.availHeight;

  if (sw > width) {
    w = width;
    x = (sw - w) / 2;
  } else {
    w = sw;
    x = 0;
  }

  if (sh > 500) {
    h = sh * 0.7;
    y = (sh - h) / 2;
  } else {
    h = sh;
    y = 0;
  }

  // window.moveTo(x, y);
  window.resizeTo(w, h);
}

function changeHeaderImage(filename) {
  document.headerimg.src = filename;
}

function changeFooterImage(filename) {
  document.footerimg.src = filename;
}

function openerChange(theURL) { 
//

  if(theURL.lastIndexOf("pdf") != -1){
  	MainWin = window.open(theURL,"MainWindow");
  	MainWin.focus();
  }else if(!window.opener || window.opener.closed) {
 	notPopupProc(theURL);	
  }else{
    window.opener.location.href = theURL;
    window.opener.focus();
  }
}

function notPopupProc(theURL){

    this_location = window.location.href;
    more_whats = this_location.indexOf("more_whats.html");
    more_press = this_location.indexOf("more_press.html");
    if(more_whats == -1 && more_press == -1){
    	window.location.href = theURL;
    	window.focus();
    }else{
    	MainWin = window.open("","MainWindow");
    	MainWin.location.href = theURL;
    }
}


function lslot(slotId, name) {
  this.slotId = slotId;
  this.name   = name;
}

var slot = new Array();
var i = 0;
slot[i++] = new lslot(1507, "バウンティキラー");
slot[i++] = new lslot(1458, "パチスロ「バイオハザード」");
slot[i++] = new lslot(1452, "ニューパルサーエボリューション");
slot[i++] = new lslot(1437, "パチスロ「キン肉マン」");
slot[i++] = new lslot(1414, "パチスロ「PLAYBOY」Limited Edition");
slot[i++] = new lslot(1394, "パチスロ「機動戦士ガンダムⅡ～哀・戦士編～」");
slot[i++] = new lslot(1353, "パチスロ戦国無双");
slot[i++] = new lslot(1334, "ニューパルサーＶ");
slot[i++] = new lslot(1292, "ピカゴロウＶ");
slot[i++] = new lslot(1259, "PLAYBOY");
slot[i++] = new lslot(1226, "ネオフルーツチャンス");
slot[i++] = new lslot(1225, "ダブルバー・ビッグウェーブ");
slot[i++] = new lslot(1208, "鉄拳X");
slot[i++] = new lslot(1178, "ジャイアントパルサー");
slot[i++] = new lslot(1136, "天下布武Ｒ");
slot[i++] = new lslot(1096, "CRすーぱー福の神");
slot[i++] = new lslot(1095, "狼烈伝");
slot[i++] = new lslot(968, "燃えよ！功夫淑女");
slot[i++] = new lslot(967, "ニューパルサーRZ");
slot[i++] = new lslot(966, "プラネット999");
slot[i++] = new lslot(965, "祭の達人～ウィンちゃんの夏祭り～");
slot[i++] = new lslot(964, "ネオファラオゼッツ");
slot[i++] = new lslot(963, "トゥエンティーセブン");
slot[i++] = new lslot(962, "キングオブキングパルサー");
slot[i++] = new lslot(961, "鉄拳");
slot[i++] = new lslot(960, "ニューパルサーX（テン）");
slot[i++] = new lslot(923, "天下布武");
slot[i++] = new lslot(959, "ピカゴロウ2");
slot[i++] = new lslot(958, "キングパルサーエース");
slot[i++] = new lslot(983, "ワイルドウルフ");
slot[i++] = new lslot(957, "メガマックス");
slot[i++] = new lslot(956, "ニューパルサーRX");
slot[i++] = new lslot(982, "ネオマジックパルサー");
slot[i++] = new lslot(980, "キングパルサー-30");
slot[i++] = new lslot(955, "メフィスト");
slot[i++] = new lslot(954, "海一番");
slot[i++] = new lslot(979, "関侯（セキコウ）");
slot[i++] = new lslot(981, "ホットエリア");
slot[i++] = new lslot(953, "MVP-30");
slot[i++] = new lslot(952, "ペンギンパラダイス");
slot[i++] = new lslot(978, "クレイジーシャーマン");
slot[i++] = new lslot(938, "ザクザク千両箱");
slot[i++] = new lslot(951, "デストロイヤー");
slot[i++] = new lslot(937, "パニックザウルス");
slot[i++] = new lslot(977, "ネオプラネット");
slot[i++] = new lslot(950, "タイムパーク");
slot[i++] = new lslot(976, "スーパーリノX");
slot[i++] = new lslot(949, "カンフーレツデン");
slot[i++] = new lslot(936, "ウルマ-30");
slot[i++] = new lslot(935, "キングパルサー");
slot[i++] = new lslot(975, "スーパーリノ");
slot[i++] = new lslot(934, "サイバードラゴン");
slot[i++] = new lslot(933, "ニューパルサーT");
slot[i++] = new lslot(974, "トリガーゾーン");
slot[i++] = new lslot(932, "スーパーピカゴロウ");
slot[i++] = new lslot(948, "銀しゃり");
slot[i++] = new lslot(931, "ナイツ");
slot[i++] = new lslot(947, "キュロゴス");
slot[i++] = new lslot(973, "ニライカナイ-30");
slot[i++] = new lslot(930, "ファウスト");
slot[i++] = new lslot(929, "梅花月");
slot[i++] = new lslot(928, "M771");
slot[i++] = new lslot(946, "タイムクロス");
slot[i++] = new lslot(927, "ハイパーラッシュ");
slot[i++] = new lslot(926, "ニューパルサーR");
slot[i++] = new lslot(925, "アラベスク");
slot[i++] = new lslot(945, "カンフーレディー");
slot[i++] = new lslot(924, "コングダム");
slot[i++] = new lslot(922, "おいちょカバ");
slot[i++] = new lslot(944, "マジカルポップス");
slot[i++] = new lslot(921, "ホースシュー-30");
slot[i++] = new lslot(920, "レキオ-30");
slot[i++] = new lslot(943, "河童の湯7");
slot[i++] = new lslot(919, "シーマスター");
slot[i++] = new lslot(918, "ビーバー");
slot[i++] = new lslot(917, "イプシロン");
slot[i++] = new lslot(916, "ハイブリッド");
slot[i++] = new lslot(915, "ホースシューR");
slot[i++] = new lslot(942, "ピンクパンサー3");
slot[i++] = new lslot(914, "花月");
slot[i++] = new lslot(913, "ツーペアー");
slot[i++] = new lslot(941, "ティーダ30");
slot[i++] = new lslot(912, "ヒート");
slot[i++] = new lslot(911, "ドクターA7");
slot[i++] = new lslot(910, "アストロライナー7");
slot[i++] = new lslot(972, "マイマイ");
slot[i++] = new lslot(909, "チェリッシュ");
slot[i++] = new lslot(908, "ビッグウエーブ");
slot[i++] = new lslot(907, "ピカ吾郎");
slot[i++] = new lslot(971, "スピード");
slot[i++] = new lslot(906, "でるでる小僧");
slot[i++] = new lslot(905, "ターボ1000");
slot[i++] = new lslot(904, "そんなカバな");
slot[i++] = new lslot(970, "タムタムR");
slot[i++] = new lslot(969, "タムタムA");
slot[i++] = new lslot(903, "ケロケロパルサー");
slot[i++] = new lslot(902, "タンタンタヌキ");
slot[i++] = new lslot(901, "ニュービッグパルサー");
slot[i++] = new lslot(900, "ワイワイパルサー");
slot[i++] = new lslot(940, "ピンクパンサー");
slot[i++] = new lslot(899, "セブンリーグ");
slot[i++] = new lslot(898, "ダイバーズ");
slot[i++] = new lslot(897, "ニューパルサー");
slot[i++] = new lslot(896, "ホールインワン");
slot[i++] = new lslot(895, "スーパープラネット");
slot[i++] = new lslot(939, "ビッグパルサー");
slot[i++] = new lslot(894, "アストロライナー");
slot[i++] = new lslot(893, "フルーツチャンス");
slot[i++] = new lslot(892, "プラネット");
slot[i++] = new lslot(890, "パルサーXX");
slot[i++] = new lslot(889, "パルサー");