// (c) Copyright 2010, ing. Mathijs A. van der Paauw
//
// to comply with DOCTYPE HTML PUBLIC
//
// HamsterTracker.com

var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var ar = new Array();
var arImages = new Array();

ar[0] = '<tr width="100%"><td width="100%"><center><a href="http://www.djmitch.it" target="_blank"><img src="Pictures/wordsfail.gif" width="639" height="54" border="0" alt="DJ Mitch is a HamsterTracker(tm) fan!" vspace="7" /></a><br />"<b>HamsterTracker i find very interesting and funny @ the same time</b>....."&nbsp;-&nbsp;DJ&nbsp;Mitch&nbsp;&nbsp;&nbsp;</center></td></tr>';
ar[1] = '<tr width="100%"><td><center><a href="http://www.citrona.net/sorbet.htm" target="_blank"><img src="Pictures/citrona_pres_quincy.gif" height="60" width="563" alt="DJ Quincy Jointz, Lime Sorbet" border="0" vspace="7" /></a><br /><b>&nbsp;"Let&nbsp;the hamster&nbsp;rock&nbsp;</b><img src="Pictures/bluesmilewinkgrin.gif" height="15" width="15" />&nbsp;&nbsp;Greetz&nbsp;<b>"</b>&nbsp;&nbsp;-&nbsp;Quincy</center></td></tr>';
ar[2] = '<tr width="100%"><td  width="100%"><table width="100%"><tr><td><center><br /><b>"&nbsp;Hi&nbsp;Lucy,&nbsp;old&nbsp;girl!&nbsp;Howz&nbsp;Mathijs???&nbsp;"</b><br />°<img src="Pictures/bluesmilewinkgrin.gif" height="15" width="15" /><b>°&nbsp;&nbsp;-&nbsp;DJane&nbsp;Vibrella</td><td width="30%"><center><a href="http://www.vibrella.de" target="_blank"><img src="Pictures/vibrella-zwinker200.gif" height="86" width="133" alt="DJane Vibrella" xalign="right" border="0"  hspace="0" vspace="1" /></a></td></tr></table></td></tr>';
ar[3] = '<tr width="100%"><td><center><a href="http://www.basic-soul.co.uk" target="_blank"><img src="Pictures/BasicSoul.gif" height="60" width="600" alt="Basic Soul Radio Show by Simon Harrison" border="0" vspace="14" /></a><br /></td></tr>';
ar[4] = '<tr width="100%"><td width="660"><center><a href="http://www.christinalong.net/" target="_blank"><img src="Pictures/ChristinaLongLogo.jpg" width="303" height="67" border="0" alt="Christina Long  art site" vspace="5" align="left" /></a><a href="http://www.citrona.net/sorbet.htm" target="_blank"><img src="Pictures/CitronaRecordsLogo.jpg" width="225" height="62" border="0" alt="Christina and her Citrona - LimeSorbet site" vspace="7" align="right" /></a><br />"<b>Big kiss to Lucy!</b>&nbsp;...&nbsp;" - (DJ)&nbsp;Christina&nbsp;Long</center></td></tr>';
ar[5] = '<tr width="100%"><td width="100%"><center><a href="http://www.radio42.com" target="_blank"><img src="Pictures/DJElliot7.jpg" height="55" width="785" alt="Mystical Journey by DJ Elliot on Radio42.com." border="0" vspace="7" /></a><br /><b>Mystical Journeys</b> by DJ Elliot every Thursday on <a href="http://www.radio42.com/" target="_blank" class="hextlnk">Radio42.com</a>.</td></tr>';
ar[6] = '<tr width="100%"><td width="100%"><center><a href="http://www.burn-audio.com" target="_blank"><img src="Pictures/BurnAudio.gif" width="648" height="54" border="0" alt="DJ Artek site: Burn-Audio.com" vspace="7" /></a><br />"<b>This is the chance for Lucy to dance!</b> "&nbsp;-&nbsp;DJ&nbsp;Artek&nbsp;&nbsp;&nbsp;</center></td></tr>';

var LucyAr = new Array();

LucyAr[0] = '<img src="Pictures/Lucy008.jpg" height="108" width="144" alt="My third hamster, Lucy!" align="left" border="0" hspace="7" vspace="9" />'
LucyAr[1] = '<img src="Pictures/Lucy020.jpg" height="108" width="144" alt="My third hamster, Lucy!" align="left" border="0" hspace="7" vspace="9" />'
LucyAr[2] = '<img src="Pictures/Lucy071.jpg" height="108" width="144" alt="My third hamster, Lucy!" align="left" border="0" hspace="7" vspace="9" />'
LucyAr[3] = '<img src="Pictures/Lucy055.jpg" height="108" width="144" alt="My third hamster, Lucy!" align="left" border="0" hspace="7" vspace="9" />'
LucyAr[4] = '<img src="Pictures/Lucy059.jpg" height="108" width="144" alt="My third hamster, Lucy!" align="left" border="0" hspace="7" vspace="9" />'
LucyAr[5] = '<img src="Pictures/Lucy016.jpg" height="108" width="144" alt="My third hamster, Lucy!" align="left" border="0" hspace="7" vspace="9" />'
LucyAr[6] = '<img src="Pictures/Lucy065.jpg" height="108" width="144" alt="My third hamster, Lucy!" align="left" border="0" hspace="7" vspace="9" />'
LucyAr[7] = '<img src="Pictures/Lucy068.jpg" height="108" width="144" alt="My third hamster, Lucy!" align="left" border="0" hspace="7" vspace="9" />'

var Lucy2Ar = new Array();

Lucy2Ar[0] = '<img src="Pictures/Lucy2_0001.jpg" height="108" width="144" alt="My hamster, Lucy 2.0!" align="left" border="0" hspace="7" vspace="9" />'
Lucy2Ar[1] = '<img src="Pictures/easywebcamLucy0003.jpg" height="108" width="144" alt="My hamster, Lucy 2.0!" align="left" border="0" hspace="7" vspace="9" />'
Lucy2Ar[2] = '<img src="Pictures/Lucy2_0002.jpg" height="108" width="144" alt="My hamster, Lucy 2.0!" align="left" border="0" hspace="7" vspace="9" />'
Lucy2Ar[3] = '<img src="Pictures/Lucy2_0004.jpg" height="108" width="144" alt="My hamster, Lucy 2.0!" align="left" border="0" hspace="7" vspace="9" />'
Lucy2Ar[4] = '<img src="Pictures/Lucy2_0005.jpg" height="108" width="144" alt="My hamster, Lucy 2.0!" align="left" border="0" hspace="7" vspace="9" />'
Lucy2Ar[5] = '<img src="Pictures/Lucy2_0006.jpg" height="108" width="144" alt="My hamster, Lucy 2.0!" align="left" border="0" hspace="7" vspace="9" />'
Lucy2Ar[6] = '<img src="Pictures/Lucy2_0007b.jpg" height="108" width="144" alt="My hamster, Lucy 2.0!" align="left" border="0" hspace="7" vspace="9" />'
Lucy2Ar[7] = '<img src="Pictures/Lucy2_0008.jpg" height="108" width="144" alt="My hamster, Lucy 2.0!" align="left" border="0" hspace="7" vspace="9" />'

var num = Math.round(Math.random()*(ar.length-1));
var LucyNum = Math.round(Math.random()*(LucyAr.length-1));
var Lucy2Num = Math.round(Math.random()*(Lucy2Ar.length-1));

onload = NewBannersStart;

function Preload() {
  var temp = Preload.arguments; 
  for(x=0; x < temp.length; x++) {
    arImages[x]=new Image(); arImages[x].src=Preload.arguments[x];
  }
}

function activateMenu3(nav) {
    myCSS_IE_Fix();
    activateMenu(nav);
}


function NewBannersStart() {   

  Preload('Pictures/DJElliot7.jpg','Pictures/wordsfail.gif','Pictures/vibrella-zwinker200.gif','Pictures/citrona_pres_quincy.gif','Pictures/bluesmilewinkgrin.gif','Pictures/Lucy055.jpg','Pictures/Lucy059.jpg',
          'Pictures/Lucy071.jpg','Pictures/Lucy008.jpg','Pictures/Lucy020.jpg','Pictures/Lucy068.jpg','Pictures/Lucy065.jpg','Pictures/BasicSoul.gif','Pictures/ChristinaLongLogo.jpg','Pictures/CitronaRecordsLogo.jpg',
          'Pictures/Lucy2_0001.jpg','Pictures/Lucy2_0002.jpg','Pictures/easywebcamLucy0003.jpg','Pictures/Lucy2_0004.jpg','Pictures/Lucy2_0005.jpg','Pictures/Lucy2_0007b.jpg','Pictures/Lucy2_0008.jpg','Pictures/BurnAudio.gif');

  update;
  setInterval("update()", 15029);
  //setInterval("update()", 500);
  setInterval("updateLucy()", 3508);
}

function myCSS_IE_Fix() {
  if (navigator.appName!='Microsoft Internet Explorer') {
    document.writeln('<style type="text/css">#nav li>ul {top:auto;left:-3.5em;z-index:99;}</style>');
  };
}

function update() {
   if (document.getElementById("MyDJsbanner")!=null) {
     MyDisplay("MyDJsbanner", ar[num]); num++; if (num >= ar.length) num = 0;
   };
}

function updateLucy() {
   if (document.getElementById("LucyBanner")!=null) {
     MyDisplay("LucyBanner",LucyAr[LucyNum]);   LucyNum++;  if (LucyNum >= LucyAr.length)   LucyNum  = 0; 
   };
   if (document.getElementById("Lucy2B2")!=null) {
     MyDisplay("Lucy2B2",   Lucy2Ar[Lucy2Num]); Lucy2Num++; if (Lucy2Num >= Lucy2Ar.length) Lucy2Num = 0;
   };
}

function MyDisplay(id, str) {
  //if (NS4) { with (document.getElementById(id).document) { open(); write(str); close(); }
  //} else { 
  document.getElementById(id).innerHTML = str; 
  //};
}

