/* for use with suckerfish menus */
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
		
		if(sfEls[i].parentNode.id != 'nav')
		{
			sfEls[i].parentNode.style.marginLeft = -sfEls[i].parentNode.parentNode.clientWidth+"px";
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);
/* end for use with suckerfish menus */

function CreatePopupWindow(img,width,height)
{
	window.open(img,'_new','width='+width+',height='+height+',status=no,scrollbars=no,toolbar=no,location=no,menubar=no,directories=no,resizable=yes');
	return;
}

function popupImage(ImageString)
{
	var url = '/content/image/images/original/'+ImageString;
	CreatePopupWindow(url,800,600);
}


