function popWin(num){
        window.open(""+num+".html","popup","width=420,height=600,scrollbars=yes,status=no,resizable=no,toolbar=no,location=no,menubar=no");
}
function popWin2(num){
        window.open(""+num+".html","popup","width=630,height=430,scrollbars=yes,status=no,resizable=no,toolbar=no,location=no,menubar=no");
}

function popWin3(){
        window.open("http://www.hamagakuen.co.jp/inquiry/index.html","popup","width=1024,height=750,scrollbars=yes,status=no,resizable=yes,toolbar=no,location=no,menubar=no");
}
function popWin4(){
        window.open("https://www.hamagakuen.jp/cgi-bin/form/app/recruit.cgi","popup","width=670,height=670,scrollbars=yes,status=no,resizable=yes,toolbar=no,location=no,menubar=no");
}
function popWin5(){
        window.open("https://www.hamagakuen.jp/EVENT/PublicRegister/PrivacyCheck.aspx?n=2011&c=S2-K464&j=1","popup","width=670,height=770,scrollbars=yes,status=no,resizable=yes,toolbar=no,location=no,menubar=no");
}
function popWin6(num){
        window.open(""+num+".html","popup","width=550,height=600,scrollbars=yes,status=no,resizable=no,toolbar=no,location=no,menubar=no");
}
function popWin7(){
        window.open("http://www.hamagakuen.co.jp/pages/hama/rss/rss.html","popup","width=600,height=560,scrollbars=yes,status=no,resizable=yes,toolbar=no,location=no,menubar=no");
}


//Added by Hamagakuen ---------------------------2007-10-31-

function popWin8(fname){
        window.open("http://www.hamax.tv/video/"+fname+"","popup","width=340,height=329,titlebar=no,scrollbars=no,status=no,resizable=no,toolbar=no,location=no,menubar=no");
}
function popWin9(fname){
        window.open("http://www.hamax.tv/video/"+fname+"","popup","width=340,height=329,titlebar=no,scrollbars=no,status=no,resizable=no,toolbar=no,location=no,menubar=no");
}
function popWin10(fname){
        window.open("http://www.hamax.tv/video/"+fname+"","popup","width=340,height=329,titlebar=no,scrollbars=no,status=no,resizable=no,toolbar=no,location=no,menubar=no");
}


if (document.images) {
    var boardNum = 0;
    var boardSpeed = 2000;

    // Create an array of images for the billboard 
    var billboard = new Array();
    billboard[0] = new Image();
    billboard[0].src = "pages/hama/img/top/b_senri.gif";
    billboard[1] = new Image();
    billboard[1].src = "pages/hama/img/top/b_chikusa.gif";
    billboard[2] = new Image();
    billboard[2].src = "pages/hama/img/top/b_itami.gif";

    // Create an array of URLs that correspond to the images
    var url = new Array();
    url[0] = "pages/hama/croom/senrichuo.html";
    url[1] = "pages/hama/croom/chikusa.html";
    url[2] = "pages/hama/croom/itami.html";
}

// Function to rotate the images on the billboard
function HamarotateBoard() {
    if (boardNum < (billboard.length - 1)) {
         boardNum++;
    }
    else {
        boardNum = 0;
    }
    document.billboard.src = billboard[boardNum].src;
    setTimeout('HamarotateBoard()', boardSpeed);
}

// Function to load the appropriate URL when the user clicks on an image
function HamajumpBillboard() {
    window.location = url[boardNum];
}
//Added by Hamagakuen ------------------------------------

