﻿var domainnums;
var rands;
theDomain = new Array();

domainnums=1;
theDomain[0] = "c.star8.net";
theDomain[1] = "c.star8.net";
theDomain[2] = "c.star8.net";
theDomain[3] = "c.star8.net";
if (domainnums>1)
{
  rands = Math.round(Math.random()*domainnums);
  while (rands >(domainnums-1)) {
   rands = Math.round(Math.random()*domainnums);
  }
}else{rands=0;}

if (rands==""){rands=0}
var codedomain=theDomain[rands];

var star8_location = window.location.href
var star8_from_url = document.referrer;

if ((star_userid!='0')&&(star_userid!='313477'))
{

  if ((star8_from_url.indexOf("cnxad.com")<0)&&(star8_from_url.indexOf("star8.net")<0))
  { 
    if(self!=top)
    {
	alert('star8.net Warning!');
	top.location=self.location; 
    }
  }
}

star8_location=escape(star8_location);
star8_from_url=escape(star8_from_url);

document.writeln("<iframe src='http://"+codedomain+"/c1.ashx?w="+star_userid+"&sid="+star_subid+"&logo="+star_logo+"&e="+star_encode+"&furl="+star8_location+"&ffurl="+star8_from_url+"' width='"+star_width+"' height='"+star_height+"' marginwidth=0 marginheight=0  scrolling=no border=0 frameborder=0></iframe>");

document.writeln("<span style=\"display:none\">");
document.writeln("<img src=''>");
document.writeln("<\/span>");

