
//Random iframe content- © Dynamic Drive (www.dynamicdrive.com)
//For full source code, and Terms Of use, visit http://dynamicdrive.com
//This credit MUST stay intact for use

var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

//Specify IFRAME display attributes
var iframeprops='width=200 height=230 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify random URLs to display inside iframe
var randomcontent=new Array()
randomcontent[0]="http://www.5thbusiness.com/site/random1.html"
randomcontent[1]="http://www.5thbusiness.com/site/random2.html"
randomcontent[2]="http://www.5thbusiness.com/site/random3.html"
randomcontent[3]="http://www.5thbusiness.com/site/random4.html"
randomcontent[4]="http://www.5thbusiness.com/site/random5.html"
randomcontent[5]="http://www.5thbusiness.com/site/random6.html"
randomcontent[6]="http://www.5thbusiness.com/site/random7.html"
randomcontent[7]="http://www.5thbusiness.com/site/random8.html"
randomcontent[8]="http://www.5thbusiness.com/site/random9.html"
randomcontent[9]="http://www.5thbusiness.com/site/random10.html"
randomcontent[10]="http://www.5thbusiness.com/site/random11.html"
randomcontent[11]="http://www.5thbusiness.com/site/random12.html"
randomcontent[12]="http://www.5thbusiness.com/site/random13.html"
randomcontent[13]="http://www.5thbusiness.com/site/random14.html"
randomcontent[14]="http://www.5thbusiness.com/site/random15.html"
randomcontent[15]="http://www.5thbusiness.com/site/random16.html"
randomcontent[16]="http://www.5thbusiness.com/site/random17.html"
randomcontent[17]="http://www.5thbusiness.com/site/random18.html"
randomcontent[18]="http://www.5thbusiness.com/site/random19.html"
randomcontent[19]="http://www.5thbusiness.com/site/random20.html"
randomcontent[20]="http://www.5thbusiness.com/site/random21.html"
randomcontent[21]="http://www.5thbusiness.com/site/random22.html"


//No need to edit after here
if (ie||dom)
document.write('<iframe style="border:none;" id="dynstuff" src="" '+iframeprops+'></iframe>')

function random_iframe(){
if (ie||dom){
var iframeobj=document.getElementById? document.getElementById("dynstuff") : document.all.dynstuff
iframeobj.src=randomcontent[Math.floor(Math.random()*randomcontent.length)]
}
}

window.onload=random_iframe

