//=============================================
// Callmenu() ※メニュー等共通部分の呼び出し記述です
//=============================================


//ヘッダメニュー
function callHmenu(){
	document.writeln ('<ul id="hMenu">');
	document.writeln ('	<li><a href="../company/index.html">会社概要</a></li>');
	document.writeln ('	<li><a href="../policy/index.html">プライバシーポリシー</a></li>');
	document.writeln ('	<li><a href="../company/affiliation.html">提携企業について</a></li>');
	document.writeln ('	<li><a href="../company/recruit.html">リクルート</a></li>');
	document.writeln ('	<li><a href="../contact/index.html">お問い合せ</a></li>');
	document.writeln ('</ul>');
	document.writeln ('<div id="searchArea">');
	document.writeln ('	<p class="copy"><img alt="ご契約内容をよくご確認のうえ、収支にあった、無理のない返済プランを。" src="../common/imgs/search_text.gif" width="394" height="27" /></p>');
	document.writeln ('<div id="searchInner">');
	document.writeln ('		<p class="sitemapLink"><a href="../sitemap/index.html">サイトマップ</a></p>');
	document.writeln ('	</div>');
	document.writeln ('</div>');
}

//サイドメニュー(バナー以外)
function callSmenu(){
	document.writeln ('<ul id="subMenu1">');
	document.writeln ('	<li><a href="../product/free_agree.html"><img alt="新規お申込み" src="../common/imgs/menu01.gif" width="184" height="47" class="ov" /></a></li>');
	document.writeln ('	<li><a href="../product/card_agree.html"><img alt="新規カード作成" src="../common/imgs/menu02.gif" width="184" height="47" class="ov" /></a></li>');
	document.writeln ('</ul>');
	document.writeln ('<ul id="subMenu2">');
	document.writeln ('	<li><a href="../my_page/"><img alt="メンバーズログイン" src="../common/imgs/menu04.gif" width="184" height="47" class="ov" /></a></li>');
	document.writeln ('</ul>');
	document.writeln ('<ul id="subMenu3">');
	document.writeln ('	<li><a href="../hensai_simu/index.do"><img alt="返済シミュレーション" src="../common/imgs/menu06.gif" width="184" height="47" class="ov" /></a></li>');
	document.writeln ('</ul>');
	document.writeln ('<ul id="subMenu4">');
	document.writeln ('	<li><a href="../mobile/index.html"><img alt="携帯サイトのご案内" src="../common/imgs/menu08.gif" width="184" height="47" class="ov" /></a></li>');
	document.writeln ('</ul>');
}
	
//サイドメニュー(バナー部分)
function callBanner(){
	document.writeln ('<ul id="subBan">');
	document.writeln ('	<li><a href="../faq/index.html"><img alt="PRIVA Q&amp;A" src="../common/imgs/ban_privaqa.gif" width="183" height="51" class="ov" /></a></li>');
	document.writeln ('	<li><a href="../lineup/index.html"><img alt="商品のご案内" src="../common/imgs/ban_product.gif" width="183" height="51" class="ov" /></a></li>');
	document.writeln ('</ul>');
}

//フッタ
function callFooter() {
	document.writeln ('<div id="footBan">');
	document.writeln ('<div id="footVerisign">');
	document.writeln ('<script src="https://seal.verisign.com/getseal?host_name=www.priva.co.jp&size=S&use_flash=YES&use_transparent=YES&lang=ja"></script>');
	document.writeln ('<noscript><img src="../common/imgs/vss.gif" width="118" height="74" alt="verisign" /></noscript>');
	document.writeln ('</div>');
	document.writeln ('');
	document.writeln ('<p id="footTrust"><a href="../policy/index.html"><img alt="" src="../common/imgs/truste.gif" width="116" height="34" /></a></p>');
	document.writeln ('</div>');
	document.writeln ('<p id="footCopyright">株式会社プリーバ / 関東財務局長(3) 第01258号  日本貸金業協会会員 第000189号 / 〒106-0032 東京都港区六本木三丁目1番28号<br />[ お問合せ:フリーダイヤル ] 0120-218-047（平日9:00〜18:00）　（代表）03-3568-1251');
	document.writeln ('<p id="footBottom">(C) Copyright Priva Co., Ltd Allrights reserved.</p>');
}



//=============================================
// SmartRollOver()
//=============================================
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 == 'ov') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+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('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}



//=============================================
// BlWin2()
//=============================================
function BLinks() {
	if (!document.getElementsByTagName) return;

	var anchors = document.getElementsByTagName("a");

	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
		anchor.getAttribute("rel") == "bl")
		anchor.target = "_blank";
	}
}






//=============================================
// init()
//=============================================

function init() {
	BLinks();
	initRollovers();
	//window.alert(corner);
}


window.onload=init;