try{
  var pageTracker = _gat._getTracker("UA-4695795-3");
}
catch(e){
}

var g_bGoogleCampaign = false;
//var g_bUserRedirect = f_redirect(false);

/*
 * 0: Call statistics.
 * 1: Redirect user.
 * 2: Create overlay, call statistics, wait for statistics, redirect user.
 */
var g_aStatsMatrix = [[0,1],[0,2]];
var g_iStatsAction = 0; //g_aStatsMatrix[(g_bGoogleCampaign ? 1 : 0)][(g_bUserRedirect ? 1 : 0)];

/*
 * Call from end of body
 */
function f_googleStatistics(){

  switch(g_iStatsAction){
    
    case 0:
      f_statistics('html/IN/en/sitemap');
      break;
      
    case 1:
      f_enableOverlay();
      f_redirect();
      break;
      
    case 2:
      f_enableOverlay();
      f_statistics('html/IN/en/sitemap');
      setTimeout(function(){
				f_redirect();
      }, 750);    
  }
}

function f_enableOverlay(){
  try{
    w_oBody = document.body;
    while(w_oBody.firstChild){
      w_oBody.removeChild(w_oBody.firstChild);
    }
    w_oStatistics = document.createElement('div');
    w_oStatistics.id = 'statistics';
    w_oBody.appendChild(w_oStatistics);
  }catch(e){}
}

/**
 *   Makes sure all statistics systems get their data.
 */
function f_statistics(p_sName){
  w_sName = p_sName.replace(' ', '.');
  /*var w_sStatisticsSource = f_urlGetVariable('sStatisticsSource');
  
	if(w_sStatisticsSource != false){
    w_sName = w_sStatisticsSource + '/' + w_sName;
  }*/
  
  // Google
  try{
    pageTracker._trackPageview(w_sName);
  }catch(e){}
  
  // Nasty page check for specific statistics hit, the "post resume thank you" page
  if(p_sName.indexOf('post.resume.thank.you') != -1){
	   w_oFrame = document.createElement("iframe");
	   var w_sUrl= "/scripts/iframe_statistics.php?" + Math.random();
	   w_oFrame.setAttribute("src", w_sUrl);
	   w_oFrame.style.width = 1+"px";
	   w_oFrame.style.height = 1+"px";
	   document.getElementsByTagName("body")[0].appendChild(w_oFrame);
  }

}