var a8493= new Array(105,110,102,111,64,99,108,105,99,105,110,115,117,114,97,110,99,101,46,99,111,109);var p='';for (i=0;i<a8493.length;i++) p+=String.fromCharCode(a8493[i]);

var TabImg = new Array();function preloadImg() {var pic=preloadImg.arguments;for (var i=0;i<pic.length;i++){TabImg[i]=new Image;TabImg[i].src="http://www.canadian-life-insurance.ca/images/"+pic[i]+".gif";}};
function On(img) {document.images[img].src="http://www.canadian-life-insurance.ca/images/"+img+"-on.gif";}function Out(img) {document.images[img].src="http://www.canadian-life-insurance.ca/images/"+img+".gif";}
function On2(img) {what=img.substring(0,img.length-1);document.images[img].src="images/"+what+"-on.gif";}function Out2(img){what=img.substring(0,img.length-1);document.images[img].src="images/"+what+".gif";}

var message="Right clicks disabled on this site.";function clickIE() {if (document.all) {alert(message);return false;}}function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)){if (e.which==2||e.which==3) {alert(message);return false;}}}if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}document.oncontextmenu=new Function("return false");
function blockError(){return true;}window.onerror = blockError;

function caon() {On('canadian-flag');Out('us-flag');Out('uk-flag');oflag(997)}
function uson() {On('us-flag');Out('canadian-flag');Out('uk-flag');oflag(998)}
function ukon() {On('uk-flag');Out('canadian-flag');Out('us-flag');oflag(999)}
function caoff() {On('canadian-flag');Out('us-flag');Out('uk-flag');m()}
function usoff() {On('us-flag');Out('canadian-flag');Out('uk-flag');m()}
function ukoff() {On('uk-flag');Out('canadian-flag');Out('us-flag');m()}
function travelins(typ){document.write('<frameset rows="100%,*">');document.write('<frame src="http://www.travelinsurancecenter.com/eng/'+typ+'">');document.write('<frame src="about:blank" NORESIZE>');document.write('<\/frameset>')}

ns4 = (document.layers) ? true:false;ie4 = (document.all) ? true:false;ng5 = (document.getElementById) ? true:false;var def='men1';
function hide(n){if (ng5) {document.getElementById(n).style.visibility = "hidden"}else if (ns4) {document.n.visibility = "hide"}else if (ie4) {n.style.visibility ="hidden"}}
function show(n){if (ng5) {document.getElementById(n).style.visibility = "visible"}else if (ns4) {document.n.visibility = "show"}else if (ie4) {n.style.visibility ="visible"}}
function menuon(n,m){if (n=='can'){show('men1');hide('men2');hide('men3');On2('menucan'+m),Out2('menuus'+m),Out2('menuuk'+m)}else if (n=='us'){show('men2');hide('men1');hide('men3');On2('menuus'+m),Out2('menucan'+m),Out2('menuuk'+m)}else if (n=='uk'){hide('men1');show('men3');hide('men2');On2('menuuk'+m),Out2('menucan'+m),Out2('menuus'+m)}}
function menuoff(){hide('men1');hide('men2');hide('men3');show(def)}
function menuclick(n){if (n=='can'){def='men1';menuoff();show('men4');hide('men5');hide('men6');setTimeout("On('canadian-flag');Out('us-flag');Out('uk-flag')",1)}else if (n=='us'){def='men2';menuoff();show('men5');hide('men4');hide('men6');setTimeout("On('us-flag');Out('canadian-flag');Out('uk-flag')",1)}else if (n=='uk'){def='men3';menuoff();show('men6');hide('men4');hide('men5');setTimeout("On('uk-flag');Out('canadian-flag');Out('us-flag')",1)}m()}
function flagoff(){if (def=='men1'){deflag='canadian-flag'}else if (def=='men2'){deflag='us-flag'}else if (def=='men3'){deflag='uk-flag'}Out('canadian-flag');Out('us-flag');Out('uk-flag');On(deflag);m()}

var u= new Array();
u[100]="life-insurance";
u[11]="contact-us";
u[12]="quote";
u[13]="term-life-insurance";
u[14]="whole-life-insurance";
u[15]="universal-life-insurance";
u[16]="disability-insurance";
u[17]="critical-illness-insurance";
u[18]="long-term-care-insurance";
u[19]="quote-and-buy";
u[110]="health-insurance";
u[111]="term-life-insurance-terminology";
u[112]="whole-life-insurance-terminology";
u[113]="universal-life-insurance-terminology";
u[114]="disability-insurance-terminology";
u[115]="critical-illness-insurance-terminology";
u[116]="long-term-care-insurance-terminology";
u[118]="health-insurance-terminology";

u[200]="life-insurance-us";
u[20]="index-us";
u[21]="contact-us-us";
u[22]="quote-us";
u[23]="term-life-insurance-us";
u[24]="whole-life-insurance-us";
u[25]="universal-life-insurance-us";
u[26]="disability-insurance-us";
u[27]="long-term-care-insurance-us";
u[29]="term-life-insurance-us-terminology";
u[210]="whole-life-insurance-us-terminology";
u[211]="universal-life-insurance-us-terminology";
u[212]="disability-insurance-us-terminology";
u[213]="long-term-care-insurance-us-terminology";

u[300]="life-insurance-uk";
u[30]="index-uk";
u[31]="contact-us-uk";
u[32]="quote-uk";
u[33]="term-life-insurance-uk";
u[34]="flexible-whole-life-insurance";
u[35]="critical-illness-insurance-uk";
u[36]="income-protection-insurance";
u[38]="term-life-insurance-uk-terminology";
u[39]="flexible-whole-life-insurance-terminology";
u[310]="critical-illness-insurance-uk-terminology";
u[311]="income-protection-insurance-terminology";

u[41]="general-life-insurance-sites";
u[42]="term-insurance-sites";
u[43]="whole-life-insurance-sites";
u[44]="universal-life-insurance-sites";
u[45]="critical-illness-sites";
u[46]="disability-insurance-sites";
u[47]="long-term-care-sites";
u[48]="health-insurance-sites";
u[49]="travel-insurance-sites";
u[410]="auto-insurance-sites";
u[411]="other-insurance-sites";

u[980]="sitemap";
u[981]="suggested-insurance-websites";
u[997]="Click to go to the Canadian Version of this page";
u[998]="Click to go to the US version of this page";
u[999]="Click to go to the UK version of this page";
function go(n) {location.href="http://www.canadian-life-insurance.ca/"+u[n]+".htm"}
function o(n) {window.status="http://www.canadian-life-insurance.ca/"+u[n]+".htm"}
function oflag(n) {window.status=u[n]}
function m() {window.status=""}
function fFunc() {document.form1.submit()}

function loadappropriatepage()
{
	if (window.index){initalizetooltip();preloadImg("menuquote-on","quote-on","quote2-on","contact-on","contact2-on","home-on","home2-on","us-flag-on","uk-flag-on","menuus-on","menuuk-on","menuarrow","menub","menubl","menubl2","menubr","menubr2","menul","menur","menutl","menutl2","menutop","menutr","menutr2");}
	else if (window.typeofinsurance){initalizetooltip();preloadImg("quote-on","quote2-on","contact-on","contact2-on","home-on","home2-on","back-on","continue-on")}
	else {initalizetooltip();preloadImg("quote-on","quote2-on","contact-on","contact2-on","home-on","home2-on","us-flag-on","uk-flag-on","menuus-on","menuuk-on","menuarrow","menub","menubl","menubl2","menubr","menubr2","menul","menur","menutl","menutl2","menutop","menutr","menutr2");}
}

var arrowheadheight=20;
var ie=document.all;
var ns6=document.getElementById&&!document.all;
function getposOffset(what, offsettype){var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;var parentEl=what.offsetParent;while (parentEl!=null){totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}return totaloffset;}
function showhide(obj, e){dropmenuobj.style.top="-500px";if (e.type=="mouseover") obj.visibility="visible"}
function iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}
function displayballoontip(obj, e){if (window.event) event.cancelBubble=true;else if (e.stopPropagation) e.stopPropagation();if (typeof dropmenuobj!="undefined") dropmenuobj.style.visibility="hidden";clearhidemenu();dropmenuobj=document.getElementById(obj.getAttribute("rel"));dropmenposition=obj.getAttribute("pos");showhide(dropmenuobj.style, e);dropmenuobj.style.left=dropmenposition+"px";dropmenuobj.style.top=getposOffset(obj, "top")-40+"px";displaytiparrow()}
function displaytiparrow(){tiparrow=document.getElementById("arrowhead");tiparrow.src="images/arrowleft.gif";var ieshadowwidth=(dropmenuobj.filters && dropmenuobj.filters[0])? dropmenuobj.filters[0].Strength-1 : 0;tiparrow.style.left=parseInt(dropmenuobj.style.left)-arrowheadheight+1+"px";tiparrow.style.top=parseInt(dropmenuobj.style.top)+19+arrowheadheight+"px";tiparrow.style.visibility="visible"}
function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'; dropmenuobj.style.left=0; tiparrow.style.visibility='hidden'",250)}
function clearhidemenu(){if (typeof delayhide!="undefined") clearTimeout(delayhide)}
function reltoelement(linkobj){var relvalue=linkobj.getAttribute("rel");return (relvalue!=null && relvalue!="" && document.getElementById(relvalue)!=null && document.getElementById(relvalue).className=="tip")? true : false}
function initalizetooltip(){var all_links=document.getElementsByTagName("a");tiparrow=document.createElement("img");tiparrow.setAttribute("src", "images/arrowleft.gif");tiparrow.setAttribute("id", "arrowhead");document.body.appendChild(tiparrow);for (var i=0; i<all_links.length; i++){if (reltoelement(all_links[i])){all_links[i].onmouseover=function(e){var evtobj=window.event? window.event : e;displayballoontip(this, evtobj)};all_links[i].onmouseout=delayhidemenu}}}
if (window.addEventListener) window.addEventListener("load", loadappropriatepage, false);
else if (window.attachEvent) window.attachEvent("onload", loadappropriatepage);
else if (document.getElementById) window.onload=loadappropriatepage;

