WATCH: Super Bowl ads, from the greatest cameos to the most sexist spots

‘); popup. document. close(); return false;
}

function printArticle(articleId) TWpopup = window.open(); // have to use a global as window.open returns null in an ajax callback //console.log(“printArticle ” + articleId); new Ajax.Updater(‘post’,’/article/formatForPrinting/’+articleId, asynchronous:true, evalScripts:true, onSuccess:function(transport) printArticleBody(transport.responseText), requestHeaders: [‘X-Update’, ‘post’] ); return false;



function getQueryString(key, default_)
if (default_==null) default_=””; key = key.replace(/ [\[]/,”\\\[“).replace(/[\]]/,”\\\] “); var regex = new RegExp(” [\\?&] “+key+”=( [^] *)”); var qs = regex.exec(window.location.href); if(qs == null) return default_; else return qs [1] ;


jQuery(document). ready(function() // write the Array.each & Object.each function if it doesn’t exist…some weird dfp prototype conflict if(Array.each == undefined) Array.each=function() return jQuery.each(this); ; if(Object.each == undefined) Object.each=function() return jQuery.each(this); ;
// handle missing console if(console === undefined) function _console() return log : function(v) var console = new _console();
jQuery(“img.logo”).dblclick(function() jQuery(“#serverName”).show(); setTimeout(function() jQuery(“#serverName”).hide(); , 2500); );
);


WATCH: Super Bowl ads, from the greatest cameos to the most sexist spots

Buzz about these highly scrutinized commercials has begun. Get a survey of what’s to come on Weekend in between the football action

By Now This particular News& nbsp | February 1, 2013

& nbsp


“); jQuery(“#TB_overlay”). click(tb_remove); } }else //all others if(document.getElementById(“TB_overlay”) === null) jQuery(“body”).append(”

“); jQuery(“#TB_overlay”).click(tb_remove); if(tb_detectMacXFF()) jQuery(“#TB_overlay”).addClass(“TB_overlayMacFFBGHack”);//use png overlay so hide flash else jQuery(“#TB_overlay”).addClass(“TB_overlayBG”);//use background and opacity if(caption===null) caption=””; jQuery(“body”). append(”

“); //add loader to the page jQuery(‘#TB_load’). show(); //show loader var baseURL; if(url. indexOf(“? “)! ==-1) //ff there is a query string involved baseURL = url.substr(0, url.indexOf(“?”)); else baseURL = url; //alert(“bar”);
var queryString = url. replace(/^[^\?]+\?? /, ”); var params = tb_parseQuery( queryString );
TB_WIDTH = (params[‘width’]*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL TB_HEIGHT = (params[‘height’]*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL ajaxContentW = TB_WIDTH – 30; ajaxContentH = TB_HEIGHT – 45; if(url. indexOf(‘TB_iframe’)! = -1) // either iframe or ajax window urlNoQuery = url.split(‘TB_’); jQuery(“#TB_iframeContent”).remove(); if(params [‘modal’] != “true”)//iframe no modal jQuery(“#TB_window_imagemap”).append(“”); else//iframe modal jQuery(“#TB_overlay”).unbind(); jQuery(“#TB_window_imagemap”).append(“”); else // not an iframe, ajax //alert(params [‘title’] ); if(jQuery(“#TB_window_imagemap”).css(“display”) != “block”) if(params [‘modal’] != “true”)//ajax no modal jQuery(“#TB_window_imagemap”).append(”

“); else//ajax modal jQuery(“#TB_overlay”).unbind(); jQuery(“#TB_window_imagemap”).append(”

“); else//this means the window is already up, we are just loading new content via ajax jQuery(“#TB_ajaxContent”) [0] .style.width = ajaxContentW +”px”; jQuery(“#TB_ajaxContent”) [0] .style.height = ajaxContentH +”px”; jQuery(“#TB_ajaxContent”) [0] .scrollTop = 0; jQuery(“#TB_ajaxWindowTitle”).html(caption); jQuery(“#TB_closeWindowButton”). click(tb_remove); if(url. indexOf(‘TB_inline’)! = -1) jQuery(“#TB_ajaxContent”).append(jQuery(‘#’ + params [‘inlineId’] ).children()); jQuery(“#TB_window_imagemap”).unload(function () jQuery(‘#’ + params [‘inlineId’] ).append( jQuery(“#TB_ajaxContent”).children() ); // move elements back when you’re finished ); tb_position(); jQuery(“#TB_load”).remove(); jQuery(“#TB_window_imagemap”).css(display:”block”); otherwise if(url. indexOf(‘TB_iframe’)! = -1) tb_position(); if(jQuery.browser.safari)//safari needs help because it will not fire iframe onload jQuery(“#TB_load”).remove(); jQuery(“#TB_window_imagemap”).css(display:”block”); else jQuery(“#TB_ajaxContent”).load(url += “&random=” + (new Date().getTime()),function()//to do a post change this load method tb_position(); jQuery(“#TB_load”).remove(); tb_init(“#TB_ajaxContent a.thickbox”); jQuery(“#TB_window_imagemap”).css(display:”block”); );
if(! params[‘modal’]) document.onkeyup = function(e) if (e == null) // ie keycode = event.keyCode; else // mozilla keycode = e.which; if(keycode == 27) // close tb_remove(); ; jQuery(‘object’). each(function() this.regDisplay=this.style.display; this.style.display=’none’; ); //jas jQuery(‘#TB_window_imagemap object’). each(function() this.style.display=this.regDisplay; ); //jas } catch(e) //nothing here
}
jQuery(function() if(xecookieValue == 0) if((window.location.pathname != “/” ) && (window.location.href.indexOf(“flipbook”) == -1)) tb_show_imagemap(”, ‘/xerox/test.html?width=664&height=534&TB_iframe=true’, null); jQuery.cookies.set(xecookieName, 1, xecookieOptions); else if(xecookieValue == null) jQuery.cookies.set(xecookieName, 0, xecookieOptions);
);



Leave a Reply

Your email address will not be published. Required fields are marked *