//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=180 height=195 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]="quotes/quote1.htm"
randomcontent[1]="quotes/quote2.htm"
randomcontent[2]="quotes/quote3.htm"
randomcontent[3]="quotes/quote4.htm"
randomcontent[4]="quotes/quote5.htm"
randomcontent[5]="quotes/quote6.htm"
randomcontent[6]="quotes/quote7.htm"
randomcontent[7]="quotes/quote8.htm"
randomcontent[8]="quotes/quote9.htm"
randomcontent[9]="quotes/quote10.htm"
randomcontent[10]="quotes/quote11.htm"
randomcontent[11]="quotes/quote12.htm"
randomcontent[12]="quotes/quote13.htm"
randomcontent[13]="quotes/quote14.htm"
randomcontent[14]="quotes/quote15.htm"
randomcontent[15]="quotes/quote16.htm"


//No need to edit after here
if (ie||dom)
document.write('<iframe 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

