var ie=document.all
var dom=document.getElementById

//Specify IFRAME display attributes
var iframeprops1='width=350 height=260 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'
var iframeprops2='width=350 height=260 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify random URLs to display "WHAT'S NEW" section
var randomcontent1=new Array()
randomcontent1[0]="New-News-pages/WhatsNew1.htm"
randomcontent1[1]="New-News-pages/WhatsNew2.htm"
randomcontent1[2]="New-News-pages/WhatsNew3.htm"
randomcontent1[3]="New-News-pages/WhatsNew4.htm"

//Specify random URLs to display "LATEST NEWS" section
var randomcontent2=new Array()
randomcontent2[0]="New-News-pages/LatestNews1.htm"
randomcontent2[1]="New-News-pages/LatestNews2.htm"
randomcontent2[2]="New-News-pages/LatestNews3.htm"
randomcontent2[3]="New-News-pages/LatestNews4.htm"

//No need to edit after here ////////////////////////////////////////////////////////////////////////////////////////////////
if (ie||dom)
document.write('<iframe id="dynstuff1" src="" '+iframeprops1+'></iframe>')
document.write('<iframe id="dynstuff2" src="" '+iframeprops2+'></iframe>')

var mydate=new Date()
var mytoday=mydate.getDate()

function random_iframe(){
if (ie||dom){
var iframeobj1=document.getElementById? document.getElementById("dynstuff1") : document.all.dynstuff
iframeobj1.src=randomcontent1[Math.floor(Math.random()*randomcontent1.length)]

var iframeobj2=document.getElementById? document.getElementById("dynstuff2") : document.all.dynstuff
iframeobj2.src=randomcontent2[Math.floor(Math.random()*randomcontent2.length)]
}
}

window.onload=random_iframe