<!--
//**********************************************************************
// SUGAMO：Header
//
// 2005.10.28 Renewal
//**********************************************************************
// 変数：gHdxxx
// 関数：head_xxx
//**********************************************************************


//--------------------------------------------------
// SET [ Server ]
//--------------------------------------------------

var sgSv = 0;
var gHdRootPath = '/';  //Document Root

if( sgSv == 0 )     { gHdRootPath = "http://" + document.domain + "/"; }
else if( sgSv == 1 ){ gHdRootPath = "http://www.moak1.com/sugamo/"; }

var gHdImgPath = gHdRootPath + 'common/img/';  //Image Path


//---------------------------------------------
// Document Write
//---------------------------------------------

with( document ){
	write('<div><img src="' + gHdImgPath + 'sp.gif" width="1" height="10" alt=""></div>');
	write('<table border="0" width="730" cellpadding="0" cellspacing="0" background="../img/head_bg01.gif">');
	write('<tr>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="15" height="1" alt=""></td>');
	write('<td valign="top"><a href="' + gHdRootPath + 'index.html"><img src="' + gHdImgPath + 'head_logo.gif" width="227" height="43" alt="巣鴨信用金庫"></a></td>');
	write('<td valign="top" style="background:url(\'../img/head_bg01.gif\') right bottom no-repeat;">');
	write('<table border="0" cellpadding="0" cellspacing="0">');
	write('<tr>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="28" height="1" alt=""></td>');
	write('<td><a href="' + gHdRootPath + 'index.html" onMouseOver="head_over(\'head_navi01\');" onMouseOut="head_out(\'head_navi01\');"><img name="head_navi01" src="' + gHdImgPath + 'head_navi01.gif" width="41" height="13" alt="ホーム"></a></td>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="14" height="1" alt=""></td>');
	write('<td><a href="javascript:void(0);" onclick="open_popup3(\'' + gHdRootPath + 'service_desk/index.html\',\'WEB\',\'769\',\'600\');" onMouseOver="head_over(\'head_navi02\');" onMouseOut="head_out(\'head_navi02\');"><img name="head_navi02" src="' + gHdImgPath + 'head_navi02.gif" width="114" height="13" alt="Webサービスデスク"></a></td>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="14" height="1" alt=""></td>');
	write('<td><a href="' + gHdRootPath + 'inquiry/index.html" onMouseOver="head_over(\'head_navi03\');" onMouseOut="head_out(\'head_navi03\');"><img name="head_navi03" src="' + gHdImgPath + 'head_navi03.gif"  width="79" height="13" alt="お問い合わせ"></a></td>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="14" height="1" alt=""></td>');
	write('<td><a href="' + gHdRootPath + 'faq/index.html" onMouseOver="head_over(\'head_navi04\');" onMouseOut="head_out(\'head_navi04\');"><img name="head_navi04" src="' + gHdImgPath + 'head_navi04.gif" width="87" height="13" alt="よくあるご質問"></a></td>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="14" height="1" alt=""></td>');
	write('<td><a href="' + gHdRootPath + 'sitemap/index.html" onMouseOver="head_over(\'head_navi05\');" onMouseOut="head_out(\'head_navi05\');"><img name="head_navi05" src="' + gHdImgPath + 'head_navi05.gif" width="75" height="13" alt="サイトマップ"></a></td>');
	write('</tr>');
	write('</table>');
	write('<div><img src="' + gHdImgPath + 'sp.gif" width="1" height="12" alt=""></div>');
	write('<table border="0" cellpadding="0" cellspacing="0">');
	write('<tr>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="28" height="1" alt=""></td>');
	write('<td>');
	write('<div id="searchArea"><form action="http://search-asp.fresheye.com/" name="search">');
	write('<input type="hidden" value="sjis" name="cs">');
	write('<input type="hidden" value="s" name="ord">');
	write('<input type="hidden" value="12319" name="id">');
	write('<table border="0" cellpadding="0" cellspacing="0"><tr><td><input type="text" name="kw" size="27" class="text" onfocus="if(this.value==\'このホームページから検索\'){this.value=\'\';}" onblur="if(this.value==\'\'){this.value=\'このホームページから検索\';}" value="このホームページから検索"></td>');
	write('<td><input type="submit" value="検索" class="submit"></td></tr></table>');
	write('</form></div>');
	write('<div><img src="' + gHdImgPath + 'sp.gif" width="215" height="1" alt=""></div>');
	write('</td>');
	write('<td><a href="javascript:setFlashCookie();" onMouseOver="head_over(\'head_navi06\');" onMouseOut="head_out(\'head_navi06\');"><img name="head_navi06" src="' + gHdImgPath + 'head_navi06.gif" width="71" height="15" alt="Flash版へ"></a></td>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="14" height="1" alt=""></td>');
	write('<td><img src="' + gHdImgPath + 'head_text.gif" width="76" height="15" alt="文字の大きさ"></td>');
	write('<td><a href="javascript:setStyleSheet(\'S\');head_textActive(\'head_text01\');" onMouseOver="head_over(\'head_text01\');" onMouseOut="head_out(\'head_text01\');"><img name="head_text01" src="' + gHdImgPath + 'head_text01.gif" width="20" height="19" alt="小"></a></td>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="2" height="1" alt=""></td>');
	write('<td><a href="javascript:setStyleSheet(\'M\');head_textActive(\'head_text02\');" onMouseOver="head_over(\'head_text02\');" onMouseOut="head_out(\'head_text02\');"><img name="head_text02" src="' + gHdImgPath + 'head_text02.gif" width="21" height="19" alt="中"></td>');
	write('<td><img src="' + gHdImgPath + 'sp.gif" width="2" height="1" alt=""></td>');
	write('<td><a href="javascript:setStyleSheet(\'L\');head_textActive(\'head_text03\');" onMouseOver="head_over(\'head_text03\');" onMouseOut="head_out(\'head_text03\');"><img name="head_text03" src="' + gHdImgPath + 'head_text03.gif" width="20" height="19" alt="大"></a></td>');
	write('</tr>');
	write('</table>');
	write('<div><img src="' + gHdImgPath + 'sp.gif" width="1" height="6" alt=""></div>');
	write('</td>');
	write('</tr>');
	write('</table>');
}

//---------------------------------------------
// Image Loading
//---------------------------------------------
ImgArys = new Array(
"head_navi01.gif","head_navi01_on.gif",
"head_navi02.gif","head_navi02_on.gif",
"head_navi03.gif","head_navi03_on.gif",
"head_navi04.gif","head_navi04_on.gif",
"head_navi05.gif","head_navi05_on.gif",
"head_navi06.gif","head_navi06_on.gif",

"head_text01.gif","head_text01_on.gif",
"head_text02.gif","head_text02_on.gif",
"head_text03.gif","head_text03_on.gif"
);

ImgLoad = new Array();
for( var i = 0; i < ImgArys.length; i++ ){
	ImgLoad[i] = new Image();   ImgLoad[i].src = gHdImgPath + ImgArys[i];
	//document.write("<img src='" + ImgLoad[i].src + "'><br>");
}

//---------------------------------------------
// Cookie
//---------------------------------------------
var gHdCookieData  = text_getCookie();
var gHdImgName = {
	''  : 'head_text02', //空→default
	'S' : 'head_text01',
	'M' : 'head_text02',
	'L' : 'head_text03'
};

var gHdImgActName = gHdImgName[gHdCookieData];

document.images[gHdImgActName].src = gHdImgPath + gHdImgName[gHdCookieData] + '_on.gif';


//=============================================
// head_textActive()
//=============================================
function head_textActive(wk){
	var mDoc;
	var mExt = '.gif';
	var mEnd = "_on";
	var mImgLeng = 3;
	var mImgName = 'head_text0';

	if(( document.images[wk] ) && ( wk != gHdImgActName )){
		for( var i = 1; i <= mImgLeng; i ++ ){
			document.images[mImgName + i].src = gHdImgPath + mImgName + i + mExt;
		}
		document.images[wk].src = gHdImgPath + wk + mEnd + mExt;
		gHdImgActName = wk;
	}
}

//=============================================
// head_over()
//=============================================
function head_over(wk){
	var mDoc;
	var mExt;
	var mEnd = "_on"; //onMouseOver時のイメージファイル名の末尾
	
	if(( document.images[wk] ) && ( wk != gHdImgActName )){
		mDoc = document.images[wk];
		mExt = mDoc.src.substring(mDoc.src.lastIndexOf(".") , mDoc.src.length);
		
		mDoc.src = gHdImgPath + wk + mEnd + mExt;
	}
}

//=============================================
// head_out()
//=============================================
function head_out(wk){
	var mDoc;
	var mExt;
	
	if(( document.images[wk] ) && ( wk != gHdImgActName )){
		mDoc = document.images[wk];
		mExt = mDoc.src.substring(mDoc.src.lastIndexOf(".") , mDoc.src.length);
		
		mDoc.src = gHdImgPath + wk + mExt;
	}
}
//=============================================


//**********************************************************************
-->