﻿// JavaScript Document
function headerPICC(){
	var PATHNAME=window.location.pathname
	var comptxt="_e"
	var LANGTEXT
	var SITEMAP
	var SITEPATH
	var FLASHMEDIA
	var t = PATHNAME.substring(PATHNAME.length-7,PATHNAME.length-5)
	if(PATHNAME.substring(PATHNAME.length-7,PATHNAME.length-5) == comptxt){
		PATHNAME = PATHNAME.substring(0,PATHNAME.length-7)+".html"
		LANGTEXT = "中文"
		SITEMAP = "Site Map"
		SITEPATH = "sitemap_e.html"
		FLASHMEDIA = "other_e"
	} else
	{
		PATHNAME = PATHNAME.substring(0,PATHNAME.length-5)+comptxt+".html"
		LANGTEXT = "English"
		SITEMAP = "網頁指南"
		SITEPATH = "sitemap.html"
		FLASHMEDIA = "other"
	}
	var hCODE="<table class=\"Container\" cellpadding=0 cellspacing=0 border=0 align=center><tr><td><div style=\"margin:4px 0px 4px 0px\"><a href=\"index.html\"><img src=\"images/logo.gif\" width=409 height=48 style=\"border:none\"></a></div></td><td align=right valign=top><a href=\"http://www.picc.com\"><img src=\"images/header.gif\" width=164 height=52 style=\"border:none\"></a></td></tr><tr><td colspan=2 align=right><div id=\"cssHeader\">&lt;<a href=\"" + SITEPATH + "\" class=\"headeng\">" + SITEMAP + "</a>&gt; | &lt;<a href=\""+ PATHNAME + "\" class=\"headeng\">" + LANGTEXT + "</a>&gt;</div></td></tr><tr><td colspan=2 align=center><script type=\"text/javascript\">AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','770','height','80','src','flash/" + FLASHMEDIA +"','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/" + FLASHMEDIA + "','wmode','transparent' ); //end AC code</script><noscript><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=770 height=80><param name=\"movie\" value=\"flash/" + FLASHMEDIA + ".swf\"><param name=\"wmode\" value=\"transparent\"><!--this is to show dhtml menu over flash element--><param name=\"quality\" value=\"high\"><embed src=\"flash/" + FLASHMEDIA + ".swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"770\" height=\"80\"></embed></object></noscript></td></tr><tr><td height=4></td></tr></table>";
	return hCODE;
}
function headerPICC_index(){
	var PATHNAME=window.location.pathname
	var comptxt="_e"
	var comptxt1="index"
	var LANGTEXT
	var SITEMAP
	var SITEPATH
	var FLASHMEDIA
// index.html is showed in the path
	if(PATHNAME.substring(PATHNAME.length-0,PATHNAME.length-4) == 'html'){
		if(PATHNAME.substring(PATHNAME.length-7,PATHNAME.length-5) == comptxt){
			PATHNAME = PATHNAME.substring(0,PATHNAME.length-7)+".html"
			LANGTEXT = "中文"
			SITEMAP = "Site Map"
			SITEPATH = "sitemap_e.html"
			FLASHMEDIA = "index_e"
		} else
		{
			PATHNAME = "brief_e.html"
//			PATHNAME = PATHNAME.substring(0,PATHNAME.length-5)+comptxt+".html"
			LANGTEXT = "English"
			SITEMAP = "網頁指南"
			SITEPATH = "sitemap.html"
			FLASHMEDIA = "index"
		}
	} else {
// index.html is not showed in the path
		if(PATHNAME.substring(PATHNAME.length-7,PATHNAME.length-5) == comptxt){
			PATHNAME = PATHNAME.substring(0,PATHNAME.length-7)+"index.html"
			LANGTEXT = "中文"
			SITEMAP = "Site Map"
			SITEPAHT = "brief_e.html"
			FLASHMEDIA = "index_e"
		} else
		{
			PATHNAME = "brief_e.html"
//			PATHNAME = PATHNAME.substring(0,PATHNAME.length-5)+comptxt1+comptxt+".html"
			LANGTEXT = "English"
			SITEMAP = "網頁指南"
			SITEPATH = "sitemap.html"
			FLASHMEDIA = "index"
		}
	}
  var hCODE="<table class=\"Container\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr><td><div style=\"margin:4px 0px 4px 0px\"><a href=\"index.html\"><img src=\"images/logo.gif\" width=409 height=48 style=\"border:none\"></a></div></td><td align=right valign=top><a href=\"http://www.picc.com\"><img src=\"images/header.gif\" width=164 height=52 style=\"border:none\"></a></td></tr><tr><td colspan=2 align=right><div id=\"cssHeader\">&lt;<a href=\"" + SITEPATH + "\" class=\"headeng\">" + SITEMAP + "</a>&gt; | &lt;<a href=\""+ PATHNAME + "\" class=\"headeng\">" + LANGTEXT + "</a>&gt;</div></td></tr><tr><td colspan=\"2\" align=\"center\"><script type=\"text/javascript\">AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','770','height','180','src','flash/" + FLASHMEDIA + "','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','flash/" + FLASHMEDIA + "','wmode','transparent' ); //end AC code</script><noscript><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"770\" height=\"180\"><param name=\"movie\" value=\"flash/" + FLASHMEDIA + ".swf\"><param name=\"wmode\" value=\"transparent\"><!--this is to show dhtml menu over flash element--><param name=\"quality\" value=\"high\"><embed src=\"flash/" + FLASHMEDIA + ".swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"770\" height=\"180\"></embed></object></noscript></td></tr><tr><td height=\"10\"></td></tr></table>";
return hCODE;
}
function footorPICC(){
	var hCODE="<table class=\"Container\" cellpadding=0 cellspacing=0 border=0 align=\"center\"><tr><td height=8></td></tr><tr><td><div id=\"cssFootor\">中國人民保險(香港)有限公司 版權所有 不得轉載 2010<br>Copyright (c) 2010 The People's Insurance Company of China (Hong Kong), Ltd. All Rights Reserved.</div></td></tr></table>";
	return hCODE;
}
function vertMenu(){
var i="<div id=\"my_menu\" class=\"sdmenu\">";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span><a href=\"index.html\">首 頁</a></span>";
i+="<a href=\"index.html\">首 頁</a></div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>人保香港簡介</span>";
i+="<a href=\"brief.html\">背景及理念</a>";
i+="<a href=\"structure.html\">公司架構</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>保險產品</span>";
i+="<a href=\"products.html\">保險產品目錄</a>";
i+="<a href=\"pam.html\">意外急救醫療保險卡</a>";
i+="<a href=\"oip.html\">辦公室萬全保</a>";
i+="<a href=\"par.html\">旅遊險</a>";
i+="<a href=\"par.html\">人生意外險</a>";
i+="<a href=\"par.html\">家居保險</a>";
i+="<a href=\"par.html\">財產險</a>";
i+="<a href=\"par.html\">汽車險</a>";
i+="<a href=\"par.html\">貨物運輸險</a>";
i+="<a href=\"par.html\">金錢損失險</a>";
i+="<a href=\"par.html\">公眾責任險</a>";
i+="<a href=\"par.html\">僱員賠償險</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>最新資訊</span>";
i+="<a href=\"news.html\">企業動向</a>";
i+="<a href=\"market.html\">市場資訊</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>表格下載</span>";
i+="<a href=\"proposal.html\">投保書</a>";
i+="<a href=\"claims.html\">賠償申報表</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>員工天地</span>";
i+="<a href=\"colleague.html\">員工天地</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>就業機會</span>";
i+="<a href=\"careers.html\">就業機會</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>聯絡我們</span>";
i+="<a href=\"contact.html\">聯絡我們</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>網站連結</span>";
i+="<a href=\"links.html\">網站連結</a>";
i+="</div>";
i+="</div>";
i+="<div></div>";
i+="<div id=\"treeMenu\"><img src=\"images/treemenu.jpg\"/></div>";
return i;
}
function vertMenuE(){
var i="<div id=\"my_menu\" class=\"sdmenu\" style=\"font-size:11px\">";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span><a href=\"brief_e.html\">Home</a></span>";
i+="<a href=\"brief_e.html\">Home</a></div>";
//i+="<span><a href=\"index_e.html\">Home</a></span>";
//i+="<a href=\"index_e.html\">Home</a></div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>About Us</span>";
i+="<a href=\"brief_e.html\">Profile and Mission</a>";
i+="<a href=\"structure_e.html\">Company Structure</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>Products</span>";
i+="<a href=\"products_e.html\">Insurance Products</a>";
i+="<a href=\"pam_e.html\">Emergency Accidental Medical &amp; Hospitalization</a>";
i+="<a href=\"oip_e.html\">Office Protection</a>";
i+="<a href=\"par_e.html\">Traveller's Accident</a>";
i+="<a href=\"par_e.html\">Personal Accident</a>";
i+="<a href=\"par_e.html\">Household</a>";
i+="<a href=\"par_e.html\">Property</a>";
i+="<a href=\"par_e.html\">Motor Vehicle</a>";
i+="<a href=\"par_e.html\">Goods in Transit</a>";
i+="<a href=\"par_e.html\">Money</a>";
i+="<a href=\"par_e.html\">Public Liability</a>";
i+="<a href=\"par_e.html\">Employees' Compensation</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>Newsroom</span>";
i+="<a href=\"news_e.html\">Corporate News</a>";
i+="<a href=\"market_e.html\">Market News</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>Downloads</span>";
i+="<a href=\"proposal_e.html\">Application Forms</a>";
i+="<a href=\"claims_e.html\">Claim Forms</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>Cultural Activities</span>";
i+="<a href=\"colleague_e.html\">Cultural Activities</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>Careers</span>";
i+="<a href=\"careers_e.html\">Careers</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>Contact Us</span>";
i+="<a href=\"contact_e.html\">Contact Us</a>";
i+="</div>";
i+="<div class=\"collapsed\" onMouseover=\"this.style.background='url(images/grey5.jpg)'\" onmouseout=\"this.style.background=''\">";
i+="<span>Links</span>";
i+="<a href=\"links_e.html\">Links</a>";
i+="</div>";
i+="</div>";
i+="<div><img src=\"images/treemenu.jpg\"/>";
return i;
}