var fs='';
if(document.layers){
}else{
fs+='<img src="/common/image/fs.gif" width="75" height="18" alt="フォントサイズ">';
fs+='<a href="javascript:SetStyleSheet(1)"><img src="/common/image/chara_s_off.gif" alt="小" name="f1" width="18" height="18"></a> ';
fs+='<a href="javascript:SetStyleSheet(2)"><img src="/common/image/chara_m_off.gif" alt="中" name="f2" width="18" height="18"></a> ';
fs+='<a href="javascript:SetStyleSheet(3)"><img src="/common/image/chara_l_off.gif" alt="大" name="f3" width="18" height="18"></a>';
fs+='<script language="javascript"><!--\n';
fs+='SetStyleSheet();\n';
fs+='//-->\n</script>';
}


//↓↓↓↓ここから↓↓↓↓クッキー値の取り出し↓↓↓↓
// OS Browser Info
var mac = (navigator.userAgent.indexOf('Mac') != -1 || navigator.userAgent.indexOf('mac') != -1);
var win = (navigator.userAgent.indexOf('Win') != -1 || navigator.userAgent.indexOf('win') != -1);
var an = navigator.appName;
var ua = navigator.userAgent;
var netscape = (an=="Netscape");
var opr = (ua.indexOf("Opera")!=-1);
var gecko = (ua.indexOf("Gecko")!=-1);
var n6 = (ua.indexOf("Netscape6")!=-1);
var n7 = (ua.indexOf("Netscape7")!=-1);
var ie = (an=="Microsoft Internet Explorer");
var saf = (ua.indexOf("Safari")!=-1);
// Cookieの値を取得
csstype = GetCookie('CSSTYPE');
//↑↑↑↑ここまで↑↑↑↑クッキー値の取り出し↑↑↑↑

//↓↓↓↓ここからクッキーの取得FANC↓↓↓↓
function GetCookie(NAME){
str = NAME + '=';
val = null;
c = document.cookie + ';';
p = c.indexOf(str);
if (p != -1){
p_st = p + str.length;
p_ed = c.indexOf(';', p_st);
val = unescape(c.substring(p_st, p_ed));
}
return val;
}
//↑↑↑↑ここまでクッキーの取得FANC↑↑↑↑

//↓↓↓↓ここからクッキーのセットFANC↓↓↓↓
function SetCookie(NAME, VALUE, EXP, PATH, DOMAIN){
c = NAME + '=' + escape(VALUE) + ';';
if ( EXP > 0 ){
dt = new Date();
dt.setTime(dt.getTime()+(EXP * 1000));
c = c + ' expires=' + dt.toGMTString() + ';';
}
if ( PATH != '' ){
c = c + ' path=' + PATH + ';';
}
if ( DOMAIN != '' ){
c = c + ' domain=' + DOMAIN + ';';
}
document.cookie = c;
}
//↑↑↑↑ここまでクッキーのセットFANC↑↑↑↑

//↓↓↓↓ここから文字サイズ変更FANC↓↓↓↓
function SetStyleSheet(TYPE){
if(document.layers){
return;
}
var chara=["s","m","l"];
//現在の大・中・小画像をoffにする
if(csstype && document.f1){
eval('document.f'+csstype+'.src="/common/image/chara_'+chara[(csstype-1)]+'_off.gif"');
}
if(TYPE){
	csstype=TYPE;
	SetCookie('CSSTYPE', csstype, -1, '/', '');
	}else if(csstype){
		}else{//デフォルト
			csstype=2;
		}
//今回選択された大・中・小画像の置換え
if(document.f1){
	eval('document.f'+csstype+'.src="/common/image/chara_'+chara[(csstype-1)]+'.gif"');
}


if(an=="Netscape"){
	if(document.getElementById("body")){
		if(csstype==1){
			document.getElementById("body").style.fontSize="85%";//小サイズ設定
		}else if(csstype==2){
			document.getElementById("body").style.fontSize="100%";//中サイズ設定
		}else if(csstype==3){
			document.getElementById("body").style.fontSize="115%";//大サイズ設定
		}
		}else if(document.layers){
	}
}else if(an=="Microsoft Internet Explorer"){
	if(document.getElementById){
		if(csstype==1){
			document.getElementById("body").style.fontSize="85%";//小サイズ設定
		}else if(csstype==2){
			document.getElementById("body").style.fontSize="100%";//中サイズ設定
		}else if(csstype==3){
			document.getElementById("body").style.fontSize="115%";//大サイズ設定
		}
	}
}else{
	if(csstype==1){
		document.getElementById("body").style.fontSize="90%";//小サイズ設定
	}else if(csstype==2){
		document.getElementById("body").style.fontSize="105%";//中サイズ設定
	}else if(csstype==3){
		document.getElementById("body").style.fontSize="120%";//大サイズ設定
	}
	}
}
//↑↑↑↑ここまで文字サイズ変更FANC↑↑↑↑



/*========== ::: 店舗 ::: ==========*/
function tenpo(){
	var desktop = window.open( "/tenpo/index.htm", "pop", "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}

/*========== ::: コンサルティングステーション ::: ==========*/
function consul(){
	var desktop = window.open( "/tenpo/loan_station.htm", "pop", "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}

/*========== ::: 金利 ::: ==========*/
function rate(){
	var desktop = window.open( "/rate.htm", "pop", "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}

/*========== ::: 手数料 ::: ==========*/
function charge(){
	var desktop = window.open( "/charge.htm", "pop", "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}

/*========== ::: 外部 ::: ==========*/
function abic(){
	var desktop = window.open( "http://www.asp.abic.co.jp/contents/C140508/portal/y8oi22dyd8h6.html", "pop", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes" );
	desktop.focus();
}

/*========== ::: download ::: ==========*/
function download(){
	var desktop = window.open( "/info/download.htm", "pop", "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=650,height=400" );
	desktop.focus();
}

/*========== ::: お問い合わせ ::: ==========*/
function inquiry(){
	var desktop = window.open( "https://www.kirayaka.co.jp/cgi-bin/inquiry.cgi", "pop", "toolbar=no,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}

function goback(){
	history.back();
	return false;
}

/*========== ::: クレディセゾン申込画面 ::: ==========*/
function popUp(url) {
sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=700,height=500');
self.name = "mainWin"; }



/*========== ::: 金利　住宅　頭出し ::: ==========*/
function rate_housing(){
	var desktop = window.open( "/rate.htm#08", "pop", "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}
/*========== ::: 金利　マイカー　頭出し ::: ==========*/
function rate_car(){
	var desktop = window.open( "/rate.htm#09", "pop", "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}
/*========== ::: 金利　教育　頭出し ::: ==========*/
function rate_education(){
	var desktop = window.open( "/rate.htm#11", "pop", "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}
/*========== ::: 金利　ブライダル　頭出し ::: ==========*/
function rate_bridal(){
	var desktop = window.open( "/rate.htm#12", "pop", "toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=no,width=650,height=600" );
	desktop.focus();
}