"; HTMLstr += "\"photo\""; HTMLstr += ""; HTMLstr += "
" + photoCredit + "
"; HTMLstr += "
" + photoCaption + "
"; return HTMLstr; } //end functions for Travel flash slideshows //begin functions for Global flash slideshows function writeEmbeddedFlashSlideShow(xmlFile){ var swfFile = "/slideshow/swf/slideshow.swf?XMLfile=/slideshow/xml/" + xmlFile; var HTMLstr = ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; HTMLstr += ""; return HTMLstr; } function showFirstEmbeddedSlide(imgName, photoCredit, photoCaption){ var HTMLstr = ""; HTMLstr += ""; HTMLstr += "\"photo\""; HTMLstr += ""; HTMLstr += "
" + photoCredit + "
"; HTMLstr += "
" + photoCaption + "
"; return HTMLstr; } //end functions for Global flash slideshows function preloadNavImages(imageNames, imagePath){ var loadedImages = new Array(); if (document.images) { for (var i=0; i < imageNames.length; i++){ loadedImages[i] = new Image(); loadedImages[i].src = imagePath + "nav_" + imageNames[i] + "_off.gif"; } } } function readCookie(value){ var allCookieVals = document.cookie.split(";"); for (var i=0; i < allCookieVals.length; i++){ //loop through all cookies if (allCookieVals[i].indexOf(value) != -1) { //find target cookie var cookieVal = allCookieVals[i].split("="); //split name/value pair return cookieVal[1]; //return target cookie value } } } function expandMultimediaWindow(){ if (window.resizeTo && window.moveTo) { window.resizeTo(screen.availWidth, screen.availHeight); window.moveTo(0,0); } } function shrinkMultimediaWindow(w,h){ if (window.resizeTo) window.resizeTo(w,h); if (window.moveTo) { var winX = ((screen.availWidth/2) - (w/2)); var winY = ((screen.availHeight/2) - (h/2)); window.moveTo(winX,winY); } } function ieXLiquidWidth() { if (document.body.clientWidth < 774) { return "768px"; } else if (document.body.clientWidth > 984) { return "980px"; } else { return "auto"; } } function setClientSizeCookies() { var client_w = document.body.clientWidth; var path = "/"; var domain = "nytimes.com"; document.cookie = "client_w=" + client_w + "; path= " + path + "; domain=" + domain; } //-->