// core version 1.0.5
// custom version 1.0.9
 
function gaUtils(d)
{
	this._baseDomain ="";

	this.DebugMode = false;
	this.TrackRightClicks = false;

	this.BannerParams = new Array('ac');

	this.PageTracker = null;

	this._dTypes = new Array(".pdf",".doc",".docx",".xls",".xlsx",".exe",".zip",".rtf",".jpg",".png",".gif",".tiff",".tif",".mp3",".wav",".swf",".mpg");
	this._bIsMember = 0;
	this._linkerSites = new Array();

	if(d != "")
		this._baseDomain = d;

	this._customVarSlots = new Object();

	this._customVarSlots["userseg"] = {
		slot: 1,
		scope: 1,
		pageview: true,
		url: "/tracking/memberlogin"
	};
	this._customVarSlots["banner"] = {
		slot: 3,
		scope: 2,
		pageview: false
	};
	this._customVarSlots["adwordskeyword"] = {
		slot: 4,
		scope: 2,
		pageview: false
	};
	this._customVarSlots["fcampaign"] = {
		slot: 2,
		scope: 1,
		pageview: false
	};

	this.Settings = new Object();
	this.Settings["linktracking"] = {
		trackexternal: true,
		trackemail: true,
		externalbase: "/external/",
		emailbase: "/email/",
		externalpageview: true,
		emailpageview: true
	};
}

gaUtils.prototype.Initialise = function()
{
	if(typeof(pageTracker) != 'undefined')
		this.PageTracker = pageTracker;

	if(document.location.hash.indexOf('debug')>=0)
	{
		this.DebugMode=true;
		this.SetDebug(true);
	}

	if(this._baseDomain == "")
	{
		var cDomain = document.location.hostname.toLowerCase();
		var dp = cDomain.split(".");

		if(dp[dp.length-1].length==2 && dp.length>=3)
			this._baseDomain = dp[dp.length-3] + "." + dp[dp.length-2] + "." + dp[dp.length-1]; // set to the current domain including country code
		else if(dp[dp.length-1].length>=3)
			this._baseDomain = dp[dp.length-2] + "." + dp[dp.length-1]; // assume .com, .info, etc
	}

	this._initLinks();

	this._testMember();

	this._checkBannerClick();

	this._checkFirstCampaign();

	if(document.location.search.indexOf('gclid')>=0)
		this._getAdWordsActualQuery();

	if(typeof(this["CustomInit"]) == "function")
	{
		this.CustomInit();
	}
}

gaUtils.prototype.SetDebug = function(val)
{
	this.DebugMode = val;
}



gaUtils.prototype.SetBaseDomain = function (val)
{
	this._baseDomain = val;
	this._initLinks();
}

gaUtils.prototype.RegisterPageTracker = function (obj) { this.PageTracker = obj; }


gaUtils.prototype.AddLinkedSite = function(d)
{
	this._linkerSites.push(d);
}

gaUtils.prototype.TrackLink = function(t,r,p)
{
	myDest = t; 
	var isExternal = false;
	var isEmail = false;
	var myExtMatch = myDest.match(/^http[s]?:\/\/(.*)/);
	var myEmMatch = myDest.match(/^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$/);
	if(myExtMatch && myDest.indexOf(this._baseDomain) < 0)
	{
		if(this.Settings.linktracking.externalpageview)
			t = this.Settings.linktracking.externalbase + myExtMatch[1];
		else
			t = myExtMatch[1];

		isExternal = true;
	}
	else if(myEmMatch)
	{
		if(this.Settings.linktracking.emailpageview)
			t = this.Settings.linktracking.emailbase + myEmMatch[1];
		else
			t = myEmMatch[1];

		isEmail = true;
	}
	else
		t = t.replace(/http[s]?:\/\/[^\/]*/,"");
	if(p != null)
		this.PageTracker = p;

	if(this.PageTracker != null)
	{
		try {
			if(this.DebugMode==true)
				alert(t);

			if((isExternal && this.Settings.linktracking.externalpageview) || (isEmail && this.Settings.linktracking.emailpageview))
				this.PageTracker._trackPageview(t);
         
			else if(isExternal || isEmail)
         	this.PageTracker._trackEvent("External Links","Clicks",t);
         
			else
				this.PageTracker._trackPageview(t);
		}
		catch (err) { }
	}

	if( r )
	{
     if( isEmail ) myDest = "mailto:" + myDest;
     setTimeout("document.location.href=myDest;",500); // delay for 1/2 second
		 return false;
	}
	else
		return true;
}

gaUtils.prototype.BannerClick = function(b)
{
	try
	{
		this.PageTracker._setCustomVar(this._customVarSlots["banner"].slot,"banner",b,this._customVarSlots["banner"].scope);
		this.PageTracker._trackEvent("Banners","Clicks",b);
	} catch (err) {}
}


/**
* Tracks the visitor as a member of a segment. 
* @public
* @param {String} Segment. The name of the segment
* @param {String} Value. The membership level. E.g. Premium, Standard. The default value is "yes"
* @author Panalysis Pty Ltd
* @version 1.0 2010-03-31
* @return void
*/
gaUtils.prototype.TrackUserSegment = function(segment,val)
{
	var mVal = "yes";
	if(val != null)
		mVal = val;
	try
	{
		if(this.PageTracker != null)
		{
			if(this.DebugMode)
				alert("Segment: " + segment);
			this.PageTracker._setCustomVar(
				this._customVarSlots["userseg"].slot,
				segment,mVal,
				this._customVarSlots["userseg"].scope
			);
			
			if(this._customVarSlots["userseg"].pageview)
			{
				var url ="/tracking/usersegment";
				if(typeof(this._customVarSlots["userseg"].url) !="undefined")
					url = this._customVarSlots["userseg"].url;
				
				this.PageTracker._trackPageview(url);
			}
			else
				this.PageTracker._trackEvent(segment,"Visit");
		}
	}
	catch(err) {}
}

/**
* Tracks the visitor as a member. The method sets a custom variable that will record either that the visitor was a member and optionally a value identifying the level of membership.
* @public
* @param {String} MemberValue. The membership level. E.g. Premium, Standard. The default value is "yes"
* @author Panalysis Pty Ltd
* @version 1.0 2010-03-31
* @return void
*/
gaUtils.prototype.TrackMember = function(val)
{
	this.TrackUserSegment("member",val);
}


gaUtils.prototype._trim = function (val){ return val.replace(/^\s+|\s+$/g, '') ; }


gaUtils.prototype._initLinks = function()
{
	var mL = document.getElementsByTagName("a");
	var myRegexp = /^http[s]?:\/\/(.*)/;
	for(var i=0;i<mL.length;i++)
	{
		var myRef = mL[i].href.toLowerCase();
		if(myRef == undefined)
			continue;

		var gau = this;

		var myMatch = myRegexp.exec(myRef);
		var lchar = myRef.substring(myRef.length-1);
		if((lchar=="#" && mL[i].onclick != "") || (myMatch != undefined && myMatch.length>1 && this._baseDomain != undefined && myRef.indexOf(this._baseDomain) < 0))
		{
			if(this._useLinker(mL[i].hostname))
				this._addEvent(mL[i],"click",function () { gau._gaAddLinker(this); return false; });
			else
			{
				if( mL[i].target=="_blank" )
				{
				   this._addEvent(mL[i],"click",function () { gau.TrackLink(this.href, false); });
				}
				else
				{    
   				this._addEvent(mL[i],"click",function () { gau.TrackLink(this.href, true); return false; });
   				
   				if( !mL[i].onclick )
   				{ 
   				   mL[i].onclick = function() { return false; };
   				}
   				else
   				{
   				   mL[i].oldonclick = mL[i].onclick;
   				   mL[i].onclick = function() { this.oldonclick(); return false; };
   				}
			   }
			}	
		}
		else if(myRef.toLowerCase().indexOf("mailto:")>=0)
		{
			this._addEvent(mL[i],"click",function () { gau.TrackLink(this.href.substring(7), true); });
			if( !mL[i].onclick )
   		{ 
   		   mL[i].onclick = function() { return false; };
   		}
   		else
   		{
   		   mL[i].oldonclick = mL[i].onclick;
   		   mL[i].onclick = function() { this.oldonclick(); return false; };
   		}
		}
		else
		{
			for(x=0;x<this._dTypes.length;x++)
			{
				if(myRef.indexOf(this._dTypes[x])>-1)
				{
					if( mL[i].target=="_blank" )
						this._addEvent(mL[i],"click",function () { gau.TrackLink(this.href,false); });
					
					else
					{    
      				this._addEvent(mL[i],"click",function () { gau.TrackLink(this.href, true); return false; });
      				
      				if( !mL[i].onclick )
      				{ 
      				   mL[i].onclick = function() { return false; };
      				}
      				else
      				{
      				   mL[i].oldonclick = mL[i].onclick;
      				   mL[i].onclick = function() { this.oldonclick(); return false; };
      				}
			      }

					if(this.TrackRightClicks = true)
						this._addEvent(mL[i],"mouseup",function (e) { gau._checkRightClick(e,this); });
				}
			}
		}
	}
	
	 try
   {
   	// Attempt to tag the bottom 'four block' links on the home page
   	if( jQuery("div#FourBlock div.fourBlockItem").length>0 )
   	{ 
   		var fourBlockId = "";
   		var fourBlockLink;
   		var fourBlockLinkHref;
   		var fourBlockLinkHasHash;
   		var fourBlockLinkHrefHash;
   		   
   		jQuery("div#FourBlock div.fourBlockItem").each(
   		function(j)
   		{
   		   fourBlockId = encodeURIComponent( jQuery(this).find("h4").first().html().replace(/<\/*[\w\s\="]*>/g,"").replace(/[\s]+/g, "-") );
   		      
   		   fourBlockLink = jQuery(this).find("a").first();
   		   fourBlockLinkHref = jQuery(fourBlockLink).attr("href");
   		   fourBlockLinkHasHash = ( fourBlockLinkHref.indexOf("#")>0 );
   		   fourBlockLinkHrefHash = (fourBlockLinkHasHash?"&":"#") + "ac=hp" + fourBlockId;
   		      
   		   jQuery(fourBlockLink).attr("href", fourBlockLinkHref + fourBlockLinkHrefHash);
   		});  
   	}
   }
   catch (err) { }
}


gaUtils.prototype._checkRightClick = function(e,o,pt)
{
	var button;
	if (e.which == null)
		button= (e.button < 2) ? "LEFT" : ((e.button == 4) ? "MIDDLE" : "RIGHT");
	else
		button= (e.which < 2) ? "LEFT" : ((e.which == 2) ? "MIDDLE" : "RIGHT");

	if(button=="RIGHT")
	{
		this.TrackLink(o.href,false,pt);
	}
}

gaUtils.prototype._useLinker=function (d)
{
	var ul = false;
	if(this._linkerSites.length>0)
	{
		for(var i=0; i< this._linkerSites.length; i++)
		{
			if(d.toLowerCase().indexOf(this._linkerSites[i])>=0)
			{
				ul=true;
				break;
			}
		}
	}
	return ul;
}

gaUtils.prototype._gaAddLinker = function (o,pt)
{
	if(pt != null)
		this.PageTracker = pt;

	try
	{
		var l = o.href;
		o.href= this.PageTracker._getLinkerUrl(l);
		return false;
	}
	catch(err)
	{
		return true
	}
}

gaUtils.prototype._getHashParam = function (strParam){
	if(strParam =="")
		return "";
	var _pstr = document.location.hash.substring(1);
	var _uparams = _pstr.split("&");
	for(var i = 0; i < _uparams.length; i++){
		var np = _uparams[i].split("=");
		if(this._trim(np[0].toLowerCase()) == strParam.toLowerCase())
		{
			return this._trim(np[1]);
			break;
		}
	}
	return "";
}

gaUtils.prototype._getParam = function (strParam){
	var _pstr = document.location.search.substring(1);
	var _uparams = _pstr.split("&");
	for(i = 0; i < _uparams.length; i++){
		var np = _uparams[i].split("=");
		if(this._trim(np[0].toLowerCase()) == strParam.toLowerCase())
			return this._trim(np[1]);
	}
	return "";
}

gaUtils.prototype._setCookie = function(cookieName,cookieValue,expire,strDomain) {
	var pdm = "";
	if (strDomain && strDomain!="")
		pdm=" domain="+strDomain+";";

	if((typeof(expire)).toLowerCase() == "object" && expire.toGMTString() != 'undefined')
		document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString() + "; path=/;" + pdm;
	else
		document.cookie = cookieName+"="+escape(cookieValue) + "; path=/;" + pdm;
}


gaUtils.prototype._getCookie = function(strParam){
	var _ucookies = document.cookie.split(";");
	for(i = 0; i < _ucookies.length; i++){
		var np = _ucookies[i].split("=");
		if(this._trim(np[0].toLowerCase()) == strParam.toLowerCase())
		{
			var val ="";
			for(i=1;i<np.length;i++)
			{
				if(i>1)
					val += "=";

				val += np[i];
			}
			return this._trim(val);
		}
	}
	return "";
}

gaUtils.prototype._testMember = function()
{
	var utmv = this._getCookie('__utmv');
	if(utmv != "" && utmv.indexOf('member')>0)
		return true;
	if(utmv != "" && utmv.indexOf('provider')>0)
		return true;
	
	var mq = this._getParam('member_id');
	var im =0;
	var ip=0;
	try
	{
		im = (ismember==1)?1:0;
	}
	catch(err) {}
	
	try
	{
		ip = (isprovider==1)?1:0;
	}
	catch(err) {}
	
	if((mq != "" && mq.toLowerCase().indexOf('guest')<0) || im==1)
	{
		this._bIsMember=1;
		this.TrackMember();
	}
	else if(ip==1)
	{
		this.TrackProvider();
	}
}


gaUtils.prototype.AddDownloadType = function(t)
{
	if(t != "")
	{
		if(t.substr(0,1) != ".")
			t = "." + t;
		this._dTypes[this._dTypes.length] = t;
	}
}

gaUtils.prototype._checkBannerClick = function(params)
{

	if(params != null)
		this._addBannerParams(params);

	for(i=0; i<this.BannerParams.length; i++)
	{
		var p = this.BannerParams[i];
		var b = this._getParam(p);
		var c = this._getHashParam(p);
		if(b != "" || c != "")
		{
			if (b=="")
				b = c;

			if(this.DebugMode)
				alert("Banner/Link: " + b);
			this.BannerClick(b);
		}
	}
}

gaUtils.prototype._addBannerParams = function(params)
{
	if(this.BannerParams == undefined)
		this.BannerParams = new Array();

	var bIsOK = true;
	if(params instanceof Array)
	{
		for(var i=0; i<params.length; i++)
		{
			bIsOK = true;
			for(var x=0; x<this.BannerParams.length; x++)
			{
				if(this.BannerParams[x] == params[i])
					bIsOK = false;
			}
			if(bIsOK == true)
				this.BannerParams.push(params[i]);
		}


	}
	else
	{
		bIsOK = true;
		for(var x=0; x<this.BannerParams.length; x++)
		{
			if(this.BannerParams[x] == params)
				bIsOK = false;
		}
		if(bIsOK == true)
			this.BannerParams.push(params);
	}
}

gaUtils.prototype._getAdWordsActualQuery = function()
{
	var dr = document.referrer;
	if(dr == null || dr=="")
		return;

	if(dr.toLowerCase().indexOf('google')>0)
	{
		var m = dr.match(/q=([^&$]*?)[&$]/i);
		if(m.length>1)
		{
			var q = unescape(m[1]);
			q = q.replace('+',' ');
			this.PageTracker._setCustomVar(
				this._customVarSlots["adwordskeyword"].slot,
				"AdWordsKeyword",
				q,
				this._customVarSlots["adwordskeyword"].scope
			);
			this.PageTracker._trackEvent("AdWords Keywords",q);
		}
	}
}

gaUtils.prototype._checkFirstCampaign = function (cname)
{
	var utmv = this._getCookie('1stcmp');
	if(utmv != "")
		return true;
	var utmc = this._getParam('utm_campaign');
	var utmg = this._getParam('gclid');
	if(utmc != "" || utmg != "")
	{
		if(utmg != "")
			utmc = "google-cpc";
			
		try
		{
			var n = new Date();
			n.setDate(n.getDate()+184);
			
			this.PageTracker._setCustomVar(this._customVarSlots["fcampaign"].slot,"1stcmp",utmc,this._customVarSlots["fcampaign"].scope);
			this._setCookie('1stcmp',utmc,n);
			// record an event to ensure that the click is tracked
			if(this._customVarSlots["fcampaign"].pageview==1)
				this.PageTracker._trackPageview("/events/setfirstcampaign");
			else
				this.PageTracker._trackEvent("First Campaign","Clicks",utmc);
		}
		catch(err) {}
	}
}

gaUtils.prototype._daysSinceFirstVisit = function()
{
	var utma = this._getCookie('__utma');
	if(utma == "") return;
	var d = utma.split(".");
	if(d.length < 6)
		return;
	var fvt = d[2];
	var tn = Math.round(new Date().getTime()/1000);
	var ofs = Math.round(((tn - fvt)*10)/(24*60*60))/10;
	return ofs;
}

gaUtils.prototype._addEvent = function ( obj, type, fn )
{
	if ( obj.attachEvent ) {
		obj['e'+type+fn] = fn;
		obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
		obj.attachEvent( 'on'+type, obj[type+fn] );
	} else
		obj.addEventListener( type, fn, false );
}

gaUtils.prototype._removeEvent = function( obj, type, fn )
{
	if ( obj.detachEvent ) {
		obj.detachEvent( 'on'+type, obj[type+fn] );
		obj[type+fn] = null;
	} else
		obj.removeEventListener( type, fn, false );
}


gaUtils.prototype.TestSearch = function()
{

	var mql = document.getElementById('ctl00_CPH_hlPagerNextTop');
	var msq = this._getParam("searchstring");

	if(mql && msq =="")
	{

		try
		{
			var apos = mql.href.indexOf('searchstring=');
			var query = mql.href.substr(apos+13);
			if(self.pageTracker)
			{
				this.PageTracker._trackPageview(document.location.pathname + "?searchstring=" + query);
			}
		}
		catch (err) {}
	}
}

gaUtils.prototype.GetComparisonFunds = function()
{
	if(document.location.href.toLowerCase().indexOf('comparefundsresult') >0)
	{
		var fund = document.getElementById('ctl00_CPH_spnFundName');
		var product = document.getElementById('ctl00_CPH_spnCompetitorProduct');

		if(fund != null && product != null)
		{
			try
			{
				this.PageTracker._trackEvent("Fund Comparisons",fund.innerHTML,product.innerHTML);
			} catch (err) {}
		}
	}
}

gaUtils.prototype.TrackFundConversion = function()
{
	var days = this._daysSinceFirstVisit();
	var fc = this._getCookie('1stcmp');
	var utma = this._getCookie('__utma');
	var fqt = this._getCookie('_gafqt');
	var fcf = this._getCookie('_gaffc');
	var fnf = this._getCookie('_ganfa');
	var hp = this._getCookie('_gahp');
	
	if(hp==1)
		return;
	
	var v=0,q=0,c=0,tn,trt=0;

	if(utma != "")
	{
		var d = utma.split(".");
		if(d.length>=6)
		{
			v = d[5];
			trt=d[1];
		}
	}
	
	if(fqt != "" && parseInt(fqt) >0)
	{
		tn = Math.round(new Date().getTime()/1000);
		q = Math.round((tn - parseInt(fqt))/3600); // q is in hours
	}
	
	if(fcf != "" && parseInt(fcf) >0)
	{
		tn = Math.round(new Date().getTime()/1000);
		c = Math.round((tn - parseInt(fcf))/3600); // q is in hours
	}
	
	var fprod = "";
	
	if(document.getElementById('ctl00_CPH_ucSelectedProduct_tdSelectedProduct')!= undefined)
	{
		var fprodO = document.getElementById('ctl00_CPH_ucSelectedProduct_tdSelectedProduct');
		if(fprodO.innerText != undefined)
			fprod = fprodO.innerText;
		else if(fprodO.textContent != undefined)
			fprod = fprodO.textContent;
		else
			fprod = "Fund Purchase";
	}
	else
		fprod = "Fund Purchase";
	
	try
	{
		if(trt==0) trt = Math.round(new Date().getTime()/1000);
		var istr = "fc:" + fc + "|dfv:" + days + "|vtp:" + v + "|hfq:" + q + "|hfc:" + c + "|nfa:" + fnf;
		this.PageTracker._addTrans(trt,'Fund Purchase','1','0','0','','','');
		this.PageTracker._addItem(trt,istr,fprod,'','1','1');
		this.PageTracker._trackTrans();
		this._setCookie('_gahp',1);
	} catch (err) {}
}

gaUtils.prototype.FirstQuote = function()
{
	if(this._getCookie('_gafqt') != "")
		return;
		
	var tn = Math.round(new Date().getTime()/1000);
	var n = new Date();
	n.setDate(n.getDate()+184);
	this._setCookie('_gafqt',tn,n);
}

gaUtils.prototype.FunnelAttempt = function()
{
	var nfa = 0;
	if(this._getCookie('_gafae') != "")
		return;
		
	if(this._getCookie('_ganfa') != "")
		nfa = parseInt(this._getCookie('_ganfa'));
	
	nfa ++;
	var tn = Math.round(new Date().getTime()/1000);
	var n = new Date();
	n.setDate(n.getDate()+184);
	this._setCookie('_ganfa',nfa,n);
	this._setCookie('_galfa',nfa,tn);
	n = new Date();
	n.setTime(n.getTime()+900000);
	this._setCookie('_gafae',nfa,1);
	
	try
	{
		this.PageTracker._trackEvent('Funnels','Fund Signup','Attempts',nfa);
	} catch (err) {}
}


gaUtils.prototype.FirstCompare = function()
{
	if(this._getCookie('_gaffc') != "")
		return;
		
	var tn = Math.round(new Date().getTime()/1000);
	var n = new Date();
	n.setDate(n.getDate()+184);
	this._setCookie('_gaffc',tn,n);
}

gaUtils.prototype.TrackProvider = function(val)
{
	this.TrackUserSegment("provider",val);
}


document.onload= new function () {
	_gaUtil = new gaUtils('hcf.com.au');
// Uncomment the following line to turn on debug messages
	//_gaUtil.SetDebug(true);
	_gaUtil.CustomInit = function()
	{
		var dp = document.location.pathname.toLowerCase();
		var db = document.location.search.toLowerCase();
		
		if(dp.indexOf('search')>0)
			_gaUtil.TestSearch();
		
		if(dp.indexOf('comparefundsresult') >0 )
		{
			_gaUtil.GetComparisonFunds();
			_gaUtil.FirstCompare();
		}
		if(dp.indexOf('/product/productfinder/finish.aspx')>=0 )
			_gaUtil.TrackFundConversion();

		if(dp.indexOf('/product/productfinder/productrecommender.aspx')>=0 )
			_gaUtil.FirstQuote();

		if(dp.indexOf('/product/productfinder/personaldetails.aspx')>=0 )
			_gaUtil.FunnelAttempt();
		
		// More for members campaign April 2011
		if(dp.indexOf('/m4m.asp')>=0 || dp.indexOf('/moreforyou2011comp.asp')>=0)
		{
			var b = document.getElementsByTagName("body")[0];
			var bt="";
			if(typeof(b.innerText)!="undefined")
				bt = b.innerText.toLowerCase();
			else if(typeof(b.textContent)!="undefined")
				bt = b.textContent.toLowerCase();
			
			if(bt !="" && bt.indexOf('thank you. we have received your details')>0)
				this.PageTracker._trackPageview(dp + "?completed=true");
		}
		
		// set up SEM tracking images
		var semURLs = [
				[['\/product\/productfinder\/JoinNow.aspx/'],['https://dna2.mookie1.com/n/146713/146718/HFJOIN/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/PersonalDetails.aspx'],['https://dna2.mookie1.com/n/146713/146718/HFDDETAILS/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/CoverDetails.aspx'],['https://dna2.mookie1.com/n/146713/146718/HFCOVER/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/Confirmation.aspx'],['https://dna2.mookie1.com/n/146713/146718/HFCONFIRM/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/PaymentDetails.aspx'],['https://dna2.mookie1.com/n/146713/146718/HFPAYMENT/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/Finish.aspx'],['https://dna2.mookie1.com/n/146713/146718/HFFINISH/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/lifeproducts\/default.aspx'],['https://dna2.mookie1.com/n/146713/146718/MPHP/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/lifeproducts\/GetQuotation.aspx'],['https://dna2.mookie1.com/n/146713/146718/MPSTART/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/lifeproducts\/identification.aspx'],['https://dna2.mookie1.com/n/146713/146718/MPID/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/lifeproducts\/YourDetails.aspx'],['https://dna2.mookie1.com/n/146713/146718/MPDETAILS/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/lifeproducts\/paymentdetails.aspx'],['https://dna2.mookie1.com/n/146713/146718/MPPAYMENT/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/lifeproducts\/finish.aspx'],['https://dna2.mookie1.com/n/146713/146718/MPFINISH/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/covernotejoinnow.aspx'],['https://dna2.mookie1.com/n/146713/146718/CNSTART/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/covernotefinish.aspx'],['https://dna2.mookie1.com/n/146713/146718/CNFINISH/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/ProductRecommender.aspx'],['https://dna2.mookie1.com/n/146713/146718/QUOTECOMP/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/CompareOtherFunds.aspx'],['https://dna2.mookie1.com/n/146713/146718/CFVIEW/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/product\/productfinder\/CompareFundsResult.aspx'],['https://dna2.mookie1.com/n/146713/146718/CFRESULT/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/b2b\/productfinder\/.*joinnow\.aspx'],['https://dna2.mookie1.com/n/146713/146718/B2BJOIN/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/b2b\/productfinder\/personaldetails\.aspx'],['https://dna2.mookie1.com/n/146713/146718/B2BDETAILS/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/b2b\/productfinder\/confirmation\.aspx'],['https://dna2.mookie1.com/n/146713/146718/B2BCONFIRM/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/b2b\/productfinder\/paymentdetails\.aspx'],['https://dna2.mookie1.com/n/146713/146718/B2BPAYMENT/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/b2b\/productfinder\/finish\.aspx'],['https://dna2.mookie1.com/n/146713/146718/B2BFINISH/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/moreforyou2011comp\.asp$'],['https://dna2.mookie1.com/n/146713/146718/M4MVIEW/x/e?value=0&trans=&domain=dna2.mookie1.com']],
				[['\/moreforyou2011comp\.asp\?completed=true'],['https://dna2.mookie1.com/n/146713/146718/M4MCOMP/x/e?value=0&trans=&domain=dna2.mookie1.com']]
			];
			
			for(var i=0; i<semURLs.length; i++)
			{
				var re = new RegExp(semURLs[i][0],"i");
				if(re.test(dp))
				{
					var myImg = new Image();
					myImg.src = semURLs[i][1];
				}
			}
	};
	_gaUtil.Initialise();
}
