/* Unica Page Tagging Script v1.1
 * Copyright 2004-2006 Unica Corporation.  All rights reserved.
 * Visit http://www.unica.com for more information.
 */

var NTPT_IMGSRC = 'http://pt000190.unica.com/ntpagetag.gif'; //enter the location of your local Unica gif file
var NTPT_HTTPSIMGSRC = 'https://pt000190.unica.com/ntpagetag.gif'; //enter the secure location of your local Unica gif file

var NTPT_FLDS = new Object();
NTPT_FLDS.lc = true; // Document location
NTPT_FLDS.rf = true; // Document referrer
NTPT_FLDS.rs = true; // User's screen resolution
NTPT_FLDS.cd = true; // User's color depth
NTPT_FLDS.ln = true; // Browser language
NTPT_FLDS.tz = true; // User's timezone
NTPT_FLDS.jv = true; // Browser's Java support
NTPT_SET_IDCOOKIE = true;
NTPT_IDCOOKIE_NAME = "UnicaNIODID";
NTPT_IDCOOKIE_DOMAIN = ".ishares.com";

var NTPT_MAXTAGWAIT = 1.0; // Max delay (secs) on link-tags and submit-tags

// Optional variables:

var sitevar = 'ishares:us';			
var NTPT_GLBLEXTRA = 'site='+sitevar+'&country=us&';
var NTPT_GLBLREFTOP = false;

if(typeof(cms_cc1) != 'undefined' && cms_cc1 != null && cms_cc1 != '')
	NTPT_GLBLEXTRA += "cc1=" + cms_cc1 + "&";
if(typeof(cms_cc2) != 'undefined' && cms_cc2 != null && cms_cc2 != '')
	NTPT_GLBLEXTRA += "cc2=" + cms_cc2 + "&";
if(typeof(cms_cc3) != 'undefined' && cms_cc3 != null && cms_cc3 != '')
	NTPT_GLBLEXTRA += "cc3=" + cms_cc3 + "&";
if(typeof(cms_env) != 'undefined' && cms_env != null && cms_env != '')
	NTPT_GLBLEXTRA += "env=" + cms_env + "&";	

var l_present = false;
if(typeof(cms_lang) != 'undefined' && cms_lang != null && cms_lang != '')
{
	l_present = true;
	NTPT_GLBLEXTRA += "language=" + cms_lang + "&";
}

// User-Specific Global Variables.
if(typeof(cms_usertype) != 'undefined' && cms_usertype != null && cms_usertype != '')
	NTPT_GLBLEXTRA += "usertype=" + cms_usertype + "&";
if(typeof(cms_status) != 'undefined' && cms_status != null && cms_status != '')
	NTPT_GLBLEXTRA += "status=" + cms_status + "&";	
if(typeof(cms_un) != 'undefined' && cms_un != null && cms_un != '')
	NTPT_GLBLEXTRA += "un=" + cms_un + "&";
if(typeof(cms_firmname) != 'undefined' && cms_firmname != null && cms_firmname != '')
	NTPT_GLBLEXTRA += "firm=" + cms_firmname + "&";	
if(typeof(cms_title) != 'undefined' && cms_title != null && cms_title != '')
	NTPT_GLBLEXTRA += "ti=" + cms_title + "&";		
if(typeof(cms_countrycd) != 'undefined' && cms_countrycd != null && cms_countrycd != '')
	NTPT_GLBLEXTRA += "r_co=" + cms_countrycd + "&";		
if(typeof(cms_reqmethod) != 'undefined' && cms_reqmethod != null && cms_reqmethod != '')
	NTPT_GLBLEXTRA += "rmeth=" + cms_reqmethod + "&";		
if(typeof(cms_clearing) != 'undefined' && cms_clearing != null && cms_clearing != '')
	NTPT_GLBLEXTRA += "clr=" + cms_clearing + "&";		
if(typeof(cms_designations) != 'undefined' && cms_designations != null && cms_designations != '')
	NTPT_GLBLEXTRA += "dsgn=" + cms_designations + "&";		
if(typeof(cms_ishares_channel) != 'undefined' && cms_ishares_channel != null && cms_ishares_channel != '')
	NTPT_GLBLEXTRA += "i_ch=" + cms_ishares_channel + "&";		
if(typeof(cms_ishares_channel) != 'undefined' && cms_ishares_channel != null && cms_ishares_channel != '')
	NTPT_GLBLEXTRA += "i_ch=" + cms_ishares_channel + "&";		
	
if(typeof(cms_business_model) != 'undefined' && cms_business_model != null && cms_business_model != '')
	NTPT_GLBLEXTRA += "b_m=" + cms_business_model + "&";		
if(typeof(cms_sales_cycle) != 'undefined' && cms_sales_cycle != null && cms_sales_cycle != '')
	NTPT_GLBLEXTRA += "s_cy=" + cms_sales_cycle + "&";		
if(typeof(cms_aum) != 'undefined' && cms_aum != null && cms_aum != '')
	NTPT_GLBLEXTRA += "aum=" + cms_aum + "&";	
if(typeof(cms_iaum) != 'undefined' && cms_iaum != null && cms_iaum != '')
	NTPT_GLBLEXTRA += "iaum=" + cms_iaum + "&";		
if(typeof(cms_share_wallet) != 'undefined' && cms_share_wallet != null && cms_share_wallet != '')
	NTPT_GLBLEXTRA += "sh_wall=" + cms_share_wallet + "&";		
if(typeof(cms_firm_rollup_name) != 'undefined' && cms_firm_rollup_name != null && cms_firm_rollup_name != '')
	NTPT_GLBLEXTRA += "frm_rnm=" + cms_firm_rollup_name + "&";		
if(typeof(cms_insight) != 'undefined' && cms_insight != null && cms_insight != '')
	NTPT_GLBLEXTRA += "ins=" + cms_insight + "&";		
if(typeof(cms_pcg_first) != 'undefined' && cms_pcg_first != null && cms_pcg_first != '')
	NTPT_GLBLEXTRA += "pcg_f=" + cms_pcg_first + "&";		
if(typeof(cms_ticker) != 'undefined' && cms_ticker != null && cms_ticker != '')
	NTPT_PGEXTRA += "tkr=" + cms_ticker + "&";


	
	
var now = new Date();
var dateString = now.getFullYear().toString();
if(now.getMonth()+1 < 10)
    dateString += "0"+(now.getMonth()+1).toString();
else
    dateString += (now.getMonth()+1).toString();
if(now.getDate() < 10)
    dateString += "0"+now.getDate().toString();
else
    dateString += now.getDate().toString();

//set the weekday and hour string
var weekday=new Array(7);
weekday[0]="Sunday";
weekday[1]="Monday";
weekday[2]="Tuesday";
weekday[3]="Wednesday";
weekday[4]="Thursday";
weekday[5]="Friday";
weekday[6]="Saturday";
var dayString = weekday[now.getDay()].toString();
var timeString = now.getHours().toString();
NTPT_GLBLEXTRA += "eventdate=" + dateString + "&";
NTPT_GLBLEXTRA += "day=" + dayString + "&";
NTPT_GLBLEXTRA += "hour=" + timeString + "&";


/*****SETTING PAGE WEIGHT*******************/
if(typeof(cms_rtt) != 'undefined' && cms_rtt != null && cms_rtt != '')
{
	NTPT_GLBLEXTRA += "rtt=" + cms_rtt + "&";
	if(typeof(cms_rti) != 'undefined' && cms_rti != null && cms_rti != '')
		NTPT_GLBLEXTRA += "rti=" + cms_rti + ":" +now.getTime()+"&";
	
}
if((typeof(cms_rtt)  != 'undefined' && typeof(cms_rti) != 'undefined') && (cms_rtt != null && cms_rti != null) && (cms_rtt != '' && cms_rti != ''))
	NTPT_GLBLEXTRA += "rtc=" + cms_rti +";1;"+cms_rtt+ "&";
	
var domain = location.protocol.toLowerCase() + "//" + location.hostname.toLowerCase();

if(typeof(cms_pn) != 'undefined' && cms_pn != null && cms_pn != '')
{	
	NTPT_GLBLEXTRA += "pagename=" + cms_pn + "&";
	if(l_present)
		NTPT_GLBLEXTRA += "fullpn=" + sitevar + ":" + cms_lang + ":" + cms_pn + "&";
	else
		NTPT_GLBLEXTRA += "fullpn=" + sitevar + ":" + cms_pn + "&";

	if(cms_pn =="Registration - Confirmation")
	{
		ntptEventTag('pv=0&ev=registration&registrationloc=Site Registration');
	}
	if(cms_pn =="Request Mail Literature - Confirmation")
	{
		ntptEventTag('pv=0&ev=ordermaterials');
	}
}
// Registered User through Offer
if(typeof(cms_registered_user) != 'undefined' && cms_registered_user != null && cms_registered_user != '')
{
	ntptEventTag('pv=0&ev=registration&registrationloc=Order Materials');
}

//NTPT_GLBLEXTRA += "siteparams=" + params +  "&";
//NTPT_GLBLEXTRA += "pms=" + pms + "&";

/*** PAGE SPECIFIC VARIABLES **/
var NTPT_PGEXTRA = '';

if(typeof(cms_sterm) != 'undefined' && cms_sterm != null && cms_sterm != '')
	NTPT_PGEXTRA += "searchterm=" + cms_sterm + "&";
if(typeof(cms_srcount) != 'undefined' && cms_srcount != null && cms_srcount != '')
	NTPT_PGEXTRA += "numresults=" + cms_srcount + "&";


/*** END OF PAGE SPECIFIC VARIABLES **/


/*** END OF USER-CONFIGURABLE VARIABLES ***/

function O0000(O0000O,O0O0OOO){return(eval("\x74\x79\x70\x65\x6f\x66\x20"+O0000O+"\x20\x21\x3d\x20\x22\x75\x6e\x64\x65\x66\x69\x6e\x65\x64\x22")?eval(O0000O):O0O0OOO);}function O00O000(O0OOO0,O000OO){return(O0OOO0+(((O0OOO0=='')||((O000OO=='')||(O000OO.substring((0xf6d+32-0xf8d),(0x14d8+2215-0x1d7e))=="\x26")))?'':"\x26")+O000OO);}function O000O0(){var O0O00O=new Date();return(O0O00O.getTime()+"\x2e"+Math.floor(Math.random()*(0xd43+2155-0x11c6)));}function O0OOO(OO0000,O00OO0){OO0OO[OO0000]=O00OO0.toString();}function OO0OO0(OO0000){OO0OO[OO0000]='';}function OO0OOOO(OOOOO){var O0O0OO='',O00OO,O0O000;OOO0O0(O0000("\x4e\x54\x50\x54\x5f\x47\x4c\x42\x4c\x45\x58\x54\x52\x41",''));if(!LnkLck)OOO0O0(O0000("\x4e\x54\x50\x54\x5f\x50\x47\x45\x58\x54\x52\x41",''));OOO0O0(OOOOO);for(O00OO in OO0OO){O0O000=OO0OO[O00OO];if(O0O000&&(O0O000!=''))O0O0OO=O00O000(O0O0OO,(O00OO+"\x3d"+(self.encodeURIComponent?encodeURIComponent(O0O000):escape(O0O000))));}return O0O0OO;}function OOO00OO(){var O00OO;OOOOOO.OO0OO=new Array();for(O00OO in OO0OO)OOOOOO.OO0OO[O00OO]=OO0OO[O00OO];}function O0OO00(){var O00OO;OO0OO=new Array();for(O00OO in OOOOOO.OO0OO)OO0OO[O00OO]=OOOOOO.OO0OO[O00OO];}function OOOO0O(O0OOOO,O0OO0O,OOOO0){if(OO0O0[O0OOOO]!=null){var O00O0O=new Function(O0OO0O);OO0O0[O0OOOO].onload=O00O0O;OO0O0[O0OOOO].onerror=O00O0O;OO0O0[O0OOOO].onabort=O00O0O;}setTimeout(O0OO0O,(OOOO0*(0x61e+1960-0x9de)));}function OO0O00(O0OO0,OO0OOO){if(O0OO0=='')return;OOO0O=((OOO0O+(0xd01+3643-0x1b3b))%OO0O0.length);if(OO0O0[OOO0O]==null)OO0O0[OOO0O]=new Image((0x459+2628-0xe9c),(0x11c2+1387-0x172c));OO0O0[OOO0O].src=O0OO0+"\x3f"+OO0OOO;}function O00000(OOOOO){var O0OO0;var OO0OOO;if((OOOO00!='')&&(document.location.protocol=="\x68\x74\x74\x70\x73\x3a"))O0OO0=OOOO00;else O0OO0=O00O00;OO0OOO=OO0OOOO(OOOOO);OO0O00(O0OO0,OO0OOO);O0OO00();}function OOO0O0(OOOOO){var OOO00O;var OO0O0O;if(!OOOOO)return;OOOOO=OOOOO.toString();if(OOOOO=='')return;OOO00O=OOOOO.split("\x26");for(OO0O0O=(0x41f+1956-0xbc3);OO0O0O<OOO00O.length;OO0O0O++){var O00OOO=OOO00O[OO0O0O].split("\x3d");if(O00OOO.length==(0x1fa5+1107-0x23f6))O0OOO(O00OOO[(0x1836+2183-0x20bd)],(self.decodeURIComponent?decodeURIComponent(O00OOO[(0x1084+3223-0x1d1a)]):unescape(O00OOO[(0x4cb+410-0x664)])));}}function OO000O(OOOOO){O0OOO("\x65\x74\x73",O000O0());O00000(OOOOO);return true;}function O0O00O0(O0O0O,OOOOO,OOOO0){var O00O0;if(!O0O0O||!O0O0O.href)return true;if(LnkLck)return false;LnkLck=O0O0O;if(OOO00.lc)O0OOO("\x6c\x63",O0O0O.href);if(OOO00.rf){if(!OOOOO0||!top||!top.document)O0OOO("\x72\x66",document.location);}OO000O(OOOOO);if(OOOO0)O00O0=OOOO0;else O00O0=NTPT_MAXTAGWAIT;if(O00O0>(0x7df+2430-0x115d)){var OO00OO;if(O0O0O.click){O0O0O.tmpclck=O0O0O.onclick;O0O0O.onclick=null;OO00OO="\x69\x66\x20\x28\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x29\x20\x7b\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x63\x6c\x69\x63\x6b\x28\x29\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x6f\x6e\x63\x6c\x69\x63\x6b\x20\x3d\x20\x4c\x6e\x6b\x4c\x63\x6b\x2e\x74\x6d\x70\x63\x6c\x63\x6b\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d";}else OO00OO="\x69\x66\x20\x28\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x29\x20\x7b\x20\x77\x69\x6e\x64\x6f\x77\x2e\x6c\x6f\x63\x61\x74\x69\x6f\x6e\x2e\x68\x72\x65\x66\x20\x3d\x20\x22"+O0O0O.href+"\x22\x3b\x20\x4c\x6e\x6b\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d";OOOO0O(OOO0O,OO00OO,O00O0);return false;}LnkLck=null;return true;}function O0OOO0O(OO000,OOOOO,OOOO0){var O00O0;if(!OO000||!OO000.submit)return true;if(FrmLck)return false;FrmLck=OO000;OO000O(OOOOO);if(OOOO0)O00O0=OOOO0;else O00O0=NTPT_MAXTAGWAIT;if(O00O0>(0x9e0+6857-0x24a9)){OO000.tmpsbmt=OO000.onsubmit;OO000.onsubmit=null;OOOO0O(OOO0O,"\x69\x66\x20\x28\x20\x46\x72\x6d\x4c\x63\x6b\x20\x29\x20\x7b\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x73\x75\x62\x6d\x69\x74\x28\x29\x3b\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x6f\x6e\x73\x75\x62\x6d\x69\x74\x20\x3d\x20\x46\x72\x6d\x4c\x63\x6b\x2e\x74\x6d\x70\x73\x62\x6d\x74\x3b\x20\x46\x72\x6d\x4c\x63\x6b\x20\x3d\x20\x6e\x75\x6c\x6c\x3b\x20\x7d",O00O0);return false;}FrmLck=null;return true;}var O00O00=NTPT_IMGSRC;var OOO00=NTPT_FLDS;var OOOO00=O0000("\x4e\x54\x50\x54\x5f\x48\x54\x54\x50\x53\x49\x4d\x47\x53\x52\x43",'');var OOOOO0=O0000("\x4e\x54\x50\x54\x5f\x50\x47\x52\x45\x46\x54\x4f\x50",O0000("\x4e\x54\x50\x54\x5f\x47\x4c\x42\x4c\x52\x45\x46\x54\x4f\x50",false));var OOO000=O0000("\x4e\x54\x50\x54\x5f\x4e\x4f\x49\x4e\x49\x54\x49\x41\x4c\x54\x41\x47",false);var ntptAddPair=O0OOO;var ntptDropPair=OO0OO0;var ntptEventTag=OO000O;var ntptLinkTag=O0O00O0;var ntptSubmitTag=O0OOO0O;var OO0OO=new Array();var OOOOOO=new Object();var OO0O0=Array((0xc53+5034-0x1ff3));var OOO0O;for(OOO0O=(0xc69+6583-0x2620);OOO0O<OO0O0.length;OOO0O++)OO0O0[OOO0O]=null;var LnkLck=null;var FrmLck=null;O0OOO("\x6a\x73","\x31");O0OOO("\x74\x73",O000O0());if(OOO00.lc)O0OOO("\x6c\x63",document.location);if(OOO00.rf){var O0O0O0;if(OOOOO0&&top&&top.document)O0O0O0=top.document.referrer;else O0O0O0=document.referrer;O0OOO("\x72\x66",O0O0O0);}if(self.screen){if(OOO00.rs)O0OOO("\x72\x73",self.screen.width+"\x78"+self.screen.height);if(OOO00.cd)O0OOO("\x63\x64",self.screen.colorDepth);}if(OOO00.ln){var OO00O;if(navigator.language)OO00O=navigator.language;else if(navigator.userLanguage)OO00O=navigator.userLanguage;else OO00O='';if(OO00O.length>(0xd3b+6466-0x267b))OO00O=OO00O.substring((0xb13+5400-0x202b),(0x8ca+5379-0x1dcb));OO00O=OO00O.toLowerCase();O0OOO("\x6c\x6e",OO00O);}if(OOO00.tz){var O0O00;var O0O00O=new Date();var O000O=O0O00O.getTimezoneOffset();var OOO0OO;O0O00="\x47\x4d\x54";if(O000O!=(0x10c4+3752-0x1f6c)){if(O000O>(0xc86+1771-0x1371))O0O00+="\x20\x2d";else O0O00+="\x20\x2b";O000O=Math.abs(O000O);OOO0OO=Math.floor(O000O/(0x1840+1703-0x1eab));O000O-=OOO0OO*(0x13b1+2037-0x1b6a);if(OOO0OO<(0x41+6971-0x1b72))O0O00+="\x30";O0O00+=OOO0OO+"\x3a";if(O000O<(0x1026+3918-0x1f6a))O0O00+="\x30";O0O00+=O000O;}O0OOO("\x74\x7a",O0O00);}if(OOO00.jv){var OO00O0;if(navigator.javaEnabled())OO00O0="\x31";else OO00O0="\x30";O0OOO("\x6a\x76",OO00O0);}OOO00OO();if(!OOO000)O00000('');

/**** Clears content and engagement settings ******/
if(NTPT_GLBLEXTRA.search('rti=&') == -1)
NTPT_GLBLEXTRA += 'rti=&rtt=&rtc=&';
if(NTPT_GLBLEXTRA.search('cc1=&') == -1)
NTPT_GLBLEXTRA += 'cc1=&cc2=&cc3=&';
if(NTPT_PGEXTRA.search('searchterm=&') == -1)
NTPT_PGEXTRA += 'searchterm=&numresults=&';

