
//GoogleAnalyticsTracker
//Description: This object is wrapper around the actual Google analytics tracker taht is called from the flash in
//the exhilaration section. If no account number is specified(as should be the case in dev, qa and stage) the ouput is sent to 
//console for debugging purposes.
var GoogleAnalyticsTracker=function(googleAccountNumber){
	
	var pageTracker;
	this.isAccountDefined=googleAccountNumber.length!=0;
	if(this.isAccountDefined)
	{
	    this.pageTracker = _gat._getTracker(googleAccountNumber);
        this.pageTracker._initData();
        this.pageTracker._trackPageview();
    }
    
	this.trackVisit=function(path)
	{	
	    //replace all white spaces with - 
	    path=path.replace(/ /g,'-');
	    if(this.isAccountDefined)
	    {
	        this.pageTracker._trackPageview(path);
	    }
	    else
	    {
	        //if(window.console!=null && window.console.log!=null)
	        //{window.console.log(path)};
	    }   
	}
}

