<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

var theImages = new Array()
var startTime=new Date();
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight; 
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

function currentTime(){
  var a=Math.floor((new Date()-startTime)/100)/10;
  if (a%1==0) a+=".0";
  document.getElementById("endTime").innerHTML=a;
}

window.onload=function(){
  clearTimeout(loopTime);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

// Set up the image files to be used.
 // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=007+%28117%29.jpg&var2=140_70'
theImages[1] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=20072006%28028%29.jpg&var2=140_70'
theImages[2] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=20072006%28034%29.jpg&var2=140_70'
theImages[3] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=23082006%28005%29.jpg&var2=140_70'
theImages[4] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=23082006%28006%29.jpg&var2=140_70'
theImages[5] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=27112006187.jpg&var2=140_70'

theImages[6] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=27112006194.jpg&var2=140_70'
theImages[7] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=4c63scd.jpg&var2=140_70'

theImages[8] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=DSCN0663.JPG&var2=140_70'
theImages[9] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=DSCN0664.JPG&var2=140_70'
theImages[10] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=DSCN0715.JPG&var2=140_70'
theImages[11] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=dhq2.jpg&var2=140_70'
theImages[12] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=friends.jpg&var2=140_70'
theImages[13] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=me2.jpg&var2=140_70'
theImages[14] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=UKIRBD%2F01012006%28011%29.jpg&var2=140_70'
theImages[15] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=UKIRBD%2F02012006%28007%29_%28Medium%29.jpg&var2=140_70'

theImages[16] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=UKIRBD%2F14122005%28012%29.jpg&var2=140_70'
theImages[17] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=UKIRBD%2F28112005%28001%29.jpg&var2=140_70'
theImages[18] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=UKIRBD%2F27112005%28012%29.jpg&var2=140_70'
theImages[19] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=UKIRBD%2F01122005%28015%29.jpg&var2=140_70'
theImages[20] = 'http://www.dylanhq.com/gal/main.php?cmd=thmb&var1=27112006194.jpg&var2=140_70'
// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}
