if (get_cookie('aether') == '') {
	//alert("new cookie")
	//document.cookie="aether="+Math.floor(Math.random()*10000001);		
	var today = new Date();
	today.setTime( today.getTime() );
	expires = 30 * 1000 * 60
	var expires_date = new Date( today.getTime() + (expires) );
	document.cookie = "aether" + "=" +escape( Math.floor(Math.random()*10000001) ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" );
	//( ( path ) ? ";path=" + path : "" ) +
	//( ( domain ) ? ";domain=" + domain : "" ) +
	//( ( secure ) ? ";secure" : "" );		
} else {
	//alert("exisiting cookie")		
	//alert(get_cookie('aether'));
	var today = new Date();
	today.setTime( today.getTime() );
	expires = 30 * 1000 * 60
	var expires_date = new Date( today.getTime() + (expires) );
	document.cookie = "aether" + "=" +escape( get_cookie('aether') ) +
	( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" );	
}
function get_cookie(Name) {
	var search = Name + "="
  	var returnvalue = "";
  	if (document.cookie.length > 0) {
    	offset = document.cookie.indexOf(search)
    	if (offset != -1) { 
      		offset += search.length
      		end = document.cookie.indexOf(";", offset);
      	if (end == -1) end = document.cookie.length;
      		returnvalue=unescape(document.cookie.substring(offset, end))
      	}
   	}
  	return returnvalue;
}
var aether={init:function(site_id){aether.pageview_fired=0;if(document.location.protocol=="https:"){aether.domain="https://scripts.the-group.net/aether/";aether.secure=1;}else{aether.domain="http://scripts.the-group.net/aether/";aether.secure=0;}aether.img=new Image();aether.img2=new Image();aether.img_base=aether.domain+"/tracker.asp?websiteId="+site_id+"&browserSessionId="+get_cookie('aether')+"&res="+screen.width+"x"+screen.height+"&lang="+(navigator.language||navigator.browserLanguage).substr(0,2)+"&secure="+aether.secure;if(aether_custom.session){for(var i in aether_custom.session){aether.img_base+="&custom["+aether.enc(i)+"]="+aether.enc(aether_custom.session[i]);}}if(aether_custom.goal){for(var i in aether_custom.goal){aether.img_base+="&goal["+aether.enc(i)+"]="+aether.enc(aether_custom.goal[i]);}}aether.ref=RegExp("^https?://[^/]*"+location.host.replace(/^www\./i,"")+"/","i").test(document.referrer)?"":aether.enc(document.referrer);if(!aether_custom.pageview_disable){if(typeof aether_custom.delay=="undefined"){aether.add_event(window,'load',aether.pageview);setTimeout(aether.pageview,2000);}else{var d=aether_custom.delay;if(d=="onload"){aether.add_event(window,'load',aether.pageview);}else if(parseInt(d)==d){setTimeout(aether.pageview,parseInt(d));}else aether.pageview();}}aether.add_event(window,'load',aether.advanced);},pageview:function(){if(aether.pageview_fired)return;aether.pageview_fired=1;aether.img.src=aether.img_base+"&href="+aether.enc(aether_custom.href||location.pathname+location.search)+"&title="+aether.enc(aether_custom.title||document.title)+"&ref="+aether.ref+"&x="+Math.random();aether.ref="";},isset:function(e){return(typeof(window[e])!="undefined");},enc:function(e){return window.encodeURIComponent?encodeURIComponent(e):escape(e);},log:function(href,title,type){type=type||"click";if(type=="pageview")href=href.replace(/^https?:\/\/([^\/]+)/i,"");aether.img2.src=aether.img_base+"&type="+type+"&title="+aether.enc(title)+"&href="+aether.enc(href)+"&ref="+aether.ref+"&x="+Math.random();aether.ref="";aether.pause();},pause:function(x){var now=new Date();var stop=now.getTime()+(x||aether_custom.timer||500);while(now.getTime()<stop)var now=new Date();},goal:function(id,revenue){aether.img2.src=aether.img_base+"&type=goal&goal[id]="+id+"&goal[revenue]="+revenue+"&x="+Math.random();},add_event:function(e,type,func){if(e.addEventListener){e.addEventListener(type,func,false);}else if(e.attachEvent){e.attachEvent("on"+type,func);}},download:function(e){aether.img_src(e,"download");},outbound:function(e){aether.img_src(e,"outbound");},click:function(e){aether.img_src(e,"click");},img_src:function(e,type){obj=aether.get_target(e);aether.log(aether.get_href(obj),aether.get_text(obj),type);},get_text:function(e){do{var txt=e.text?e.text:e.innerText;if(txt)return txt;if(e.alt)return e.alt;if(e.title)return e.title;if(e.src)return e.src;e=aether.get_parent(e);}while(e);return"";},get_href:function(e){do{if(e.href&&!e.src)return e.href;e=aether.get_parent(e);}while(e);return"";},get_parent:function(e){return e.parentElement||e.parentNode;},get_target:function(e){if(!e)var e=window.event;var t=e.target?e.target:e.srcElement;if(t.nodeType&&t.nodeType==3)t=t.parentNode;return t;},advanced:function(){if(aether_custom.advanced_disable)return;var is_download=new RegExp("\\.(7z|aac|avi|cab|csv|doc(x|m)?|exe|flv|gif|gz|jpe?g|js|m4a|mp(3|4|e?g)|mov|msi|ods|pdf|phps|png|ppt(x|m)?|rar|rtf|sea|sit|tar|torrent|txt|wma|wmv|xls(x|m)?|xml|zip)$","i");var is_link=new RegExp("^(https?|ftp|telnet|mailto):","i");var is_link_internal=new RegExp("^https?:\/\/(.*)"+location.host.replace(/^www\./i,""),"i");var a=document.getElementsByTagName("a");for(var i=0;i<a.length;i++){if(a[i].className.match(/aether_log/i)){if(a[i].className.match(/aether_log_download/i)){aether.add_event(a[i],"mousedown",aether.download);}else if(a[i].className.match(/aether_log_outbound/i)){aether.add_event(a[i],"mousedown",aether.outbound);}else{aether.add_event(a[i],"mousedown",aether.click);}}else{if(is_link.test(a[i].href)&&!a[i].className.match(/aether_ignore/i)){if(is_download.test(a[i].href)){aether.add_event(a[i],"mousedown",aether.download);}else if(!is_link_internal.test(a[i].href)){aether.add_event(a[i],"mousedown",aether.outbound);}}}}}};if(!aether.isset("aether_custom"))aether_custom={};if(aether.isset("aether_page_title"))aether_custom.title=aether_page_title;if(aether.isset("aether_advanced_disable"))aether_custom.advanced_disable=1;if(aether.isset("aether_pause_timer"))aether_custom.timer=aether_pause_timer;if(aether.isset("aether_custom_session"))aether_custom.session=aether_custom_session;if(aether.isset("aether_goal"))aether_custom.goal=aether_goal;function statsgoyes(site_id){aether.init(site_id);}