
//トップバナー//
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
photo01 = newImage("../images/cover/d_slot.jpg");
photo02 = newImage("../images/cover/daikokutennohi.jpg");
photo03 = newImage("../images/cover/fuku.jpg");
photo04 = newImage("../images/cover/matsuri.jpg");
photo05 = newImage("../images/cover/pachi.jpg");
photo06 = newImage("../images/cover/tenjinsai.jpg");
preloadFlag = true;
}
}
preloadImages();

//トップバナー//
function new_win_raku_p(){
window.open("campaign/raku_p.html","","width=543,height=550,scrollbars=no,status=yes,resizable=no");
}

function new_win_raku_s(){
window.open("campaign/raku_s.html","","width=543,height=450,scrollbars=no,status=yes,resizable=no");
}


//アクセスマップ//
function new_win_kiyo_access(){
window.open("../map/kiyo_access.html","","width=543,height=650,scrollbars=no,status=yes,resizable=no");
}

function new_win_moto_access(){
window.open("../map/moto_access.html","","width=543,height=650,scrollbars=no,status=yes,resizable=no");
}

function new_win_hass_access(){
window.open("../map/hass_access.html","","width=543,height=650,scrollbars=no,status=yes,resizable=no");
}

function new_win_honc_access(){
window.open("../map/honc_access.html","","width=543,height=650,scrollbars=no,status=yes,resizable=no");
}

function new_win_kawa_access(){
window.open("../map/kawa_access.html","","width=543,height=650,scrollbars=no,status=yes,resizable=no");
}

function new_win_hokk_access(){
window.open("../map/hokk_access.html","","width=543,height=650,scrollbars=no,status=yes,resizable=no");
}

function new_win_ebet_access(){
window.open("../map/ebet_access.html","","width=543,height=650,scrollbars=no,status=yes,resizable=no");
}

function new_win_jack_access(){
window.open("../map/jack_access.html","","width=543,height=650,scrollbars=no,status=yes,resizable=no");
}


function new_win_kiyo_shop(){
window.open("http://www.daikokuten.co.jp/map/kiyo_hall.html","","width=860,height=650,scrollbars=yes,status=yes,resizable=no");
}

function new_win_moto_shop(){
window.open("http://www.daikokuten.co.jp/map/moto_hall.html","","width=860,height=650,scrollbars=yes,status=yes,resizable=no");
}

function new_win_hass_shop(){
window.open("http://www.daikokuten.co.jp/map/hass_hall.html","","width=860,height=650,scrollbars=yes,status=yes,resizable=no");
}

function new_win_honc_shop(){
window.open("http://www.daikokuten.co.jp/map/honc_hall.html","","width=860,height=650,scrollbars=yes,status=yes,resizable=no");
}

function new_win_kawa_shop(){
window.open("http://www.daikokuten.co.jp/map/kawa_hall.html","","width=890,height=710,scrollbars=yes,status=yes,resizable=no");
}

function new_win_hokk_shop(){
window.open("http://www.daikokuten.co.jp/map/hokk_hall.html","","width=860,height=650,scrollbars=yes,status=yes,resizable=no");
}

function new_win_ebet_shop(){
window.open("http://www.daikokuten.co.jp/map/ebet_hall.html","","width=860,height=650,scrollbars=yes,status=yes,resizable=no");
}

function new_win_jack_shop(){
window.open("../map/jack_hall.html","","width=860,height=650,scrollbars=yes,status=yes,resizable=no");
}




//CMギャラリー//

function new_win_honoo3(){
window.open("../cm/wmv/honoo3.html","","width=390,height=350,scrollbars=no,status=yes,resizable=no");
}

function new_win_h_slot(){
window.open("../cm/wmv/h_slot.html","","width=390,height=350,scrollbars=no,status=yes,resizable=no");
}

function new_win_umimonogatari(){
window.open("../cm/wmv/umimonogatari.html","","width=390,height=350,scrollbars=no,status=yes,resizable=no");
}

function new_win_daikokuten_matsuri(){
window.open("../cm/wmv/daikokuten_matsuri.html","","width=390,height=350,scrollbars=no,status=yes,resizable=no");
}

function new_win_gingira_umi(){
window.open("../cm/wmv/gingira_umi.html","","width=390,height=350,scrollbars=no,status=yes,resizable=no");
}
function new_win_shinsedai(){
window.open("../cm/wmv/shinsedai.html","","width=390,height=350,scrollbars=no,status=yes,resizable=no");
}

function new_win_sptentyo(){
window.open("../cm/wmv/sptentyo.html","","width=390,height=350,scrollbars=no,status=yes,resizable=no");
}
function new_win_weekend(){
window.open("../cm/wmv/weekend.html","","width=390,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_40th(){
window.open("../cm/wmv/40th02.html","","width=390,height=260,scrollbars=no,status=yes,resizable=no");
}

function new_win_pachinkonohi(){
window.open("../cm/wmv/pachinkonohi.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_tenjinsai(){
window.open("../cm/wmv/tenjinsai.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_2006daikokutennohi(){
window.open("../cm/wmv/2006daikokutennohi.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_2006fuku(){
window.open("../cm/wmv/2006fuku.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_nebuta(){
window.open("../cm/wmv/nebuta.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_sea(){
window.open("../cm/wmv/sea.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_slot(){
window.open("../cm/wmv/slot.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_daikokutennohi(){
window.open("../cm/wmv/daikokutennohi.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_fuku(){
window.open("../cm/wmv/fuku.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_umi(){
window.open("../cm/wmv/umi.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_ladies(){
window.open("../cm/wmv/ladies.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_pachinko(){
window.open("../cm/wmv/pachinko.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_jack(){
window.open("../cm/wmv/jack.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_cube(){
window.open("../cm/wmv/cube.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_sanyo(){
window.open("../cm/wmv/sanyo.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_banban(){
window.open("../cm/wmv/banban.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_derudasu(){
window.open("../cm/wmv/derudasu.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_globe(){
window.open("../cm/wmv/globe.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}
function new_win_tenmon(){
window.open("../cm/wmv/tenmon.html","","width=280,height=260,scrollbars=no,status=yes,resizable=no");
}

//スクロール//
function getScroll(){
    var x, y;
    if(document.all !== void 0){ 
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
    }else if(document.layers !== void 0 || (navigator.userAgent.indexOf("Opera") != -1 || window.opera !== void 0)){ 
        x = window.pageXOffset;
        y = window.pageYOffset;
    }else if(navigator.userAgent.indexOf("Gecko") != -1){ 
        x = window.scrollX;
        y = window.scrollY;
    }else{
        x = y = 0;
    }
    return {x: x, y: y};
}
var SCROLL ;
var divCountScroller = 35 ; 
function scroller( x, y, count ){
    if( count === void 0 ){
        count = 0 ;
        SCROLL = getScroll();
    }
    if( count++ < divCountScroller ){
        var c = count/divCountScroller ;
        var nx = SCROLL.x+( x-SCROLL.x )*( c+1/Math.PI*Math.sin( Math.PI*c ) );
        var ny = SCROLL.y+( y-SCROLL.y )*( c+1/Math.PI*Math.sin( Math.PI*c ) );
        window.scrollTo( nx, ny );
        setTimeout( "scroller("+x+","+y+","+count+");", 9 ); 
    }
}

madrs1 = "info";
madrs2 = "daikokuten.co.jp";
madrs = madrs1 + "&#64;" + madrs2;
function mailto()
{
  location.href = "mai" + "lto:" + madrs;
}



//メニューボタン//
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];}
}

//設置店舗ページ//
function shop_pop(){
window.open("raku/index.html","","width=720,height=630,scrollbars=yes,status=yes,resizable=no");
}

//メール//
madrs_info1 = "info";
madrs_info2 = "daikokuten.co.jp";
madrs_info = madrs_info1 + "&#64;" + madrs_info2;
function mailto_info()
{
  location.href = "mai" + "lto:" + madrs_info;
}

