/** * anthony - 25.09.04 */ // navigation var themedir = window['theme'] ? theme : ''; function menuMouseOver(menuName) { var img = document.getElementById ? document.getElementById(menuName) : document.images[menuName]; img.src = themedir + 'gfx/' + menuName + '_over.png'; } function menuMouseOut(menuName) { var img = document.getElementById ? document.getElementById(menuName) : document.images[menuName]; img.src = themedir + 'gfx/' + menuName + '.png'; } function showPage(pageId) { window.location.href = '/?page=' + pageId; } function login() { var span = document.getElementById('loginspan'); span.innerHTML = " " + " " + ""; return void(0); } function setCurrency(currencyId) { var url = window.location.href.replace(/\¤cy=\d+/,''); window.location.href = url + '¤cy=' + currencyId; return void(0); } function changeCurrency() { var span = document.getElementById('currencyspan'); span.innerHTML = " " + ""; return void(0); } function keepCurrency() { var span = document.getElementById('currencyspan'); span.innerHTML = "prices in US Dollar    " + "change currency"; return void(0); } function logout() { window.location.href = '/?logout=1'; return void(0); } function editprofile() { window.location.href = '/?editprofile=1'; return void(0); } function dologin() { var usernamefield = document.getElementById('loginusername'); var passwdfield = document.getElementById('loginpasswd'); if (usernamefield && passwdfield) { document.forms.topform.elements.username.value = usernamefield.value; document.forms.topform.elements.passwd.value = passwdfield.value; document.forms.topform.submit(); } } function register(checkout) { var url = '?newuser=1'; if (checkout) url += '&checkout=1' window.location.href = url; return void(0); } function about() { return showPage(13); } function add2cart(prodRef) { cart = window.open('','cart','scrollbars,resizable,width=700,height=400'); document.forms['prod' + prodRef].submit(); return void(0); } function BoxMenu(name,contents) { // BoxMenu object prototype this.name = name; this.contents = contents; this.isVisible = 0; this.show = function() { document.getElementById(name).innerHTML = this.contents; this.isVisible = 1; }; this.hide = function() { setTimeout("document.getElementById('" + name + "').innerHTML = ''",400); this.isVisible = 0; }; this.swap = function() { if (this.isVisible) this.hide(); else this.show(); }; } var tracking_menu_html = '\  Harnesses
\  Leashes
\ '; var tracking_menu = new BoxMenu('tracking',tracking_menu_html); var obedience_menu_html = '\  Tug toys
\  Balls and Dumbbells
\  Leashes
\  Collars and muzzles
\ '; var obedience_menu = new BoxMenu('obedience',obedience_menu_html); var protection_menu_html = '\  Sleeves
\  Covers
\  Training tugs
\  Helper clothes
\  Whips, sticks, blinds
\ '; var protection_menu = new BoxMenu('protection',protection_menu_html); var clothes_menu_html = '\  Jackets and vests
\  Training pants
\  Overalls
\  Sweat and polo shirts
\  Caps
\ '; var clothes_menu = new BoxMenu('clothes',clothes_menu_html); function viewcart() { window.location.href = '/?cart=1&action=view'; }