// WebTrends SmartSource Data Collector Tag
// Version: 8.6.2     
// Tag Builder Version: 3.0
// Created: 6/2/2010 5:41:39 PM

function WebTrends(){
	var that=this;
	// begin: user modifiable
	this.dcsid = "dcslfpea2000008i7geu3pdky_5v8x";
	this.domain = "a858-sdc.nyc.gov";
	this.timezone = -5;
	this.fpcdom = "";
	this.fpcpath = "/";
	this.onsitedoms = "nyc.gov,nyc.ny.us";
	//this.onsitere = /10\.152\.69\.160(:8080)?.*/i; //In place for  testing of onsite v. offsite in a test environment.
	this.onsitere = /^((http(s)?:\/\/)(.*\.)?(ci\.)?(nyc\.)+(ny\.us|gov)[.\/]?((\/portal\/site)|(\/apps)|(\/html)).*){1}.*/i;
	this.downloadtypes = "xls,xlsx,doc,docx,ppt,pptx,pdf,txt,csv,zip";
	this.navigationtag = "div,table";
	this.trackevents = true;
	this.ignoreeventattrib = true;	//Set to true to track all events (or those enabled below) without testing to see if their ID/Name/etc match those specified.
	this.trackattrib = ""; //Attribute name to look for containing the values below.  This has been tested with ID, Name, className and innerHTML but it should work with any element attribute.
	this.trackbyattriblist = "";	//Comma separated list of element Attributes to track. These must all be of the same attribute type (i.e. id, name, etc).
	this.trackallevents = false;
	this.trackdownload = false;
	this.trackjavascript = false;
	this.trackmailto = false;
	this.trackformbutton = false;
	this.trackoffsite = false;
	this.trackonsite = false;
	this.trackrightclick = false;
	this.trackimagemap = false;
	this.trimoffsiteparams = true;
	this.adclickparam = "WT.ac";
	this.splitparam = "";
	this.enabled = true;
	this.i18n = false;
	this.fpc = "WT_FPC";
	this.tagver = "8.6.2";
	this.itagver = "1.8.2";
	this.paidsearchparams = "gclid";
	this.isInit = false;
	this.PageEvents;
	if(typeof(PageArray)=="object"){this.PageEvents = PageArray;}
	// end: user modifiable
	this.e;
	this.qp = [];
	this.DCS = {};
	this.WT = {};
	this.DCSext = {};
	this.images = [];
	this.index = 0;
	this.exre = (function(){return(window.RegExp?new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i"):"");})();
	this.re = (function(){return(window.RegExp?(that.i18n?{"%25":/\%/g}:{"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}):"");})();
}
/*	NYC Documentation
	dcsInit calls functions to initialize the tag, setting the first party cookie domain, overriding configuration and variables, etc
*/
WebTrends.prototype.dcsInit=function(){
	this.dcsSetFPCdom();
	this.dcsOverrideGlobalConfig();
	this.isInit = true;
}
/*	NYC Documentation
	Automatically sets First Party Cookie domain to that of the address bar, if it is .nyc.gov or .nyc.ny.us, otherwise whatever
	domain is in the address bar is used
*/
WebTrends.prototype.dcsSetFPCdom=function(){
	var hostname = window.location.hostname;
	if(hostname.indexOf("nyc.gov")!=-1){
		this.fpcdom=".nyc.gov";
	}
	else if(hostname.indexOf("nyc.ny.us")!=-1){
		this.fpcdom=".nyc.ny.us";
	}
	else{
		this.fpcdom="";
	}
}
/*	NYC Documentation
	Exposes certain global variables to a page object named PageConfig.  This allows us to set tag configuration at a page level
	while still placing the tag at a global level (such as in a sitewide footer).  Some variables are not exposed for security purposes.
*/
WebTrends.prototype.dcsOverrideGlobalConfig=function(){
	if(typeof(PageConfig)=="object"){
		var config = PageConfig;
		if(typeof(config.enabled)!="undefined"){this.enabled=config.enabled}
		if(config.dcsid){this.dcsid=config.dcsid}
		if(config.domain){this.domain=config.domain}
		if(config.onsitere){this.onsitere=config.onsitere}
		if(config.downloadtypes){this.downloadtypes=config.downloadtypes}
		if(config.navigationtag){this.navigationtag=config.navigationtag}
		if(typeof(config.trackevents)!="undefined"){this.trackevents=config.trackevents}
		if(typeof(config.ignoreeventattrib)!="undefined"){this.ignoreeventattrib=config.ignoreeventattrib}
		if(typeof(config.trackattrib)!="undefined"){this.trackattrib=config.trackattrib}
		if(config.trackbyattriblist){this.trackbyattriblist=config.trackbyattriblist}
		if(typeof(config.trackallevents)!="undefined"){this.trackallevents=config.trackallevents}
		if(typeof(config.trackdownload)!="undefined"){this.trackdownload=config.trackdownload}
		if(typeof(config.trackjavascript)!="undefined"){this.trackjavascript=config.trackjavascript}
		if(typeof(config.trackmailto)!="undefined"){this.trackmailto=config.trackmailto}
		if(typeof(config.trackformbutton)!="undefined"){this.trackformbutton=config.trackformbutton}
		if(typeof(config.trackoffsite)!="undefined"){this.trackoffsite=config.trackoffsite}
		if(typeof(config.trackonsite)!="undefined"){this.trackonsite=config.trackonsite}
		if(typeof(config.trackrightclick)!="undefined"){this.trackrightclick=config.trackrightclick}
		if(typeof(config.trackimagemap)!="undefined"){this.trackimagemap=config.trackimagemap}
		if(typeof(config.trimoffsiteparams)!="undefined"){this.trimoffsiteparams=config.trimoffsiteparams}
		if(config.adclickparam){this.adclickparam=config.adclickparam}
		if(config.paidsearchparams){this.paidsearchparams=config.paidsearchparams}
		if(typeof(config.i18n)!="undefined"){this.i18n=config.i18n}
	}
}
/*	NYC Documentation
	dcsGetId function checks to see if the tag is enabled, and that the visitor does not have a WTLOPTOUT cookie
	(used to prevent a specific visitor from being tracked) and if so, 'writes' out a javascript call on the HTML
	page that returns data from the SDC server relating to the WebTrends first party cookie.
*/
WebTrends.prototype.dcsGetId=function(){
	if (this.enabled&&(document.cookie.indexOf(this.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){
		document.write("<scr"+"ipt type='text/javascript' src='"+"http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+this.domain+"/"+this.dcsid+"/wtid.js"+"'><\/scr"+"ipt>");
	}
}
/*	NYC Documentation
	dcsGetCookie gets the specified cookie from the visitor's browser
*/
WebTrends.prototype.dcsGetCookie=function(name){
	var cookies=document.cookie.split("; ");
	var cmatch=[];
	var idx=0;
	var i=0;
	var namelen=name.length;
	var clen=cookies.length;
	for (i=0;i<clen;i++){
		var c=cookies[i];
		if ((c.substring(0,namelen+1))==(name+"=")){
			cmatch[idx++]=c;
		}
	}
	var cmatchCount=cmatch.length;
	if (cmatchCount>0){
		idx=0;
		if ((cmatchCount>1)&&(name==this.fpc)){
			var dLatest=new Date(0);
			for (i=0;i<cmatchCount;i++){
				var lv=parseInt(this.dcsGetCrumb(cmatch[i],"lv"));
				var dLst=new Date(lv);
				if (dLst>dLatest){
					dLatest.setTime(dLst.getTime());
					idx=i;
				}
			}
		}
		return unescape(cmatch[idx].substring(namelen+1));
	}
	else{
		return null;
	}
}
/*	NYC Documentation
	dcsGetCrumb function returns a portion of the cookie
*/
WebTrends.prototype.dcsGetCrumb=function(cval,crumb,sep){
	var aCookie=cval.split(sep||":");
	for (var i=0;i<aCookie.length;i++){
		var aCrumb=aCookie[i].split("=");
		if (crumb==aCrumb[0]){
			return aCrumb[1];
		}
	}
	return null;
}
/*	NYC Documentation
	dcsGetIdCrumb function returns a portion of the cookie
*/
WebTrends.prototype.dcsGetIdCrumb=function(cval,crumb){
	var id=cval.substring(0,cval.indexOf(":lv="));
	var aCrumb=id.split("=");
	for (var i=0;i<aCrumb.length;i++){
		if (crumb==aCrumb[0]){
			return aCrumb[1];
		}
	}
	return null;
}
/*	NYC Documentation
	dcsIsFpcSet function determines if the visitor has a WebTrends first party cookie for this domain
*/	
WebTrends.prototype.dcsIsFpcSet=function(name,id,lv,ss){
	var c=this.dcsGetCookie(name);
	if (c){
		return ((id==this.dcsGetIdCrumb(c,"id"))&&(lv==this.dcsGetCrumb(c,"lv"))&&(ss==this.dcsGetCrumb(c,"ss")))?0:3;
	}
	return 2;
}
/*	NYC Documentation
	dcsFPC function creates (if necessary) the WebTrends first party cookie on the visitor's computer
*/	
WebTrends.prototype.dcsFPC=function(){
	if (document.cookie.indexOf("WTLOPTOUT=")!=-1){
		return;
	}
	var WT=this.WT;
	var name=this.fpc;
	var dCur=new Date();
	var adj=(dCur.getTimezoneOffset()*60000)+(this.timezone*3600000);
	dCur.setTime(dCur.getTime()+adj);
	var dExp=new Date(dCur.getTime()+315360000000);
	var dSes=new Date(dCur.getTime());
	WT.co_f=WT.vtid=WT.vtvs=WT.vt_f=WT.vt_f_a=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";
	if (document.cookie.indexOf(name+"=")==-1){
		if ((typeof(gWtId)!="undefined")&&(gWtId!="")){
			WT.co_f=gWtId;
		}
		else if ((typeof(gTempWtId)!="undefined")&&(gTempWtId!="")){
			WT.co_f=gTempWtId;
			WT.vt_f="1";
		}
		else{
			WT.co_f="2";
			var curt=dCur.getTime().toString();
			for (var i=2;i<=(32-curt.length);i++){
				WT.co_f+=Math.floor(Math.random()*16.0).toString(16);
			}
			WT.co_f+=curt;
			WT.vt_f="1";
		}
		if (typeof(gWtAccountRollup)=="undefined"){
			WT.vt_f_a="1";
		}
		WT.vt_f_s=WT.vt_f_d="1";
		WT.vt_f_tlh=WT.vt_f_tlv="0";
	}
	else{
		var c=this.dcsGetCookie(name);
		var id=this.dcsGetIdCrumb(c,"id");
		var lv=parseInt(this.dcsGetCrumb(c,"lv"));
		var ss=parseInt(this.dcsGetCrumb(c,"ss"));
		if ((id==null)||(id=="null")||isNaN(lv)||isNaN(ss)){
			return;
		}
		WT.co_f=id;
		var dLst=new Date(lv);
		WT.vt_f_tlh=Math.floor((dLst.getTime()-adj)/1000);
		dSes.setTime(ss);
		if ((dCur.getTime()>(dLst.getTime()+1800000))||(dCur.getTime()>(dSes.getTime()+28800000))){
			WT.vt_f_tlv=Math.floor((dSes.getTime()-adj)/1000);
			dSes.setTime(dCur.getTime());
			WT.vt_f_s="1";
		}
		if ((dCur.getDay()!=dLst.getDay())||(dCur.getMonth()!=dLst.getMonth())||(dCur.getYear()!=dLst.getYear())){
			WT.vt_f_d="1";
		}
	}
	WT.co_f=escape(WT.co_f);
	WT.vtid=(typeof(this.vtid)=="undefined")?WT.co_f:(this.vtid||"");
	WT.vtvs=(dSes.getTime()-adj).toString();
	var expiry="; expires="+dExp.toGMTString();
	var cur=dCur.getTime().toString();
	var ses=dSes.getTime().toString();
	document.cookie=name+"="+"id="+WT.co_f+":lv="+cur+":ss="+ses+expiry+"; path="+this.fpcpath+(((this.fpcdom!=""))?("; domain="+this.fpcdom):(""));
	var rc=this.dcsIsFpcSet(name,WT.co_f,cur,ses);
	if (rc!=0){
		WT.co_f=WT.vtvs=WT.vt_f_s=WT.vt_f_d=WT.vt_f_tlh=WT.vt_f_tlv="";
		if (typeof(this.vtid)=="undefined"){
			WT.vtid="";
		}
		WT.vt_f=WT.vt_f_a=rc;
    }
}
/*	NYC Documentation
	dcsIsOnsite function determines if an event (specifically a link) points to a location that is on the same domain
	as decalred in the onsitedoms parameter.
*/
WebTrends.prototype.dcsIsOnsite=function(host){
	if (host.length>0){
    if (host==window.location.hostname.toLowerCase()){
	    return true;
    }
    if (typeof(this.onsitedoms.test)=="function"){
	    return this.onsitedoms.test(host);
    }
    else if (this.onsitedoms.length>0){
	    var doms=this.dcsSplit(this.onsitedoms);
	    var len=doms.length;
	    for (var i=0;i<len;i++){
		    if (host==doms[i]){
		        return true;
		    }
	    }
    }
	}
	return false;
}
/*	NYC Documentation
	dcsTypeMatch function determines if a path, i.e. a link target, matches a specified type such as in the downloadtypes variable
*/
WebTrends.prototype.dcsTypeMatch=function(pth, typelist){
	var type=pth.toLowerCase().substring(pth.lastIndexOf(".")+1,pth.length);
	var types=this.dcsSplit(typelist);
	var tlen=types.length;	
	for (var i=0;i<tlen;i++){
		if (type==types[i]){
			return true;
		}
	}
	return false;
}
/*	NYC Documentation
	dcsEvt fucntion determines the parent of a source event, i.e. if a link is clicked, it will
	include the URL of the page on which the link occurred.  This is helpful for filtering, or for
	reporting on links by the page on which they were clicked.
*/	
WebTrends.prototype.dcsEvt=function(evt,tag){
	var e=evt.target||evt.srcElement;
	while (e.tagName&&(e.tagName.toLowerCase()!=tag.toLowerCase())){
		e=e.parentElement||e.parentNode;
	}
	return e;
}
/*	NYC Documentation
	dcsNavigation function walks up the DOM of the page when an event occurs (specifically a click or link)
	to determine the container (as defined in the navigationtag variable) in which the event occurred.
	This is useful when there are multiple links on a page going to the same location but are in different
	div's on the page.
*/
WebTrends.prototype.dcsNavigation=function(evt){
	var id="";
	var cname="";
	var elems=this.dcsSplit(this.navigationtag);
	var elen=elems.length;	
	var i,e,elem;
	for (i=0;i<elen;i++){
		elem=elems[i];
		if (elem.length){
			e=this.dcsEvt(evt,elem);
			id=(e.getAttribute&&e.getAttribute("id"))?e.getAttribute("id"):"";
			cname=e.className||"";
			if (id.length||cname.length){
				break;
			}
		}
	}
	return id.length?id:cname;
}
/*	NYC Documentation
	dcsBind function binds to specific event handlers on the page for automatic tracking of specified events
*/
WebTrends.prototype.dcsBind=function(event,func){
	if ((typeof(func)=="function")&&document.body){
		if (document.body.addEventListener){
			document.body.addEventListener(event, func.wtbind(this), true);
		}
		else if(document.body.attachEvent){
			document.body.attachEvent("on"+event, func.wtbind(this));
		}
	}
}
// Custom function to determine if the event should be passed on to the actual event handlers
WebTrends.prototype.dcsEventEntryPoint=function(evt){
	if (evt&&((typeof(evt.which)!="number")||(evt.which==1))){
		if(typeof(PageArray)=="object"){this.PageEvents = PageArray;}
		var attrib= "";
		var track = false;
		var tag = "";
		var tags=["A","INPUT","BUTTON","AREA"];
		var attribsToTrack = this.dcsSplit(this.trackbyattriblist);		
		evt.srcElement?tag=evt.srcElement.tagName:tag=evt.target.tagName;
		this.e = this.dcsEvt(evt,tag);
		var e = this.e;
		attrib=(e.getAttribute&&e.getAttribute(this.trackattrib))?e.getAttribute(this.trackattrib):e.id;
		if(this.trackattrib.length>0||this.trackbyattriblist.length>0){
			for (var i = 0; i < attribsToTrack.length; i++){	
				if(attrib.toLowerCase() == attribsToTrack[i]||(this.trackattrib=="className"&&attrib.toLowerCase().indexOf(attribsToTrack[i]))){
					track=true;
				}
			}
		}
		if(typeof(e)!="undefined"&&typeof(this.PageEvents)=="object"&&typeof(this.PageEvents[e.id])=="object"){
				track = true;
		}
		if(this.ignoreeventattrib){
				track=true;
		}
		if(track){
				if(evt.type.toLowerCase()=="contextmenu"&&(this.trackallevents||this.trackrightclick)){
					this.dcsRightClick(evt);
				}
				else{
					if(this.trackallevents||this.trackdownload){
					this.dcsDownload(evt);						
					}
					if(this.trackallevents||this.trackjavascript){
						this.dcsJavaScript(evt);
					}
					if(this.trackallevents||this.trackmailto){
						this.dcsMailTo(evt);
					}
					if(this.trackallevents||this.trackformbutton){
						this.dcsFormButton(evt);
					}
					if(this.trackallevents||this.trackoffsite){
						this.dcsOffsite(evt);
					}
					if(this.trackallevents||this.trackonsite){
						this.dcsOnsite(evt);
					}
					if(this.trackallevents||this.trackimagemap){
						this.dcsImageMap(evt);
					}
				}
		}
	}
}
/*	NYC Documentation
	dcsET function calls the dcsBind function to add event handlers for events based on the value of their parameter (i.e. this.trackDownloads=true|false)
	dcsET function calls dcsBind to bind to event handlers for specific event types to enable automatic tracking of those events
*/
WebTrends.prototype.dcsET=function(){
	var e=(navigator.appVersion.indexOf("MSIE")!=-1)?"click":"mousedown";
		this.dcsBind(e,this.dcsEventEntryPoint);
		this.dcsBind("contextmenu",this.dcsEventEntryPoint);
}
// Code section for Generate an Ad View query parameter for every Ad Click link.
WebTrends.prototype.dcsAdSearch=function(){
	if (document.links){
		var param=this.adclickparam+"=";
		var paramlen=param.length;
		var paramre=new RegExp(param,"i");
		var len=document.links.length;
		var pos=end=-1;
		var anch=urlp=value="";
		var urlpre;
		var url=document.URL+"";
		var start=url.search(paramre);
		if (start!=-1){
			end=url.indexOf("&",start);
			urlp=url.substring(start,(end!=-1)?end:url.length);
			urlpre=new RegExp(urlp+"(&|#)","i");
		}
		for (var i=0;i<len;i++){
			if (document.links[i].href){
				anch=document.links[i].href+"";
				if (urlp.length>0){
					anch=anch.replace(urlpre,"$1");
				}
				pos=anch.search(paramre);
				if (pos!=-1){
					start=pos+paramlen;
					end=anch.indexOf("&",start);
					value=anch.substring(start,(end!=-1)?end:anch.length);
					this.WT.ad=this.WT.ad?(this.WT.ad+";"+value):value;
				}
			}
		}
	}
}
// Code section for Assign your query parameters to WebTrends query parameters. You will also need to configure the tag to recognize your query parameters.
WebTrends.prototype.dcsQP=function(N){
	if (typeof(N)=="undefined"){
		return "";
	}
	var qry=location.search.substring(1);
	if (qry!=""){
		var pairs=qry.split("&");
		for (var i=0;i<pairs.length;i++){
			var pos=pairs[i].indexOf("=");
			if (pos!=-1){
				if (pairs[i].substring(0,pos)==N){
					this.qp[this.qp.length]=(i==0?"":"&")+pairs[i];
					return pairs[i].substring(pos+1);
				}
			}
		}
	}
	return "";
}
/*	NYC Documentation
	dcsMultiTrack is a function to allow external applications to interact with the WebTrends tag.
	It is frequently used For link tracking, Flash object tracking, AJAX tracking, etc.
*/
WebTrends.prototype.dcsMultiTrack=function(){
	var args=dcsMultiTrack.arguments?dcsMultiTrack.arguments:arguments;
	if (args.length%2==0){
		this.dcsSetProps(args);
		if(typeof(this.e)=="object"&& typeof(this.e.id) != ""&&typeof(this.e.id) != "undefined"){
			if(typeof(this.PageEvents)== "object"&&typeof(this.PageEvents[this.e.id])=="object"){this.dcsOverrideVar(this.PageEvents[this.e.id]);}
		}
		var dCurrent=new Date();
		this.DCS.dcsdat=dCurrent.getTime();
		this.dcsFPC();
		this.dcsTag();
	}
}
/*	NYC Documentation
	dcsCleanUp function cleans up and destroys variables used in the tag
*/
WebTrends.prototype.dcsCleanUp=function(){
	this.DCS={};
	this.WT={}; 
	this.DCSext={};
	if (arguments.length%2==0){
		this.dcsSetProps(arguments);
	}
}
/*	NYC Documentation
	dcsSetProps function iterates through each variable in the supplied args and assigns them to the correct object, DCS, WT, or DCSext
*/
WebTrends.prototype.dcsSetProps=function(args){
	for (var i=0;i<args.length;i+=2){
		if (args[i].indexOf('WT.')==0){
			this.WT[args[i].substring(3)]=args[i+1];
		}
		else if (args[i].indexOf('DCS.')==0){
			this.DCS[args[i].substring(4)]=args[i+1];
		}
		else if (args[i].indexOf('DCSext.')==0){
			this.DCSext[args[i].substring(7)]=args[i+1];
		}
	}
}
/*	NYC Documentation
	dcsSplit takes a list of comma separated values and returns an object to the calling function
*/
WebTrends.prototype.dcsSplit=function(list){
	var items=list.toLowerCase().split(",");
	var len=items.length;
	for (var i=0;i<len;i++){
		items[i]=items[i].replace(/^\s*/,"").replace(/\s*$/,"");
	}
	return items;
}
// Custom function to set logical title based on available data for automatic event tracking
WebTrends.prototype.dcsEventTitle=function(e){
	if(typeof(this.PageEvents)!="undefined"&&this.dcsGetPageEventParam(e.id,'WT.ti')){
		return this.dcsGetPageEventParam(e.id,'WT.ti');
	}
	if(e.firstChild&&e.firstChild.alt){
		return e.firstChild.alt;
	}
	else if(e.innerText){
		return e.innerText;
	}
	else if (e.pathname){
		var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
		var hn=e.hostname?(e.hostname.split(":")[0]):"";
		var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"";
		return hn+pth+"?"+qry;
	}	
	else if(e.name){
		return e.name;
	}
	else if(e.id){
		return e.id;
	}
	else{
		return "Unknown Title";
	}
}
/*	NYC Documentation
	dcsDownload function binds to links on the page that link to a file type defined in the
	downloadtypes variable and are hosted on the same site for automatic tracking of those clicks
*/
// Code section for Track clicks to download links.
WebTrends.prototype.dcsDownload=function(evt){
	evt=evt||(window.event||"");
	if (evt&&((typeof(evt.which)!="number")||(evt.which==1))){
		var e=this.dcsEvt(evt,"A");
		if (e.href){
		    var hn=e.hostname?(e.hostname.split(":")[0]):"";
		    var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
		    if (this.dcsIsOnsite(hn,pth)&&this.dcsTypeMatch(e.pathname,this.downloadtypes)){
		        var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"";
		        var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
		        var ttl="";
		        var text=document.all?e.innerText:e.text;
		        var img=this.dcsEvt(evt,"IMG");
		        if (img.alt){
			        ttl=img.alt;
		        }
		        else if (text){
			        ttl=text;
		        }
		        else if (e.innerHTML){
			        ttl=e.innerHTML;
		        }
		        this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",e.search||"","WT.ti","Download: "+ this.dcsEventTitle(e),"WT.dl","20","WT.nv",this.dcsNavigation(evt));
		        this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.WT.ti=this.WT.dl=this.WT.nv="";
						//alert("Sent to dcsDownload");		        
		    }
		}
	}
}
/*	NYC Documentation
	dcsRightClick function binds to right mouse button clicks on the page for automatic tracking of those clicks
*/
// Code section for Track right clicks to download links.
WebTrends.prototype.dcsRightClick=function(evt){
	evt=evt||(window.event||"");
	if (evt){
		var btn=evt.which||evt.button;
		if ((btn!=1)||(navigator.userAgent.indexOf("Safari")!=-1)){
			var e=this.dcsEvt(evt,"A");
			if ((typeof(e.href)!="undefined")&&e.href){
				if ((typeof(e.protocol)!="undefined")&&e.protocol&&(e.protocol.indexOf("http")!=-1)){
					if ((typeof(e.pathname)!="undefined")&&this.dcsTypeMatch(e.pathname,this.downloadtypes)){
						var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
						var hn=e.hostname?(e.hostname.split(":")[0]):"";
						this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry","","WT.ti","RightClick: "+this.dcsEventTitle(e),"WT.dl","25");
						this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv="";
						//alert("Sent to dcsRightClick");
					}
				}
			}
		}
	}
}
/*	NYC Documentation
	dcsMailTo function binds to mailto links on the page for automatic tracking of clicks on those objects
*/
// Code section for Track clicks to MailTo links.
WebTrends.prototype.dcsMailTo=function(evt){
	evt=evt||(window.event||"");
	if (evt&&((typeof(evt.which)!="number")||(evt.which==1))){
		var e=this.dcsEvt(evt,"A");
		if (e.href&&e.protocol){
			var qryk
			if (e.protocol.toLowerCase()=="mailto:"){
				this.dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",e.href,"WT.ti","MailTo: "+this.dcsEventTitle(e),"WT.dl","23","WT.nv",this.dcsNavigation(evt));
				this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv="";
				//alert("Sent to dcsMailto");
			}
		}
	}
}
/*	NYC Documentation
	dcsJavaScript function binds to javascript links on the page for automatic tracking of clicks on those objects
*/
// Code section for Track clicks to JavaScript links.
WebTrends.prototype.dcsJavaScript=function(evt){
	evt=evt||(window.event||"");
	if (evt&&((typeof(evt.which)!="number")||(evt.which==1))){
		var e=this.dcsEvt(evt,"A");
		if (e.href&&e.protocol){
			var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"";
			if (e.protocol.toLowerCase()=="javascript:"){
				this.dcsMultiTrack("DCS.dcssip","","DCS.dcsuri",e.href,"WT.ti","JavaScript: "+this.dcsEventTitle(e),"WT.dl","22","WT.nv",this.dcsNavigation(evt));
				this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.cl=this.WT.nv="";					
			}
		}
	}
}
/*	NYC Documentation
	dcsFormButton function binds to form buttons on the page for automatic tracking of clicks on those objects
*/
// Code section for Track form button clicks.
WebTrends.prototype.dcsFormButton=function(evt){
	evt=evt||(window.event||"");
	if (evt&&((typeof(evt.which)!="number")||(evt.which==1))){
		var tags=["INPUT","BUTTON"];
		for (var j=0;j<tags.length;j++){
			var e=this.dcsEvt(evt,tags[j]);
			var type=e.type||"";
			if (type&&((type=="submit")||(type=="image")||(type=="button")||(type=="reset"))||((type=="text")&&((evt.which||evt.keyCode)==13))){
				var uri="";
				var ttl="";
				var id=0;
				if (e.form){
					// begin: field capture
					// end: field capture
					uri=e.form.action||window.location.pathname;
					ttl=e.form.id||e.form.name||e.form.className||"Unknown";
					id=(e.form.method&&(e.form.method.toLowerCase()=="post"))?"27":"26";
				}
				else{
					uri=window.location.pathname;
					ttl=e.name||e.id||"Unknown";
					id=(tags[j].toLowerCase()=="input")?"28":"29";
				}
				if (uri&&ttl&&(evt.keyCode!=9)){
					this.dcsMultiTrack("DCS.dcsuri",uri,"WT.ti","FormButton: "+this.dcsEventTitle(e),"WT.dl",id,"WT.nv",this.dcsNavigation(evt));
					//alert("Sent to dcsFormButton");
				}
				this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv="";
				break;
			}
		}
	}
}
/*	NYC Documentation
	dcsLinks function binds to links on the page for automatic tracking of those clicks
*/
// Code section for Track clicks to links leading offsite.
WebTrends.prototype.dcsOffsite=function(evt){
	evt=evt||(window.event||"");
	if (evt&&((typeof(evt.which)!="number")||(evt.which==1))){
		var e=this.dcsEvt(evt,"A");
		if (e.href){
		    var hn=e.hostname?(e.hostname.split(":")[0]):"";
		    var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
		    var pr=e.protocol||"";
		    if ((hn.length>0)&&(pr.indexOf("http")==0)&&!this.dcsIsOnsite(hn)){
			    var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"";
			    var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
			    this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",this.trimoffsiteparams?"":qry,"DCS.dcsref",window.location,"WT.ti","Link: "+ this.dcsEventTitle(e),"WT.dl","24","WT.nv",this.dcsNavigation(evt));
			    this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.DCS.dcsref=this.WT.ti=this.WT.dl=this.WT.nv="";
			    //alert("Sent to dcsOffsite");
		    }
		}
	}
}
/*	NYC Documentation
	dcsLinks function binds to links on the page for automatic tracking of those clicks
*/
// Code section for Track clicks to links that remain onsite.
WebTrends.prototype.dcsOnsite=function(evt){
	evt=evt||(window.event||"");
	if (evt&&((typeof(evt.which)!="number")||(evt.which==1))){
		var e=this.dcsEvt(evt,"A");
		if (e.href){
		    var hn=e.hostname?(e.hostname.split(":")[0]):"";
		    var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
		    if (this.dcsIsOnsite(hn)&&!this.dcsTypeMatch(e.pathname,this.downloadtypes)){
		      var qry=e.search?e.search.substring(e.search.indexOf("?")+1,e.search.length):"";
			    var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
			    if(this.onsitere.test(hn+pth)){
				    this.PageEvents["EventTemp"] = [];
				    this.PageEvents["EventTemp"][0]=["DCSext.o_lo"];
				    this.PageEvents["EventTemp"][1]=["Unknown Category"];
				    this.PageEvents["EventTemp"][2]=["DCSext.o_ld"];
				    this.PageEvents["EventTemp"][3]=[this.dcsEventTitle(e)];
				    this.dcsOverrideVar(this.PageEvents["EventTemp"]);
				    this.PageEvents["EventTemp"] = null;
			  	}
			    this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth+e.hash,"WT.ti","Link: "+this.dcsEventTitle(e),"WT.dl","21","WT.nv",this.dcsNavigation(evt));
			    this.DCS.dcssip=this.DCS.dcsuri=this.WT.ti=this.WT.dl=this.WT.nv="";
			    //alert("Sent to dcsOnsite");
		    }
		}
	}
}
/*	NYC Documentation
	dcsImageMap function binds to image map links on the page for automatic tracking of clicks on those objects
*/
// Code section for clicks to image maps.
WebTrends.prototype.dcsImageMap=function(evt){
	evt=evt||(window.event||"");
	if (evt){
		var e=this.dcsEvt(evt,"AREA");
		if (e.href){
		    var hn=e.hostname?(e.hostname.split(":")[0]):"";
		    if ((hn!="")&&e.protocol&&(e.protocol.indexOf("http")!=-1)){
			    var ttl="";
			    var map=this.dcsEvt(evt,"MAP");
			    if (map){
			        if (map.name){
				        ttl=map.name;
			        }
			        else if (map.id){
				        ttl=map.id;
			        }
			    }
			    var pth=e.pathname?((e.pathname.indexOf("/")!=0)?"/"+e.pathname:e.pathname):"/";
			    this.dcsMultiTrack("DCS.dcssip",hn,"DCS.dcsuri",pth,"DCS.dcsqry",e.search||"","WT.ti","ImageMap: "+this.dcsEventTitle(e),"WT.dl","30","WT.nv",this.dcsNavigation(evt));
			    this.DCS.dcssip=this.DCS.dcsuri=this.DCS.dcsqry=this.WT.ti=this.WT.dl=this.WT.nv="";
			    //alert("Sent to dcsImageMap");
		    }			
		}			
	}
}
// Custom function to pull parameter value from page array
WebTrends.prototype.dcsGetPageEventParam=function(eventID,Param){
	if(this.PageEvents[eventID]){
		for(var j = 0; j < this.PageEvents[eventID].length; j+=2){		
			if(this.PageEvents[eventID][j][0] == Param){
				return this.PageEvents[eventID][j+1][0];
			}
		}
	}
}
/*	NYC Documentation
	dcsAdv function binds to event handlers for automatic tracking of enabled event types
*/
WebTrends.prototype.dcsAdv=function(){
	if (this.trackevents&&(typeof(this.dcsET)=="function")){
		if (window.addEventListener){
			window.addEventListener("load",this.dcsET.wtbind(this),false);
		}
		else if (window.attachEvent){
			window.attachEvent("onload",this.dcsET.wtbind(this));
		}
	}
	this.dcsAdSearch();
	this.dcsFPC();
}
//Custom function to override WebTrends parameters with NYC parameters.
WebTrends.prototype.dcsOverrideVar=function(arr){
	this.dcsSetProps(arr);
}
/*	NYC Documentation
	dcsVar function sets the appropriate values for most of the standard WebTrends parameters such as time zone, flash version, etc.
*/
WebTrends.prototype.dcsVar=function(){
	var dCurrent=new Date();
	var WT=this.WT;
	var DCS=this.DCS;
	WT.tz=parseInt(dCurrent.getTimezoneOffset()/60*-1)||"0";
	WT.bh=dCurrent.getHours()||"0";
	WT.ul=navigator.appName=="Netscape"?navigator.language:navigator.userLanguage;
	if (typeof(screen)=="object"){
		WT.cd=navigator.appName=="Netscape"?screen.pixelDepth:screen.colorDepth;
		WT.sr=screen.width+"x"+screen.height;
	}
	if (typeof(navigator.javaEnabled())=="boolean"){
		WT.jo=navigator.javaEnabled()?"Yes":"No";
	}
	if (document.title){
		if (window.RegExp){
			var tire=new RegExp("^"+window.location.protocol+"//"+window.location.hostname+"\\s-\\s");
			WT.ti=document.title.replace(tire,"");
		}
		else{
			WT.ti=document.title;
		}
	}
	WT.js="Yes";
	WT.jv=(function(){
		var agt=navigator.userAgent.toLowerCase();
		var major=parseInt(navigator.appVersion);
		var mac=(agt.indexOf("mac")!=-1);
		var ff=(agt.indexOf("firefox")!=-1);
		var ff0=(agt.indexOf("firefox/0.")!=-1);
		var ff10=(agt.indexOf("firefox/1.0")!=-1);
		var ff15=(agt.indexOf("firefox/1.5")!=-1);
		var ff20=(agt.indexOf("firefox/2.0")!=-1);
		var ff3up=(ff&&!ff0&&!ff10&!ff15&!ff20);
		var nn=(!ff&&(agt.indexOf("mozilla")!=-1)&&(agt.indexOf("compatible")==-1));
		var nn4=(nn&&(major==4));
		var nn6up=(nn&&(major>=5));
		var ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));
		var ie4=(ie&&(major==4)&&(agt.indexOf("msie 4")!=-1));
		var ie5up=(ie&&!ie4);
		var op=(agt.indexOf("opera")!=-1);
		var op5=(agt.indexOf("opera 5")!=-1||agt.indexOf("opera/5")!=-1);
		var op6=(agt.indexOf("opera 6")!=-1||agt.indexOf("opera/6")!=-1);
		var op7up=(op&&!op5&&!op6);
		var jv="1.1";
		if (ff3up){
			jv="1.8";
		}
		else if (ff20){
			jv="1.7";
		}
		else if (ff15){
			jv="1.6";
		}
		else if (ff0||ff10||nn6up||op7up){
			jv="1.5";
		}
		else if ((mac&&ie5up)||op6){
			jv="1.4";
		}
		else if (ie5up||nn4||op5){
			jv="1.3";
		}
		else if (ie4){
			jv="1.2";
		}
		return jv;
	})();
	WT.ct="unknown";
	if (document.body&&document.body.addBehavior){
		try{
			document.body.addBehavior("#default#clientCaps");
			WT.ct=document.body.connectionType||"unknown";
			document.body.addBehavior("#default#homePage");
			WT.hp=document.body.isHomePage(location.href)?"1":"0";
		}
		catch(e){
		}
	}
	if (document.all){
		WT.bs=document.body?document.body.offsetWidth+"x"+document.body.offsetHeight:"unknown";
	}
	else{
		WT.bs=window.innerWidth+"x"+window.innerHeight;
	}
	WT.fv=(function(){
		var i,flash;
		if (window.ActiveXObject){
			for(i=10;i>0;i--){
				try{
					flash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
					return i+".0";
				}
				catch(e){
				}
			}
		}
		else if (navigator.plugins&&navigator.plugins.length){
			for (i=0;i<navigator.plugins.length;i++){
				if (navigator.plugins[i].name.indexOf('Shockwave Flash')!=-1){
					return navigator.plugins[i].description.split(" ")[2];
				}
			}
		}
		return "Not enabled";
	})();
	WT.slv=(function(){
		var slv="Not enabled";
		try{     
			if (navigator.userAgent.indexOf('MSIE')!=-1){
				var sli = new ActiveXObject('AgControl.AgControl');
				if (sli){
					slv="Unknown";
				}
			}
			else if (navigator.plugins["Silverlight Plug-In"]){
				slv="Unknown";
			}
		}
		catch(e){
		}
		if (slv!="Not enabled"){
			var i,j,v;
			if ((typeof(Silverlight)=="object")&&(typeof(Silverlight.isInstalled)=="function")){
				for(i=3;i>0;i--){
					for (j=9;j>=0;j--){
						v=i+"."+j;
						if (Silverlight.isInstalled(v)){
							slv=v;
							break;
						}
					}
					if (slv==v){
						break;
					}
				}
			}
		}
		return slv;
	})();
	if (this.i18n){
		if (typeof(document.defaultCharset)=="string"){
			WT.le=document.defaultCharset;
		} 
		else if (typeof(document.characterSet)=="string"){
			WT.le=document.characterSet;
		}
		else{
			WT.le="unknown";
		}
	}
	WT.tv=this.tagver;
	WT.itagver=this.itagver;
	if(this.splitparam){WT.sp=this.splitparam;}
	WT.dl="0";
	WT.ssl=(window.location.protocol.indexOf('https:')==0)?"1":"0";
	DCS.dcsdat=dCurrent.getTime();
	DCS.dcssip=window.location.hostname;
	DCS.dcsuri=window.location.pathname;
	WT.es=DCS.dcssip+DCS.dcsuri;
	if (window.location.search){
		//DCS.dcsqry=window.location.search;
		DCS.dcsqry=this.dcsEscape(window.location.search,this.re);
	}
	if (DCS.dcsqry){
		var dcsqry=DCS.dcsqry.toLowerCase();
		var params=this.paidsearchparams.length?this.paidsearchparams.toLowerCase().split(","):[];
		for (var i=0;i<params.length;i++){
			if (dcsqry.indexOf(params[i]+"=")!=-1){
				WT.srch="1";
				break;
			}
		}
	}
	if ((window.document.referrer!="")&&(window.document.referrer!="-")){
		if (!(navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)<4)){
			DCS.dcsref=window.document.referrer;
		}
	}
}
/*	NYC Documentation
	dcsEscape function escapes strings passed to it
*/
WebTrends.prototype.dcsEscape=function(S, REL){
	if (REL!=""){
		S=S.toString();
		for (var R in REL){
 			if (REL[R] instanceof RegExp){
				S=S.replace(REL[R],R);
 			}
		}
		return S;
	}
	else{
		return escape(S);
	}
}
/*	NYC Documentation
	dcsA function encodes values passed to it if i18n is enabled
*/
WebTrends.prototype.dcsA=function(N,V){
	if (this.i18n&&(this.exre!="")&&!this.exre.test(N)){
		if (N=="dcsqry"){
			var newV="";
			var params=V.substring(1).split("&");
			for (var i=0;i<params.length;i++){
				var pair=params[i];
				var pos=pair.indexOf("=");
				if (pos!=-1){
					var key=pair.substring(0,pos);
					var val=pair.substring(pos+1);
					if (i!=0){
						newV+="&";
					}
					newV+=key+"="+this.dcsEncode(val);
				}
			}
			V=V.substring(0,1)+newV;
		}
		else{
			V=this.dcsEncode(V);
		}
	}
	return "&"+N+"="+this.dcsEscape(V, this.re);
}
/*	NYC Documentation
	dcsEncode function prepares strings passed to it for transmission in a URL by escaping spaces and other problematic characters
*/
WebTrends.prototype.dcsEncode=function(S){
	return (typeof(encodeURIComponent)=="function")?encodeURIComponent(S):escape(S);
} 
/*	NYC Documentation
	dcsCreateImage function creates the pixel image request and 'writes' it to the page
*/
WebTrends.prototype.dcsCreateImage=function(dcsSrc){
	if (document.images){
		this.images[this.index]=new Image();
		this.images[this.index].src=dcsSrc;
		this.index++;
	}
	else{
		document.write('<img alt="" border="0" name="DCSIMG" width="1" height="1" src="'+dcsSrc+'">');
	}
}
/*	NYC Documentation
	dcsMeta function searches through the HTML header on the page to find meta tags and associates them with parameters.
	This functionality enables us to set parameter values through meta tags rather than javascript.
*/
WebTrends.prototype.dcsMeta=function(){
	var elems;
	if (document.all){
		elems=document.all.tags("meta");
	}
	else if (document.documentElement){
		elems=document.getElementsByTagName("meta");
	}
	if (typeof(elems)!="undefined"){
		var length=elems.length;
		for (var i=0;i<length;i++){
			var name=elems.item(i).name;
			var content=elems.item(i).content;
			var equiv=elems.item(i).httpEquiv;
			if (name.length>0){
				if (name.toUpperCase().indexOf("WT.")==0){
					this.WT[name.substring(3)]=content;
				}
				else if (name.toUpperCase().indexOf("DCSEXT.")==0){
					this.DCSext[name.substring(7)]=content;
				}
				else if (name.toUpperCase().indexOf("DCS.")==0){
					this.DCS[name.substring(4)]=content;
				}
			}
		}
	}
}
/*	NYC Documentation
	dcsTag function is the heart of the tag, assembling return values from other functions, this function actually
	triggers the call to the tracking image pixel.
*/	
WebTrends.prototype.dcsTag=function(){
	if (document.cookie.indexOf("WTLOPTOUT=")!=-1){
		return;
	}
	var WT=this.WT;
	var DCS=this.DCS;
	var DCSext=this.DCSext;
	var i18n=this.i18n;
	var P="http"+(window.location.protocol.indexOf('https:')==0?'s':'')+"://"+this.domain+(this.dcsid==""?'':'/'+this.dcsid)+"/dcs.gif?";
	if (i18n){
		WT.dep="";
	}
	for (var N in DCS){
 		if (DCS[N]&&(typeof DCS[N]!="function")){
			P+=this.dcsA(N,DCS[N]);
		}
	}
	var keys=["co_f","vtid","vtvs","vt_f_tlv"];
	for (var i=0;i<keys.length;i++){
		var key=keys[i];
		if (WT[key]){
			P+=this.dcsA("WT."+key,WT[key]);
			delete WT[key];
		}
	}
	for (N in WT){
		if (WT[N]&&(typeof WT[N]!="function")){
			P+=this.dcsA("WT."+N,WT[N]);
		}
	}
	for (N in DCSext){
		if (DCSext[N]&&(typeof DCSext[N]!="function")){
			if (i18n){
				WT.dep=(WT.dep.length==0)?N:(WT.dep+";"+N);
			}
			P+=this.dcsA(N,DCSext[N]);
		}
	}
	if (i18n&&(WT.dep.length>0)){
		P+=this.dcsA("WT.dep",WT.dep);
	}
	if (P.length>2048&&navigator.userAgent.indexOf('MSIE')>=0){
		P=P.substring(0,2040)+"&WT.tu=1";
	}
	this.dcsCreateImage(P);
	this.WT.ad="";
}
/*	NYC Documentation
	dcsDebug function provides an easy way to identify that the tag is functioning as expected
	as well as identifying what parameters/values are being collected and sent to the SDC server.
*/
WebTrends.prototype.dcsDebug=function(){
	var t=this;
	var i=t.images[0].src;
	var q=i.indexOf("?");
	var r=i.substring(0,q).split("/");
	var m="<b>Protocol</b><br><code>"+r[0]+"<br></code>";
	m+="<b>Domain</b><br><code>"+r[2]+"<br></code>";
	m+="<b>Path</b><br><code>/"+r[3]+"/"+r[4]+"<br></code>";
	m+="<b>Query Params</b><code>"+i.substring(q+1).replace(/\&/g,"<br>")+"</code>";
	m+="<br><b>Cookies</b><br><code>"+document.cookie.replace(/\;/g,"<br>")+"</code>";
	if (t.w&&!t.w.closed){
		t.w.close();
	}
	t.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");
	t.w.document.write(m);
	t.w.focus();
}
//	Custom addition to dcsDebug()
WebTrends.prototype.dcsDebugOverrides=function(eventId){
	var t=this;
	var i;
	typeof(eventId)=="undefined"?i=t.PageEvents.clone():i=t.PageEvents[eventId].clone();
	var m="<b>Overridden Query Params for <span style='color:blue;'>" + eventId + "</span></b><br />";
	for(var j = 0; j < i.length; j+=2){
		//m+="<code>TEST</code>";
		m+="<code>" + i[j];
		m+=" = " + i[j+1];
		m+="</code><br />";
		//m+="<code>"+i[j] + " = " +i[j+1] +"</code>");
	}
	if (t.w&&!t.w.closed){
		t.w.close();
	}
	t.w=window.open("","dcsDebug","width=500,height=650,scrollbars=yes,resizable=yes");
	t.w.document.write(m);
	t.w.focus();
}
/*	NYC Documentation
	dcsCollect function actually runs the tag by calling specific functions.  Modified to call dcsOverrideVar function
*/	
WebTrends.prototype.dcsCollect=function(){
	if (this.enabled){
        this.dcsVar();
        this.dcsMeta();
				if(typeof(this.PageEvents)=="object"&&typeof(this.PageEvents.PageLoad)=="object"){this.dcsOverrideVar(PageArray.PageLoad);}
        this.dcsAdv();
        this.dcsTag();
    }
}
/*	NYC Documentation
	wtbind interacts with dcsAdv and dcsET for automatic event handler based event tracking
*/	
Function.prototype.wtbind = function(obj){
	var method=this;
	var temp=function(){
		return method.apply(obj,arguments);
	};
	return temp;
}
function dcsMultiTrack(){
	if (typeof(_nyctag)!="undefined"){
		return(_nyctag.dcsMultiTrack());
	}
}
function dcsDebug(){
	if (typeof(_nyctag)!="undefined"){
		return(_nyctag.dcsDebug());
	}
}
function dcsDebugOverrides(eventId){
	if (typeof(_nyctag)!="undefined"){
		if(typeof(eventId)!="undefined"){
			return(_nyctag.dcsDebugOverrides(eventId));
		}
		else{
			return(_nyctag.dcsDebugOverrides("PageLoad"));
		}
	}
}

