var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); /************************************* * * riverSwitch (home.js) * these functions (prepareTabs, b-b-eFocus, bPageSwitch, changeCount, * pageFor, pageBack) are for dynamically switching the river page * for TD 44810 * todo: put all of this into a class * * *************************************/ var bList; var pList; var eList; var subNav; var bLink; var pLink; var eLink; var linkSpan; var thisLink; var prevLink; var nextLink; function prepareTabs() { // make sure browser understands doc.getElementById if(!document.getElementById) return false; bList = document.getElementById("river_list-blog"); pList = document.getElementById("river_list-pop"); eList = document.getElementById("river_list-elsewhere"); subNav = document.getElementById("subnav"); bLink = document.getElementById("subnav1"); pLink = document.getElementById("subnav2"); eLink = document.getElementById("subnav3"); linkSpan = document.getElementById("lnkspn1"); thisLink = document.getElementById("pglnk1"); prevLink = document.getElementById("backLink"); nextLink = document.getElementById("forLink"); // make sure everything has loaded /*if(!bList.data) alert("no blog list"); if(!pList.data) alert("no popular list"); if(!eList.data) alert("no elsewhere list"); if(!subNav) alert("missing tabs"); if(!bLink || !pLink || !eLink) alert("no subnav3");*/ //default styles (should be css driven) document.getElementById("subnav1").style.color = "#000"; pLink.style.color = "#fff"; eLink.style.color = "#fff"; linkSpan.style.backgroundColor = "#B4D3E1"; thisLink.style.color = "#000"; prevLink.style.display = "none"; // hide unfocussed lists bList.style.display = "block" pList.style.display = "none"; eList.style.display = "none"; // events bLink.onclick = bFocus; pLink.onclick = pFocus; eLink.onclick = eFocus; // for ie bug //document.getElementById("foot_row1").style.top = "0"; return true; } addLoadEvent(prepareTabs); // display the blog list function bFocus() { bList.style.display = "block" pList.style.display = "none"; eList.style.display = "none"; subNav.style.backgroundPosition = "0 0"; bLink.style.color = "#000"; pLink.style.color = "#fff"; eLink.style.color = "#fff"; return false; } // display the popular list function pFocus() { bList.style.display = "none" pList.style.display = "block"; eList.style.display = "none"; subNav.style.backgroundPosition = "0 -44px"; bLink.style.color = "#fff"; pLink.style.color = "#000"; eLink.style.color = "#fff"; return false; } // display the 'elsewhere' list function eFocus() { bList.style.display = "none" pList.style.display = "none"; eList.style.display = "block"; subNav.style.backgroundPosition = "0 -88px"; bLink.style.color = "#fff"; pLink.style.color = "#fff"; eLink.style.color = "#000"; return false; } // pager for the blog list function bPageSwitch(pageNum) { var thisPage = document.getElementById("blog_river_p"+pageNum); thisPage.style.display = "block"; // "previous" link should not display on page one if(pageNum == 1) { prevLink.style.display = "none"; } else prevLink.style.display = "block"; // "next" link shouldn't display on page ten if(pageNum == 10) { nextLink.style.display = "none"; } else nextLink.style.display = "block"; for(var p = 1; p <= 10; p++) { if(p == pageNum) { changeCount(p); for(var k=1; k <= 10; k++) { // here p has to be the page because of the previous if statement linkSpan = document.getElementById("lnkspn"+k); thisLink = document.getElementById("pglnk"+k); if(k==p){ linkSpan.style.backgroundColor = "#B4D3E1"; thisLink.style.color = "#000"; thisLink.style.cursor = "arrow"; prevLink.href = "javascript:pageBack('"+ (k-1) +"');"; nextLink.href = "javascript:pageFor('"+ (k+1) +"');"; } else { linkSpan.style.backgroundColor = "#fff"; thisLink.style.color = "#007CA5"; thisLink.style.cursor = "hand"; } } continue; } var nextPage = document.getElementById("blog_river_p"+p); nextPage.style.display = "none" } } // change text of number of pages shown function changeCount(nP) { var countSpan = document.getElementById("pageCount"); var pC = (nP*10)-9 + "-" + (nP*10); countSpan.firstChild.data = pC; } // change "next page" link function pageBack(b) { bPageSwitch(b); } // change "next page" link function pageFor(f) { bPageSwitch(f); } } /* FILE ARCHIVED ON 20:59:51 May 26, 2008 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 12:23:55 May 04, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 0.9 exclusion.robots: 0.087 exclusion.robots.policy: 0.076 cdx.remote: 0.075 esindex: 0.012 LoadShardBlock: 148.269 (3) PetaboxLoader3.datanode: 76.142 (4) PetaboxLoader3.resolve: 167.322 (2) load_resource: 143.224 */