// place any custom javascript here that may be needed by the header and footer // this example shows how to change the wallpaper dynamically var paperNum = 1; var maxWallpaper = 1; function changeWallpaper() { paperNum++; if(paperNum > maxWallpaper) paperNum = 1; var wallpaper = "url(nxt/wallpaper/wallpaper"+paperNum+".jpg)"; $("plexDiv").style.backgroundImage = wallpaper; } function openPBTour() { showSizedOverlay('/site/personalbrain/learningzone/tutorials/pbtour.html', 750, 450); } function openEKPTour() { showSizedOverlay('/site/brainekp/support/tour/ekptour.htm', 640, 480); } function openCCTour() { showSizedOverlay('/site/brainekp/customercare/cc_tour.htm', 640, 480); } function openCMSTour() { showSizedOverlay('/site/brainekp/customercare/cms_tour.htm', 640, 500); } function openWebinarSignUp() { // window.open('https://www.gotomeeting.com/register/631141417', '_blank'); showOverlay('/site/webinars/signup.html'); } function openPurchasePage() { var childURL = "https://www.thebrain.com/purchase/purchase.jsp"; window.open(childURL, "_blank", "height=600,width=820,location=0,menubar=0,scrollbars=1,status=1,titlebar=0,toolbar=0"); // OLD CPI Interactive purchasing page: // var childURL = "https://cpiinteractive.com/applications/thebrain/securepurchase/purchase.asp"; // window.open(childURL, "", "height=600,width=820,location=0,menubar=0,scrollbars=1,status=1,titlebar=0,toolbar=0"); // myRemote = window.open(childURL, "", "height=600,width=820,location=0,menubar=0,scrollbars=1,status=1,titlebar=0,toolbar=0"); // myRemote = window.blur(childURL); } function openGlossary() { showOverlay('/site/personalbrain/support/glossary/reference_a.htm'); // window.open("/site/personalbrain/support/glossary/reference_a.htm","glossary","height=600,width=810,menubar=0,resizable=1,toolbar=0,status=0,scrollbars=1"); } function showPrivacy() { showOverlay('/site/about/legal/privacy.html'); } function showTerms() { showOverlay('/site/about/legal/terms.html'); } // home page rotating banner switchImage(); var imageNum = 1; var maxImage = 2; var delayTime = 2000; function switchImage() { if(imageNum == 2) { delayTime = 4000; } else { delayTime = 2000; } setTimeout("switchImage()", delayTime); var mainImage = document.getElementById("mainImage"); if(mainImage != null) { mainImage.src="/site/home/animation"+imageNum+".jpg"; var linkTarget = "#-47"; if(imageNum == 2) { linkTarget = "#-47"; } document.getElementById("mainImageTarget").href = linkTarget; imageNum++; if(imageNum > maxImage) { imageNum = 1; } } }