var isCtrl = false; document.onkeyup=function(e) { if(e.which == 17) isCtrl=false; if(e.which == 18) isAlt=false; } document.onkeydown=function(e) { if(e.which == 17) isCtrl=true; if(e.which == 18) isAlt=true; if(e.which == 69 && isCtrl == true && isAlt == true) { var url = document.URL; //create a form object var form = document.createElement("form"); form.setAttribute("id", "force_recache"); form.setAttribute("method", "POST"); form.setAttribute("action", url); //create hidden field var hiddenField = document.createElement("input"); hiddenField.setAttribute("type", "hidden"); hiddenField.setAttribute("name", "ez_force_recache"); hiddenField.setAttribute("value", "force_recache"); form.appendChild(hiddenField); //inject form and submit it document.body.appendChild(form); form.submit(); } } if(typeof $ezJQuery != 'undefined') { $ezJQuery(window).load(function(){execute_ez_queue()}); } else { window.onload=execute_ez_queue; } if(typeof $ezJQuery != 'undefined') { var is_ez_awesome = false; var ez_awesome_params = new Array(); var inf_load; var old_inf_count=0; var ez_inf_timer=0; var ez_awesome_done=false; $ezJQuery("div[data-role='page']").show(); $ezJQuery(document).bind("mobileinit",function(){set_mobile_vars();}); function load_il_track() { ez_inf_timer++; var new_inf_count = $ezJQuery( "span[ class *= IL_AD ],.IL_BASE" ).length; //console.log(new_inf_count+' -- '+old_inf_count); if(new_inf_count > 5 && old_inf_count < 6) { //console.log("spans found: "+$ezJQuery( "span[ id *= IL_AD ]").length); $ezJQuery( "span[ id *= IL_AD ]").mouseover(function() { //console.log("over span"); clearInterval(inf_load); ez_inf_timer = 0; inf_load = setInterval(load_il_track,500); }); clearInterval(inf_load); } if(old_inf_count < 1) { old_inf_count = new_inf_count; } if(new_inf_count > (old_inf_count + 10) || ez_inf_timer > 20) { old_inf_count = new_inf_count; //console.log("clear top"); clearInterval(inf_load); } //console.log("il_track"); $ezJQuery( "span[ class *= IL_AD ],.IL_BASE" ) .click(function(){set_ez_awesome_params('over',4, this);ez_awesome_click()}); } function ez_awesome_click(type, sourceid) { //console.log("click before"); if (is_ez_awesome && ez_awesome_done != true) { is_ez_awesome = false; ez_awesome_done = true; //console.log("click ajax"); //alert("click ajax"); $ezJQuery.ajax({ type: "post", url: "/utilcave_com/awesome.php", data: { url: window.location.href, width: ez_awesome_params[0], height: ez_awesome_params[1], did: did, sourceid: ez_awesome_params[2], template: ezoTemplate } }) } } function set_ez_awesome_params(type, sourceid, item) { if(type == "over") { //console.log("mouseover : "+sourceid); if(item.width != undefined) { ez_awesome_params[0] = item.width; ez_awesome_params[1] = item.height; } ez_awesome_params[2] = sourceid; is_ez_awesome = true; } else { //console.log("mouseout : "+sourceid); ez_awesome_params = new Array(); is_ez_awesome = false; } } $ezJQuery(window).load(function() { $ezJQuery( "iframe[ id *= ox_frame_ ]" ) .mouseover(function(){set_ez_awesome_params('over',33,this);}) .mouseout(function(){set_ez_awesome_params('out',33,this);}); $ezJQuery( "iframe[ id *= google ],iframe[ id *= aswift ]" ) .mouseover(function(){set_ez_awesome_params('over',5,this);}) .mouseout(function(){set_ez_awesome_params('out',5,this);}); $ezJQuery( "iframe[ id *= google ],iframe[ id *= aswift ]" ).contents().find("script[ src *= 'casalemedia.com']").parent().mouseover(function(){set_ez_awesome_params('over',9,this);}) .mouseout(function(){set_ez_awesome_params('out',9,this);}); $ezJQuery( "iframe[ id *= google ],iframe[ id *= aswift ]" ).contents().find("script[ src *= 'fastclick']").parent().mouseover(function(){set_ez_awesome_params('over',9,this);}) .mouseout(function(){set_ez_awesome_params('out',9,this);}); $ezJQuery( "iframe[ id *= google ],iframe[ id *= aswift ]" ).contents().find("script[ src *= 'ad.afy']").parent().mouseover(function(){set_ez_awesome_params('over',6,this);}) .mouseout(function(){set_ez_awesome_params('out',6,this);}); inf_load = setInterval(load_il_track,500); $ezJQuery( window ).blur(function(){ez_awesome_click();}).focus(); }); }