//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 randomcontent=new Array()
randomcontent[0]="http://ads.mofos.com/ads/mofos_inserts/index336.php?nats=NDAwMzY2OC4xLjE0LjU2LjAuMC4wLjAuMA"
randomcontent[1]="http://ads.mofos.com/ads/mofos_inserts/index322.php?nats=NDAwMzY2OC4xLjE0LjU2LjAuMC4wLjAuMA"
randomcontent[2]="http://ads.mofos.com/ads/mofos_inserts/index320.php?nats=NDAwMzY2OC4xLjE0LjU2LjAuMC4wLjAuMA"
randomcontent[3]="http://ads.mofos.com/ads/mofos_inserts/index282.php?nats=NDAwMzY2OC4xLjE0LjU2LjAuMC4wLjAuMA"
//Specify this IFRAME's display attributes
var iframeprops='width=300 height=250 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" allowtransparency="true" marginheight="0" marginwidth="0" name=""'

//Specify random URLs to display inside another iframe (add as many of these as you want)
var randomcontent2=new Array()
randomcontent2[0]="http://ads.mofos.com/ads/mofos_inserts/index233.php?nats=NDAwMzY2OC4xLjE0LjU2LjAuMC4wLjAuMA"
randomcontent2[1]="http://ads.mofos.com/ads/mofos_inserts/index325.php?nats=NDAwMzY2OC4xLjE0LjU2LjAuMC4wLjAuMA"
randomcontent2[2]="http://ads.mofos.com/ads/mofos_inserts/index326.php?nats=NDAwMzY2OC4xLjE0LjU2LjAuMC4wLjAuMA"
randomcontent2[3]="http://ads.mofos.com/ads/mofos_inserts/index372.php?nats=NDAwMzY2OC4yLjIuMy4wLjUxNjMuMC4wLjA"
randomcontent2[4]="http://ads.mofos.com/ads/mofos_inserts/index371.php?nats=NDAwMzY2OC4yLjIuMy4wLjUxNjIuMC4wLjA"
randomcontent2[5]="http://ads.mofos.com/ads/mofos_inserts/index395.php?nats=NDAwMzY2OC4yLjIwLjYzLjAuNTk3NS4wLjAuMA"
randomcontent2[6]="http://ads.mofos.com/ads/mofos_inserts/index394.php?nats=NDAwMzY2OC4yLjIwLjYzLjAuNTk3NC4wLjAuMA"
randomcontent2[7]="http://ads.mofos.com/ads/mofos_inserts/index386.php?nats=NDAwMzY2OC4yLjIwLjYzLjAuNTkyMS4wLjAuMA"


//Specify this IFRAME's display attributes
randomcontent2.iframeprops='width=950 height=250 marginwidth="0" align="center" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no" allowtransparency="true" marginheight="0" marginwidth="0" name=""'

//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;
}
}
