contextPath=''; function resizeBottomHeight() { var bodyHeight=$("#new").height(); var currentScreenHeight = 0 var currentBottomHeight=$("#wrapper-bottom").height(); if( typeof( window.innerWidth ) == 'number' ) { //Non-IE currentScreenHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' currentScreenHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible currentScreenHeight = document.body.clientHeight; } if(bodyHeight/g, '%3e'); encodedString = encodedString.replace(/\"/g, '%22'); encodedString = encodedString.replace(/\'/g, '%27'); encodedString = encodedString.replace(/\;/g, '%3b'); encodedString = encodedString.replace(/\(/g, '%28'); encodedString = encodedString.replace(/\)/g, '%29'); encodedString = encodedString.replace(/\&/g, '%26'); encodedString = encodedString.replace(/\+/g, '%2b'); encodedString = encodedString.replace(/\-/g, '%2d'); encodedString = encodedString.replace(/ /g, '+'); return encodedString; } function printDialogue() { if (window.print) { window.print(); } else { alert("Please select [ File >> Print ] from your browser menu."); } } function openWindowReturnRef(url,winName,width,height){ var winRef = window.open(url,winName, "height=" + height + ",width=" + width + ",status=yes,toolbar=no,menubar=no,location=no,directories=no,resizable=yes,scrollbars=yes,titlebar=no"); return winRef; } function openWindow(url,winName,width,height){ var winRef = openWindowReturnRef(url,winName,width,height) } function setCookie(sName,sValue,nDays){ var dToday = new Date(); var dExpire = new Date(); if (nDays==null || nDays==0) nDays=1; dExpire.setTime(dToday.getTime() + 3600000*24*nDays); document.cookie = sName + "=" + escape(sValue) + ";path=/;expires=" + dExpire.toGMTString(); } function getCookie(sName){ var oCookie = document.cookie.split("; "); for (var i = 0; i < oCookie.length; i++) { var keyValue = oCookie[i].split("="); if (sName == keyValue[0]) return unescape(keyValue[1]); } return null; } function setCartCountMsg(){ var itemCount = getCookie("cartItemCount"); var cartMessage = ""; if(parseInt(itemCount) > 0){ if(itemCount == 1) cartMessage = "1 item"; else cartMessage = itemCount + " items"; } else cartMessage = "0 items"; var oCartMessage = document.getElementById("cartItemMessage"); if(oCartMessage) oCartMessage.innerHTML = cartMessage; } function isExplorer6() { var appVer = navigator.appVersion; appVer = appVer.split(';'); if(appVer[1] == ' MSIE 6.0') { return true; } }