(function() {
try {
if (!ognc.exists) { throw "ogncObjUndefined"; }

ognc.tracking = 
{
	trackingGroup:'',
	trackingSubGroup:'',
	pageTracker : _gat._getTracker("UA-11973763-6"),
	pageTrackerAll : _gat._getTracker("UA-11973763-1"),
	regX: /[^a-zA-Z0-9]/g,

	/**************************************
		Tracking setters
	 **************************************/
	
	/**********************************************************************
	  HTML Link Track Example: linkTrack('contet', 'Lern More');
	 **********************************************************************/
	 linkTrack : function(argLPOS, argName){
		
		//Strip out anything that is not alphanumeric
		argName = argName.replace(this.regX, " ");
		
		/*WT*/
		dcsMultiTrack('DCS.dcsuri','/LinkTracking.html','WT.ti','LinkTracking', 'WT.z_ll',argLPOS, 'WT.z_ln',argName,'WT.dl','40');
		/*Google*/
		ognc.tracking.pageTracker._trackEvent(argLPOS, argName, null, null);
		ognc.tracking.pageTrackerAll._trackEvent(argLPOS, argName, null, null);
	 },
	 
	 	 /**********************************************************************
	  HTML Free Sample Track Example: sampleTrack('content', 'GetAFreeSample');
	 **********************************************************************/
	 
	 sampleTrack : function(argLPOS, argName){
		
		//Strip out anything that is not alphanumeric
		argName = argName.replace(this.regX, " ");
		
		/*WT*/
		dcsMultiTrack('DCS.dcsuri','/FreeSampleTracking.html','WT.ti','FreeSampleTracking', 'WT.z_ll',argLPOS, 'WT.z_ln',argName,'WT.dl','40');
		/*Google*/
		ognc.tracking.pageTracker._trackEvent(argLPOS, argName, null, null);
		ognc.tracking.pageTrackerAll._trackEvent(argLPOS, argName, null, null);
	 },
	 
	 /**********************************************************************
	  HTML Product Selector Track Example: linkTrack('content', 'ProductSelector');
	 **********************************************************************/
	 
	 productSelectorTrack : function(argLPOS, argName){
		
		//Strip out anything that is not alphanumeric
		argName = argName.replace(this.regX, " ");
		
		/*WT*/
		dcsMultiTrack('DCS.dcsuri','/ProductSelectorTracking.html','WT.ti','ProductSelectorTracking', 'WT.z_ll',argLPOS, 'WT.z_ln',argName,'WT.dl','40');
		/*Google*/
		ognc.tracking.pageTracker._trackEvent(argLPOS, argName, null, null);
		ognc.tracking.pageTrackerAll._trackEvent(argLPOS, argName, null, null);
	 },
	 //Added by Q03619
	 /**********************************************************************
	  HTML Product Selector Track Example: linkTrack('page', 'tagname');
	 **********************************************************************/
	 
	 
	 
	 ProductTracking : function(argLPOS, argName){
		
		//Strip out anything that is not alphanumeric
		//argName = argName.replace(this.regX, " ");
		
		/*WT*/
		//dcsMultiTrack('DCS.dcsuri','/ProductSelectorTracking.html','WT.ti','ProductSelectorTracking', 'WT.z_ll',argLPOS, 'WT.z_ln',argName,'WT.dl','40');
		
		dcsMultiTrack('DCS.dcsuri',argLPOS,'WT.si_n',argName,'WT.si_x','1','WT.si_cs','1','WT.dl','1');
		
	 },
	 /**********************************************************************
	  HTML Product Selector Track Example: FloodLighttag_Freesample('url');
	 **********************************************************************/
	 
	 FloodLighttag_Freesample : function(url){
		
	/*
Start of DoubleClick Floodlight Tag: Please do not remove
Activity name of this tag: Product Selector Step 6 Sample Button 
URL of the webpage where the tag is expected to be placed: http://depend.com/products
This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
Creation Date: 02/04/2011
*/

var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="http://fls.doubleclick.net/activityi;src=1665659;type=depen354;cat=right532;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
window.location=url;

/*<!-- End of DoubleClick Floodlight Tag: Please do not remove -->*/
	
	 },
	  /**********************************************************************
	  HTML Product Selector Track Example: FloodLighttag_Freesample('url');
	 **********************************************************************/
	 
	 FloodLighttag_Freesample : function(url){
		
	/*
Start of DoubleClick Floodlight Tag: Please do not remove
Activity name of this tag: Product Selector Step 6 Sample Button 
URL of the webpage where the tag is expected to be placed: http://depend.com/products
This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
Creation Date: 02/04/2011
*/

var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="http://fls.doubleclick.net/activityi;src=1665659;type=depen354;cat=right532;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');
window.location=url;

/*<!-- End of DoubleClick Floodlight Tag: Please do not remove -->*/
	
	 },
	 /**********************************************************************
	  HTML Product Selector Track Example: FloodLighttag_Wheretobuy('url');
	 **********************************************************************/
	 
	 FloodLighttag_Wheretobuy : function(){
		
	/*
Start of DoubleClick Floodlight Tag: Please do not remove
Activity name of this tag: Product Selector Step 6 Where to Buy Button 
URL of the webpage where the tag is expected to be placed: http://depend.com/products
This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
Creation Date: 02/04/2011
*/

var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="http://fls.doubleclick.net/activityi;src=1665659;type=depen354;cat=right695;ord=' + a + '?" width="1" height="1" frameborder="0"></iframe>');

/*<!-- End of DoubleClick Floodlight Tag: Please do not remove*/
	
	 },
	
	 
	 /**********************************************************************
	  HTML Product  Track Example: linkTrack('page', 'tagname');
	 **********************************************************************/
	 
	 ProductTrackingNew : function(argPage, argName, argTag){
		
		//Strip out anything that is not alphanumeric
		//argName = argName.replace(this.regX, " ");
		
		/*WT*/
		
		dcsMultiTrack('DCS.dcsuri',argPage,'WT.ti',argName,'WT.z_ll',argName,'WT.z_ln',argTag,'WT.dl','40');
		
		
	 },
	 
	 /**********************************************************************
	  Product Track Example: linkTrack('content', 'Learn More', 'WomensDepend');
	 **********************************************************************/
	 
	 productTrack : function(argSKU, argLPOS, argName){
		
		//Strip out anything that is not alphanumeric
		argName = argName.replace(this.regX, " ");
		argSKU = argSKU.replace(this.regX, "");
		
		/*WT*/
		dcsMultiTrack('DCS.dcsuri','/ProductDetailtracking.html','WT.ti','ProductDetailTracking', 'WT.z_ll',argLPOS, 'WT.z_ln',argName,'WT.dl','40', 'WT.pn_sku', argSKU);
		/*Google*/
		ognc.tracking.pageTracker._trackEvent(argLPOS, argName, null, null);
		ognc.tracking.pageTrackerAll._trackEvent(argLPOS, argName, null, null);
	 },
		
	 /**********************************************************************
	  HTML or Flash Page Track Example: pageTrack('/product/tampon/overview');
	 **********************************************************************/
	 pageTrack : function(argPN) {
		
		//Strip out anything that is not alphanumeric
		argPN = argPN.replace(this.regX, " ");
		
		/*WT*/
		dcsMultiTrack('DCS.dcssip',document.domain,'DCS.dcsuri',window.location.pathname + "/" + argPN,'WT.ti',document.title,'WT.dl','40');
		/*Google*/
		ognc.tracking.pageTracker._trackPageview(window.location.pathname + "/" + argPN);
		ognc.tracking.pageTrackerAll._trackPageview(window.location.pathname + "/" + argPN);
	 },
	
	 /**********************************************************************
	  HTML Conversion Track Start Example: function('Content','Share','UBK_Share', '1', '');
	  HTML Conversion Track Complete Example: function('Content','Share','UBK_Share', '2', '1');
	 **********************************************************************/
	 conversionTrack: function(argLPOS, argName, argSAName, argSAStep, argSAComp, argMediaId){
		//Strip out anything that is not alphanumeric
		argName = argName.replace(this.regX, " ");
		/*WT*/
		dcsMultiTrack('DCS.dcsuri','/Conversion.html','WT.ti','Conversion Event', 'WT.z_ll',argLPOS, 'WT.z_ln',argName,'WT.dl','40', 'WT.z_mtitle', argMediaId,'WT.z_viewtime','', 'WT.si_n',argSAName,'WT.si_x',argSAStep,'WT.si_cs',argSAComp);
		/*Google*/
		var ov = argSAStep ? parseInt(argSAStep) : null;
		ognc.tracking.pageTracker._trackEvent(argLPOS, argName, argSAName, ov);
		ognc.tracking.pageTrackerAll._trackEvent(argLPOS, argName, argSAName, ov);
	 },
	  
	 /**********************************************************************
	   FLASH Link Track Example: flashLinkTrack('contet', 'Lern More');
	**********************************************************************/
	 flashLinkTrack:function(argLPOS, argName){
		
		//Strip out anything that is not alphanumeric
		argName = argName.replace(this.regX, " ");
		
		/*WT*/
		dcsMultiTrack('DCS.dcssip',document.domain,'DCS.dcsuri',document.location.pathname,'WT.ti',document.title,'WT.dl','40',"WT.z_ll",argLPOS,"WT.z_ln",argName);
		/*Google*/
		ognc.tracking.pageTracker._trackEvent(argLPOS, argName, null, null);
		ognc.tracking.pageTrackerAll._trackEvent(argLPOS, argName, null, null);
	 },
	
	/**********************************************************************
	FLASH Conversion Track Start Example's
	Start:flashConversionTrack('Content','Play','Video Title','Start','VideoActivity','1','');
	Stop:flashConversionTrack('Content','Stop','Video Title','Stop','VideoActivity','1','');
	Playing:flashConversionTrack('Content','Play','Video Title','15','','','');
	Complete:flashConversionTrack('Content','Play','Video Title','Complete','VideoActivity','2','1');
	**********************************************************************/
	flashConversionTrack:function(argLPOS, argName, argMediaTitle, argViewTime, argSAName, argSAStep, argSAComp){
		
		//Strip out anything that is not alphanumeric
		argName = argName.replace(this.regX, " ");
		argMediaTitle = argMediaTitle.replace(this.regX, " ");
		
		/*WT*/
		dcsMultiTrack('DCS.dcssip',document.domain,"DCS.dcsuri",document.location.pathname,"WT.ti",document.title,"WT.dl",'41',"WT.z_ll",argLPOS,"WT.z_ln",argName,"WT.z_mtitle",argMediaTitle,"WT.z_viewtime",argViewTime,"WT.si_n",argSAName,"WT.si_x",argSAStep,"WT.si_cs",argSAComp);
		/*Google*/
		var ol = argMediaTitle + ":" + argViewTime;
		var ov = argSAStep ? parseInt(argSAStep) : null;
		ognc.tracking.pageTracker._trackEvent(argLPOS, argName, ol, ov);
		ognc.tracking.pageTrackerAll._trackEvent(argLPOS, argName, ol, ov);
	},
	
	
	
	/**********************************************************************
	  Set Group and SubGroup meta tags for page/link tracking.
	**********************************************************************/
	
	setTrackingMetaTages:function(){
		var thisLocation = document.title;
		var locationSplit = thisLocation.split("-");

		if(locationSplit[1]){
			this.trackingGroup = locationSplit[1].replace(this.regX, "");
			$("meta[name$='WT.cg_n']").attr('content',this.trackingGroup);
		}
		
		if(locationSplit[2]){
			this.trackingSubGroup = locationSplit[2].replace(this.regX, "");
			$("meta[name$='WT.cg_s']").attr('content',this.trackingSubGroup);
		}
		
	
	}


};

} catch(e) { ognc.standard_error_handler(e); }
})();

//Run During Page Load
ognc.tracking.setTrackingMetaTages();

//Update google codes if in depend domain
if(location.hostname.indexOf('.depend.com') != -1){
	ognc.tracking.pageTracker = _gat._getTracker("UA-12568652-5"),
	ognc.tracking.pageTrackerAll = _gat._getTracker("UA-12568652-1")
	ognc.tracking.pageTracker._setDomainName(".depend.com");
}

ognc.tracking.pageTracker._trackPageview();
ognc.tracking.pageTrackerAll._trackPageview();
