$(function() { /* remove the d-column */ $("#Dcolumn").remove(); /* remove sponsor button */ $("#AdSponsor_F2").remove(); $("#AdSponsor_F1").remove(); /* move secondary art to c-column */ $("#content").find(".cbx:first").remove().prependTo(".WCCol").css("padding-bottom","20px"); /* resize content div */ $("#story .container #content").css("width","532px"); /* check to see if the page is a TODAY Show recipe page */ if ($("#content.recipeContents").length == 0) { /* force content div's contents to adhere to previous width */ $("#story .container #content").css("overflow","hidden"); } else { /* allow content to spill out of container due to lack of sidebar ad */ $("#story .container #content").css("overflow","visible"); } /* resize main-art video component if it exists */ if ($(".WCCol .cbx-video:first").length) { $(".cbx-video:first").css("width","152px"); $(".cbx-video:first table").attr({width:152}); $(".cbx-video:first table:last img").attr({width:149,height:112}); } /* remove wide (non-152px) c-column colorboxes */ $(".WCCol .cbx table[width!=152]").remove(); $(".WCCol .cbx").each(function(){if($(this).css("width") != "152px") {$(this).remove();}}); /* fill empty space with content */ $("#content .mR165").css("margin-right","0"); /* see if there is content in the c-column ... and otherwise */ if ($('.WCCol table').length) { /* resize c-column */ $(".WCCol").css("width","152px"); } else { /* remove c-column */ $(".WCCol").remove(); } /* see if there is a sidebar ad */ if ($("#sidebar .adContent script").length) { /* unhide sidebar ad */ $("#sidebar").css("display","block"); } /* see if it is a ROS situation */ if ($('#Ad_976xText').length) { /* remove 'advertisement' word */ $("#Ad_976x105 .ad_label").remove(); /* change color of text */ $("#Ad_976x105 font[color='#000000']").attr({color:"#999999"}); } /* check to see if this is a non-today show page */ if ($("#todayShow").length == 0) { /* remove/hide the 3 footer elements: */ $("#bbb").prev(".cbx").remove(); $("#bbb").next(".w460").remove(); $("#bbb").remove(); /* add colorbox CSS files that previously existed */ $(document.createElement("link")).attr({"type": "text/css", "rel": "stylesheet", href: "http://www.nbcnews.com/default.ashx/id/3053751/3053751.css"}).appendTo("head"); $(document.createElement("link")).attr({"type": "text/css", "rel": "stylesheet", href: "http://www.nbcnews.com/default.ashx/id/3088874/3088874.css"}).appendTo("head"); } else { /* remove/hide the 2 footer elements: */ $(".p12 .cbx:last").remove(); $(".p12 .w460:last").remove(); /* add colorbox CSS files that previously existed */ $(document.createElement("link")).attr({"type": "text/css", "rel": "stylesheet", href: "http://www.nbcnews.com/default.ashx/id/3314183/3314183.css"}).appendTo("head"); } /* reveal the hybrid slices */ $("#hybrid_slices").css("display","block"); /* hide the video tease (appears in non-flash version otherwise) */ $("#hybrid_video cbx").css("display","none"); /* see if there is a skybox ad ... otherwise do nothing */ if ($("#AD_skybox script").length) { /* unhide skybox ad */ $("#AD_skybox").css("display","block"); /* check to see if this is a non-today show page */ if ($("#todayShow").length == 0) { /* change the background to the new extended-spectrum background */ $("#bantop").css("background","#f0f0f0 url(http://media1.s-nbcnews.com/i/MSNBC/Templates/z_Story_Hybrid/AD%20Related/hybrid_bkg01.jpg) repeat-x center bottom"); /* remove unnecessary background */ $("#bantop .container").css("background","none"); } /* check to see if the browser is IE ... and otherwise*/ if (jQuery.browser.msie) { /* resize top banner area to fit the skybox and breadcrumb */ $("#bantop .container").css("height","345px"); /* add some padding so skybox isn't crowding banner */ $("#AD_skybox").css("padding","20px 0"); } else { /* resize top banner area to fit the skybox and breadcrumb */ $("#bantop .container").css("height","319px"); /* add some margin so skybox isn't crowding banner */ $("#AD_skybox").css("margin","20px 0"); } } /* check to see if the browser is IE */ if (jQuery.browser.msie) { /* adjust positioning of footer gradient to prevent large whitespace below footer */ $(".IE div#bottomGradientIE.gradOff").css("display","none"); $(".IE div#bottomGradientIE.gradOff").css("display","block"); $(".IE div#bottomGradientIE.gradOff").css("position","absolute"); } });