// Rude Floating Flash Ad // var rIsIE = navigator.appName.indexOf("Microsoft") != -1; var rffadon = 0; var rffad = new Object(); rffad.time = 5000; // delay time for open in 1000 = 1 sec rffad.outlink = escape('http://rude.com/MetalMaster?join&w4iN4'); // out link rffad.template = 3; // since i put the images in flash no need to worry about this, leave it at 3 for now. rffad.swfname = 'http://rude.com/flash/embed_ff_rude.swf'; // path to the swf rffad.params = 'outLink=' + rffad.outlink + '&template=' + rffad.template; // flash vars from above code rffad.rwrffad = function () { document.write('
'); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write('
'); } function rcdad(rxw,ryh,raddiv){ var rsx, rsy; rffadon = 1; if(self.pageYOffset){ rsx = self.pageXOffset; rsy = self.pageYOffset; } else if(document.documentElement && document.documentElement.scrollTop){ rsx = document.documentElement.scrollLeft; rsy = document.documentElement.scrollTop; } else if(document.body){ rsx = document.body.scrollLeft; rsy = document.body.scrollTop; } var rcx, rcy; if(self.innerHeight){ rcx = self.innerWidth; rcy = self.innerHeight; } else if(document.documentElement && document.documentElement.clientHeight){ rcx = document.documentElement.clientWidth; rcy = document.documentElement.clientHeight; } else if(document.body){ rcx = document.body.clientWidth; rcy = document.body.clientHeight; } var rlo = rsx + (rcx-rxw) /2; var rto = rsy + (rcy - ryh) /2; var ro = document.getElementById('rffad'); var rr = ro.style; rr.position = 'absolute'; rr.top = rto + 'px'; rr.left = rlo + 'px'; rr.display = "block"; } function rffadopen(){ rcdad(500,350,'rffad'); } function rffadclose(val){ rffadon = 0; if(rIsIE){ document.getElementById('rffad').style.left = -1000; document.getElementById('rffad').style.top = -1000; } else { document.getElementById('rffad').style.left = -1000 + 'px'; document.getElementById('rffad').style.top = -1000 + 'px'; } } window.onresize = function(){ // code for slide up ads try{ if(cas == 1){ sfsua(1); } } catch(err){ //txt="There was an error on this page.\n\n"; //txt+="Error description: " + err.description + "\n\n"; //txt+="Click OK to continue.\n\n"; //alert(txt); } // code for pop up ads try{ if(rffadon == 1){ rcdad(500,350,'rffad'); } } catch(err){ //txt="There was an error on this page.\n\n"; //txt+="Error description: " + err.description + "\n\n"; //txt+="Click OK to continue.\n\n"; //alert(txt); } } window.onscroll = function(){ // code for slide up ads try{ if(cas == 1){ sd(); } } catch(err){ //txt="There was an error on this page.\n\n"; //txt+="Error description: " + err.description + "\n\n"; //txt+="Click OK to continue.\n\n"; //alert(txt); } // code for pop up ads try{ if(rffadon == 1){ rcdad(500,350,'rffad'); } } catch(err){ //txt="There was an error on this page.\n\n"; //txt+="Error description: " + err.description + "\n\n"; //txt+="Click OK to continue.\n\n"; //alert(txt); } } rffad.rwrffad(); setTimeout(rffadopen,rffad.time);