window.rapidwizard_is_loaded=true;function RapidWizard(userconfig){this.userconfig=userconfig;this.hosts=["rapidshare.com","megaupload.com","megashares.com","easy-share.com","mediafire.com","rapidshare.de","depositfiles.com","vip-file.com","yourfilehost.com","sendspace.com","netload.in","filefactory.com","4shared.com","badongo.com","spread-it.com","gigasize.com","filefront.com","yousendit.com","megashare.com","uploading.com","uploaded.to","ul.to","bonpoo.com","zshare.net","transferbigfiles.com","kewlshare.com","midload.com","filesrack.com","hotfile.com","ziddu.com","novaup.com","enterupload.com","letitbit.net","uploadbox.com","filesmonster.com","storage.to","up-file.com","filebox.com","freakshare.net","ugotfile.com","netgull.com","sendfile.to","file-rack.com"];this.hosts_regex=["rapidshare\\.com","megaupload\\.com","megashares\\.com","easy-share\\.com","mediafire\\.com","rapidshare\\.de","depositfiles\\.com","vip-file\\.com","yourfilehost\\.com","sendspace\\.com","netload\\.in","filefactory\\.com","4shared\\.com","badongo\\.com","spread-it\\.com","gigasize\\.com","filefront\\.com","yousendit\\.com","megashare\\.com","uploading\\.com","uploaded\\.to","ul\\.to","bonpoo\\.com","zshare\\.net","transferbigfiles\\.com","kewlshare\\.com","midload\\.com","filesrack\\.com","hotfile\\.com","ziddu\\.com","novaup\\.com","enterupload\\.com","letitbit\\.net","uploadbox\\.com","filesmonster\\.com","storage\\.to","up-file\\.com","filebox\\.com","freakshare\\.net","ugotfile\\.com","netgull\\.com","sendfile\\.to","file-rack\\.com"];this.alive_link_png='http://www.hotfile-zone.com/forum/img/alive.png';this.dead_link_png='http://www.hotfile-zone.com/forum/img/dead.png';this.links=[];this.re_linkify=new RegExp('(https?://([A-Z0-9]\.)*('+this.hosts_regex.join('|')+')[-()A-Z0-9+&@#/%?=~_|!:,.;]*[A-Z0-9+&@#/%=~_|])(?=[^>]*<)',"ig");this.re_link2=new RegExp('(https?://(?:[A-Z0-9]\.)*(?:'+this.hosts_regex.join('|')+')[-()A-Z0-9+&@#/%?=~_|!:,.;]*[A-Z0-9+&@#/%=~_|])',"ig");this.re_link3=new RegExp('https?://(?:[A-Z0-9]\.)*(?:'+this.hosts_regex.join('|')+')[-()A-Z0-9+&@#/%?=~_|!:,.;]*[A-Z0-9+&@#/%=~_|]',"i");this.re=new RegExp('^(https?://([A-Z0-9]\.)*('+this.hosts_regex.join('|')+')[-()A-Z0-9+&@#/%?=~_|!:,.;]*[A-Z0-9+&@#/%=~_|])$',"ig");this.load(userconfig);} RapidWizard.prototype.load=function(userconfig){rapidwiz=this;rapidwiz.loadJquery(function(noconflict){if(noconflict) jQuery.noConflict();jQuery.fn.textNodes=function(){var ret=[];this.contents().each(function(){var fn=arguments.callee;if(this.nodeType==3){ret.push(this);}else if(this.nodeType==1){if(this.tagName.toLowerCase()=='script'||this.tagName.toLowerCase()=='head'||this.tagName.toLowerCase()=='iframe'||this.tagName.toLowerCase()=='textarea'||this.tagName.toLowerCase()=='option'||this.tagName.toLowerCase()=='style'||this.tagName.toLowerCase()=='title'||this.tagName.toLowerCase()=='a'){}else{jQuery(this).contents().each(fn);}}});return ret;} ondomready=function(){rapidwiz.autolink();if(userconfig.Onload){rapidwiz.checkLinks();}} jQuery(ondomready);});} RapidWizard.prototype.loadJquery=function(fn){var s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('src','http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js');noconflict=false;if(typeof jQuery=='undefined') document.getElementsByTagName('head')[0].appendChild(s);if(typeof $=='undefined') noconflict=true;var checkload=function(){if(typeof jQuery=='undefined') setTimeout(checkload,10) else fn(noconflict);} checkload();} RapidWizard.prototype.autolink=function(){rapidwiz=this;jQuery.each(jQuery(rapidwiz.userconfig.Selector).textNodes(),function(i,node){text=node.nodeValue;if(rapidwiz.re_link3.test(text)){newNode=document.createElement('span');text=jQuery('
').text(text).html();newNode.innerHTML=text.replace(rapidwiz.re_link2,'$1');node.parentNode.replaceChild(newNode,node);}});} RapidWizard.prototype.checkLink=function(anchor,linknum){rapidwiz=this;jQuery.getJSON("http://rapidwizard.net/apis/scripts/checklink_jsonp.php?link="+encodeURIComponent(anchor.href)+"&callback=?",function(data){if(data[0]==1){if(!rapidwiz.userconfig.OverrideDefault){jQuery(anchor).append('').attr("title","Link OK");} rapidwiz.userconfig.OnCheck('alive',anchor);}else{if(!rapidwiz.userconfig.OverrideDefault){jQuery(anchor).append('').attr("title","Link Dead").css("textDecoration","line-through");} rapidwiz.userconfig.OnCheck('dead',anchor);}});} RapidWizard.prototype.checkLinks=function(){rapidwiz=this;linknum=1;jQuery(rapidwiz.userconfig.Selector).find("a").each(function(i){if(this.href.match(rapidwiz.re)){if(linknum==1){linknum++;} rapidwiz.checkLink(this,linknum);}});}