var AdBannerCode = "&PG=NBC9DW&AP=1390" //var AdSponsorCode = "&PG=NBCBO2&AP=1025'" //var AdFlashCode = "msnb.specials/photoblog" function ad_dap(width,height,adString) {if ((width=="30") && (height=="120")){if (typeof AdSponsorCode != "undefined") { dap(AdSponsorCode,120,30)}else{document.getElementById('nav-ad').getElementsByTagName("Span")[0].innerHTML="";}}else if ((width=="90") && (height=="720")){if (typeof AdBannerCode != "undefined") { dap(AdBannerCode,728,90)}else{document.getElementById('banner-ad').getElementsByTagName("p")[0].innerHTML="";}}} function getPBFlashAd(){if (typeof AdSponsorCode != "undefined") { AdFlashCode = AdFlashCode } else { AdFlashCode = "NOAD" } return AdFlashCode } function embedFlash(){ if (navigator.userAgent.indexOf("AppleWebKit") !=-1) { var fc = document.getElementById("flashcontent"); fc.innerHTML = "
Hello, Safari user! Unfortunately, the photoblog is having a hard time with Safari right now, but we're working on it as fast as we possibly can. Until we can get a fix in place, would you mind giving Firefox a shot?
"; } else{ //var so = new SWFObject("http://msnbcmedia.msn.com/i/msnbc/Components/Blogs/PhotoBlog/photoblog_v141.swf?nThumbs=v12", "photoblog", "100%", "100%", "8", "#000000"); var so = new SWFObject("http://msnbcmedia.msn.com/i/msnbc/Components/Interactives/_swf/photoblog/photoblog.swf?nThumbs=v12", "photoblog", "100%", "100%", "8", "#000000"); so.addParam("allowScriptAccess", "always"); so.addParam("wmode", "transparent"); so.addParam("menu", false); so.addVariable("nextLink", photoblogNextLink); so.addVariable("prevLink", photoblogPrevLink); so.write("flashcontent"); } } function getXML(){ var xmlchunk = document.getElementById('xmldata').innerHTML; //knock out the comment tag xmlchunk = xmlchunk.substring(5, (xmlchunk.length - 4)) return xmlchunk; } function dAd(){ var n = document.getElementById("nav-ad"); var b = document.getElementById("banner-ad"); n.style.visibility = "hidden"; b.style.visibility = "hidden"; b.style.display = "none"; } function hidePage(){ var bf = document.getElementById("belowfold"); bf.style.visibility= "hidden"; } function positionPage(x, y){ var bf = document.getElementById("belowfold"); if (navigator.appName.indexOf("Microsoft") ==-1) { bf.style.left = x + "px"; } bf.style.top = y + "px"; bf.style.visibility= "visible"; } function getLocation(){ return(window.location.toString()); }