if(!window.IBComet){if(!"f".trim){String.prototype.trim=function(){return(this.replace(/^[ \r\n\t\f\s]+/,"").replace(/[ \r\n\t\f\s]+$/,""))}}var thishost=self.location.hostname;var thiscookiedomain=thishost.substring(thishost.lastIndexOf(".",(thishost.length-5)),thishost.length);IBComet={setParticle:function(n,v,isSession){var sessionDurationMinutes=30;var forEver="Wed, 30-Dec-2037 00:00:00 GMT";var forSession=new Date(new Date().getTime()+(1000*60*sessionDurationMinutes)).toGMTString();document.cookie=n+"="+v+"; expires="+(!isSession?forEver:forSession)+"; path=/; domain="+thiscookiedomain+";";return v},getParticle:function(n){var ck=null;var cs=document.cookie.split("; ");for(var pc=0;!ck&&(strpair=cs[pc]);pc++){var pair=strpair.split("=");if(pair[0].trim()==n){ck=pair[1]}}return ck},getTrail:function(){var c="comettrail";var part=IBComet.getParticle(c);return part?part:IBComet.setParticle(c,(new Date().getTime().toString().substring(0,13)+Math.random().toString().substring(2,8)))},getNucleus:function(){var coil=document.getElementById("ref_ib_coid");return coil?coil.getAttribute("rel"):"-1"},getVisit:function(){var cvisit="_ibcv";var ccount="_ibcvc";var vid=IBComet.getParticle(cvisit);var vcount=IBComet.getParticle(ccount);if(!vcount){vcount=0}return vid?IBComet.setParticle(cvisit,vid,true):IBComet.setParticle(cvisit,IBComet.setParticle(ccount,parseInt(vcount)+1),true)},scape:function(s){return window.encodeURIComponent?encodeURIComponent(s):escape(s)},woosh:function(){if(arguments.callee.done){return }arguments.callee.done=true;var fields={coid:IBComet.scape(IBComet.getNucleus()),luuid:IBComet.scape(IBComet.getTrail()),u:IBComet.scape(self.location.href),r:IBComet.scape(document.referrer),ut:IBComet.scape(document.title),sid:IBComet.scape(IBComet.getVisit())};var shost=(location.href.indexOf("cometdev")==-1)?"comet.ibsrv.net":"cometdev.ibsrv.net:8080";var flyby="http://"+shost+"/woosh?cb="+(new Date().getTime());var trail="";for(k in fields){trail+="&"+k+"="+fields[k]}var ibcomet=new Image(1,1);ibcomet.alt="";ibcomet.src=flyby+trail}}}

if (typeof(IB) == 'undefined'){ var IB = {}; };
IB.BT = {};

IB.helpers = {};

IB.helpers.cwa = function(domObj, listOfAttributes){
	var obj = document.createElement(domObj); 
	for (attrib in listOfAttributes){							
		obj[attrib] = listOfAttributes[attrib];				
	}; 				
    return obj;
}; 
IB.helpers.ac = function(parentObj, childObj){
	return parentObj.appendChild(childObj);
}; 

IB.BT.ibTag = "ib_meta";
IB.BT.metaTags = [];
IB.BT.queryParams = [];
IB.BT.rawUrl = window.location.href;
IB.BT.queryString = window.location.search.substring(1);
IB.BT.title = document.title;
IB.BT.scripts = [];
IB.BT.javaEnabled = navigator.javaEnabled() || "unknown";
IB.BT.isSSL = (window.location.toString().indexOf('https://') != -1);

IB.BT.Init = function(){      
    var fixScript = "<\/script>";
    var b = window.document;
    var isSecure = IB.BT.isSSL;

    var rmvQ = function(str){       
        return str.toString().replace(/"/g,"");
    };
    
    var loadMetaData = function(metaTagName, metaTagValue){  
        var arrayLen = IB.BT.metaTags.length; 
        if (arrayLen > 0){
            for (var i=0; i < arrayLen; i++){            
                if (IB.BT.metaTags[i].tagName == metaTagName){
                    IB.BT.metaTags[i] = {tagName: metaTagName, tagContent: metaTagValue};                    
                    return;
                };
            };  
        };        
        IB.BT.metaTags[arrayLen] = {tagName: metaTagName, tagContent: metaTagValue};        
    };
    
    var pullMetaData = function(){
        var metas = document.getElementsByTagName('META');    
        if (metas.length != 0){         
          for (var i = 0; i < metas.length; i++){             
               var metaName = (metas[i].getAttribute('NAME')) ? metas[i].getAttribute('NAME') : ((metas[i].getAttribute('HTTP-EQUIV')) ? metas[i].getAttribute('HTTP-EQUIV') : null);
               var content = (metas[i].getAttribute('CONTENT')) ? metas[i].getAttribute('CONTENT') : "";               
               if (metaName){ loadMetaData(metaName, content); };                                             
          };                    
        };
    }(); 


    var pullIbMeta = function(){
       var tag = "";
       var metaTags = IB.BT.metaTags;
       for (var i=0; i < metaTags.length; i++){
            if (metaTags[i].tagName == IB.BT.ibTag){
                tag = metaTags[i].tagContent;
                break;
            };            
        };    
        return tag; 
    };
    
    var getHead = function() {
    	theHead = document.getElementsByTagName("head");
    	if (theHead && theHead[0]) return theHead[0];
    	else return null;
    };
    
       var addScript = function(data, framed, postProcessorFunction, testFunctionName, preProcessorFunction){        
        var obj = {
        		script: data,
        		isFramed: framed,
        		postProcessor: postProcessorFunction,
        		testFunc: testFunctionName,
        		preProcessor: preProcessorFunction
        };
        IB.BT.scripts[IB.BT.scripts.length] = obj;
       };
       
       var advertisingDotCom = function(site, meta, framed){     
         if (isSecure) { return; };       
         var tag = pullIbMeta();
         var ctxList = "";var comma = "";
         if (tag != ""){
               var splitTag = tag.split(",");
               for (var d=0; d<splitTag.length; d++){
                 var splitBlock = splitTag[d].split("|");
                 if (splitBlock.length < 2) { continue; };
                 if (splitBlock[1].toString().toLowerCase() != "null"){
                    ctxList += comma + splitBlock[1];                   
                    comma = ",";
                 };
               };            
           };                   
         var script = "<img src=\"http://servedby.advertising.com/burl/site=" + site + "/mnum=" + meta + "/logs=0/bins=1/ctxt=" + rmvQ(ctxList) + "\" width=\"1\" height=\"1\">";
         addScript(script, ((framed) ? true : false));  
       };
       
       var setKeyValuePairs = function(funcName) {
       		var incrementalPayload = "";
			var tag = pullIbMeta();
	   		if (tag != ""){
               var splitTag = tag.split(",");
               for (var d=0; d<splitTag.length; d++){
                 var splitBlock = splitTag[d].split("|");
                 if (splitBlock.length < 2) { continue; };
                 if (splitBlock[1].toString().toLowerCase() != "null"){
                    incrementalPayload += funcName.apply(null,[splitBlock[0],splitBlock[1]]);
                 };
               };//loop thru ib meta pairs
           };//only execute if ibmeta was defined
           return incrementalPayload;
       }//setKeyValuePairs
       
       var ysm = function(acct, framed) {
       		var scriptUrl = "//srv3.wa.marketingsolutions.yahoo.com/script/ScriptServlet?aid=" + acct;
			window.ysm_accountid = acct;
			docHead = getHead();
			if (docHead) {
				newScr = document.createElement("script");
				newScr.setAttribute("type","text/javascript");
				newScr.src = scriptUrl;
				docHead.appendChild(newScr);
			}
       }//Yahoo Search Marketing
       
		var revenueScience = function(framed){ 
                    var script = '<img src="//ads.cpxadroit.com/adserver/5JK3H74Y0R7.gif" width="1" height="1" border="0" />';
                      script += '<img src="//www.burstnet.com/enlightn/6810//32C9/" width="0" height="0" border="0" />';     
                     if (location.href.indexOf("carsdirect.com") == -1) {
                      if (!isSecure) script += '<img width=1 height=1 border=0 src="//ad.trafficmp.com/a/bpix?adv=1491&id=5&r=" />';      
                     } else {
                      if (!isSecure) script += '<img width=1 height=1 border=0 src="//ad.trafficmp.com/a/bpix?adv=1491&id=6&r=" />'; 
                      }
                     addScript(script, ((framed) ? true : false)    );
                };//revenueScience
       
		var blueKai = function(acct, meta, framed){               
			if (isSecure) { return; };
			var script = "<iframe name=\"__bkframe\" height=0 width=0 frameborder=0 src=\"javascript:void\(0\)\"><\/iframe>";
			script += getJsTag('http://www.bkrtx.com/js/bk-static.js');
			var blueKaiInvocations = function() {
				var theAcct = acct;
				var theMeta = meta;
				setKeyValuePairs(bk_addPageCtx);
				bk_doJSTag(theAcct,theMeta);
			};//blueKaiInvocations
			
			addScript(script, ((framed) ? true : false),blueKaiInvocations, "bk_addPageCtx");
		};//blueKai
		
		var getJsTag = function(s) {return '<scr'+'ipt type="text/javascript" src="'+s+'">'+fixScript};
		var scape = function(s) {return window.encodeURIComponent?window.encodeURIComponent(s):escape(s)};
		var getKVPGetParams = function(a,b) {return("&" + scape(a) + "=" + scape(b));}
		
		var turn = function(acct, meta, framed) {
                        return;
			/* kvp = setKeyValuePairs(getKVPGetParams);
			var script = '<img width="1" height="1" border="0" src="//r.turn.com/r/bd?pid='+acct+'&evt=99&cat='+meta+kvp+'" />';
			addScript(script, ((framed) ? true : false)); */
		}//turn

		var kontera = function(acct, meta, framed) {
			if (isSecure) { return; }
			var konteraPreProcessor = function() {
				var theAcct = acct;
				var theMeta = meta;
				window.dc_UnitID = 14;
				window.dc_PublisherID = theAcct;
				window.dc_AdLinkColor = theMeta;
				window.dc_isBoldActive = 'no';
				window.dc_adprod='ADL';
			}
			var script = getJsTag("http://kona.kontera.com/javascript/lib/KonaLibInline.js");
			addScript(script, ((framed) ? true : false), null, null, konteraPreProcessor);
		}//kontera
       
       var tacoda = function(acct, meta, framed){
            if (top != self) {return;};           
            if (isSecure) { return; };               
            var script = "<script type=\"text/javascript\">var tcdacmd=\"" + rmvQ(meta) + "\";" + fixScript;
            script += getJsTag("http://an.tacoda.net/an/" + acct  + "/slf.js");
            
            addScript(script, ((framed) ? true : false));
       };  
       
       var bizo = function(acct, meta, framed) {
       		if (isSecure) { return; };
			window._bizo_data_partner_id = acct;
			var script = getJsTag('http://js.bizographics.com/convert_data.js?partner_id='+acct);
			addScript(script, ((framed) ? true : false));
       }

       var script = "<script type=\"text/javascript\">function addIBLoadEvent(func) {" 
		+"var oldonload = window.onload;"
		+"if (typeof window.onload != \"function\") {"
		+"window.onload = func;"
		+"} else { "
		+"window.onload = function() { "
		+"if (oldonload) { "
		+" oldonload(); "
		+"} "
		+"func(); "
		+"} "
		+"} "
		+"};"
	+fixScript;
	addScript(script, false);

       var comscoreimg = function(comScoreImgId,comScoreImgName,comScoreImgClass,comScoreImgDivId,comScoreImgDivClass,comScoreImgDivStyle){
    	   if (isSecure) { return; };
    	 
    	   var script = "<script type=\"text/javascript\">function comScoreInit(){"
    			+ "var body = document.getElementsByTagName(\"body\")[0];"
    			+ "var myDiv = document.createElement(\"div\");"
    			+"myDiv.setAttribute(\"class\", \""+comScoreImgDivClass+"\");"
    			+"myDiv.setAttribute(\"id\", \""+comScoreImgDivId+"\");"
			+"myDiv.setAttribute(\"style\", \""+comScoreImgDivStyle+"\");"
			+"myDiv.style.cssText = \""+comScoreImgDivStyle+"\";"
    			+"var myImg = document.createElement(\"img\");"
    			+"myImg.setAttribute(\"src\", \"http://pxl.ibpxl.com/images/"+comScoreImgName+"\");"
    			+"myImg.setAttribute(\"class\", \""+comScoreImgClass+"\");"
    			+"myImg.setAttribute(\"id\", \""+comScoreImgId+"\");"
    			+"myDiv.appendChild(myImg);"
    			+"body.appendChild(myDiv);"
    		+"};" 
    		+"window.addIBLoadEvent(window.comScoreInit);"+fixScript;  

    	   script +="<scr" +"ipt type=\"text/javascript\">"
    	    +" var _comscore = _comscore || []; "
    	    +" _comscore.push({ c1: \"2\", c2: \"8138560\" });"
    	    +" (function() {"
    	    +"  var s = document.createElement(\"script\"), el = document.getElementsByTagName(\"script\")[0]; s.async = true; "
    	    +"  s.src = (document.location.protocol == \"https:\" ? \"https://sb\" : \"http://b\") + \".scorecardresearch.com/beacon.js\"; "
    	    +"   el.parentNode.insertBefore(s, el); "
    	    +" })(); "
    	    +fixScript
    	    +"<noscript><img src=\"http://b.scorecardresearch.com/p?c1=2&c2=8138560&cv=2.0&cj=1\" /></noscript>";
    	   	addScript(script, false);
       };
       
       var exelate = function(property_id , segment_id, category_id, age, gender){
    	    var script ="<scr" +"ipt type=\"text/javascript\" src=\"http://loadus.exelator.com/load/?p=258&g="+property_id+"&c="+segment_id+"&ctg="+category_id+"\">" + fixScript;
    		addScript(script, false);
       };
       
       var googleScript = function(acct, passedDomain, framed){                        
            var script = "<scr" + "ipt type=\"text/javascript\">";
            script += "var gaJsHost = ((\"https:\" == document.location.protocol) ? \"https://ssl.\" : \"http://www.\");";
            script += "document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\"));";
            script += fixScript;
            
            var googleInvocations = function() {
            	var theAcct = acct;
            	var theDomain = passedDomain;
            	var pageTracker = _gat._getTracker(theAcct);
            	if (theDomain) {
            		pageTracker._setDomainName(theDomain);
            	}
            	pageTracker._initData();
            	pageTracker._trackPageview();
            }          
                        
            addScript(script, ((framed) ? true : false), googleInvocations, "_gat");  
        };
              
       var quantCast = function(acct, meta, framed){
          var script = "";
          if (!isSecure) { 
            script += getJsTag('http://edge.quantserve.com/quant.js');
          }else{
            script += getJsTag('//secure.quantserve.com/quant.js');
           }
          
          var quantCastInvocations = function() {
          	var theAcct = acct;
          	var theMeta = meta;
          	window._qoptions = { tags: rmvQ(theMeta) };
          	window._qacct = theAcct;
          	quantserve();
          }       
          addScript(script, ((framed) ? true : false), quantCastInvocations, "quantserve");
       	};


       var cieStudios = function(acct, framed){
          var script = "";                   
          script += getJsTag("//prstats.postrelease.com/PRStats.js");
          var cieStudiosInvocations = function() {
          	var theAcct = acct;
          	window._pracct = theAcct;
          	prTracker();
          }
          
          addScript(script, ((framed) ? true : false), cieStudiosInvocations, "prTracker");     
       };


       var FIM = function(framed){           
           var script = "<scr" + "ipt type=\"text/javascript\">";             
           script += "var _l = 70; var _p = 1440; var _f = 1;";
           script += "var _ta = (document.domain).split (\".\"); var psd = (_ta.length > 1 ? \".\" + _ta[_ta.length - 2] + \".\" + _ta[_ta.length - 1] : document.domain);";
           script += "var _cn = \"L\" + _l + \"=\"; var _call = document.cookie.indexOf (_cn); var _il = 1;";
           script += "var _tl = 0; var _ex; var _rnd = (new Date ()).getTime (); if (_call >= 0) { _pos = document.cookie.substring (_call).indexOf (';');";
           script += "if (_pos > 0) _val = document.cookie.substring (_call + _cn.length, _call + _pos);";
           script += "else _val = document.cookie.substring (_call + _cn.length);";
           script += "if (_val.indexOf ('.') > 0) { _il = _val.substring (0, _val.indexOf ('.'));";
           script += "_ex = _val.substring (_val.indexOf ('.') + 1);";
           script += "_tl = _ex - (new Date ()).getTime (); }";
           script += "if (_tl <= 0) document.cookie = _cn + \";";
           script += "domain=\" + psd + \"; path=/; expires=\" + (new Date ((new Date ()).getTime () - 1000000)).toGMTString () + \";\"; }";
           script += "if (_il < _f || _tl <= 0) { var expiry = (new Date((new Date()).getTime()+_p*2*60*1000)).toGMTString();";
           script += "if (document.cookie.indexOf(_cn) < 0 ) document.cookie=_cn+''+(1)+'.'+((new Date()).getTime()+_p*60*1000)+';";
           script += "domain='+psd+';path=/;expires='+expiry; else document.cookie=_cn+''+(_il-0+1)+'.'+_ex+';";
           script += "domain='+psd+'; path=/;expires='+expiry;";
           script += "document.write (\"<sc\" + \"ript language='javascript' src='https://p.opt.fimserve.com/bht/?px=\" + _l + \"&v=1&rnd=\" + _rnd + \"'>\");";
           script += "document.write (\"</sc\" + \"ript>\"); }";           
           script += fixScript;           
           addScript(script, ((framed) ? true : false));
       };
       
       var getProtocol = function(){
            return ((isSecure) ? "https" : "http");   
       };

       
       var loadBehaviorScripts = function(){            
googleScript("UA-228092-1", "", false);
tacoda("17304", "dt", false);
turn("9", "118", false);
comscoreimg("iblogounify_img", "ibnetwk-moneyandbusiness.gif", "iblogounify_img", "iblogounify_div", "iblogounify_div", "clear:both; width:316px; margin:0px auto;");
exelate("023", "20205", "mortgage_rates");
       }();
    
    var checkCookiesEnabled = function(){
        var enabled = false;        
        if (navigator.cookieEnabled){
            enabled = navigator.cookieEnabled;
        }else if(!navigator.cookieEnabled){ 
            document.cookie = "testIBCookieObj";
            enabled = (document.cookie.indexOf("testIBCookieObj")!=-1)? true : false;
        };
        IB.BT.cookiesEnabled = enabled;      
    }();
    
    window.IBIntervalTimers = {};
    
    var IntervalProcessor = function(ptFunc, ppostProc) {
    	this.tFunc = ptFunc;
    	this.postProc = ppostProc;
    	var thisObj = this;
    	window.IBIntervalTimers[this.tFunc] = window.setInterval(
    	function() {
    		var theTestFunc = thisObj.tFunc;
			var execFunc = thisObj.postProc;
			if (!window[theTestFunc]) return;
			window.clearInterval(window.IBIntervalTimers[theTestFunc]);
			window.IBIntervalTimers[theTestFunc] = null;
			execFunc.apply();
    	},10)
    };//Object: IntervalProcessor
    
    var loadScripts = function(target){
        var scr = IB.BT.scripts; 
        var loc = (target) ? target : b;
        var f = (target) ? true : false;       
        if (target) {loc.open(); };
        if (scr.length > 0){
            for (var i=0; (i < scr.length);i++){
            	var cScr = scr[i];
                if (cScr.isFramed  == f){
                	if (cScr.preProcessor) {
                		cScr.preProcessor.apply();
                	}
                	if (cScr.script){ loc.write(cScr.script); }
                    if (cScr.postProcessor) {
                    	if (window[cScr.testFunc]) {
                    		cScr.postProcessor.apply();
                    	} else {
                    		var ip = new IntervalProcessor(cScr.testFunc, cScr.postProcessor);                    		
	                    }//if depending functions were loaded
                    }//if postprocessor defined
                };
            };
        };        
        if (target) { loc.close(); };
    };
    
    var loadTrackingScripts = function(iframe){        
        loadScripts();
    };
    
    var createIFrame = function(){
       loadTrackingScripts();
    }();

};

IB.BT.referrer = function(){    
    return (document.referrer&&document.referrer!="") ? document.referrer : "";    
};

IB.BT.getOS = function(){
    return ((navigator.platform.indexOf("Win") != -1) ? "Windows" : navigator.platform);
};

IB.BT.getQueryParams = function(){       
    var qString = IB.BT.queryString;   
    if (qString == "") {                 
        return IB.BT.queryParams;
     };     
    var qArray = qString.split("&");    
    for (var i=0; i < qArray.length; i++){
        var nameValue = qArray[i].split("=");
        IB.BT.queryParams[IB.BT.queryParams.length] = {name: nameValue[0], value: nameValue[1] };
    }; 
    return IB.BT.queryParams;
};

IB.BT.areCookiesEnabled = function(){ 
    return IB.BT.cookiesEnabled;
};

if (!IB.BT.isSSL && window.IBComet && (location.href.indexOf("modelmayhem") == -1) )IBComet.woosh();
IB.BT.Init();

























