/*  You can get this script and many others
    by visiting JavaScript City at: http://www.javascriptcity.com . */

pic_width=468;   /*change to match the height of all your images */
pic_height=60;   /* change to match the width of all your images */
border_size=0;   /* change to the border size you want on the images */
alignment=0;      /* 0=left,1=center */

/* define image urls */

if (document.images)
 {
     pic1= new Image(pic_width,pic_height);
     pic1.src="/icons/domregistry400.gif";
     pic2= new Image(pic_width,pic_height);
     pic2.src="/icons/domregistry400.gif";
     pic3= new Image(pic_width,pic_height);
     pic3.src="/icons/domregistry400.gif";
     pic4= new Image(pic_width,pic_height);
     pic4.src="/icons/domregistry400.gif";
     pic5= new Image(pic_width,pic_height);
     pic5.src="/icons/domregistry400.gif";

     pic6= new Image(pic_width,pic_height);
     pic6.src="/icons/smsnu150.gif";
     pic7= new Image(pic_width,pic_height);
     pic7.src="/icons/smsnu150.gif";
     pic8= new Image(pic_width,pic_height);
     pic8.src="/icons/smsnu150.gif";
     pic9= new Image(pic_width,pic_height);
     pic9.src="/icons/smsnu150.gif";
     pic10= new Image(pic_width,pic_height);
     pic10.src="/icons/smsnu150.gif";
 }

/* define banner urls */

urlad1="/";
urlad2="/";
urlad3="/";
urlad4="/";
urlad5="/";

urlad6="/";
urlad7="/";
urlad8="/";
urlad9="/";
urlad10="/";

/* no need to edit past this point (unless you want to add more image and url slots) */

if (alignment==1)
 {
  cent_it="<CENTER>";
  cent_it2="<\/CENTER>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }

function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  }
  return ranNum;
}

function get_Image(proto)
{
 if (document.images)
 {
  var choose_one= get_random(5);
  choose_one--;

  var pics= new Array(5)
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src;

  if (!proto) {proto = 'http';}
  var aurl= new Array(5)
  aurl[0]=proto+urlad1;
  aurl[1]=proto+urlad2;
  aurl[2]=proto+urlad3;
  aurl[3]=proto+urlad4;
  aurl[4]=proto+urlad5;

  document.write(cent_it+"<a href='"+aurl[choose_one]+"'><img src='"+pics[choose_one]+"' border='"+border_size+"' /></a>"+cent_it2+"&nbsp;&nbsp;&nbsp;&nbsp;");

var bnum= Math.floor(Math.random()*9999999)+1;
var x ='<scr' + 'ipt type="text/javascript" src="'+proto+'/banner/newbanner.php?top=1&amp;type=3&amp;id=3629&amp;b=' + bnum + '"></scr' + 'ipt>';
document.write(x);

 }
}

function get_ImageS(proto)
{
 if (document.images)
 {
  var choose_one= get_random(5);
  choose_one--;

  var pics= new Array(5)
   pics[0]=pic6.src;
   pics[1]=pic7.src;
   pics[2]=pic8.src;
   pics[3]=pic9.src;
   pics[4]=pic10.src;

  if (!proto) {proto = 'http';}
  var aurl= new Array(5)
  aurl[0]=proto+urlad6;
  aurl[1]=proto+urlad7;
  aurl[2]=proto+urlad8;
  aurl[3]=proto+urlad9;
  aurl[4]=proto+urlad10;

  document.write(cent_it+"<a href='"+aurl[choose_one]+"'><img src='"+pics[choose_one]+"' border='"+border_size+"' /></a>"+cent_it2+"&nbsp;&nbsp;&nbsp;&nbsp;");

  choose_one= get_random(10);

if (choose_one > 15) {

if (choose_one > 20) {
 document.write('</td><td class="tdb"><iframe src="/common/ad1.html" height="60" width="468" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
} else {
 document.write('</td><td class="tdb"><iframe src="/common/ad1.html" height="60" width="468" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
}
} else {

var bsize="468x60";
var border=0;
var top=1;
var ver="2.50";
var bnum=Math.floor(89999999*Math.random()+10000000);
var bs=bsize.split("x");
if (border){bs[0]=Number(bs[0])+2; bs[1]=Number(bs[1])+2;}
document.write('</td><td class="tdb"><br /><IFRAME src="'+proto+'/banner/newbanner.php?id=3629&iframe=1&top='+top+'&size='+bsize+'&b='+bnum+'&border='+border+'&v='+ver+'" height="'+bs[1]+'" width="'+bs[0]+'" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></IFRAME>');

}

 }
}

function get_Image1(proto)
{

 if (document.images)
 {
  var choose_one= get_random(5);
  choose_one--;

  var pics= new Array(5)
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;
   pics[4]=pic5.src;

  if (!proto) {proto = 'http';}
  var aurl= new Array(5)
  aurl[0]=proto+urlad1;
  aurl[1]=proto+urlad2;
  aurl[2]=proto+urlad3;
  aurl[3]=proto+urlad4;
  aurl[4]=proto+urlad5;

  document.write(cent_it+"<a href='"+aurl[choose_one]+"'><img src='"+pics[choose_one]+"' border='"+border_size+"' /></a>"+cent_it2+"&nbsp;&nbsp;&nbsp;&nbsp;");

  choose_one= get_random(10);

if (choose_one > 20) {

if (choose_one > 20) {
 document.write('</td><td class="tdb"><iframe src="/common/ad1.html" height="60" width="468" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
} else {
 document.write('</td><td class="tdb"><iframe src="/common/ad1.html" height="60" width="468" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>');
}
} else {
var bsize="468x60";
var border=0;
var top=1;
var ver="2.50";
var bnum=Math.floor(89999999*Math.random()+10000000);
var bs=bsize.split("x");
if (border){bs[0]=Number(bs[0])+2; bs[1]=Number(bs[1])+2;}
document.write('</td><td class="tdb"><br /><IFRAME src="'+proto+'/banner/newbanner.php?id=3629&iframe=1&top='+top+'&size='+bsize+'&b='+bnum+'&border='+border+'&v='+ver+'" height="'+bs[1]+'" width="'+bs[0]+'" hspace="0" vspace="0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></IFRAME>');
}
}
}


