// JavaScript Document
	if(jQuery.browser.msie && parseInt(jQuery.browser.version, 10) == 6) {
  try {
    document.execCommand("BackgroundImageCache", false, true);
  } catch(err) {}
}	

(function($){
$.fn.extend({
        my_Scroll:function(opt,callback){
                //
                if(!opt) var opt={};
                var _this=this.eq(0).find("ul:first");
                var lineH=_this.find("li:first").height()+11, //获取行高
                        line=opt.line?parseInt(opt.line,10):parseInt(this.height()/lineH,10),
                        speed=opt.speed?parseInt(opt.speed,10):2000, //卷动速度，数值越大，速度越慢（毫秒）
                        timer=opt.timer?parseInt(opt.timer,10):2000; //滚动的时间间隔（毫秒）
                if(line==0) line=1;
                var upHeight=0-line*lineH;
                //
                scrollUp=function(){
                        _this.animate({
                                marginTop:upHeight
                        },speed,function(){
                                for(i=1;i<=line;i++){
									
                                        _this.find("li:first").appendTo(_this);
                                }
                                _this.css({marginTop:0});
								lineH=_this.find("li:first").height()+11;
								upHeight=0-line*lineH;
								
                        });
                }
                //
                _this.hover(function(){
                        clearInterval(timerID);
                },function(){
                        timerID=setInterval("scrollUp()",timer);
                }).mouseout();
        }       
})
})(jQuery);

function show_corner()//right top corner
{ 
	$('#btn_header').fadeIn(500);
}
$(document).ready(function(){		
	setTimeout("show_corner()",500);
	
	$('#btn_addition_login').bind("mouseenter", function(){  
		 $('.mainlist').hide();										   
         $('.loginlist').fadeIn();
     });  
	 $('.loginlist').bind("mouseenter", function(){  									  
         $('.loginlist').show(); 
     });
     $('#btn_addition_login').bind("mouseleave", function(){ 
         $('.loginlist').hide();
     });  
	 $('.loginlist').bind("mouseleave", function(){  
		 $('.loginlist').hide();
     });	
	 
	 
	 $('#btn_header1').bind("mouseenter", function(){  
		 $('.mainlist').hide();										   
         $('.aboutlist').fadeIn();
     });  
	 $('.aboutlist').bind("mouseenter", function(){  									  
         $('.aboutlist').show(); 
     });
     $('#btn_header1').bind("mouseleave", function(){ 
         $('.aboutlist').hide();
     });  
	 $('.aboutlist').bind("mouseleave", function(){  
		 $('.aboutlist').hide();
     });
	 
	 
	 $('#btn_header3').bind("mouseenter", function(){  
		 $('.mainlist').hide();										   
         $('.linklist').fadeIn();
     });  
	 $('.linklist').bind("mouseenter", function(){  									  
         $('.linklist').show(); 
     });
     $('#btn_header3').bind("mouseleave", function(){ 
         $('.linklist').hide();
     });  
	 $('.linklist').bind("mouseleave", function(){  
		 $('.linklist').hide();
     });
						   
					   
     $('#main_navi_1').bind("mouseenter", function(){  
		 $('.mainlist').hide();										   
         $('#mainlist_1').fadeIn();
     });  
	 $('#mainlist_1').bind("mouseenter", function(){  									  
         $('#mainlist_1').show(); 
     });
     $('#main_navi_1').bind("mouseleave", function(){ 
         $('#mainlist_1').hide();
     });  
	 $('#mainlist_1').bind("mouseleave", function(){  
		 $('#mainlist_1').hide();
     });
	 
	 
	 $('#main_navi_2').bind("mouseenter", function(){  
		 $('.mainlist').hide();											   
         $('#mainlist_2').fadeIn(); 
		 $('#mainlist_2iframe').fadeIn(); 
     });  
	 
	 $('#main_navi_2').bind("click", function(){  
         $('.mainlist').hide();	
		 $('#mainlist_2iframe').hide(); 
     });
	 
	 $('#mainlist_2').bind("mouseenter", function(){  
         $('#mainlist_2').show();
		 $('#mainlist_2iframe').show(); 
     });
     $('#main_navi_2').bind("mouseleave", function(){  
         $('#mainlist_2').hide(); 
		 $('#mainlist_2iframe').hide(); 
     });  
	 $('#mainlist_2').bind("mouseleave", function(){  
         $('#mainlist_2').hide(); 
		 $('#mainlist_2iframe').hide(); 
     });
	 
	 
	 $('#main_navi_3').bind("mouseenter", function(){  
         $('.mainlist').hide();	
		 $('#mainlist_3').fadeIn();  
     });  
	 $('#mainlist_3').bind("mouseenter", function(){  
         $('#mainlist_3').show();  
     });
     $('#main_navi_3').bind("mouseleave", function(){  
         $('#mainlist_3').hide();  
     });  
	 $('#mainlist_3').bind("mouseleave", function(){  
         $('#mainlist_3').hide();  
     });
	 
	 
	 $('#main_navi_4').bind("mouseenter", function(){  
         $('.mainlist').hide();	
		 //$('select').css('visibility',"hidden");	
		 $('#mainlist_4').fadeIn();
		 $('#mainlist_4iframe').fadeIn(); 
     });  
	 
	 $('#main_navi_4').bind("click", function(){  
         $('.mainlist').hide();	
		 $('#mainlist_4iframe').hide(); 
     });
		 
	 $('#mainlist_4').bind("mouseenter", function(){  
         $('#mainlist_4').show();  
		 $('#mainlist_4iframe').show(); 
     });
     $('#main_navi_4').bind("mouseleave", function(){  
         $('#mainlist_4').hide();
		 $('#mainlist_4iframe').hide(); 
		 //$('select').css('visibility',"visible");
     });  
	 $('#mainlist_4').bind("mouseleave", function(){  
         $('#mainlist_4').hide(); 
		 $('#mainlist_4iframe').hide(); 
		 //$('select').css('visibility',"visible");
     });
	 
	 
	 $('#main_navi_5').bind("mouseenter", function(){  
         $('.mainlist').hide();	
		 $('#mainlist_5').fadeIn();  
     });  
	 $('#mainlist_5').bind("mouseenter", function(){  
         $('#mainlist_5').show();  
     });
     $('#main_navi_5').bind("mouseleave", function(){  
         $('#mainlist_5').hide();  
     });  
	 $('#mainlist_5').bind("mouseleave", function(){  
         $('#mainlist_5').hide();  
     });
	 
	 
	 $('#main_navi_6').bind("mouseenter", function(){  
         $('.mainlist').hide();	
		 $('#mainlist_6').fadeIn();  
     });  
	 $('#mainlist_6').bind("mouseenter", function(){  
         $('#mainlist_6').show();  
     });
     $('#main_navi_6').bind("mouseleave", function(){  
         $('#mainlist_6').hide();  
     });  
	 $('#mainlist_6').bind("mouseleave", function(){  
         $('#mainlist_6').hide();  
     });
	 
	 
	 $('#main_navi_7').bind("mouseenter", function(){  
         $('.mainlist').hide();	
		 $('#mainlist_7').fadeIn();  
     });  
	 $('#mainlist_7').bind("mouseenter", function(){  
         $('#mainlist_7').show();  
     });
     $('#main_navi_7').bind("mouseleave", function(){  
         $('#mainlist_7').hide();  
     });  
	 $('#mainlist_7').bind("mouseleave", function(){  
         $('#mainlist_7').hide();  
     });
	 
	 
	 $('#main_navi_8').bind("mouseenter", function(){  
         $('.mainlist').hide();	
		 $('#mainlist_8').fadeIn();  
     });  
	 $('#mainlist_8').bind("mouseenter", function(){  
         $('#mainlist_8').show();  
     });
     $('#main_navi_8').bind("mouseleave", function(){  
         $('#mainlist_8').hide();  
     });  
	 $('#mainlist_8').bind("mouseleave", function(){  
         $('#mainlist_8').hide();  
     });				   
						   
	  
	$("#scrollDiv").my_Scroll({line:1,speed:2000,timer:3000});	
	
	
	
	$('#ln').bind("mouseenter", function(){  								 
		 $('#lnd').fadeIn();  
     });  
	 $('#lnd').bind("mouseenter", function(){  
         $('#lnd').show();  
     });
     $('#lnd').bind("mouseleave", function(){  
         $('#lnd').hide();  
     });  
	 




 });

 
 function close_all()
 {
	 $('#mainlist_1').hide();
	 $('#mainlist_2').hide();
	 $('#mainlist_3').hide();
	 $('#mainlist_4').hide();
	 $('#mainlist_5').hide();
	 $('#mainlist_6').hide();
	 $('#mainlist_7').hide();
	 $('#mainlist_8').hide();
	 $('.loginlist').hide();
	 $('.aboutlist').hide();
	 
 }

document.onclick = close_all;

function lang_switch()
{
	//alert(window.location.href);
	var turl = window.location.href;
	var filestr_eng = turl.substring(turl.lastIndexOf('/en/')+4);

	if(filestr_eng!="")

	window.location.href="/ch/"+filestr_eng;
	
	return false;
	
	

}

var http_path = "http://www.bluecross.com.hk/anniversary/eng";

var https_path = "https://www.bluecross.com.hk/anniversary/eng";

if(http_path=="")
{http_path="..";}

if(https_path=="")
{https_path="..";}


//video review start
function show_header()
{
	document.write('<div style="width:950px; height:90px; position:relative;"><a name="top"></a><div id="logo_bc"><a href="'+http_path+'/homepage/index.html"><img src="../img/common/logo_bc.jpg" width="300" height="80" border="0" /></a></div><div id="btn_header"><ul><li><a id="btn_header1" href="javascript:void()" onclick="return false">&nbsp;</a></li><li class="s_line">&nbsp;</li><li><a id="btn_header2" href="'+http_path+'/contactus/index.html" target="_self">&nbsp;</a></li><li class="s_line">&nbsp;</li><li><a id="btn_header3" href="javascript:void()" onclick="return false">&nbsp;</a></li><li class="s_line">&nbsp;</li><li><a id="btn_header4" href="'+http_path+'/sitemap/index.html" target="_self">&nbsp;</a></li><li class="s_line">&nbsp;</li><li><a id="btn_header5" href="#" onclick="return lang_switch()">&nbsp;</a></li></ul></div><div id="btn_addition"><a id="btn_addition_login" href="javascript:void()">&nbsp;</a></div></div><div style="width:950px; height:45px; position:relative; background:url(../img/common/bg_navi.jpg) left top no-repeat;"><!----><div class="aboutlist"><ul class="aboutnavi"><li class="row1_first"><a href="'+http_path+'/aboutus/companyprofile.html" target="_self">Company Profile</a></li><li class="row1"><a href="'+http_path+'/aboutus/awards.html" target="_self">Company Awards</a></li><li class="row1"><a href="'+http_path+'/aboutus/career.html" target="_self">Career Opportunities</a></li></ul></div><div class="linklist"><ul class="linknavi"><li class="row1_first"><a href="'+http_path+'/usefullinks/hospitals.html" target="_self">List of Hospitals</a></li><li class="row1"><a href="'+http_path+'/usefullinks/healthrelated.html" target="_self">Health Related</a></li><li class="row1"><a href="'+http_path+'/usefullinks/insurancerelated.html" target="_self">Insurance Related</a></li></ul></div><!----><div class="loginlist"><ul class="loginnavi"><li class="row2_first"><a href="javascript:void()">&nbsp;</a></li><li class="row2"><a href="'+https_path+'/login/index.html"><span style="position:relative; top:6px; line-height:17px;">Blue Cross<br />"TOTAL Benefit CLUB"</span></a></li><li class="row1"><a href="https://superagent.bluecross.com.hk/superagent/" target="_blank">Super Agent</a></li><li class="row1"><a href="https://www.bluecross.com.hk/supercare/Eng/index.asp" target="_blank">Super Care</a></li><li class="row1"><a href="https://www.bluecross.com.hk/supertravel/" target="_blank">Super Travel</a></li></ul></div><div id="main_navi"><ul><li><a id="main_navi_0" href="'+http_path+'/homepage/index.html" target="_self">&nbsp;</a></li><li><a id="main_navi_1" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_2" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_3" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_4" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_5" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_6" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_7" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_8" href="javascript:void()" onclick="return false">&nbsp;</a></li></ul></div><div class="mainlist" id="mainlist_1"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/whatsnew/news.html">Company News</a></li><li class="row1"><a href="'+http_path+'/whatsnew/mediacentre.html">Media Centre</a></li><li class="row1"><a href="'+http_path+'/whatsnew/promotions.html">Promotions</a></li><li class="row1"><a href="'+http_path+'/whatsnew/video_review.html">Video Review</a></li></ul></div><div class="mainlist" id="mainlist_2"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/taipanmedical/index.html">Taipan Medical Insurance</a></li><li class="row2"><a href="'+http_path+'/supermedical/index.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series</span></a></li><li class="row1"><a href="'+http_path+'/familyplan/index.html">Comprehensive Family Plan</a></li><li class="row1"><a href="'+http_path+'/aeconomedical/index.html">Aeconomedical Plan</a></li><li class="row2"><a href="'+http_path+'/allinone/index.html"><span style="position:relative; top:6px; line-height:17px;">All-in-one Outpatient Insurance</span></a></li><li class="row1"><a href="'+http_path+'/dentalplan/index.html">Dental Plan</a></li><li class="row1"><a href="'+http_path+'/hospitalincome/index.html">Hospital Income Plan "Plus"</a></li><li class="row1"><a href="'+http_path+'/majormedical/index.html">Major Medical Insurance</a></li></ul></div><iframe id="mainlist_2iframe" src="" scrolling="no" frameborder="0" style="height:239px; filter=progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);"></iframe><div class="mainlist" id="mainlist_3"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/travelsmart/index.html">Travel Smart</a></li><li class="row1"><a href="'+http_path+'/annual/index.html">Annual Travel Insurance</a></li><li class="row2"><a href="'+http_path+'/annualchinatravel/index.html"><span style="position:relative; top:6px; line-height:17px;">Annual China Travel Insurance</span></a></li><li class="row2"><a href="'+http_path+'/inbound/index.html"><span style="position:relative; top:6px; line-height:17px;">Inbound Travel Insurance - Premier Plan</span></a></li></ul></div><div class="mainlist" id="mainlist_4"><ul class="mlnavi"><li class="row2"><a href="'+http_path+'/homesafe/index.html"><span style="position:relative; top:6px; line-height:17px;">HomeSafe Protection Insurance</span></a></li><li class="row1"><a href="'+http_path+'/maidsafe/index.html">MaidSafe Insurance</a></li><li class="row1"><a href="'+http_path+'/decorationsafe/index.html">DecorationSafe</a></li><li class="row2"><a href="'+http_path+'/personalaccident/index.html"><span style="position:relative; top:6px; line-height:17px;">Comprehensive Personal Accident Insurance</span></a></li> <li class="row1"><a href="'+http_path+'/gradea/index.html">Grade A Parental Care Series</a></li> <li class="row1"><a href="'+http_path+'/taipangolfer/index.html">Taipan GolferSafe</a></li><li class="row1"><a href="'+http_path+'/golfer/index.html">GolferSafe</a></li><li class="row1"><a href="'+http_path+'/petcare/index.html">Pet Care</a></li><li class="row1"><a href="'+http_path+'/office/index.html">OfficeSafe Plus</a></li><li class="row1"><a href="'+http_path+'/shopsafe/index.html">ShopSafe Plus</a></li><li class="row1"><a href="'+http_path+'/fire/index.html">Fire Insurance</a></li><li class="row1"><a href="'+http_path+'/motor/index.html">Motor Insurance</a></li><li class="row2"><a href="'+http_path+'/employees/index.html"><span style="position:relative; top:6px; line-height:17px;">Employees\' Compensation Insurance</span></a></li></ul></div><iframe id="mainlist_4iframe" src="" scrolling="no" frameborder="0" style="height: 336px; filter=progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0);"></iframe><div class="mainlist" id="mainlist_5"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/groupmedical/index.html">Employees Medical Contract</a></li></ul></div><div class="mainlist" id="mainlist_6"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/cancerscreening/index.html">Cancer Screening</a></li><li class="row2"><a href="'+http_path+'/preventive/index.html"><span style="position:relative; top:6px; line-height:17px;">Preventive Check-up and Immunisation</span></a></li><li class="row2"><a href="'+http_path+'/ucare/index.html"><span style="position:relative; top:6px; line-height:17px;">U Care Medical Checkup Scheme</span></a></li></ul></div><div class="mainlist" id="mainlist_7"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/downloads/index.html">Items for Download</a></li></ul></div><div class="mainlist" id="mainlist_8"><ul class="mlnavi"><li class="row1_first"><a href="'+https_path+'/onlineapp/travelsmart.html">Travel Smart</a></li><li class="row1"><a href="'+https_path+'/onlineapp/annual.html">Annual Travel Insurance</a></li><li class="row2"><a href="'+https_path+'/onlineapp/homesafe.html"><span style="position:relative; top:6px; line-height:17px;">HomeSafe Protection Insurance</span></a></li><li class="row1"><a href="'+https_path+'/onlineapp/maidsafe.html">MaidSafe Insurance</a></li><li class="row1"><a href="'+https_path+'/onlineapp/decorationsafe.html">DecorationSafe Insurance</a></li><li class="row1"><a href="'+https_path+'/onlineapp/taipangolfer.html">Taipan GolferSafe</a></li><li class="row1"><a href="'+https_path+'/onlineapp/golfer.html">GolferSafe</a></li><li class="row1"><a href="'+https_path+'/onlineapp/petcare.html">Pet Care</a></li><li class="row1"><a href="'+https_path+'/onlineapp/familyplan.html">Comprehensive Family Plan</a></li><li class="row2"><a href="'+https_path+'/onlineapp/superjunior.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series - Super Junior</span></a></li><li class="row2"><a href="'+https_path+'/onlineapp/superlady.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series - Super Lady</span></a></li><li class="row2"><a href="'+https_path+'/onlineapp/superman.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series - Super Man</span></a></li><li class="row2"><a href="'+https_path+'/onlineapp/supersenior.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series - Super Senior</span></a></li><li class="row1"><a href="'+https_path+'/onlineapp/prevent.html">Preventive Care Program</a></li><li class="row1"><a href="'+https_path+'/onlineapp/studentpa.html">Grade A Parental Care Series</a></li></ul></div></div>');

	
}


function show_header2()
{
	document.write('<div style="width:950px; height:90px; position:relative;"><a name="top"></a><div id="logo_bc"><a href="'+http_path+'/homepage/index.html"><img src="../img/common/logo_bc.jpg" width="300" height="80" border="0" /></a></div><div id="btn_header"><ul><li><a id="btn_header1" href="javascript:void()" onclick="return false">&nbsp;</a></li><li class="s_line">&nbsp;</li><li><a id="btn_header2" href="'+http_path+'/contactus/index.html" target="_self">&nbsp;</a></li><li class="s_line">&nbsp;</li><li><a id="btn_header3" href="javascript:void()" onclick="return false">&nbsp;</a></li><li class="s_line">&nbsp;</li><li><a id="btn_header4" href="'+http_path+'/sitemap/index.html" target="_self">&nbsp;</a></li><li class="s_line">&nbsp;</li><li><a id="btn_header5" href="#" onclick="return lang_switch()">&nbsp;</a></li></ul></div><div id="btn_addition"><a id="btn_addition_login" href="javascript:void()">&nbsp;</a></div></div><div style="width:950px; height:45px; position:relative; background:url(../img/common/bg_navi.jpg) left top no-repeat;"><!----><div class="aboutlist"><ul class="aboutnavi"><li class="row1_first"><a href="'+http_path+'/aboutus/companyprofile.html" target="_self">Company Profile</a></li><li class="row1"><a href="'+http_path+'/aboutus/awards.html" target="_self">Company Awards</a></li><li class="row1"><a href="'+http_path+'/aboutus/career.html" target="_self">Career Opportunities</a></li></ul></div><div class="linklist"><ul class="linknavi"><li class="row1_first"><a href="'+http_path+'/usefullinks/hospitals.html" target="_self">List of Hospitals</a></li><li class="row1"><a href="'+http_path+'/usefullinks/healthrelated.html" target="_self">Health Related</a></li><li class="row1"><a href="'+http_path+'/usefullinks/insurancerelated.html" target="_self">Insurance Related</a></li></ul></div><!----><div class="loginlist"><ul class="loginnavi"><li class="row2_first"><a href="javascript:void()">&nbsp;</a></li><li class="row2"><a href="'+https_path+'/login/index.html"><span style="position:relative; top:6px; line-height:17px;">Blue Cross<br />"TOTAL Benefit CLUB"</span></a></li><li class="row1"><a href="https://superagent.bluecross.com.hk/superagent/" target="_blank">Super Agent</a></li><li class="row1"><a href="https://www.bluecross.com.hk/supercare/Eng/index.asp" target="_blank">Super Care</a></li><li class="row1"><a href="https://www.bluecross.com.hk/supertravel/" target="_blank">Super Travel</a></li></ul></div><div id="main_navi"><ul><li><a id="main_navi_0" href="'+http_path+'/homepage/index.html" target="_self">&nbsp;</a></li><li><a id="main_navi_1" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_2" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_3" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_4" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_5" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_6" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_7" href="javascript:void()" onclick="return false">&nbsp;</a></li><li><a id="main_navi_8" href="javascript:void()" onclick="return false">&nbsp;</a></li></ul></div><div class="mainlist" id="mainlist_1"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/whatsnew/news.html">Company News</a></li><li class="row1"><a href="'+http_path+'/whatsnew/mediacentre.html">Media Centre</a></li><li class="row1"><a href="'+http_path+'/whatsnew/promotions.html">Promotions</a></li><li class="row1"><a href="'+http_path+'/whatsnew/video_review.html">Video Review</a></li></ul></div><div class="mainlist" id="mainlist_2"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/taipanmedical/index.html">Taipan Medical Insurance</a></li><li class="row2"><a href="'+http_path+'/supermedical/index.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series</span></a></li><li class="row1"><a href="'+http_path+'/familyplan/index.html">Comprehensive Family Plan</a></li><li class="row1"><a href="'+http_path+'/aeconomedical/index.html">Aeconomedical Plan</a></li><li class="row2"><a href="'+http_path+'/allinone/index.html"><span style="position:relative; top:6px; line-height:17px;">All-in-one Outpatient Insurance</span></a></li><li class="row1"><a href="'+http_path+'/dentalplan/index.html">Dental Plan</a></li><li class="row1"><a href="'+http_path+'/hospitalincome/index.html">Hospital Income Plan "Plus"</a></li><li class="row1"><a href="'+http_path+'/majormedical/index.html">Major Medical Insurance</a></li></ul></div><div class="mainlist" id="mainlist_3"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/travelsmart/index.html">Travel Smart</a></li><li class="row1"><a href="'+http_path+'/annual/index.html">Annual Travel Insurance</a></li><li class="row2"><a href="'+http_path+'/annualchinatravel/index.html"><span style="position:relative; top:6px; line-height:17px;">Annual China Travel Insurance</span></a></li><li class="row2"><a href="'+http_path+'/inbound/index.html"><span style="position:relative; top:6px; line-height:17px;">Inbound Travel Insurance - Premier Plan</span></a></li></ul></div><div class="mainlist" id="mainlist_4"><ul class="mlnavi"><li class="row2"><a href="'+http_path+'/homesafe/index.html"><span style="position:relative; top:6px; line-height:17px;">HomeSafe Protection Insurance</span></a></li><li class="row1"><a href="'+http_path+'/maidsafe/index.html">MaidSafe Insurance</a></li><li class="row1"><a href="'+http_path+'/decorationsafe/index.html">DecorationSafe</a></li><li class="row2"><a href="'+http_path+'/personalaccident/index.html"><span style="position:relative; top:6px; line-height:17px;">Comprehensive Personal Accident Insurance</span></a></li> <li class="row1"><a href="'+http_path+'/gradea/index.html">Grade A Parental Care Series</a></li>  <li class="row1"><a href="'+http_path+'/taipangolfer/index.html">Taipan Golfersafe</a></li><li class="row1"><a href="'+http_path+'/golfer/index.html">Golfersafe</a></li><li class="row1"><a href="'+http_path+'/petcare/index.html">Pet Care</a></li><li class="row1"><a href="'+http_path+'/office/index.html">OfficeSafe Plus</a></li><li class="row1"><a href="'+http_path+'/shopsafe/index.html">ShopSafe Plus</a></li><li class="row1"><a href="'+http_path+'/fire/index.html">Fire Insurance</a></li><li class="row1"><a href="'+http_path+'/motor/index.html">Motor Insurance</a></li><li class="row2"><a href="'+http_path+'/employees/index.html"><span style="position:relative; top:6px; line-height:17px;">Employees\' Compensation Insurance</span></a></li></ul></div><div class="mainlist" id="mainlist_5"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/groupmedical/index.html">Employees Medical Contract</a></li></ul></div><div class="mainlist" id="mainlist_6"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/cancerscreening/index.html">Cancer Screening</a></li><li class="row2"><a href="'+http_path+'/preventive/index.html"><span style="position:relative; top:6px; line-height:17px;">Preventive Check-up and Immunisation</span></a></li><li class="row2"><a href="'+http_path+'/ucare/index.html"><span style="position:relative; top:6px; line-height:17px;">U Care Medical Checkup Scheme</span></a></li></ul></div><div class="mainlist" id="mainlist_7"><ul class="mlnavi"><li class="row1_first"><a href="'+http_path+'/downloads/index.html">Items for Download</a></li></ul></div><div class="mainlist" id="mainlist_8"><ul class="mlnavi"><li class="row1_first"><a href="'+https_path+'/onlineapp/travelsmart.html">Travel Smart</a></li><li class="row1"><a href="'+https_path+'/onlineapp/annual.html">Annual Travel Insurance</a></li><li class="row2"><a href="'+https_path+'/onlineapp/homesafe.html"><span style="position:relative; top:6px; line-height:17px;">HomeSafe Protection Insurance</span></a></li><li class="row1"><a href="'+https_path+'/onlineapp/maidsafe.html">MaidSafe Insurance</a></li><li class="row1"><a href="'+https_path+'/onlineapp/decorationsafe.html">DecorationSafe Insurance</a></li><li class="row1"><a href="'+https_path+'/onlineapp/taipangolfer.html">Taipan Golfersafe</a></li><li class="row1"><a href="'+https_path+'/onlineapp/golfer.html">Golfersafe</a></li><li class="row1"><a href="'+https_path+'/onlineapp/petcare.html">Pet Care</a></li><li class="row1"><a href="'+https_path+'/onlineapp/familyplan.html">Comprehensive Family Plan</a></li><li class="row2"><a href="'+https_path+'/onlineapp/superjunior.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series - Super Junior</span></a></li><li class="row2"><a href="'+https_path+'/onlineapp/superlady.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series - Super Lady</span></a></li><li class="row2"><a href="'+https_path+'/onlineapp/superman.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series - Super Man</span></a></li><li class="row2"><a href="'+https_path+'/onlineapp/supersenior.html"><span style="position:relative; top:6px; line-height:17px;">Super Medical Insurance Series - Super Senior</span></a></li><li class="row1"><a href="'+https_path+'/onlineapp/prevent.html">Preventive Care Program</a></li><li class="row1"><a href="'+https_path+'/onlineapp/studentpa.html">Grade A Parental Care Series</a></li></ul></div></div>');

	
	
}
//video review end

function show_footer()
{
	document.write('<div style="position:relative; height:35px; border-top:#dce9f5 1px solid"><div style="position:absolute; width: 471px; font-size:9px; color:#999; left: 1px; top: 9px;">&copy; Copyright. Blue Cross (Asia-Pacific) Insurance Limited 2011. All rights reserved.</div><div id="lnd" style="position:absolute; display:none; z-index:2; background-color:#FFF; vertical-align:middle; text-align:right; width: 500px; line-height:25px; font-size:9px; color:#999; right: 1px; top: 2px;"><a class="footer_link" href="'+http_path+'/legalnotices/Disclaimer.pdf" target="_blank">Disclaimer</a> | <a class="footer_link" href="'+http_path+'/legalnotices/Dividend Statement.pdf" target="_blank">Dividend Statement</a> | <a class="footer_link" href="'+http_path+'/legalnotices/Personal Information Collection Statement.pdf" target="_blank">Personal Information Collection Statement</a> | <a class="footer_link" href="/shared/ePrivacy/eng/pdf/eprivacy.pdf" target="_blank">Privacy Policy Statement</a></div><div id="ln" style="position:absolute; text-align:right; width: 100px; font-size:9px; color:#999; right: 1px; top: 9px;"><a class="footer_link" href="#" target="_self">Legal Notices</a></div></div>');
	//wt_call();
}

function wt_call(){
	//<![CDATA[
	var _tag=new WebTrends();
	_tag.dcsGetId();
	//]]>

	//<![CDATA[
	_tag.dcsCustom=function(){
	// Add custom parameters here.
	//_tag.DCSext.param_name=param_value;
	}
	_tag.dcsCollect();
	//]]>

	document.write('<noscript>');
	document.write('<div><img alt="DCSIMG" id="DCSIMG" width="1" height="1" src="//sdc.inetasia.com/dcsgodonahry1v8h27niuiakz_7r4u/njs.gif?dcsuri=/nojavascript&amp;WT.js=No&amp;WT.tv=9.4.0&amp;dcssip=www.bluecross.com.hk"/></div>');
	document.write('</noscript>');
}

// Added by Alex Lam 2010-12-22 
function show_notes(policytermsfile)
{
	document.write('<table width="950" border="0" cellspacing="0" cellpadding="0" style=" border-collapse:collapse">');
	document.write('<tr>');
	document.write('<td width="25">&nbsp; </td>');
	document.write('<td colspan="2" class="applynote">Note:</td>');
	document.write('<td width="345">&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td height="20">&nbsp;</td>');
	document.write('<td colspan="2">');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="580" style="border-collapse:collapse">');
	document.write('<tr>');
	document.write('<td width="15" valign="top" class="applynote">1.</td>');
	if (policytermsfile == "")
		document.write('<td width="565" class="applynote">The above information is for reference only. Please refer to policy for the exact terms and conditions and the full list of policy exclusions. For more information or a copy of the policy terms and conditions, please contact our Customer Service Department on 3608 2988/ by email <a style="font-size:9px;" href="mailto:cs@bluecross.com.hk">cs@bluecross.com.hk</a> for enquiry.');
	else
		document.write('<td width="565" class="applynote">The above information is for reference only. Please refer to policy for the exact terms and conditions and the full list of policy exclusions. For more information or a copy of the policy terms and conditions, please click <a href="' + policytermsfile + '" style="font-size:9px;" target="_blank">here</a> or contact our Customer Service Department on 3608 2988/ by email <a style="font-size:9px;" href="mailto:cs@bluecross.com.hk">cs@bluecross.com.hk</a> for enquiry.');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td valign="top" class="applynote">2.</td>');
	document.write('');
	document.write('<td class="applynote">Should there be any discrepancy between the English and the Chinese versions of the above information, the English version shall apply and prevail.</td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="25">&nbsp;</td>');
	document.write('<td colspan="2"class="applynote">&nbsp;</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="25">&nbsp;</td>');
	document.write('<td colspan="2" class="applynote">The above product(s) is/are offered for sale in Hong Kong only and is/are underwritten by Blue Cross (Asia-Pacific) Insurance Limited, an authorised insurer in Hong Kong.</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('</table>');
}

// Added by Alex Lam 2011-09-07 
function show_notes_grade_a(policytermsfile)
{
	document.write('<table width="950" border="0" cellspacing="0" cellpadding="0" style=" border-collapse:collapse">');
	document.write('<tr>');
	document.write('<td width="25">&nbsp; </td>');
	document.write('<td colspan="2" class="applynote">Note:</td>');
	document.write('<td width="345">&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td height="20">&nbsp;</td>');
	document.write('<td colspan="2">');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="580" style="border-collapse:collapse">');
	document.write('<tr>');
	document.write('<td width="15" valign="top" class="applynote">1.</td>');
	if (policytermsfile == "")
		document.write('<td width="565" class="applynote">The above information is for reference only. Please refer to policy for the exact terms and conditions and the full list of policy exclusions. For more information or a copy of the policy terms and conditions, please call Enquiry & Enrolment Hotline on 3608 2826.');
	else
		document.write('<td width="565" class="applynote">The above information is for reference only. Please refer to policy for the exact terms and conditions and the full list of policy exclusions. For more information or a copy of the policy terms and conditions, please click <a href="' + policytermsfile + '" style="font-size:9px;" target="_blank">here</a> or call Enquiry & Enrolment Hotline on 3608 2826.');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td valign="top" class="applynote">2.</td>');
	document.write('');
	document.write('<td class="applynote">Should there be any discrepancy between the English and the Chinese versions of the above information, the English version shall apply and prevail.</td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="25">&nbsp;</td>');
	document.write('<td colspan="2"class="applynote">&nbsp;</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="25">&nbsp;</td>');
	document.write('<td colspan="2" class="applynote">The above product(s) is/are offered for sale in Hong Kong only and is/are underwritten by Blue Cross (Asia-Pacific) Insurance Limited, an authorised insurer in Hong Kong.</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('</table>');
}

// Added by Alex Lam 2011-08-19 
function show_notes_authorisedby(policytermsfile,authorisedby)
{
	document.write('<table width="950" border="0" cellspacing="0" cellpadding="0" style=" border-collapse:collapse">');
	document.write('<tr>');
	document.write('<td width="25">&nbsp; </td>');
	document.write('<td colspan="2" class="applynote">Note:</td>');
	document.write('<td width="345">&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td height="20">&nbsp;</td>');
	document.write('<td colspan="2">');
	document.write('<table border="0" cellpadding="0" cellspacing="0" width="580" style="border-collapse:collapse">');
	document.write('<tr>');
	document.write('<td width="15" valign="top" class="applynote">1.</td>');
	if (policytermsfile == "")
		document.write('<td width="565" class="applynote">The above information is for reference only. Please refer to policy for the exact terms and conditions and the full list of policy exclusions. For more information or a copy of the policy terms and conditions, please contact our Customer Service Department on 3608 2988/ by email <a style="font-size:9px;" href="mailto:cs@bluecross.com.hk">cs@bluecross.com.hk</a> for enquiry.');
	else
		document.write('<td width="565" class="applynote">The above information is for reference only. Please refer to policy for the exact terms and conditions and the full list of policy exclusions. For more information or a copy of the policy terms and conditions, please click <a href="' + policytermsfile + '" style="font-size:9px;" target="_blank">here</a> or contact our Customer Service Department on 3608 2988/ by email <a style="font-size:9px;" href="mailto:cs@bluecross.com.hk">cs@bluecross.com.hk</a> for enquiry.');
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td valign="top" class="applynote">2.</td>');
	document.write('');
	document.write('<td class="applynote">Should there be any discrepancy between the English and the Chinese versions of the above information, the English version shall apply and prevail.</td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="25">&nbsp;</td>');
	document.write('<td colspan="2"class="applynote">&nbsp;</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td width="25">&nbsp;</td>');
	document.write('<td colspan="2" class="applynote">');
	document.write(authorisedby);
	document.write('</td>');
	document.write('<td>&nbsp;</td>');
	document.write('</tr>');
	document.write('</table>');
}
function show_generalinsurance_product_dropdown()
{
	document.write('<select style="width:272px; height:19px;" onchange="location=(this.options[this.selectedIndex].value)">');
	document.write('          <option selected="selected">Other General Insurance Plans</option>');
	document.write('          <option value="../homesafe/index.html">HomeSafe Protection Insurance</option>');
	document.write('          <option value="../maidsafe/index.html">MaidSafe Insurance</option>');
	document.write('          <option value="../decorationsafe/index.html">DecorationSafe</option>');
	document.write('          <option value="../personalaccident/index.html">Comprehensive Personal Accident Insurance</option>');
	document.write('          <option value="../gradea/index.html">Grade A Parental Care Series</option>');
	document.write('          <option value="../taipangolfer/index.html">Taipan GolferSafe</option>');
	document.write('          <option value="../golfer/index.html">GolferSafe</option>');
	document.write('          <option value="../petcare/index.html">Pet Care</option>');
	document.write('          <option value="../office/index.html">OfficeSafe Plus</option>');
	document.write('          <option value="../shopsafe/index.html">ShopSafe Plus</option>');
	document.write('          <option value="../fire/index.html">Fire Insurance</option>');
	document.write('          <option value="../motor/index.html">Motor Insurance</option>');
	document.write('          <option value="../employees/index.html">Employees&#39; Compensation Insurance</option>');
	document.write('        </select>');
}

/*home use*/
function applyonline()
{
	if($("#applyonline option:selected").val()!=00)
    document.write('<script>location="'+https_path+$("#applyonline option:selected").val()+'"</script>');
	else
	return false;
	
}


/*super series use*/
function superapply()
{
	if($("#super_series option:selected").val()!=00)
    document.write('<script>location="'+https_path+$("#super_series option:selected").val()+'"</script>');
	else
	{
		return false;
	}
	
}

function superdownloadtnc()
{
	if($("#super_series_dl option:selected").val()!=00)
    window.open($("#super_series_dl option:selected").val());
	else
	return false;
	
}

function superdownloadothers(x)
{
	if($("#super_series_dl option:selected").val()!=00)
    window.open(x);
	else
	{
		return false;
	}
	
}

/*Privileged Offer use*/
function pri_btn(x)
{
	document.write('<script>location="'+https_path+"/whatsnew/"+x+'"</script>');
	
}

/*other app buttons use*/
function app_btn(x)
{
	document.write('<script>location="'+https_path+"/onlineapp/"+x+'"</script>');
	
}

/*login use*/
function sitemap_btn(x)
{
	document.write('<script>location="'+https_path+"/login/"+x+'"</script>');
	
}



function switch_dl()
{
	if($("#step1 option:selected").val()!=00)
    {
		$('.all_table').hide();											   
		$('#'+$("#step1 option:selected").val()).show();
	}
	else
	return false;
	
}



function medical_dl(x)
{
	if(x==1)
	{
		if($("#m_1 option:selected").val()!=00)
		window.open($("#m_1 option:selected").val());
		else
		return false;
		
		
	}
	else if(x==2)
	{
		if($("#m_2 option:selected").val()!=00)
		window.open($("#m_2 option:selected").val());
		else
		return false;
	}
	else if(x==3)
	{
		if($("#m_3 option:selected").val()!=00)
		window.open($("#m_3 option:selected").val());
		else
		return false;
	}
	else if(x==4)
	{
		if($("#m_4 option:selected").val()!=00)
		window.open($("#m_4 option:selected").val());
		else
		return false;
	}
	
}

function travel_dl(x)
{
	if(x==1)
	{
		if($("#t_1 option:selected").val()!=00)
		window.open($("#t_1 option:selected").val());
		else
		return false;
		
		
	}
	else if(x==2)
	{
		if($("#t_2 option:selected").val()!=00)
		window.open($("#t_2 option:selected").val());
		else
		return false;
	}
	else if(x==3)
	{
		if($("#t_3 option:selected").val()!=00)
		window.open($("#t_3 option:selected").val());
		else
		return false;
	}
	else if(x==4)
	{
		if($("#t_4 option:selected").val()!=00)
		window.open($("#t_4 option:selected").val());
		else
		return false;
	}
	
}


function general_dl(x)
{
	if(x==1)
	{
		if($("#g_1 option:selected").val()!=00)
		window.open($("#g_1 option:selected").val());
		else
		return false;
		
		
	}
	else if(x==2)
	{
		if($("#g_2 option:selected").val()!=00)
		window.open($("#g_2 option:selected").val());
		else
		return false;
	}
	else if(x==3)
	{
		if($("#g_3 option:selected").val()!=00)
		window.open($("#g_3 option:selected").val());
		else
		return false;
	}
	else if(x==4)
	{
		if($("#g_4 option:selected").val()!=00)
		window.open($("#g_4 option:selected").val());
		else
		return false;
	}
	
}


function employee_dl(x)
{
	if(x==1)
	{
		if($("#e_1 option:selected").val()!=00)
		window.open($("#e_1 option:selected").val());
		else
		return false;
		
		
	}
	else if(x==2)
	{
		if($("#e_2 option:selected").val()!=00)
		window.open($("#e_2 option:selected").val());
		else
		return false;
	}
	else if(x==3)
	{
		if($("#e_3 option:selected").val()!=00)
		window.open($("#e_3 option:selected").val());
		else
		return false;
	}
	else if(x==4)
	{
		if($("#e_4 option:selected").val()!=00)
		window.open($("#e_4 option:selected").val());
		else
		return false;
	}
	
}

function health_dl(x)
{
	if(x==1)
	{
		if($("#h_1 option:selected").val()!=00)
		window.open($("#h_1 option:selected").val());
		else
		return false;
		
		
	}
	else if(x==2)
	{
		if($("#h_2 option:selected").val()!=00)
		window.open($("#h_2 option:selected").val());
		else
		return false;
	}
	else if(x==3)
	{
		if($("#h_3 option:selected").val()!=00)
		window.open($("#h_3 option:selected").val());
		else
		return false;
	}
	else if(x==4)
	{
		if($("#h_4 option:selected").val()!=00)
		window.open($("#h_4 option:selected").val());
		else
		return false;
	}
	
}

//video review start
(function($){

$.fn.bgiframe = ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent) ? function(s) {
    s = $.extend({
        top     : 'auto', // auto == .currentStyle.borderTopWidth
        left    : 'auto', // auto == .currentStyle.borderLeftWidth
        width   : 'auto', // auto == offsetWidth
        height  : 'auto', // auto == offsetHeight
        opacity : true,
        src     : 'javascript:false;'
    }, s);
    var html = '<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+
                   'style="display:block;position:absolute;z-index:-1;'+
                       (s.opacity !== false?'filter:Alpha(Opacity=\'0\');':'')+
                       'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+
                       'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+
                       'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+
                       'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+
                '"/>';
    return this.each(function() {
        if ( $(this).children('iframe.bgiframe').length === 0 )
            this.insertBefore( document.createElement(html), this.firstChild );
    });
} : function() { return this; });

// old alias
$.fn.bgIframe = $.fn.bgiframe;

function prop(n) {
    return n && n.constructor === Number ? n + 'px' : n;
}

})(jQuery);

$(function() {
	if($( "#dialog_video_layer" )[0])
	{
		$( "#dialog_video_layer" ).dialog({
			autoOpen: false,
			resizable: false,
			modal: "true",
			draggable: false,
			width: 673,
			height:480,
			bgiframe:true,
			closeText: '',
			open: function(event, ui) {
				if($.browser.msie&&$.browser.version == "6.0")
				{$(".ui-dialog").css("background","url(../img/whatsnew/bg_video_layer.jpg) left top no-repeat"); }
				else
				{$(".ui-dialog").css("background","url(../img/whatsnew/bg_video_layer.jpg) left top no-repeat"); }
			},
			close:function(event, ui) {
				$("#div_video_layer").html("");
			}
		});
	}
	
	
});

function open_video_layer(video_id)
{
	//ISP_path="http://bluecross.streamingpool.com/";
	ISP_path="http://video.bluecross.com.hk/video/";
	switch(video_id)
	{
		case '0':video_link=ISP_path+"All_In_One.flv";i_video_link=ISP_path+"All_In_One.mp4";break;
		case '1':video_link=ISP_path+"Medical_Insurance_Hospitalisation_Pre-registration.flv";i_video_link=ISP_path+"Medical_Insurance_Hospitalisation_Pre-registration.mp4";break;
		case '2':video_link=ISP_path+"Medical_Insurance_Company_medical_insurance.flv";i_video_link=ISP_path+"Medical_Insurance_Company_medical_insurance.mp4";break;
		case '3':video_link=ISP_path+"Job_Changer_Medical_Insurance.flv";i_video_link=ISP_path+"Job_Changer_Medical_Insurance.mp4";break;
		case '4':video_link=ISP_path+"Travel_Insurance_Enrol_after_committed_to_travel_package.flv";i_video_link=ISP_path+"Travel_Insurance_Enrol_after_committed_to_travel_package.mp4";break;
		case '5':video_link=ISP_path+"Travel_Insurance_Follow-up_medical_expenses.flv";i_video_link=ISP_path+"Travel_Insurance_Follow-up_medical_expenses.mp4";break;
		case '6':video_link=ISP_path+"Household_Insurance.flv";i_video_link=ISP_path+"Household_Insurance.mp4";break;
		case '7':video_link=ISP_path+"Maid_Insurance.flv";i_video_link=ISP_path+"Maid_Insurance.mp4";break;
		case '8':video_link=ISP_path+"Pet_Insurance.flv";i_video_link=ISP_path+"Pet_Insurance.mp4";break;
		case '9':video_link=ISP_path+"Student_PA.flv";i_video_link=ISP_path+"Student_PA.mp4";break;
		case '10':video_link=ISP_path+"Decoration_Insurance.flv";i_video_link=ISP_path+"Decoration_Insurance.mp4";break;
		default:break;
		
	}
	
	$("#div_video_title").html($("#video_title"+video_id).html());
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/iPad/i))) 
	{  
		$("#div_video_layer").html('<video width="640" height="383" id="i_video" autoplay controls><source src="'+ i_video_link +'" type="video/mp4" /></video>');
	
	}
	else
    {
		$("#div_video_layer").html('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="383"><param name="movie" value="../img/whatsnew/videoPlayer.swf" /><PARAM NAME=quality value=high><PARAM NAME=wmode value=transparent><param name="allowFullScreen" value="true" /><param name="FlashVars" value="link='+video_link+'" /><embed src="../img/whatsnew/videoPlayer.swf" FlashVars="link='+video_link+'" wmode="transparent" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="640" height="383"></embed></object>');
	}
	$( "#dialog_video_layer" ).dialog( "open" );
	
}

function open_fbvideo_layer(video_id)
{
	$("#div_video_title").html($("#video_title"+video_id).html());
	$("#div_video_layer").html('<object width="640" height="383"><param name="movie" value="http://www.youtube.com/v/QeHnqto-ThY?version=3&amp;hl=zh_CN&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/QeHnqto-ThY?version=3&amp;hl=zh_CN&amp;rel=0" type="application/x-shockwave-flash" width="640" height="383" allowscriptaccess="always" allowfullscreen="true"></embed></object>');
	$( "#dialog_video_layer" ).dialog( "open" );
	
}

function video_share()
{
	sl=document.URL;
	st="";
	sm="";
	window.open("http://www.facebook.com/share.php?u="+encodeURIComponent(sl)+"&t="+encodeURIComponent(sm));
}

function video_mail()
{
	ml=document.URL;
	mt="Smart Tips by Mr. & Mrs. SMART";
	mm='10 tips for insurance enrolment and let you have the tricks for 8 types of insurance. Be a "Smart Insured"!';
	window.open("mailto:?subject="+encodeURIComponent(mt)+"&body="+encodeURIComponent(mm+" "+ml));
}
//video review end

// WebTrends SmartSource Data Collector Tag
// Version: 9.4.0     
// Tag Builder Version: 3.2
// Created: 8/29/2011 4:28:10 AM

function WebTrends(){
	var that=this;
	// begin: user modifiable
	this.dcsid="dcsgodonahry1v8h27niuiakz_7r4u";
	this.domain="sdc.inetasia.com";
	this.timezone=8;
	this.fpcdom=".bluecross.com.hk";
	this.onsitedoms="";
	this.downloadtypes="xls,doc,pdf,txt,csv,zip,docx,xlsx";
	this.navigationtag="div,table";
	//this.trackevents=true;
	this.trackevents=false;
	this.enabled=true;
	this.i18n=true;
	this.fpc="WT_FPC";
	this.paidsearchparams="gclid";
	this.splitvalue="";
	this.preserve=true;
	// end: user modifiable
	this.DCS={};
	this.WT={};
	this.DCSext={};
	this.images=[];
	this.index=0;
	this.exre=(function(){return(window.RegExp?new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"):"");})();
	this.re=(function(){return(window.RegExp?(that.i18n?{"%25":/\%/g,"%26":/\&/g}:{"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}):"");})();
}
WebTrends.prototype.dcsGetId=function(){
	if (this.enabled&&(document.cookie.indexOf(this.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){
		document.write("<scr"+"ipt type='text/javascript' src='"+"http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+this.domain+"/"+this.dcsid+"/wtid.js"+"'><\/scr"+"ipt>");
	}
}
WebTrends.prototype.dcsGetCookie=function(name){
	var cookies=document.cookie.split("; ");
	var cmatch=[];
	var idx=0;
	var i=0;
	var namelen=name.length;
	var clen=cookies.length;
	for (i=0;i<clen;i++){
		var c=cookies[i];
		if ((c.substring(0,namelen+1))==(name+"=")){
			cmatch[idx++]=c;
		}
	}
	var cmatchCount=cmatch.length;
	if (cmatchCount>0){
		idx=0;
		if ((cmatchCount>1)&&(name==this.fpc)){
			var dLatest=new Date(0);
			for (i=0;i<cmatchCount;i++){
				var lv=parseInt(this.dcsGetCrumb(cmatch[i],"lv"));
				var dLst=new Date(lv);
				if (dLst>dLatest){
					dLatest.setTime(dLst.getTime());
					idx=i;
				}
			}
		}
		return unescape(cmatch[idx].substring(namelen+1));
	}
	else{
		return null;
	}
}
WebTrends.prototype.dcsGetCrumb=function(cval,crumb,sep){
	var aCookie=cval.split(sep||":");
	for (var i=0;i<aCookie.length;i++){
		var aCrumb=aCookie[i].split("=");
		if (crumb==aCrumb[0]){
			return aCrumb[1];
		}
	}
	return null;
}
WebTrends.prototype.dcsGetIdCrumb=function(cval,crumb){
	var id=cval.substring(0,cval.indexOf(":lv="));
	var aCrumb=id.split("=");
	for (var i=0;i<aCrumb.length;i++){
		if (crumb==aCrumb[0]){
			return aCrumb[1];
		}
	}
	return null;
}
WebTrends.prototype.dcsIsFpcSet=function(name,id,lv,ss){
	var c=this.dcsGetCookie(name);
	if (c){
		return ((id==this.dcsGetIdCrumb(c,"id"))&&(lv==this.dcsGetCrumb(c,"lv"))&&(ss==this.dcsGetCrumb(c,"ss")))?0:3;
	}
	return 2;
}
WebTrends.prototype.dcsFPC=function(){
	if (document.cookie.indexOf("WTLOPTOUT=")!=-1){
		return;
	}
	var WT=this.WT;
	var name=this.fpc;
	var dCur=new Date();
	var adj=(dCur.getTimezoneOffset()*60000)+(this.timezone*3600000);
	dCur.setTime(dCur.getTime()+adj);
	var dExp=new Date(dCur.getTime()+315360000000);
	var dSes=new Date(dCur.getTime());
	WT.co_f=WT.vtid=WT.vtvs=WT.vt_f=WT.vt_f_a=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";
	if (document.cookie.indexOf(name+"=")==-1){
		if ((typeof(gWtId)!="undefined")&&(gWtId!="")){
			WT.co_f=gWtId;
		}
		else if ((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){
			WT.co_f=gTempWtId;
			WT.vt_f="1";
		}
		else{
			WT.co_f="2";
			var curt=dCur.getTime().toString();
			for (var i=2;i<=(32-curt.length);i++){
				WT.co_f+=Math.floor(Math.random()*16.0).toString(16);
			}
			WT.co_f+=curt;
			WT.vt_f="1";
		}
		if (typeof(gWtAccountRollup)=="undefined"){
			WT.vt_f_a="1";
		}
		WT.vt_f_s=WT.vt_f_d="1";
		WT.vt_f_tlh=WT.vt_f_tlv="0";
	}
	else{
		var c=this.dcsGetCookie(name);
		var id=this.dcsGetIdCrumb(c,"id");
		var lv=parseInt(this.dcsGetCrumb(c,"lv"));
		var ss=parseInt(this.dcsGetCrumb(c,"ss"));
		if ((id==null)||(id=="null")||isNaN(lv)||isNaN(ss)){
			return;
		}
		WT.co_f=id;
		var dLst=new Date(lv);
		WT.vt_f_tlh=Math.floor((dLst.getTime()-adj)/1000);
		dSes.setTime(ss);
		if ((dCur.getTime()>(dLst.getTime()+1800000))||(dCur.getTime()>(dSes.getTime()+28800000))){
			WT.vt_f_tlv=Math.floor((dSes.getTime()-adj)/1000);
			dSes.setTime(dCur.getTime());
			WT.vt_f_s="1";
		}
		if ((dCur.getDay()!=dLst.getDay())||(dCur.getMonth()!=dLst.getMonth())||(dCur.getYear()!=dLst.getYear())){
			WT.vt_f_d="1";
		}
	}
	WT.co_f=escape(WT.co_f);
	WT.vtid=(typeof(this.vtid)=="undefined")?WT.co_f:(this.vtid||"");
	WT.vtvs=(dSes.getTime()-adj).toString();
	var expiry="; expires="+dExp.toGMTString();
	var cur=dCur.getTime().toString();
	var ses=dSes.getTime().toString();
	document.cookie=name+"="+"id="+WT.co_f+":lv="+cur+":ss="+ses+expiry+"; path=/"+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));
	var rc=this.dcsIsFpcSet(name,WT.co_f,cur,ses);
	if (rc!=0){
		WT.co_f=WT.vtvs=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";
		if (typeof(this.vtid)=="undefined"){
			WT.vtid="";
		}
		WT.vt_f=WT.vt_f_a=rc;
    }
}
// Code section for Enable SmartView Transition Page tracking
WebTrends.prototype.dcsTP = function() {
    if (document.cookie.indexOf("WTLOPTOUT=") != -1) {
        return;
    }
    var name = "WT_DC";
    var expiry = "; expires=Thu, 31-Dec-2020 08:00:00 GMT";
    var pth = "; path=/";
    var domain = "";
    if (document.cookie.indexOf(name + "=tsp=1") != -1) {
        this.WT.ttp = "1";
    }
    if (this.dcsGetMeta("SmartView_Page") == "1") {
        this.WT.tsp = "1";
        document.cookie = name + "=tsp=1" + expiry + pth + domain;
    }
    else {
        document.cookie = name + "=; expires=Sun, 1-Jan-1995 00:00:00 GMT;" + pth + domain;
    }
}
WebTrends.prototype.dcsGetMeta = function(name) {
    var elems;
    if (document.documentElement) {
        elems = document.getElementsByTagName("meta");
    }
    else if (document.all) {
        elems = document.all.tags("meta");
    }
    if (typeof (elems) != "undefined") {
        for (var i = 1; i <= elems.length; i++) {
            var meta = elems.item(i - 1);
            if (meta.name && (meta.name.indexOf(name) == 0)) {
                return meta.content;
                break;
            }
        }
    }
    return null;
}
WebTrends.prototype.dcsIsOnsite=function(host){
	if (host.length>0){
	    host=host.toLowerCase();
	    if (host==window.location.hostname.toLowerCase()){
		    return true;
	    }
	    if (typeof(this.onsitedoms.test)=="function"){
		    return this.onsitedoms.test(host);
	    }
	    else if (this.onsitedoms.length>0){
		    var doms=this.dcsSplit(this.onsitedoms);
		    var len=doms.length;
		    for (var i=0;i<len;i++){
			    if (host==doms[i]){
			        return true;
			    }
		    }
	    }
	}
	return false;
}
WebTrends.prototype.dcsTypeMatch=function(pth, typelist){
	var type=pth.toLowerCase().substring(pth.lastIndexOf(".")+1,pth.length);
	var types=this.dcsSplit(typelist);
	var tlen=types.length;	
	for (var i=0;i<tlen;i++){
		if (type==types[i]){
			return true;
		}
	}
	return false;
}
WebTrends.prototype.dcsEvt=function(evt,tag){
	var e=evt.target||evt.srcElement;
	while (e&&e.tagName&&(e.tagName.toLowerCase()!=tag.toLowerCase())){
		e=e.parentElement||e.parentNode;
	}
	return e;
}
WebTrends.prototype.dcsNavigation=function(evt){
	var id="";
	var cname="";
	var elems=this.dcsSplit(this.navigationtag);
	var elen=elems.length;	
	var i,e,elem;
	for (i=0;i<elen;i++){
		elem=elems[i];
		if (elem.length){
			e=this.dcsEvt(evt,elem);
			id=(e.getAttribute&&e.getAttribute("id"))?e.getAttribute("id"):"";
			cname=e.className||"";
			if (id.length||cname.length){
				break;
			}
		}
	}
	return id.length?id:cname;
}
WebTrends.prototype.dcsBind=function(event,func){
	if ((typeof(func)=="function")&&document.body){
		if (document.body.addEventListener){
			document.body.addEventListener(event, func.wtbind(this), true);
		}
		else if(document.body.attachEvent){
			document.body.attachEvent("on"+event, func.wtbind(this));
		}
	}
}
WebTrends.prototype.dcsET=function(){
	var e=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";
	this.dcsBind(e,this.dcsDownload);
	this.dcsBind("contextmenu",this.dcsRightClick);
}
WebTrends.prototype.dcsMultiTrack=function(){
	var args=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;
	if (args.length%2==0){
	    this.dcsSaveProps(args);
		this.dcsSetProps(args);
		var dCurrent=new Date();
		this.DCS.dcsdat=dCurrent.getTime();
		this.dcsFPC();
		this.dcsTag();
		this.dcsRestoreProps();
	}
}

WebTrends.prototype.dcsCleanUp=function(){
	this.DCS={};
	this.WT={};
	this.DCSext={};
	if (arguments.length%2==0){
		this.dcsSetProps(arguments);
	}
}
WebTrends.prototype.dcsSetProps=function(args){
	for (var i=0;i<args.length;i+=2){
		if (args[i].indexOf('WT.')==0){
			this.WT[args[i].substring(3)]=args[i+1];
		}
		else if (args[i].indexOf('DCS.')==0){
			this.DCS[args[i].substring(4)]=args[i+1];
		}
		else if (args[i].indexOf('DCSext.')==0){
			this.DCSext[args[i].substring(7)]=args[i+1];
		}
	}
}
WebTrends.prototype.dcsSaveProps=function(args){
	var i,x,key,param;
	if (this.preserve){
		this.args=[];
		for (i=0,x=0;i<args.length;i+=2){
			param=args[i];
			if (param.indexOf('WT.')==0){
				key=param.substring(3);
				this.args[x]=param;
				this.args[x+1]=this.WT[key]||"";
				x+=2;
			}
			else if (param.indexOf('DCS.')==0){
				key=param.substring(4);
				this.args[x]=param;
				this.args[x+1]=this.DCS[key]||"";
				x+=2;
			}
			else if (param.indexOf('DCSext.')==0){
				key=param.substring(7);
				this.args[x]=param;
				this.args[x+1]=this.DCSext[key]||"";
				x+=2;
			}
		}
	}
}
WebTrends.prototype.dcsRestoreProps=function(){
	if (this.preserve){
		this.dcsSetProps(this.args);
		this.args=[];
	}
}
WebTrends.prototype.dcsSplit=function(list){
	var items=list.toLowerCase().split(",");
	var len=items.length;
	for (var i=0;i<len;i++){
		items[i]=items[i].replace(/^\s*/,"").replace(/\s*$/,"");
	}
	return items;
}
// Code section for Track clicks to download links.
WebTrends.prototype.dcsDownload=function(evt){
	evt=evt||(window.event||"");
	if (evt&&((typeof(evt.which)!="number")||(evt.which==1))){
		var e=this.dcsEvt(evt,"A");
		if (e.href){
		    var hn=e.hostname?(e.hostname.split(":")[0]):"";
		    if (this.dcsIsOnsite(hn)&&this.dcsTypeMatch(e.pathname,this.downloadtypes)){
		        var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"";
		        var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
		        var ttl="";
		        var text=document.all?e.innerText:e.text;
		        var img=this.dcsEvt(evt,"IMG");
		        if (img.alt){
			        ttl=img.alt;
		        }
		        else if (text){
			        ttl=text;
		        }
		        else if (e.innerHTML){
			        ttl=e.innerHTML;
		        }
		        this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",e.search||"","WT.ti","Download:"+ttl,"WT.dl","20","WT.nv",this.dcsNavigation(evt));
		    }
		}
	}
}
// Code section for Track right clicks to download links.
WebTrends.prototype.dcsRightClick=function(evt){
	evt=evt||(window.event||"");
	if (evt){
		var btn=evt.which||evt.button;
		if ((btn!=1)||(navigator.userAgent.indexOf("Safari")!=-1)){
			var e=this.dcsEvt(evt,"A");
			if ((typeof(e.href)!="undefined")&&e.href){
				if ((typeof(e.protocol)!="undefined")&&e.protocol&&(e.protocol.indexOf("http")!=-1)){
					if ((typeof(e.pathname)!="undefined")&&this.dcsTypeMatch(e.pathname,this.downloadtypes)){
						var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
						var hn=e.hostname?(e.hostname.split(":")[0]):"";
						this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry","","WT.ti","RightClick:"+pth,"WT.dl","25");
					}
				}
			}
		}
	}
}
WebTrends.prototype.dcsAdv=function(){
	if (this.trackevents&&(typeof(this.dcsET)=="function")){
		if (window.addEventListener){
			window.addEventListener("load",this.dcsET.wtbind(this),false);
		}
		else if (window.attachEvent){
			window.attachEvent("onload",this.dcsET.wtbind(this));
		}
	}
	this.dcsFPC();
	this.dcsTP();
}
WebTrends.prototype.dcsVar=function(){
	var dCurrent=new Date();
	var WT=this.WT;
	var DCS=this.DCS;
	WT.tz=parseInt(dCurrent.getTimezoneOffset()/60*-1)||"0";
	WT.bh=dCurrent.getHours()||"0";
	WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
	if (typeof(screen)=="object"){
		WT.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;
		WT.sr=screen.width+"x"+screen.height;
	}
	if (typeof(navigator.javaEnabled())=="boolean"){
		WT.jo=navigator.javaEnabled()?"Yes":"No";
	}
	if (document.title){
		if (window.RegExp){
			var tire=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");
			WT.ti=document.title.replace(tire,"");
		}
		else{
			WT.ti=document.title;
		}
	}
	WT.js="Yes";
	WT.jv=(function(){
		var agt=navigator.userAgent.toLowerCase();
		var major=parseInt(navigator.appVersion);
		var mac=(agt.indexOf("mac")!=-1);
		var ff=(agt.indexOf("firefox")!=-1);
		var ff0=(agt.indexOf("firefox/0.")!=-1);
		var ff10=(agt.indexOf("firefox/1.0")!=-1);
		var ff15=(agt.indexOf("firefox/1.5")!=-1);
		var ff20=(agt.indexOf("firefox/2.0")!=-1);
		var ff3up=(ff&&!ff0&&!ff10&!ff15&!ff20);
		var nn=(!ff&&(agt.indexOf("mozilla")!=-1)&&(agt.indexOf("compatible")==-1));
		var nn4=(nn&&(major==4));
		var nn6up=(nn&&(major>=5));
		var ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));
		var ie4=(ie&&(major==4)&&(agt.indexOf("msie 4")!=-1));
		var ie5up=(ie&&!ie4);
		var op=(agt.indexOf("opera")!=-1);
		var op5=(agt.indexOf("opera 5")!=-1||agt.indexOf("opera/5")!=-1);
		var op6=(agt.indexOf("opera 6")!=-1||agt.indexOf("opera/6")!=-1);
		var op7up=(op&&!op5&&!op6);
		var jv="1.1";
		if (ff3up){
			jv="1.8";
		}
		else if (ff20){
			jv="1.7";
		}
		else if (ff15){
			jv="1.6";
		}
		else if (ff0||ff10||nn6up||op7up){
			jv="1.5";
		}
		else if ((mac&&ie5up)||op6){
			jv="1.4";
		}
		else if (ie5up||nn4||op5){
			jv="1.3";
		}
		else if (ie4){
			jv="1.2";
		}
		return jv;
	})();
	WT.ct="unknown";
	if (document.body&&document.body.addBehavior){
		try{
			document.body.addBehavior("#default#clientCaps");
			WT.ct=document.body.connectionType||"unknown";
			document.body.addBehavior("#default#homePage");
			WT.hp=document.body.isHomePage(location.href)?"1":"0";
		}
		catch(e){
		}
	}
	if (document.all){
		WT.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown";
	}
	else{
		WT.bs=window.innerWidth+"x"+window.innerHeight;
	}
	WT.fv=(function(){
		var i,flash;
		if (window.ActiveXObject){
			for(i=15;i>0;i--){
				try{
					flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
					return i+".0";
				}
				catch(e){
				}
			}
		}
		else if (navigator.plugins&&navigator.plugins.length){
			for (i=0;i<navigator.plugins.length;i++){
				if (navigator.plugins[i].name.indexOf('Shockwave Flash')!=-1){
					return navigator.plugins[i].description.split(" ")[2];
				}
			}
		}
		return "Not enabled";
	})();
	WT.slv=(function(){
		var slv="Not enabled";
		try{     
			if (navigator.userAgent.indexOf('MSIE')!=-1){
				var sli = new ActiveXObject('AgControl.AgControl');
				if (sli){
					slv="Unknown";
				}
			}
			else if (navigator.plugins["Silverlight Plug-In"]){
				slv="Unknown";
			}
		}
		catch(e){
		}
		if (slv!="Not enabled"){
			var i,m,M,F;
			if ((typeof(Silverlight)=="object")&&(typeof(Silverlight.isInstalled)=="function")){
				for(i=9;i>0;i--){
					M=i;
					if (Silverlight.isInstalled(M+".0")){
							break;
					}
					if (slv==M){
						break;
					}
				}
				for (m=9;m>=0;m--){
					F=M+"."+m;
					if (Silverlight.isInstalled(F)){
						slv=F;
						break;
					}
					if (slv==F){
						break;
					}
				}
			}
		}
		return slv;
	})();
	if (this.i18n){
		if (typeof(document.defaultCharset)=="string"){
			WT.le=document.defaultCharset;
		} 
		else if (typeof(document.characterSet)=="string"){
			WT.le=document.characterSet;
		}
		else{
			WT.le="unknown";
		}
	}
	WT.tv="9.4.0";
	WT.sp=this.splitvalue;
	WT.dl="0";
	WT.ssl=(window.location.protocol.indexOf('https:')==0)?"1":"0";
	DCS.dcsdat=dCurrent.getTime();
	DCS.dcssip=window.location.hostname;
	DCS.dcsuri=window.location.pathname;
	WT.es=DCS.dcssip+DCS.dcsuri;
	if (window.location.search){
		DCS.dcsqry=window.location.search;
	}
	if (DCS.dcsqry){
		var dcsqry=DCS.dcsqry.toLowerCase();
		var params=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];
		for (var i=0;i<params.length;i++){
			if (dcsqry.indexOf(params[i]+"=")!=-1){
				WT.srch="1";
				break;
			}
		}
	}
	if ((window.document.referrer!="")&&(window.document.referrer!="-")){
		if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){
			DCS.dcsref=window.document.referrer;
		}
	}
}
WebTrends.prototype.dcsEscape=function(S, REL){
	if (REL!=""){
		S=S.toString();
		for (var R in REL){
 			if (REL[R] instanceof RegExp){
				S=S.replace(REL[R],R);
 			}
		}
		return S;
	}
	else{
		return escape(S);
	}
}
WebTrends.prototype.dcsA=function(N,V){
	if (this.i18n&&(this.exre!="")&&!this.exre.test(N)){
		if (N=="dcsqry"){
			var newV="";
			var params=V.substring(1).split("&");
			for (var i=0;i<params.length;i++){
				var pair=params[i];
				var pos=pair.indexOf("=");
				if (pos!=-1){
					var key=pair.substring(0,pos);
					var val=pair.substring(pos+1);
					if (i!=0){
						newV+="&";
					}
					newV+=key+"="+this.dcsEncode(val);
				}
			}
			V=V.substring(0,1)+newV;
		}
		else{
			V=this.dcsEncode(V);
		}
	}
	return "&"+N+"="+this.dcsEscape(V, this.re);
}
WebTrends.prototype.dcsEncode=function(S){
	return (typeof(encodeURIComponent)=="function")?encodeURIComponent(S):escape(S);
}
WebTrends.prototype.dcsCreateImage=function(dcsSrc){
	if (document.images){
		this.images[this.index]=new Image();
		this.images[this.index].src=dcsSrc;
		this.index++;
	}
}
WebTrends.prototype.dcsMeta=function(){
	var elems;
	if (document.documentElement){
		elems=document.getElementsByTagName("meta");
	}
	else if (document.all){
		elems=document.all.tags("meta");
	}
	if (typeof(elems)!="undefined"){
		var length=elems.length;
		for (var i=0;i<length;i++){
			var name=elems.item(i).name;
			var content=elems.item(i).content;
			var equiv=elems.item(i).httpEquiv;
			if (name.length>0){
				if (name.toUpperCase().indexOf("WT.")==0){
					this.WT[name.substring(3)]=content;
				}
				else if (name.toUpperCase().indexOf("DCSEXT.")==0){
					this.DCSext[name.substring(7)]=content;
				}
				else if (name.toUpperCase().indexOf("DCS.")==0){
					this.DCS[name.substring(4)]=content;
				}
			}
		}
	}
}
WebTrends.prototype.dcsTag=function(){
	if (document.cookie.indexOf("WTLOPTOUT=")!=-1){
		return;
	}
	var WT=this.WT;
	var DCS=this.DCS;
	var DCSext=this.DCSext;
	var i18n=this.i18n;
	var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+this.domain+(this.dcsid==""?'':'/'+this.dcsid)+"/dcs.gif?";
	if (i18n){
		WT.dep="";
	}
	for (var N in DCS){
 		if (DCS[N]&&(typeof DCS[N]!="function")){
			P+=this.dcsA(N,DCS[N]);
		}
	}
	for (N in WT){
		if (WT[N]&&(typeof WT[N]!="function")){
			P+=this.dcsA("WT."+N,WT[N]);
		}
	}
	for (N in DCSext){
		if (DCSext[N]&&(typeof DCSext[N]!="function")){
			if (i18n){
				WT.dep=(WT.dep.length==0)?N:(WT.dep+";"+N);
			}
			P+=this.dcsA(N,DCSext[N]);
		}
	}
	if (i18n&&(WT.dep.length>0)){
		P+=this.dcsA("WT.dep",WT.dep);
	}
	if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){
		P=P.substring(0,2040)+"&WT.tu=1";
	}
	this.dcsCreateImage(P);
	this.WT.ad="";
}
WebTrends.prototype.dcsDebug=function(){
	var t=this;
	var i=t.images[0].src;
	var q=i.indexOf("?");
	var r=i.substring(0,q).split("/");
	var m="<b>Protocol</b><br><code>"+r[0]+"<br></code>";
	m+="<b>Domain</b><br><code>"+r[2]+"<br></code>";
	m+="<b>Path</b><br><code>/"+r[3]+"/"+r[4]+"<br></code>";
	m+="<b>Query Params</b><code>"+i.substring(q+1).replace(/\&/g,"<br>")+"</code>";
	m+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";
	if (t.w&&!t.w.closed){
		t.w.close();
	}
	t.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");
	t.w.document.write(m);
	t.w.focus();
}
WebTrends.prototype.dcsCollect=function(){
    if (this.enabled){
        this.dcsVar();
        this.dcsMeta();
        this.dcsAdv();
        if (typeof(this.dcsCustom)=="function"){
			this.dcsCustom();
        }
        this.dcsTag();
    }
}

function dcsMultiTrack(){
	if (typeof(_tag)!="undefined"){
		return(_tag.dcsMultiTrack());
	}
}

function dcsDebug(){
	if (typeof(_tag)!="undefined"){
		return(_tag.dcsDebug());
	}
}

Function.prototype.wtbind = function(obj){
	var method=this;
	var temp=function(){
		return method.apply(obj,arguments);
	};
	return temp;
}

// Added by Alex Lam 2012-01-17
var http_path_eng_root = "http://www.bluecross.com.hk";

var https_path_eng_root = "https://www.bluecross.com.hk";

//var UAT_online_path = "/bluecross/eng";
var Prod_online_path = "/eng";
var online_path = Prod_online_path;

function seturl()
{
		var sBXURL = https_path_eng_root + online_path + "/onlineapp/poffer_1.asp"
	 // get the current URL
	 var url = window.location.toString();
	 //get the parameters
	 url.match(/\?(.+)$/);
	 var params = RegExp.$1;
	 // split up the query string and store in an
	 // associative array
	 var params = params.split("&");
	 var queryStringList = {};
	 
	 for(var i=0;i<params.length;i++)
	 {
	 	var tmp = params[i].split("=");
	 	queryStringList[tmp[0]] = unescape(tmp[1]);
	 }
	 // build URL
	 url="";
	 for(var i in queryStringList)
	 {
	 	if (url=="")
	 	{
			url += "?"+i+"="+queryStringList[i];
		}
		else
	 	{
			url += "&"+i+"="+queryStringList[i];
		}
		if (url=="&=undefined")
		{
			url="";
		}
	 }
	 window.frames['bxprivilegedurl'].location=sBXURL+url;
}

function CreatePrivilegedOfferIframe()
{
	document.write('<iframe name="bxprivilegedurl" src="' + https_path_eng_root + online_path + '/blank.htm" style="width:100%; height:100%; border:none;" frameborder="no" border="0" marginwidth="0" marginheight="0"></iframe>');
}

function CreateContactUsIframe()
{
	document.write('<iframe name="contactusformurl" src="' + https_path_eng_root + online_path + '/blank.htm" style="width:100%; height:100%; border:none;" frameborder="no" border="0" marginwidth="0" marginheight="0"></iframe>');
}

function CreateIframe(path)
{
	document.write('<iframe src="' + online_path + path + '" style="width:100%; height:100%; border:none;" frameborder="no" border="0" marginwidth="0" marginheight="0"></iframe>');
}

//End Webtrends
