﻿//-- START OF Dummy IQID for OrganicSearch/DirectHit TAG -); 
//document.write(unescape("%3Cscript src='/tc/js/TrackingCodeIQID.js' type='text/javascript'%3E%3C/script%3E"));
var sIQ_ID = getURLParam('IQ_ID');
if(sIQ_ID=="" || sIQ_ID == "undefined")
{ 
    //with in 30 minutes
    var sIQID_Cookie = getCookie('ci2009HKIQ_ID');	
    //alert("document.referrer=" + document.referrer );				 
	//alert("Testing Check Cooking: "+sIQID_Cookie);			    
    //no iq_id in the cookie  
    if( (sIQID_Cookie==null)||(sIQID_Cookie=="") )
    {
				 var sDummyIQ_ID, sType;
				 sDummyIQ_ID = getDummyIQ_ID(document.referrer);       
          
				//write dummy iq_iq into cookie
				setCookie("ci2009HKIQ_ID",sDummyIQ_ID,30,"/","", false); //30 minutes
				//sIQ_ID = sIQID_Cookie;
    } //end of if( (sIQID_Cookie!=null)||(sIQID_Cookie!="") )
    else
    {
      //cookie: 
      //alert( "cookie ci2009IQ_ID=" + getCookie('ci2009IQ_ID') );
    }
}
else
{//If IQ_ID exists, it must come from paid search, banner or other media channel.
//do nothing
		setCookie("ci2009HKIQ_ID",sIQ_ID,30,"/","", false); //30 minutes
//alert(sIQ_ID)
}

// END OF Dummy IQID for OrganicSearch/DirectHit TAG 







/*
<!-- START OF SmartSource Data Collector TAG -->
<!-- Copyright (c) 1996-2009 WebTrends Inc.  All rights reserved. -->
<!-- Version: 8.6.0 -->
<!-- Tag Builder Version: 2.1.0  -->
<!-- Created: 2/19/2009 5:58:38cript>"); 


/*
<!-- ----------------------------------------------------------------------------------- -->
<!-- Warning: The two script blocks below must remain inline. Moving them to an external -->
<!-- JavaScript include file can cause serious problems with cross-domain tracking.      -->
<!-- ----------------------------------------------------------------------------------- -->
*/
//document.write(unescape("%3Cscript src='/tc/js/webtrends.js' type='text/javascript'%3E%3C/script%3E"));
var _tag=new WebTrends();
_tag.dcsGetId();

// Add custom parameters here.
//_tag.DCSext.param_name=param_value;
_tag.dcsCollect();

//Official DCSID: dcsverl7jtg8b80i6h3h8uq1a_7g7h 
//UAT DCSID: dcsx4adz6ug8b8cr9rsrv32gl_3w8s



//Google Analytics
//var pageTracker = _gat._getTracker("UA-3061312-1");
//pageTracker._trackPageview();
