/***********************************************
* Daily iframe content 
***********************************************/

var ie=document.all
var dom=document.getElementById

//Specify IFRAME display attributes
var iframeprops='width=140 height=220 marginwidth="5" marginheight="5" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify 31 URLs to display inside iframe, one for each day of the current month
//If this month has less than 31 days, the last few URLs won't be used.
var daycontent=new Array()
daycontent[1]="/Tip_of_the_day/1.htm"
daycontent[2]="/Tip_of_the_day/2.htm"
daycontent[3]="/Tip_of_the_day/3.htm"
daycontent[4]="/Tip_of_the_day/4.htm"
daycontent[5]="/Tip_of_the_day/5.htm"
daycontent[6]="/Tip_of_the_day/6.htm"
daycontent[7]="/Tip_of_the_day/7.htm"
daycontent[8]="/Tip_of_the_day/8.htm"
daycontent[9]="/Tip_of_the_day/9.htm"
daycontent[10]="/Tip_of_the_day/10.htm"
daycontent[11]="/Tip_of_the_day/11.htm"
daycontent[12]="/Tip_of_the_day/12.htm"
daycontent[13]="/Tip_of_the_day/13.htm"
daycontent[14]="/Tip_of_the_day/14.htm"
daycontent[15]="/Tip_of_the_day/15.htm"
daycontent[16]="/Tip_of_the_day/16.htm"
daycontent[17]="/Tip_of_the_day/17.htm"
daycontent[18]="/Tip_of_the_day/18.htm"
daycontent[19]="/Tip_of_the_day/19.htm"
daycontent[20]="/Tip_of_the_day/20.htm"
daycontent[21]="/Tip_of_the_day/21.htm"
daycontent[22]="/Tip_of_the_day/22.htm"
daycontent[23]="/Tip_of_the_day/23.htm"
daycontent[24]="/Tip_of_the_day/24.htm"
daycontent[25]="/Tip_of_the_day/25.htm"
daycontent[26]="/Tip_of_the_day/26.htm"
daycontent[27]="/Tip_of_the_day/27.htm"
daycontent[28]="/Tip_of_the_day/28.htm"
daycontent[29]="/Tip_of_the_day/29.htm"
daycontent[30]="/Tip_of_the_day/30.htm"
daycontent[31]="/Tip_of_the_day/31.htm"

//No need to edit after here
if (ie||dom)
document.write('<iframe id="dynstuff" src="" '+iframeprops+'></iframe>')

var mydate=new Date()
var mytoday=mydate.getDate()

function dayofmonth_iframe(){
if (ie||dom){
var iframeobj=document.getElementById? document.getElementById("dynstuff") : document.all.dynstuff
iframeobj.src=daycontent[mytoday]
}
}

window.onload=dayofmonth_iframe

