// JavaScript Document// Windows onload for all browsersdocument.write('<script id="__init_script" defer="true" src="//[]"><\/script>');function registerInit(callback) {    /* for Mozilla */    if (document.addEventListener) {        document.addEventListener("DOMContentLoaded", callback, false);    }    /* for Internet Explorer */    if (document.getElementById) {        var deferScript = document.getElementById('__init_script');        if (deferScript) {            deferScript.onreadystatechange = function() {                if (this.readyState == 'complete') {                    callback();                }            };            /* check whether script has already completed */            deferScript.onreadystatechange();            /* clear reference to prevent leaks in IE */            deferScript = null;        }    }    /* for other browsers */    window.onload = callback;}function init() {    // quit if this function has already been called    if (arguments.callee.done) return;    // flag this function so we don't do the same thing twice    arguments.callee.done = true;    // do initialization here	//loadGoal();	};registerInit(init);// Load Goals function for Goal's sidebar in index.html, life.html, and point.html//function loadGoal(){	//	var goal = document.getElementById("goal");//	var goalsArr = new Array("Obtain the highest monetary value for policy owners",//							 "Assist with financial tools that will preserve and improve the quality of life",//							 "Conduct business in a professional, straightforward manner at all times",//							 "Employ a team of individuals who are competent and caring, adhering to the highest standards of excellence",//							 "Provide clear and comprehensive information so that you can make informed and educated decisions that fit individual circumstances",//							 "Remain current on all new relevant products and services designed to better serve Policy owners.",//							 "Remain sensitive to the needs and concerns of the clients",//							 "Operate efficiently, so as to provide the best service and bids",//							 "Put the interest of you and your clients first");//	var randGoal = Math.floor(Math.random()*goalsArr.length); //the range of randGoal is [0,7]	//	if(goal != null){//		goal.innerHTML = goalsArr[randGoal];//	}				//}// index.html Case Studies Pop-upfunction openWindow() {	location.href = "case.html";}function hideCase(caseID){	var y = caseID;	var x = document.getElementById(y);	var z = document.getElementById('caseImg');		x.style.display = "none";	z.src = "i/general/banner-1.jpg";}// Generic Macromedia code from Dreamweaverfunction MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_showHideLayers() { //v6.0  var i,p,v,obj,args=MM_showHideLayers.arguments;  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }    obj.visibility=v; }}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}/** * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * **SWFObject is the SWF embed script formarly known as FlashObject. The name was changed for *   legal reasons. */if(typeof deconcept == "undefined") var deconcept = new Object();if(typeof deconcept.util == "undefined") deconcept.util = new Object();if(typeof deconcept.SWFObjectUtil == "undefined") deconcept.SWFObjectUtil = new Object();deconcept.SWFObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, xiRedirectUrl, redirectUrl, detectKey){	if (!document.createElement || !document.getElementById) { return; }	this.DETECT_KEY = detectKey ? detectKey : 'detectflash';	this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);	this.params = new Object();	this.variables = new Object();	this.attributes = new Array();	if(swf) { this.setAttribute('swf', swf); }	if(id) { this.setAttribute('id', id); }	if(w) { this.setAttribute('width', w); }	if(h) { this.setAttribute('height', h); }	if(ver) { this.setAttribute('version', new deconcept.PlayerVersion(ver.toString().split("."))); }	this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute('version'), useExpressInstall);	if(c) { this.addParam('bgcolor', c); }	var q = quality ? quality : 'high';	this.addParam('quality', q);	this.setAttribute('useExpressInstall', useExpressInstall);	this.setAttribute('doExpressInstall', false);	var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;	this.setAttribute('xiRedirectUrl', xir);	this.setAttribute('redirectUrl', '');	if(redirectUrl) { this.setAttribute('redirectUrl', redirectUrl); }}deconcept.SWFObject.prototype = {	setAttribute: function(name, value){		this.attributes[name] = value;	},	getAttribute: function(name){		return this.attributes[name];	},	addParam: function(name, value){		this.params[name] = value;	},	getParams: function(){		return this.params;	},	addVariable: function(name, value){		this.variables[name] = value;	},	getVariable: function(name){		return this.variables[name];	},	getVariables: function(){		return this.variables;	},	getVariablePairs: function(){		var variablePairs = new Array();		var key;		var variables = this.getVariables();		for(key in variables){			variablePairs.push(key +"="+ variables[key]);		}		return variablePairs;	},	getSWFHTML: function() {		var swfNode = "";		if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture			if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "PlugIn");			swfNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';			swfNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';			var params = this.getParams();			 for(var key in params){ swfNode += [key] +'="'+ params[key] +'" '; }			var pairs = this.getVariablePairs().join("&");			 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"'; }			swfNode += '/>';		} else { // PC IE			if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "ActiveX");			swfNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';			swfNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';			var params = this.getParams();			for(var key in params) {			 swfNode += '<param name="'+ key +'" value="'+ params[key] +'" />';			}			var pairs = this.getVariablePairs().join("&");			if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}			swfNode += "</object>";		}		return swfNode;	},	write: function(elementId){		if(this.getAttribute('useExpressInstall')) {			// check to see if we need to do an express install			var expressInstallReqVer = new deconcept.PlayerVersion([6,0,65]);			if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {				this.setAttribute('doExpressInstall', true);				this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));				document.title = document.title.slice(0, 47) + " - Flash Player Installation";				this.addVariable("MMdoctitle", document.title);			}		}		if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){			var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;			n.innerHTML = this.getSWFHTML();			return true;		}else{			if(this.getAttribute('redirectUrl') != "") {				document.location.replace(this.getAttribute('redirectUrl'));			}		}		return false;	}}/* ---- detection functions ---- */deconcept.SWFObjectUtil.getPlayerVersion = function(reqVer, xiInstall){	var PlayerVersion = new deconcept.PlayerVersion([0,0,0]);	if(navigator.plugins && navigator.mimeTypes.length){		var x = navigator.plugins["Shockwave Flash"];		if(x && x.description) {			PlayerVersion = new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));		}	}else{		try{			var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");			for (var i=3; axo!=null; i++) {				axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);				PlayerVersion = new deconcept.PlayerVersion([i,0,0]);			}		}catch(e){}		if (reqVer && PlayerVersion.major > reqVer.major) return PlayerVersion; // version is ok, skip minor detection		// this only does the minor rev lookup if the user's major version 		// is not 6 or we are checking for a specific minor or revision number		// see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/		if (!reqVer || ((reqVer.minor != 0 || reqVer.rev != 0) && PlayerVersion.major == reqVer.major) || PlayerVersion.major != 6 || xiInstall) {			try{				PlayerVersion = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));			}catch(e){}		}	}	return PlayerVersion;}deconcept.PlayerVersion = function(arrVersion){	this.major = parseInt(arrVersion[0]) != null ? parseInt(arrVersion[0]) : 0;	this.minor = parseInt(arrVersion[1]) || 0;	this.rev = parseInt(arrVersion[2]) || 0;}deconcept.PlayerVersion.prototype.versionIsValid = function(fv){	if(this.major < fv.major) return false;	if(this.major > fv.major) return true;	if(this.minor < fv.minor) return false;	if(this.minor > fv.minor) return true;	if(this.rev < fv.rev) return false;	return true;}/* ---- get value of query string param ---- */deconcept.util = {	getRequestParameter: function(param){		var q = document.location.search || document.location.hash;		if(q){			var startIndex = q.indexOf(param +"=");			var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;			if (q.length > 1 && startIndex > -1) {				return q.substring(q.indexOf("=", startIndex)+1, endIndex);			}		}		return "";	}}/* add Array.push if needed (ie5) */if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}/* add some aliases for ease of use/backwards compatibility */var getQueryParamValue = deconcept.util.getRequestParameter;var FlashObject = deconcept.SWFObject; // for legacy supportvar SWFObject = deconcept.SWFObject;/** * SWFFormFix v1.0.0: SWF ExternalInterface() Form Fix - http://http://www.teratechnologies.net/stevekamerman/ * * SWFFormFix is (c) 2007 Steve Kamerman and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * Project sponsored by Tera Technologies - http://www.teratechnologies.net/ *  * Usage: * ------------------------------------------------------------ * There are two ways to use SWFFormFix, Auto and Manual mode. * To use either method you need to include this file in the  * HEAD section of your page like this: <script src="swfformfix.js" type="text/javascript"></script> *  * --> Auto Mode: * This will attempt to find every Flash Movie that you have on * the page and apply the fix to each of them.  To use auto mode * put the following code before the </body> tag. More specifically * it needs to be AFTER your last Flash object.<script type="text/javascript">// <![CDATA[	SWFFormFixAuto();// ]]></script> *  * --> Manual Mode: * This lets you fix just a single Flash object if you don't want * the auto mode to try to fix every Flash object on the page. * This mode is faster than the auto mode and may work better in * some situations.  To use manual mode put the following code * after the Flash object you want to fix, where "myFlashObject" * is the ID of the Flash Object:Example for normal EMBED style:<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="200" height="100" id="myFlashObject" align="middle"><param name="movie" value="myMovie.swf" /><param name="quality" value="high" /><embed src="myMovie.swf" quality="high" width="200" height="100" name="myFlashObject" type="application/x-shockwave-flash" /></object><script type="text/javascript">// <![CDATA[SWFFormFix("myMovieObjectName");// ]]></script>Example for SWFObject style:<div id="flashcontent" style="width:200px;height:100px;">This is replaced by the Flash movie.</div><script type="text/javascript">// <![CDATA[// Please note that the ID that you need to use for SWFFormFix() is the second argument in SWFObject().var so = new SWFObject("myMovie.swf", "myFlashObject","200", "100", "6.0.0", "#ffffff");so.addParam("quality", "high");so.write("flashcontent");SWFFormFix("myFlashObject");// ]]></script> *  * Changelog: * ------------------------------------------------------------ *  * v1.0.0 *   Added the SWFFormFixAuto() function, very well optimized and fast. *  * v0.2.0 *   Changed helper element from <input> element to hidden <div> element * * v0.1.0 *   Initial release. */ SWFFormFixAuto = function(){	if(navigator.appName.toLowerCase() != "microsoft internet explorer")return true;	var objects = document.getElementsByTagName("object");	if(objects.length == 0) return true;	for(i=0;i<objects.length;i++){		// here's all the objects on the page, now lets find the flash objects		if(objects[i].classid == "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"){			// this is a flash movie, apply the fix			window[objects[i].id] = objects[i];		}	}	var out = '';	return true;}SWFFormFix = function(swfname){	if(navigator.appName.toLowerCase() != "microsoft internet explorer")return false;	var testnodename = "SWFFormFixTESTER";	document.write('<div id="'+testnodename+'" onclick="SWFFormFixCallback(this,\''+swfname+'\');return false;" style="display:none">&nbsp;</div>');	document.getElementById(testnodename).onclick();}SWFFormFixCallback = function (obj,swfname){	var path = document;	var error = false;	var testnode = obj;	while(obj = obj.parentNode){		if(obj.nodeName.toLowerCase() == "form"){			if(obj.name != undefined && obj.name != null && obj.name.length > 0){				path = path.forms[obj.name];			}else{				alert("Error: one of your forms does not have a name!");				error = true;			}		}	}	testnode.parentNode.removeChild(testnode);	if(error) return false;	window[swfname]=path[swfname];	return true;}function newpopup(url) {	pop=window.open(url,'name','height=600,width=400,resizable=yes');	if (window.focus) {pop.focus()}	return false;}