function getCookie(NameOfCookie){
   if (document.cookie.length > 0) 
   { 
   begin = document.cookie.indexOf(NameOfCookie+"="); 
   if (begin != -1) // Note: != means "is not equal to"
   { 
      begin += NameOfCookie.length+1; 
      end = document.cookie.indexOf(";", begin);
      if (end == -1) end = document.cookie.length;
      return unescape(document.cookie.substring(begin, end)); } 
   }
   return null; 
} 

AdSplit = getCookie("AdSplit");


if (!AdSplit){
	var AdSplit = Math.floor(Math.random()*2);		//randomizer 
	var expire=new Date();
	expire.setTime(expire.getTime()+30*1000*60*60*24); 	// expires in 30 days
	document.cookie="AdSplit="+AdSplit+"; path=/; expires="+expire.toGMTString();
}

__utmSetVar(AdSplit);


