var deviceToken=null;function mediaQueries(){var e=document.getElementById("newsl-block-module"),t=document.getElementById("hp-highlight"),a=document.querySelector("#hp-highlight .intro");Modernizr.mq("screen and (max-width: 39.063em)")&&"smartphone"!=deviceToken&&(deviceToken="smartphone",advertDimensionSwitcher.advertState1x2(),document.body.className.indexOf("hp")>-1&&(document.querySelector(".twitter.panel").className="twitter panel bg-grey-light"),adverts=$(".promos").detach(),whats_new=$(".hot-tools").detach(),twitter=$(".highlights-sub > .twitter").detach(),$(".highlights-sub").append(whats_new),$(".highlights-sub").append(adverts),$(".highlights-sub").append(twitter),$(e).insertAfter(".hp-toolkit"),newsletterBlock($(e)),$("body").hasClass("hp")||$("body").hasClass("ap")||newsletterCollapse($(e)),headerLogoState("small"),$(".logo img").show()),Modernizr.mq("screen and (min-width: 39.125em) and (max-width: 61.250em)")&&"ptablet"!=deviceToken&&(deviceToken="ptablet",document.body.className.indexOf("hp")>-1&&($(e).insertAfter(a),advertDimensionSwitcher.advertState1x1(),whats_new=$(".hot-tools").detach(),twitter=$(".highlights-sub > .twitter").detach(),$(".highlights-sub").append(whats_new),$(".highlights-sub").append(twitter),document.querySelector(".twitter.panel").className="twitter panel bg-grey-light"),newsletterExpand($(e)),$("body").hasClass("hp")?newsletterBlock($(e)):newsletterStrip($(e)),headerLogoState("small"),$(".logo img").show()),Modernizr.mq("screen and (min-width: 61.313em) and (max-width: 77.8125em)")&&"ltablet"!=deviceToken&&(deviceToken="ltablet",document.body.className.indexOf("hp")>-1&&(advertDimensionSwitcher.advertState1x1(),adverts=$(".promos").detach(),whats_new=$(".hot-tools").detach(),twitter=$(".highlights-sub > .twitter").detach(),$(".highlights-sub").append(whats_new),$(".highlights-sub").append(adverts),$(".highlights-sub").append(twitter),document.querySelector(".twitter.panel").className="twitter panel bg-grey-light",$(e).prependTo(t)),"ap"==document.body.className&&newsletterExpand($(e)),-1===document.body.className.indexOf("hp")&&$(e).appendTo(t),newsletterStrip($(e)),headerLogoState("large")),Modernizr.mq("screen and (min-width: 77.875em)")&&"desktop"!=deviceToken&&(deviceToken="desktop",document.body.className.indexOf("hp")>-1&&(advertDimensionSwitcher.advertState1x1(),adverts=$(".promos").detach(),whats_new=$(".hot-tools").detach(),twitter=$(".highlights-sub > .twitter").detach(),$(".highlights-sub").append(whats_new),$(".highlights-sub").append(adverts),$(".highlights-sub").append(twitter),advertDimensionSwitcher.advertState1x2(),document.querySelector(".twitter.panel").className="twitter panel bg-grey-light"),$(e).appendTo(t),$("body").hasClass("hp")?newsletterBlock($(e)):newsletterStrip($(e)),headerLogoState("large")),Modernizr.mq("screen and (max-width:84.375em)")?(0!=$(".related-resources-panel").length&&(related_resources=$(".related-resources-panel").detach(),$(".trandemark-related-aside").append(related_resources)),0!=$(".trandemark-related-aside").length&&(trade_marks=$(".references-and-trademark-container").detach(),$(".trandemark-related-aside").append(trade_marks))):0!=$(".trandemark-related-aside").length&&(related_resources=$(".related-resources-panel").detach(),trade_marks=$(".references-and-trademark-container").detach(),advert_join=$(".advert-join").detach(),advert_corp=$(".advert-corporate-products").detach(),sponsored_links=$(".sponsored-links-container").detach(),what_bugs=$(".what-bugs-panel").detach(),$(".content .sidebar").append(advert_join),$(".content .sidebar").append(advert_corp),$(".content .sidebar").append(related_resources),$(".content .sidebar").append(trade_marks),$(".content .sidebar").append(what_bugs),$(".content .sidebar").append(sponsored_links)),Modernizr.mq("screen and (min-width:77.875em) and (max-width:84.375em)")&&"desktopmini"!=deviceToken&&(deviceToken="desktopmini")}