// Top Main Nav, Left Side Nav, and Marketplace Nav // NOTE: Make sure that the menulist here matches the menulist in the DWB component. // That link and all other following links will be dead otherwise. //var sectionlist = new Array("Atlantic","CapeMay","Cumberland","Ocean"); var sectionlist = new Array("Local","Nation","World"); // 'Business' was removed from this list 8/26/05 var menulist = new Array("News","Opinion","Sports","Life","PhotoGallery","Interact","SiteServices","Entertainment","Business"); function showmenu(group) { for (sec in menulist) { //window.alert("group ="+group+" menulist[sec] ="+menulist[sec]); if ((menulist[sec] == group) && document.getElementById(group).style.display=="none") { document.getElementById(menulist[sec]).style.display="block"; //document.getElementById(menulist[sec]+"Arrow").src="/images/siteimages/right_arrow.gif"; } else { document.getElementById(menulist[sec]).style.display="none"; //document.getElementById(menulist[sec]+"Arrow").src="/images/siteimages/right_arrow.gif"; } } } function showtab(section) { for (sec in sectionlist) { sectab = eval("sectionlist[sec]")+"Tab"; sectblock = eval("sectionlist[sec]")+"Block"; sectablink = eval("sectionlist[sec]")+"TabLink"; //alert("Debug: iteration = "+sectionlist[sec]+"-"+sectab+"-"+sectablink); //alert("Debug: current = "+section); if (sectionlist[sec] == section) { document.getElementById(sectblock).style.display="block"; document.getElementById(sectab).style.backgroundColor="#FFF"; document.getElementById(sectablink).style.color="#555449"; } else { document.getElementById(sectblock).style.display="none"; document.getElementById(sectab).style.backgroundColor="#555449"; document.getElementById(sectablink).style.color="#FFF"; } } } // Search Box Javascript function formHandler(form){ var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; } // -- FOLLOWING IS IMPORTED FROM FRESNO BEE -- // GALLERY LAUNCHER function goGallery(url) { galleryWindow = window.open(url,'gallerypopup','status=yes,width=600,height=550,scrollbars=auto,resizable=yes'); } // WEATHER SCRIPTS/FUNCTIONS var default_zone="ACY"; function setwzone() { // Does popup window for user to set preferred zone(s) getwzone = "http://newslink.nandomedia.com/cgi-bin/weather/findcode.cgi?camefrom=http://"+escape(location.hostname)+escape(location.pathname); setme = window.open(getwzone,"setwzone","status=yes,width=350,height=350,scrollbars=yes,resizable=no"); } // SETS THE PREFERED ZONE FROM QUERY STRING, OR USES DEFAULT if (document.location.search.substr(1,5)=="wzone") { //reads from url var wzone = document.location.search.substr(7); } else { wzone = default_zone; } var dontdrawzonew="1"; //IMPORTANT: STOPS DEFAULT OUTPUT SO WE YOU CAN CUSTOMIZE document.write(''); // DECLAREING THE VARIABLES TO AVOID ERRORS IN EVENT OF TROUBLE var mywzonename; var timelocal; var icon; var conditions; var temperature; var wind_chill; var humidity; var wind_from; var wind_speed; var visibility; var pressure; var fivedays; var icondesc; //Image rollover stuff for topnav bar function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&iLoading...');writeln(''); writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){'); writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}'); writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);'); writeln('width=150-(document.body.clientWidth-document.images[0].width);'); writeln('height=100-(document.body.clientHeight-document.images[0].height);'); writeln('window.resizeTo(width,height);}');writeln('if (isNN){'); writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}'); writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln(''); if (!AutoClose) writeln('') else writeln(''); writeln(''); close(); }}