/***************************************/
/* Jo越谷 WebSite Global Function */
/***************************************/

//
//ロールオーバー
//
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 == 'imgover') {
            var src = aImages[i].getAttribute('src');
            var ftype = src.substring(src.lastIndexOf('.'), src.length);
            var hsrc = src.replace(ftype, '_a'+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('_a'+ftype, ftype);
                this.setAttribute('src', sTempSrc);
            }
        }
    }
}

try {
    window.addEventListener("load", initRollovers, false);
} catch(e) {
    window.attachEvent("onload", initRollovers);
}

//
//ポップアップコントロール
//
function openwin(url) {
	new_win = window.open(url,"new_win","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1");
	new_win.focus();
}

function openpop(url) {
	pop_win = window.open(url,"pop_win","width=670,height=550,toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=0");
	pop_win.focus();
}

function openweather(url) {
	pop_win = window.open(url,"pop_win","width=780,height=650,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
	pop_win.focus();
}

//
//コーピーライト生成
//
function CreateCopyright()
{
document.write('Copyright  &copy; 2009 ZUCC FUTSAL BASE OOI All Rights Reserved.');
}


//
//メイン左バナー生成
//
function CreateMainBannerLayer1()
{
document.write('<li><a href="http://www.bellmare.or.jp/futsal/" target="_blank"><img src="img/common/bnr_bellmare.gif" alt="湘南ベルマーレフットサルクラブ" width="120" height="50" /></a></li>');
document.write('<li><a href="http://www.pstc-londrina.com/" target="_blank"><img src="img/common/bnr_pstc.gif" alt="P.S.T.C. LONDRIN" width="94" height="98" /></a></li>');
document.write('<li><a href="http://www.k-fullmark.com/" target="_blank"><img src="img/common/bnr_fullmark.gif" alt="協進フルマーク工業株式会社" width="120" height="30" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/machida/" target="_blank"><img src="img/common/bnr_zucc_machida.gif" alt="フルマークスポーツパーク ZUCC FUTSALBASE町田" width="120" height="50" /></a></li>');
document.write('<li><a href="http://jofutsalbase.com/" target="_blank"><img src="img/common/bnr_jo_koshigaya.gif" alt="JO FUTSAL BASE 越谷" width="120" height="50" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/honatsugi/" target="_blank"><img src="img/common/bnr_zucc_honatsugi.gif" alt="ZUCC FUTSALBASE本厚木" width="120" height="50" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/" target="_blank"><img src="img/common/bnr_zucc.gif" alt="ZUCC COMPANY SITE" width="120" height="50" /></a></li>');
}

function CreateMainBannerLayer2()
{
document.write('<li><a href="http://www.bellmare.or.jp/futsal/" target="_blank"><img src="../img/common/bnr_bellmare.gif" alt="湘南ベルマーレフットサルクラブ" width="120" height="50" /></a></li>');
document.write('<li><a href="http://www.pstc-londrina.com/" target="_blank"><img src="../img/common/bnr_pstc.gif" alt="P.S.T.C. LONDRIN" width="94" height="98" /></a></li>');
document.write('<li><a href="http://www.k-fullmark.com/" target="_blank"><img src="../img/common/bnr_fullmark.gif" alt="協進フルマーク工業株式会社" width="120" height="30" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/machida/" target="_blank"><img src="../img/common/bnr_zucc_machida.gif" alt="フルマークスポーツパーク ZUCC FUTSALBASE町田" width="120" height="50" /></a></li>');
document.write('<li><a href="http://jofutsalbase.com/" target="_blank"><img src="../img/common/bnr_jo_koshigaya.gif" alt="JO FUTSAL BASE 越谷" width="120" height="50" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/honatsugi/" target="_blank"><img src="../img/common/bnr_zucc_honatsugi.gif" alt="ZUCC FUTSAL BASE 本厚木" width="120" height="50" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/" target="_blank"><img src="../img/common/bnr_zucc.gif" alt="ZUCC COMPANY SITE" width="120" height="50" /></a></li>');
}

function CreateMainBannerLayer3()
{
document.write('<li><a href="http://www.bellmare.or.jp/futsal/" target="_blank"><img src="../../img/common/bnr_bellmare.gif" alt="湘南ベルマーレフットサルクラブ" width="120" height="50" /></a></li>');
document.write('<li><a href="http://www.pstc-londrina.com/" target="_blank"><img src="../../img/common/bnr_pstc.gif" alt="P.S.T.C. LONDRIN" width="94" height="98" /></a></li>');
document.write('<li><a href="http://www.k-fullmark.com/" target="_blank"><img src="../../img/common/bnr_fullmark.gif" alt="協進フルマーク工業株式会社" width="120" height="30" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/machida/" target="_blank"><img src="../../img/common/bnr_zucc_machida.gif" alt="フルマークスポーツパーク ZUCC FUTSALBASE町田" width="120" height="50" /></a></li>');
document.write('<li><a href="http://jofutsalbase.com/" target="_blank"><img src="../../img/common/bnr_jo_koshigaya.gif" alt="JO FUTSAL BASE 越谷" width="120" height="50" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/honatsugi/" target="_blank"><img src="../../img/common/bnr_zucc_honatsugi.gif" alt="ZUCC FUTSAL BASE 本厚木" width="120" height="50" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/" target="_blank"><img src="../../img/common/bnr_zucc.gif" alt="ZUCC COMPANY SITE" width="120" height="50" /></a></li>');
}

function CreateMainBannerLayer4()
{
document.write('<li><a href="http://www.bellmare.or.jp/futsal/" target="_blank"><img src="../../../img/common/bnr_bellmare.gif" alt="湘南ベルマーレフットサルクラブ" width="120" height="50" /></a></li>');
document.write('<li><a href="http://www.pstc-londrina.com/" target="_blank"><img src="../../../img/common/bnr_pstc.gif" alt="P.S.T.C. LONDRIN" width="94" height="98" /></a></li>');
document.write('<li><a href="http://www.k-fullmark.com/" target="_blank"><img src="../../../img/common/bnr_fullmark.gif" alt="協進フルマーク工業株式会社" width="120" height="30" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/machida/" target="_blank"><img src="../../../img/common/bnr_zucc_machida.gif" alt="フルマークスポーツパーク ZUCC FUTSALBASE町田" width="120" height="50" /></a></li>');
document.write('<li><a href="http://jofutsalbase.com/" target="_blank"><img src="../../../img/common/bnr_jo_koshigaya.gif" alt="JO FUTSAL BASE 越谷" width="120" height="50" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/honatsugi/" target="_blank"><img src="../../../img/common/bnr_zucc_honatsugi.gif" alt="ZUCC FUTSAL BASE 本厚木" width="120" height="50" /></a></li>');
document.write('<li><a href="http://zucc.co.jp/" target="_blank"><img src="../../../img/common/bnr_zucc.gif" alt="ZUCC COMPANY SITE" width="120" height="50" /></a></li>');
}


//
//右バナー生成
//
function CreateRightBannerLayer1()
{
document.write('<a href="pdf/zuccday.pdf" target="_blank"><img src="img/common/bnr_zuccday.gif" alt="ZUCCの日" width="121" height="70" /></a>');
document.write('<a href="campaign/index.html"><img src="img/common/bnr_campaign.gif" alt="キャンペーン" width="121" height="70" /></a>');
document.write('<a href="school/index.html"><img src="img/common/bnr_school.gif" alt="" width="121" height="70" /></a>');
document.write('<a href="kosal/index.html#kosal_kerippa"><img src="img/common/bnr_kerippa.gif" alt="" width="121" height="70" /></a>');
document.write('<a href="http://futsalbase-ooi.cocolog-nifty.com/blog/" target="_blank"><img src="img/common/bnr_blog.gif" alt="毎日更新スタッフブログ" width="121" height="70" /></a>');
}

function CreateRightBannerLayer2()
{
document.write('<a href="../campaign/index.html"><img src="../img/common/bnr_campaign.gif" alt="キャンペーン" width="121" height="70" /></a>');
document.write('<a href="../school/index.html"><img src="../img/common/bnr_school.gif" alt="ジュニアスクール" width="121" height="70" /></a>');
document.write('<a href="../kosal/index.html#kosal_kerippa"><img src="../img/common/bnr_kerippa.gif" alt="ケリッパ" width="121" height="70" /></a>');
document.write('<a href="http://futsalbase-ooi.cocolog-nifty.com/blog/" target="_blank"><img src="../img/common/bnr_blog.gif" alt="毎日更新スタッフブログ" width="121" height="70" /></a>');
document.write('<img src="../img/common/bnr_mobile.gif" alt="携帯でご予約：QRコード" width="121" height="158" />');
}

function CreateRightBannerLayer3()
{
document.write('<a href="../../campaign/index.html"><img src="../../img/common/bnr_campaign.gif" alt="キャンペーン" width="121" height="70" /></a>');
document.write('<a href="../../school/index.html"><img src="../../img/common/bnr_school.gif" alt="ジュニアスクール" width="121" height="70" /></a>');
document.write('<a href="../../kosal/index.html#kosal_kerippa"><img src="../../img/common/bnr_kerippa.gif" alt="ケリッパ" width="121" height="70" /></a>');
document.write('<a href="http://futsalbase-ooi.cocolog-nifty.com/blog/" target="_blank"><img src="../../img/common/bnr_blog.gif" alt="毎日更新スタッフブログ" width="121" height="70" /></a>');
document.write('<img src="../../img/common/bnr_mobile.gif" alt="携帯でご予約：QRコード" width="121" height="158" />');
}

function CreateRightBannerLayer4()
{
document.write('<a href="../../../campaign/index.html"><img src="../../../img/common/bnr_campaign.gif" alt="キャンペーン" width="121" height="70" /></a>');
document.write('<a href="../../../school/index.html"><img src="../../../img/common/bnr_school.gif" alt="ジュニアスクール" width="121" height="70" /></a>');
document.write('<a href="../../../kosal/index.html#kosal_kerippa"><img src="../../../img/common/bnr_kerippa.gif" alt="ケリッパ" width="121" height="70" /></a>');
document.write('<a href="http://futsalbase-ooi.cocolog-nifty.com/blog/" target="_blank"><img src="../../../img/common/bnr_blog.gif" alt="毎日更新スタッフブログ" width="121" height="70" /></a>');
document.write('<img src="../../../img/common/bnr_mobile.gif" alt="携帯でご予約：QRコード" width="121" height="158" />');
}
