

//Random iframes content - © Dynamic Drive (www.dynamicdrive.com)
//For full source code, and Terms Of use, visit http://dynamicdrive.com
//This credit MUST stay intact for legal use
//Updated in http://dynamicdrive.com/forums for multiple use by:
//John Davenport Scheuer (username:jscheuer1)


//Specify random URLs to display inside iframe
var randomcontent5=new Array()
randomcontent5[0]="../adserver/index3a.html"
randomcontent5[1]="../adserver/index3b.html"
randomcontent5[2]="../adserver/index3d.html"
randomcontent5[3]="../adserver/index3e.html"
randomcontent5[4]="../adserver/index3f.html"
randomcontent5[5]="../adserver/index3g.html"
randomcontent5[6]="../adserver/index3h.html"
randomcontent5[7]="../adserver/index3i.html"



//Specify this IFRAME's display attributes
randomcontent5.iframeprops='width=728 height=90 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]="../adserver/index1.html"
randomcontent[1]="../adserver/index2.html"
randomcontent[2]="../adserver/index3.html"
randomcontent[3]="../adserver/index4.html"
randomcontent[4]="../adserver/index5.html"
randomcontent[5]="../adserver/index6.html"
randomcontent[6]="../adserver/index7.html"
randomcontent[7]="../adserver/index8.html"
randomcontent[8]="../adserver/index9.html"
randomcontent[9]="../adserver/index10.html"
randomcontent[10]="../adserver/index11.html"
randomcontent[11]="../adserver/index12.html"
randomcontent[12]="../adserver/index13.html"
randomcontent[13]="../adserver/index14.html"
randomcontent[14]="../adserver/index15.html"
randomcontent[15]="../adserver/index16.html"
randomcontent[16]="../adserver/index17.html"
randomcontent[17]="../adserver/index18.html"
randomcontent[18]="../adserver/index19.html"

//Specify this IFRAME's display attributes
randomcontent.iframeprops='width=475 height=82 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify random URLs to display inside iframe
var randomcontent3=new Array()
randomcontent3[0]="../adserver/index1.html"
randomcontent3[1]="../adserver/index2.html"
randomcontent3[2]="../adserver/index3.html"
randomcontent3[3]="../adserver/index4.html"
randomcontent3[4]="../adserver/index5.html"
randomcontent3[5]="../adserver/index6.html"
randomcontent3[6]="../adserver/index7.html"
randomcontent3[7]="../adserver/index8.html"
randomcontent3[8]="../adserver/index9.html"
randomcontent3[9]="../adserver/index10.html"
randomcontent3[10]="../adserver/index11.html"
randomcontent3[11]="../adserver/index12.html"
randomcontent3[12]="../adserver/index13.html"
randomcontent3[13]="../adserver/index14.html"
randomcontent3[14]="../adserver/index15.html"

//Specify this IFRAME's display attributes
randomcontent3.iframeprops='width=475 height=82 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify random URLs to display inside another iframe (add as many of these as you want)
var randomcontent2=new Array()
randomcontent2[0]="../adserver/index_sky1.html"
randomcontent2[1]="../adserver/index_sky2.html"
randomcontent2[2]="../adserver/index_sky3.html"
randomcontent2[3]="../adserver/index_sky4.html"
randomcontent2[4]="../adserver/index_sky5.html"
randomcontent2[5]="../adserver/index_sky6.html"
//Specify this IFRAME's display attributes
randomcontent2.iframeprops='width=120 height=600 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify random URLs to display inside another iframe (add as many of these as you want)
var randomcontent4=new Array()
randomcontent4[0]="../adserver/index_sky_chat1.html"
randomcontent4[1]="../adserver/index_sky_chat2.html"
randomcontent4[2]="../adserver/index_sky_chat3.html"
randomcontent4[3]="../adserver/index_sky_chat4.html"
randomcontent4[4]="../adserver/index_sky_chat5.html"

//Specify this IFRAME's display attributes
randomcontent4.iframeprops='width=120 height=600 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//No need to edit after here
function random_iframe(){
if (!document.all&&!document.getElementById)
return;
this.content=arguments[0];
random_iframe.num=random_iframe.num? random_iframe.num+1 : 1;
this.frame_id='dynstuff'+random_iframe.num;
document.write('<iframe id="'+this.frame_id+'" src="" '+this.content.iframeprops+'></iframe>');
this.frame=document.getElementById? document.getElementById(this.frame_id) : document.all[this.frame_id];
var cacheobj=this;
this.onloadfunc=function(){
cacheobj.frame.src=cacheobj.content[Math.floor(Math.random()*cacheobj.content.length)]
};
if ( typeof window.addEventListener != "undefined" )
    window.addEventListener( "load", this.onloadfunc, false );
else if ( typeof window.attachEvent != "undefined" )
    window.attachEvent( "onload", this.onloadfunc );
else {
    if ( window.onload != null ) {
        var oldOnload = window.onload;
        window.onload = function ( e ) {
            oldOnload( e );
            cacheobj.onloadfunc();
        };
    }
    else
        window.onload = this.onloadfunc;
}
}

