if(typeof(domain)=='undefined'){
	if(window.location.host.indexOf('www')!=-1){
		domain=window.location.host.substr(window.location.host.indexOf('.')+1,window.location.host.length);
	}else{
		domain=window.location.host;
	}
}

domain = domain.toLowerCase();

if( -1 <(window.location.href.indexOf('hosted.ap.org'))){
	var title=''
	var allPagetags=document.getElementsByTagName("*"); 
		for (i=0; i<allPagetags.length; i++) { 
			if (allPagetags[i].className=='headline') { 
				title= allPagetags[i].innerHTML; 
		} 
	} 
	Omniture_cname		= '&cname='+encodeURI(title);
	shier=shier+'|'+encodeURI(title);
}


Omniture_url		= 'http://common.onset.freedom.com/fi/analytics/cms/?scode='+ scode +'&domain='+ domain;
Omniture_ctype		= '&ctype='+ ctype;
Omniture_ghier		= '&ghier='+ ghier;
if(shier.length> 2){
	Omniture_shier		= '&shier='+ shier;
}else{
	Omniture_shier		= '&shier=thirdparty|'+ domain;
}
document.write('<SCR'+'IPT LANGUAGE=JavaScript1.1 SRC="' + Omniture_url + Omniture_ghier +  Omniture_shier + Omniture_ctype + Omniture_cname +
				 '"><\/SCRIPT>');
