pic_width=165;   /*change to match the height of all your images */
pic_height=300;   /* change to match the width of all your images */
border_size=0;   /* change to the border size you want on the images */
alignment=1;      /* 0=left,1=center */
if(location.hostname.match(/^www\./) == null)
{ href = 'www.' + location.hostname; }
else
{ href = location.hostname; }

/* define banner urls */

urlad1="http://www.geistpanik.com/";
urlad2="http://www.digitalunrestcomic.com/";
urlad3="http://www.duelinganalogs.com/";
urlad4="http://www.goblinscomic.com/";
urlad5="http://www.2pstart.com/";
urlad6="http://www.nerfnow.com/";
urlad7="http://www.digitalpimponline.com/strips.php?title=avw";

/* define banner alt tags */

alt1="Geist Panik";
alt2="Digital Unrest";
alt3="Dueling Analogs";
alt4="Goblins";
alt5="2P START!";
alt6="Nerf NOW!!";
alt7="Another Video Game Webcomic";

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

if (alignment==1)
 {
  cent_it="<div align=\"center\">";
  cent_it2="<\/div>";
 }
else
 {
  cent_it="";
  cent_it2="";
 }
 
function get_random(maxNum)
{
  if (Math.random && Math.round)
  {
    var ranNum= Math.round(Math.random()*(maxNum-1));
    ranNum+=1;
    return ranNum;
  }
  else
  {
  today= new Date();
  hours= today.getHours();
  mins=   today.getMinutes();
  secn=  today.getSeconds();
  if (hours==19)
   hours=18;
  var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
  return ranNum;
  }
}

function get_Image()
{
 if (document.images)
 {
	do{
	  var choose_one= get_random(7);  
  choose_one--;

  var pics= new Array(7) 
   pics[0]="http://www.gamerspairofdice.com/banners/tall-hookie.jpg";
   pics[1]="http://www.gamerspairofdice.com/banners/tall-digital_unrest.jpg";
   pics[2]="http://www.gamerspairofdice.com/banners/tall-dueling_analogs.jpg";
   pics[3]="http://www.gamerspairofdice.com/banners/tall-goblins.jpg";
   pics[4]="http://www.gamerspairofdice.com/banners/tall-2p.jpg";
   pics[5]="http://www.gamerspairofdice.com/banners/nerfnowv.png";
   pics[6]="http://www.gamerspairofdice.com/banners/tall-avw.jpg";
   

  var aurl= new Array(7)
  aurl[0]=urlad1;
  aurl[1]=urlad2;
  aurl[2]=urlad3;
  aurl[3]=urlad4;
  aurl[4]=urlad5;
  aurl[5]=urlad6;
  aurl[6]=urlad7;
	}
  while ("http://"+href+"/" == aurl[choose_one])

  document.write('<table width="165" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.gamerspairofdice.com"><img src="http://www.gamerspairofdice.com/banners/topper2.jpg" border="0" width="165" height="60"></a></td></tr><tr><td>');
  document.write(cent_it+"<A HREF='"+aurl[choose_one]+"'><IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"'></A>"+cent_it2+"</td></tr></table>");
 	}
}