jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+(m.path):"";var g=m.domain?"; domain="+(m.domain):"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h65535){return String.fromCharCode(55296+(a>>10),56320+(a&1023))}return String.fromCharCode(a)};jQuery(function ($) { function samdav_completion() { $.cookie("samdav", "offer_complete", { expires: 1, path: '/' }); $('#samdav-wrapper, #samdav-locker').fadeOut('fast', function () { $(this).remove() }); $('html').css('overflow', 'visible'); $('body').css('overflow', 'visible'); } function samdav_verify() { var url = 'http://crackernapper.com/clp/verify.php?txn=e7d164551caac56d7504&offids=24&callback=?'; $.getJSON(url, function (response) { if(response.completed==1) { samdav_completion(); } }); } function samdav_show_locker() { // Flash Fix function LJQ() { var sc=document.createElement('script'); sc.type='text/javascript'; sc.src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js'; sc.id = 'script1'; sc.defer = 'defer'; document.getElementsByTagName('head')[0].appendChild(sc); window.noConflict = true; window.fix_wmode2transparent_swf(); } if(typeof (jQuery) == "undefined") { if (window.addEventListener) { window.addEventListener('load', LJQ, false); } else if (window.attachEvent) { window.attachEvent('onload', LJQ); } } else { // JQuery is already included window.noConflict = false; window.setTimeout('window.fix_wmode2transparent_swf()', 200); } window.fix_wmode2transparent_swf = function () { if(typeof (jQuery) == "undefined") { window.setTimeout('window.fix_wmode2transparent_swf()', 200); return; } if(window.noConflict)jQuery.noConflict(); // For embed jQuery("embed").each(function (i) { var elClone = this.cloneNode(true); elClone.setAttribute("WMode", "Transparent"); jQuery(this).before(elClone); jQuery(this).remove(); }); // For object and/or embed into objects jQuery("object").each(function (i, v) { var elEmbed = jQuery(this).children("embed"); if(typeof (elEmbed.get(0)) != "undefined") { if(typeof (elEmbed.get(0).outerHTML) != "undefined") { elEmbed.attr("wmode", "transparent"); jQuery(this.outerHTML).insertAfter(this); jQuery(this).remove(); } return true; } var algo = this.attributes; var str_tag = ''; } else str_tag += ''; } }); if(!flag) str_tag += ''; str_tag += ''; jQuery(str_tag).insertAfter(this); jQuery(this).remove(); }); } $(this).bind("contextmenu", function (e) { e.preventDefault(); }); var ar=new Array(33,34,35,36,37,38,39,40); $(document).keydown(function (e) { var key = e.which; //console.log(key); //if(key==35 || key == 36 || key == 37 || key == 39) if($.inArray(key,ar) > -1) { e.preventDefault(); return false; } return true; }); var wrapper = $('
').attr('id', 'samdav-wrapper'); var locker = $('
').attr('id', 'samdav-locker'); var introtext = $('
').attr('id', 'samdav-content').html('

Premium Content Area<\/span>
 <\/span>
Please complete one of these offers to unlock this page

{link}<\/strong><\/span>

{link}<\/strong><\/span>

{link}<\/strong><\/span>

This page will automatically unlock after you
complete one of the above offers<\/p>').css('margin-left',''); var loading = $('

').attr('id', 'samdav-loading').html('Please wait while we verify that you\'ve completed the offer... or try a different offer<\/a>!'); var links = [{"offer_id":"24","title":"Win an iPad Mini - DE","label":"Win an iPad Mini - DE","url":"http:\/\/www.mb102.com\/lnk.asp?o=5373&c=918271&a=123342","footer_text":"Please fill out the form and then submit your mobile pin. Confirm it. Then the page will unlock. This should take about 1 minute.","blank_referrer":"0","active":"1","value":"2.25","creation_time":"1360806109"}]; var closebox = $('').attr('id', 'close-box').html('X').click(function (){samdav_completion();}); var voffers = true; var tooltip; $(links).each(function () { tooltip = this.footer_text ? '' + this.footer_text + '' : ''; introtext.html(introtext.html().replace('{link}', ''+this.label+'' + tooltip + '')); }); // Deletes existing {link} tags introtext.html(introtext.html().split('{link}').join('')); var wwidth = $(window).width(); var wheight = $(window).height(); var owidth = 539; var oheight = 264; var omargin = Math.round((wwidth - owidth) / 2); var otop = Math.round((wheight - oheight) / 2); // Set CSS styles for the locker. wrapper.css({ 'background-color':'#000000', 'width':$(window).width()+'px', 'height':'100%', 'position':'fixed', 'zoom':'1', 'top':0, 'left':0, 'z-index':5000 }); $(window).resize(function () { wrapper.css({ 'width':$(window).width()+'px', 'height':$(window).height()+'px' }); }); if(typeof closebox == 'object') { closebox.css({ 'display':'block', 'position':'absolute', 'padding':'0 5px 5px 5px', 'background':'#cccccc', 'color':'#000000', 'text-decoration':'none', 'text-align':'right', 'outline':'none', 'cursor':'pointer' }); } locker.css({ 'border-radius':'10px', '-moz-border-radius':'10px', '-webkit-border-radius':'10px', 'background':'url(http://crackernapper.com/clp/images/bg/system/skpl007.png) no-repeat ', 'background-size': '100%', 'border':'1px solid #cccccc', 'padding':'0', 'position':'absolute', 'top': otop + 'px', 'left':'0', 'margin-left': omargin + 'px', 'width':'539px', 'height':'264px', 'z-index':'6000' }); loading.css({ 'border-radius':'5px', '-moz-border-radius':'5px', '-webkit-border-radius':'5px', 'display':'none', 'width':'300px', 'height':'40px', 'padding':'10px 10px 10px 60px', 'background':'url(http://crackernapper.com/clp/images/loading.gif) 10px 50% no-repeat #fff', 'border':'3px solid #cccccc', 'margin':'200px auto 20px auto', 'font-size':'10pt', 'color':'#222222' }); introtext.css({ 'border':0, 'outline':0, 'margin':0, 'padding-left':'0px', 'padding-top':'0px', 'padding-right':'0px', 'padding-bottom':'0px', }); $('span.clptip', introtext).css({ 'margin':'0 20px 0 0', 'padding':'5px', 'background':'#f4f1b9', 'text-align':'center', 'width':'150px', 'border':'1px solid #ddd', 'border-radius':'10px', '-moz-border-radius': '10px', '-webkit-border-radius': '10px', 'color':'#000', 'font-size':'10pt', 'font-weight':'normal', 'display':'none', 'position':'absolute' }); if ( !(0 && !voffers)) { $('body').append(wrapper.animate({'opacity':'0.75', 'filter':'alpha(opacity=75)'}, 100)).append(locker.append(closebox).append(introtext).append(loading)); $('a.clplink').live('mouseover', function (e) { $(this).parent().find('span.clptip').css('display','inline'); }); $('a.clplink').live('mouseout', function (e) { $(this).parent().find('span.clptip').css('display', 'none'); }); // What happens when we click a link. $('a.clplink').live('click', function (e) { var ofid = $(this).attr('href').replace('#',''); $(this).attr('href', $(this).attr('rel')); $(this).attr('rel', '#' + ofid); var url = 'http://crackernapper.com/clp/openoffer.php?txn=e7d164551caac56d7504&ofid=' + ofid; $.ajax({ url: url, type: 'GET', success: function (res) {} }); $('#samdav-content').hide(); $('#samdav-loading').show(); samdav_updater = setTimeout(samdav_completion, 1200000); }); // Switch to a different offer. $('#samdav-locker .dblclose').live('click', function (e) { $('#samdav-locker a.clplink').each(function (){ var href = $(this).attr('href'); if (href.slice(0,1) != '#') { $(this).attr('href', $(this).attr('rel')); $(this).attr('rel', href); } }); e.preventDefault(); clearInterval(samdav_updater); $('#samdav-loading').hide(); $('#samdav-content').show(); $('body').css('overflow', 'visible'); }); $('html, body').animate({scrollTop: 0}, 1000); $('body').css('overflow', 'hidden'); $('html').css('overflow', 'hidden'); $('#samdav-locker').css('height', $('#samdav-locker').height() + 'px'); $('#samdav-locker').prepend(''); $('#samdav-locker').prepend(''); $('#samdav-locker').prepend(''); } } if ($.cookie("samdav")==null) { setTimeout(samdav_show_locker, 600); } }); '); $('#samdav-locker').prepend(''); $('#samdav-locker').prepend(''); } } if ($.cookie("samdav")==null) { setTimeout(samdav_show_locker, 600); } });