isSubscriber = false;var search = document.location.search.toQueryParams();
if (search.subscriber == "false") {
isSubscriber = false;
}

// switchTab() sets the selected tab to visible and the former tab to invisible.function switchPromoTab(j) {var promoname = 'promotabs'; Element.setStyle("promotab"+selectedpromo, {display: "none"});Element.setStyle("promotab"+j, {display:'block'});selectedpromo =  j;var path = document.location.pathname.substring(0, document.location.pathname.lastIndexOf('/')); Cookie.Write(promoname, selectedpromo, 30, path);}function showProductsTab(nonSubscriberTabNr) {// only show the products tab to people that aren't subscribers and are viewing the page for the first time.var return_user = parseInt(Cookie.Read("return_user"));var maxViews = 4;if (!isNaN(return_user)) { return_user = return_user+1;} else { return_user = 1;}if (!isSubscriber && return_user <= maxViews) {Cookie.Write("return_user", return_user, 1, "/", document.location.host);selectedpromo = nonSubscriberTabNr;} else {selectedpromo = ((Cookie.Read("promotabs") >= 1) ? Cookie.Read("promotabs") : 1);}}
