function activateMenu(nav){
	if (document.all && document.getElementById(nav).currentStyle) {  
		var navroot = document.getElementById(nav);		
		/* Get all the list items within the menu */
		var lis=navroot.getElementsByTagName("LI");  
		for (i=0; i<lis.length; i++) {
			if(lis[i].lastChild.tagName=="UL"){
				lis[i].onmouseover=function() {	
					 this.lastChild.style.display="block";
					 this.style.backgroundColor = "#EFF4F5";
				}
				lis[i].onmouseout=function() {                       
					 this.lastChild.style.display="none";
					 this.style.backgroundColor = "";
				}
			}
		}
	}
}

function makeWin(imsrc, ww, wh) {
	ww=ww+25; wh=wh+50;
	w1=window.open('','w1','width='+ww+',height='+wh+',status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes');
	w1.document.open();
	w1.document.write("<html><head><title>Image Zoom<\/title><META HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\"><META HTTP-EQUIV=\"Expires\" CONTENT=\"-1\"><\/head>");
	w1.document.write("<body bgcolor='#FFFFFF' text='#000000' leftmargin=2 topmargin=10><p align=center>");
	w1.document.write("<img name=theimg src=" + imsrc + "><br>");
	w1.document.write("<a href=\"javascript:window.close();\"><font size=1 face=tahoma color=#000000>close window<\/font><\/a><\/body><\/html>");
	w1.document.focus();
}

function bookmarksite(title, url){
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}

function sendToFriend(account){
	var newwindow = "http://hosting.solidcactus.com/sendtofriend/new/solidcactus-sendtofriend.asp?showpoweredby=&url=" + escape(window.location) + "&store=" + escape(account) + "&imageref=" + escape(imref) + "&itemname=" + escape(itemname);
	var window_properties = "top=0,left=0,scrollbars=yes,width=650,height=575";
	var Window = window.open(newwindow,"sendtofriend",window_properties);
}
