			var isNetscape = (document.layers) ? true : false;
 	
			function windowWidth(){
				return (isNetscape) ? (window.innerWidth + document.scrollLeft) : (document.body.clientWidth + document.body.scrollLeft);
			}
			function windowHeight(){
				return (isNetscape) ? (window.innerHeight + document.scrollTop) : (document.body.clientHeight + document.body.scrollTop);
			}
			
			function getOffset() {
				if (window.pageYOffset)
				{
					  pos = window.pageYOffset;
				}
				else if (document.documentElement && document.documentElement.scrollTop)
				{
					pos = document.documentElement.scrollTop;
				}
				else if (document.body)
				{
					  pos = document.body.scrollTop;
				}
				
				return pos;
			}

			var topTabs = new Array();

			var topTabsSrc = new Array(
				'images/hdr_recipient.gif',
				'images/hdr_recipientOn.gif',
				'images/hdr_personality.gif',
				'images/hdr_personalityOn.gif',
				'images/hdr_occasion.gif',
				'images/hdr_occasionOn.gif',
				'images/hdr_category.gif',
				'images/hdr_categoryOn.gif',
				'images/hdr_myGifts.gif',
				'images/hdr_myGiftsOn.gif'
			);
			
			function preloadTopTabs() {
				for (i=0; i<topTabsSrc.length; i++) {
					topTabs[i] = new Image();
					topTabs[i].src = topTabsSrc[i];
				}
			}
			
			function show(id) {
				if (document.getElementById(id) != null) {
					document.getElementById(id).style.visibility = "visible";
					document.getElementById(id).style.display = "block";
				}
			}

			function hide(id) {
				if (document.getElementById(id) != null) {
					document.getElementById(id).style.visibility = "hidden";
					document.getElementById(id).style.display = "none";
				}
			}
			
			function showTopMenu(num) {
				document.getElementById("HPnavParent" + num).style.zIndex = "45";
				showTopTab(num);
				document.getElementById("topMenu" + num).style.visibility = "visible";
			}

			function hideTopMenu(num) {
				document.getElementById("HPnavParent" + num).style.zIndex = "45";
				hideTopTab(num);
				document.getElementById("topMenu" + num).style.visibility = "hidden";
			}

			function showTopTab(num) {
				document.images["topTab" + num].src = topTabs[(num*2) + 1].src;
			}

			function hideTopTab(num) {
				document.images["topTab" + num].src = topTabs[num*2].src;
			}

			function hiliteMenuItem(obj) {
				obj.style.background='#E0E0DE';
			}

			function resetMenuItem(obj) {
				obj.style.background='#F8F8F6';
			}

			function showImg(id) {
				for(i = 0; i < showImg.arguments.length; i++) {
					eval("document.all." + showImg.arguments[i] + ".style.display = ''");
				}
			}

			function hideImg(id) {
				for(i = 0; i < hideImg.arguments.length; i++) {
					eval("document.all." + hideImg.arguments[i] + ".style.display = 'none'");
				}
			}

			function positionTopMenuW(num) {
				divW = getDivWidth("topMenu" + num);
				divWPar = getDivWidth("HPnavParent" + num);
				newX = getDiv("HPnavParent" + num).left - (divW/2) + (divWPar/2); 
				getDiv("topMenu" + num).left=newX;
			}

			function getDivWidth(who) {
				return(document.getElementById(who).offsetWidth);
			}

			function getDiv(who){
				return document.getElementById(who).style;
			}
	
