// Final Omniture Code File
// Used to convert MI variable to Omniture variables and
// also makes the final img call.
///////////////////////////////////////////////////////////////

// Server and URL variables
mistats.server        = document.domain.toString ().replace (/\/.*/, '').replace (/^www\./, '');
mistats.url           = document.location.protocol + "//" + document.location.hostname + document.location.pathname;
mistats.querystring   = document.location.search;

// Cookie Gatherer
function getCookie(cookie_name)
{var results=document.cookie.match(cookie_name+'=(.*?)(;|$)' );if(results)return(unescape(results[1]));else return null;}

// Check for Insite Cookies
if(mistats.regcookie) mistats.insiteid = getCookie(mistats.regcookie); else mistats.insiteid = 'Unknown';
if(mistats.segcookie) mistats.segments = getCookie(mistats.segcookie); else mistats.segcookie = '';

// Get Insite Cookie Information
if (mistats.insiteid) mistats.insiteid = mistats.insiteid.split('|',1);

// Convert MI variables to Omniture variables
s_account	 = mistats.account;
s.pageName       = mistats.pagename;
s.channel        = mistats.channel;
s.server         = mistats.server;
s.prop1          = mistats.url;
s.prop2          = mistats.version;
s.prop3	         = mistats.pagelevel;
s.prop4 	 = mistats.contentsource;
s.prop5	 	 = mistats.insiteid;
s.prop6		 = mistats.msr;
s.prop7	 	 = mistats.custom1
s.prop8	 	 = mistats.custom2;
s.prop9	 	 = mistats.custom3;
s.prop10  	 = mistats.popstoryurl;
s.prop11	 = mistats.popstoryheadline;
s.prop12	 = mistats.custom4;
s.prop13	 = mistats.segments;
s.prop20	 = mistats.cmsid;
s.prop18  	 = mistats.altcategories;
s.prop29	 = mistats.keywords;
s.prop30	 = mistats.geography;
s.prop31	 = mistats.pubdate;
s.prop32	 = mistats.moddate;
s.prop37	 = mistats.popstory;
s.prop38	 = mistats.adposition;
s.prop39	 = mistats.querystring;
s.hier1	 	 = mistats.bizunit + "|" + mistats.sitename + "|" + mistats.taxonomy + "|" + mistats.channel;

// IMG tag call
<!-- ** DO NOT ALTER ANYTHING BELOW THIS LINE ** -->
var s_code=s.t();if(s_code)document.write(s_code)
