<!--
//**********************************************************************
// CLUB SUMISEI：PageIn
//
// Feb.2008 Renewal
// 2009.03.26  SET [ Server ]  改修
//**********************************************************************
// 変数：gPixxx
// 関数：in_xxx
//**********************************************************************

//--------------------------------------------------
// Flag
//--------------------------------------------------

var sgSv = 0;  // 0: 本番 , 1: テスト


//--------------------------------------------------
// SET [ Server ]
//--------------------------------------------------

var gPiRootPath = '/';  //Document Root

//alert(document.domain);  // DBUG
//本番用
//if( sgSv == 0 ){ gPiRootPath = "http://clubsumisei.com/"; }
if( sgSv == 0 )     { gPiRootPath = "http://" + document.domain + "/"; }
//テスト用
//else if( sgSv == 1 ){ gPiRootPath = "http://www.qodea.jp/clubsumisei/"; }
else if( sgSv == 1 ){ gPiRootPath = "http://" + document.domain + "/clubsumisei/"; }

var gPiImgPath = gPiRootPath + 'common/img/';  //Image Path

document.write('<script type="text/javascript" src="' + gPiRootPath + 'common/js/cookie.js"></script>');

//---------------------------------------------
// Document Write
//---------------------------------------------

//Header----------------------------------------------------------------------

function PageIn_Header(){
  var NamazuPath = 'http://clubsumisei.com/';
  
	with( document ){
	write('<div class="logo_sumitomo"><img src="'+gPiImgPath+'hd_smitomo_logo.gif" width="77" height="17" alt="住友生命" /></div>');
	write('<div class="head_link">');
	write('	<div class="first"><a href="'+gPiRootPath+'clubsumisei/"><img src="'+gPiImgPath+'hd_link_about.gif" width="107" height="20" alt="クラブスミセイとは" /></a></div>');
	write('	<div><a href="'+gPiRootPath+'mobile/"><img src="'+gPiImgPath+'hd_link_mobile.gif" width="69" height="20" alt="携帯サイト" /></a></div>');
	write('	<div><a href="http://www.sumitomolife.co.jp/ds/rule01.html" target="_blank"><img src="'+gPiImgPath+'hd_link_rule.gif" width="108" height="20" alt="クラブスミセイ規定" /></a></div>');
	write('	<div><a href="'+gPiRootPath+'sitemap/"><img src="'+gPiImgPath+'hd_link_map.gif" width="77" height="20" alt="サイトマップ" /></a></div>');
	write('</div>');
	write('<div class="btm_sumitomo"><a href="http://www.sumitomolife.co.jp/" target="_blank"><img src="'+gPiImgPath+'hd_smitomo_btm.gif" width="115" height="25" alt="住友生命のサイトへ" /></a></div>');
	write('<div class="logo_csumisei"><a href="'+gPiRootPath+'"><img src="'+gPiImgPath+'hd_csumisei_logo.gif" width="326" height="59" alt="クラブスミセイ" /></a></div>');
	write('<div class="search">');
  
	write('	<form method="get" action="'+NamazuPath+'cgi-bin/namazu.cgi">');
	write('	<div class="txt"><img src="'+gPiImgPath+'hd_search_txt.gif" width="77" height="13" alt="サイト内検索" /></div>');
	write('	<div class="text_form"><input type="text" name="query" size="15" /></div>');
	write('	<div class="submit">');
  write('	  <input type="image" name="submit2" src="'+gPiImgPath+'hd_search_btm.gif" alt="検索" border="0" />');
  write('	  <input type="hidden" name="whence2" value="0" />');
  write('	  <input type="hidden" name="whence" value="0">');
  write('	  <input type="hidden" name="max" value="20">');
  write('	  <input type="hidden" name="result" value="normal">');
  write('	  <input type="hidden" name="sort" value="score">');
  write('	</div>');
	write('	</form>');

	write('</div>');
	write('<script type="text/javascript" src="'+gPiRootPath+'common/js/text_write.js"></script>');
	}
}

function PageIn_PopHeader(){
	with( document ){
	write('<div class="logo_sumitomo"><img src="'+gPiImgPath+'pop_hd_smitomo.gif" width="76" height="15" alt="住友生命" /></div>');
	write('<div class="logo_csumisei"><a href="'+gPiRootPath+'"><img src="'+gPiImgPath+'pop_hd_csumisei.gif" width="252" height="23" alt="クラブスミセイ" /></a></div>');
	write('<div class="btm_close"><a href="javascript:void(0);" onClick="window.close();"><img src="'+gPiImgPath+'pop_hd_close.gif" width="115" height="25" alt="ページを閉じる" /></a></div>');
	}
}


//GlobalNavi----------------------------------------------------------------------

function PageIn_GlobalNavi(){
	with( document ){
	write('<div class="to_telephone"><a href="'+gPiRootPath+'telephone/"><img src="'+gPiImgPath+'gl_telephone.gif" width="157" height="41" alt="無料電話相談" /></a></div>');
	write('<div class="to_road_service"><a href="'+gPiRootPath+'road_service/"><img src="'+gPiImgPath+'gl_road_service.gif" width="155" height="41" alt="ロードサービス" /></a></div>');
	write('<div class="to_pet"><a href="'+gPiRootPath+'pet/"><img src="'+gPiImgPath+'gl_pet.gif" width="155" height="41" alt="人間ドック・PET検診等" /></a></div>');
	write('<div class="to_special"><a href="'+gPiRootPath+'special/"><img src="'+gPiImgPath+'gl_special.gif" width="155" height="41" alt="各種優待特典" /></a></div>');
	//write('<div class="to_gpia"><a href="javascript:fncSetURLGPia(\'\',\'_blank\');void(0);"><img src="'+gPiImgPath+'gl_gpia.gif" width="97" height="41" alt="グルメぴあ提携サービス" /></a></div>');
//-- Link EasyLogin -----------------------------
	write('<form name="LOGIN"><input type="hidden" name="id" value="" /><input type="hidden" name="url" value="" /></form>');
//-- Link EasyLogin End -----------------------------
	write('<div class="to_medical"><a href="'+gPiRootPath+'medical/"><img src="'+gPiImgPath+'gl_medical.gif" width="158" height="41" alt="介護・医療・ヘルスケア" /></a></div>');
	//write('<div class="to_life"><a href="'+gPiRootPath+'life/"><img src="'+gPiImgPath+'gl_life.gif" width="102" height="41" alt="くらし・ライフイベント" /></a></div>');
	//write('<div class="to_shopping"><a href="'+gPiRootPath+'shopping/"><img src="'+gPiImgPath+'gl_shopping.gif" width="90" height="41" alt="ショッピング" /></a></div>');
	//write('<div class="to_travel"><a href="'+gPiRootPath+'travel/"><img src="'+gPiImgPath+'gl_travel.gif" width="121" height="41" alt="トラベル・レジャー" /></a></div>');
	}
}


//OtherLink----------------------------------------------------------------------

function PageIn_OtherLink(){
	with( document ){
	write('<div class="title"><img src="'+gPiImgPath+'cmn_otherl_title.gif" width="187" height="30" alt="その他のサービス" /></div>');
	write('<div class="link">');
	write('	<div><a href="http://www.sumitomolife.co.jp/tento.html" target="_blank"><img src="'+gPiImgPath+'cmn_otherl_btm01.gif" width="171" height="121" alt="保険取引サービス スミセイダイレクトサービス インターネットなどで、入出金・照会・お手続きができます。" /></a></div>');
	write('	<div><a href="'+gPiRootPath+'visa/"><img src="'+gPiImgPath+'cmn_otherl_btm02.gif" width="171" height="55" alt="VISAサービス" /></a></div>');
	write('	<div><a href="http://www.sumitomolife.co.jp/shop/index.html" target="_blank"><img src="'+gPiImgPath+'cmn_otherl_btm03.gif" width="171" height="55" alt="お問い合せ" /></a></div>');
	write('	<div class="to_top"><a href="'+gPiRootPath+'"><img src="'+gPiImgPath+'cmn_otherl_btm04.gif" width="171" height="55" alt="クラブスミセイ TOPページへ" /></a></div>');
	write('</div>');
	}
}


//Footer----------------------------------------------------------------------

function PageIn_Footer(){
	with( document ){
	write('<div class="copyright">');
	write('<img src="'+gPiImgPath+'ft_copyright.gif" width="384" height="13" alt="Copyright (c)2008 Sumitomo Life Insurance Company, All Right Reserved" />');
	write('</div>');
	}
}

//--------------------------------------------------
// POPUP
//--------------------------------------------------

//open_popup()---------------------------------------------------------------
function open_popup(vstrUrl,vstrName,vintWid,vintHgt) {
	var strOpt = 'toolbar=no,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes,width=' + vintWid + ',height=' + vintHgt;
	var objWin = window.open(vstrUrl, vstrName, strOpt);
	objWin.focus();
}


//**********************************************************************
-->