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"); var activeBannerId = ""; var activeBannerControllerId = ""; var activeTipId = ""; var rotate = true; var myBannerNumber = 1; var activeBannerNumber = myBannerNumber; var bannerItemsLength = $(".banner-item").length; var bannerTimeout; var useToolTips = false; /* * Config to taste */ var bannerFadeIn = 750; var bannerFadeOut = 50; var bannerControlsFadeIn = 2000; var bannerRotateSpeed = 6000; /* * End config */ function displayBanner(myBannerId){ if (activeBannerId !== myBannerId) { if(activeBannerId !== ""){ hideBanner(activeBannerId); } activeBannerId = myBannerId; if(useToolTips === true){ activeTipId = document.getElementById(myBannerId).tip.id; hideTooltip(activeTipId); } activeBannerControllerId = document.getElementById(myBannerId).controller.id; $("#" + activeBannerControllerId).addClass("selected").click(function(e){ e.preventDefault(); }); $('#' + myBannerId).fadeIn(bannerFadeIn, function(){ myBannerNumber++; bannerTimeout = setTimeout("rotateBanner(myBannerNumber)", bannerRotateSpeed); }); } else{ return false; } } function hideBanner(myBannerId){ activeBannerId = ""; $("#"+activeBannerControllerId).removeClass("selected").click(function(){ return true; }); $('#'+myBannerId).fadeOut(bannerFadeOut, function() { return true; }); } /* * Tooltip for banner controls *
*/ function hideTooltip(tipId){ myToolTip = document.getElementById(tipId); myToolTip.style.display = "none"; } function showTooltip(tipId){ myToolTip = document.getElementById(tipId); myToolTip.style.display = "block"; } function rotateBanner(){ $('#banner-controls').click(function(){ return true; }) if (!rotate) { clearTimeout(bannerTimeout); return false; } else { if (myBannerNumber > bannerItemsLength) { myBannerNumber = 1; rotate = false; } myBannerId = "banner" + myBannerNumber; displayBanner(myBannerId); } } function initializeRotator(toolTipFlag){ // set flag to true if you have tool tips -- default is true if(typeof(toolTipFlag) == "undefined"){ useToolTips = true; } else if(typeof(isIe6) != "undefined"){ // this var is set in shared assets preload useToolTips = false; } else{ useToolTips = toolTipFlag; } $('#banner-controls').click(function(){ return false; }) if (useToolTips === true) { var toolTipShown = false; $(".banner-control").hover(function(){ //console.log("OVER - " + $(this).attr("id")); if (!$(this).hasClass("selected")) { showTooltip(this.banner.tip.id); } }, function(){ //console.log("OUT - " + $(this).attr("id")); if (!$(this).hasClass("selected")) { hideTooltip(this.banner.tip.id); } }) $(".banner-control").click(function(){ //console.log(this.banner.tip.id); hideTooltip(this.banner.tip.id); // } }); } if($(".banner-item").length > 1){ $(".banner-item").each(function(i){ myId = this.id; myControllerNumber = i+1; bannerControlId = "bc"+myControllerNumber; this.$controller = $("#"+bannerControlId); this.controller = document.getElementById(bannerControlId); this.controllerCenter = (this.controller.offsetLeft+15); if (useToolTips === true) { tipId = "tip" + myControllerNumber; this.$tip = $("#" + tipId); this.tip = document.getElementById(tipId); this.tip.banner = this; this.tip.offset = -(this.$tip.width()-20); this.tip.style.left = this.controllerCenter+this.tip.offset+"px"; } this.controller.banner = this; this.controller.bannerId = this.id; this.$controller.click(function(){ displayBanner(this.bannerId); rotate = false; }); }); $('#banner-controls').fadeIn(bannerControlsFadeIn, function(){ rotateBanner(); }); } } //Added initialization code //initializeRotator(); } /* FILE ARCHIVED ON 00:41:29 Sep 14, 2014 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 00:16:22 Oct 14, 2025. 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: 15.985 exclusion.robots: 0.028 exclusion.robots.policy: 0.017 esindex: 0.011 cdx.remote: 45.504 LoadShardBlock: 75.407 (3) PetaboxLoader3.datanode: 154.613 (5) load_resource: 464.049 (2) PetaboxLoader3.resolve: 255.076 (2) */