pic_width=125;   /*change to match the height of all your images */
pic_height=125;   /* 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 */
if(location.hostname.match(/^www\./) == null)
{ href = 'www.' + location.hostname; }
else
{ href = location.hostname; }

/* define banner urls */

urlad1="http://mysticrev.com/";
urlad2="http://cartridgecomics.com/";
urlad3="http://www.enjuhneer.com";
urlad4="http://www.halolz.com/";
urlad5="http://fajita.darkstar-studios.com/";
urlad6="http://www.kawaiinot.com/";
urlad7="http://draconia.katbox.net/";

/* define banner alt tags */

alt1="Mystic Revolution";
alt2="Cartridge Comics";
alt3="Enjuhneer";
alt4="HaLOLZ";
alt5="Fajita";
alt6="Kawaii Not";
alt7="The Draconia Chronicles";

/* 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://media.omaketheater.com/banners/mysticrev.jpg";
   pics[1]="http://media.omaketheater.com/banners/cartridge.jpg";
   pics[2]="http://media.omaketheater.com/banners/enjuhneer.png";
   pics[3]="http://media.omaketheater.com/banners/halolz.jpg";
   pics[4]="http://media.omaketheater.com/banners/fajita.png";
   pics[5]="http://media.omaketheater.com/banners/kawaiinot.gif";
   pics[6]="http://media.omaketheater.com/banners/draconia.jpg";
   
  var aalt= new Array(7)
  aalt[0]=alt1;
  aalt[1]=alt2;
  aalt[2]=alt3;
  aalt[3]=alt4;
  aalt[4]=alt5;
  aalt[5]=alt6;
  aalt[6]=alt7;

  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("<A HREF='"+aurl[choose_one]+"' target='_blank' title='"+aalt[choose_one]+"'><IMG SRC='"+pics[choose_one]+"' width='"+pic_width+"' height='"+pic_height+"' border='"+border_size+"' alt='"+aalt[choose_one]+"'></A>");
 	}
}
