// JavaScript Document - adds onmouseover attribute in internet explorer due to poor CSS2 support
// code from: http://www.alistapart.com/articles/horizdropdowns/
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menu");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className=this.className.replace("hide", "over");
				}
				node.onmouseout=function() {
					this.className=this.className.replace("over", "hide");
				}
			}
		}
	}
}

function setOpacity(obj, opacity) {
  opacity = (opacity == 100)?99.999:opacity;
  // IE/Win
  obj.style.filter = "alpha(opacity:"+opacity+")";
  // Safari<1.2, Konqueror
  obj.style.KHTMLOpacity = opacity/100;
  // Older Mozilla and Firefox
  obj.style.MozOpacity = opacity/100;
  // Safari 1.2, newer Firefox and Mozilla, CSS3
  obj.style.opacity = opacity/100;
}
function fadeIn(objId,opacity) {
  if (document.getElementById) {
    obj = document.getElementById(objId);
    if (opacity <= 100) {
      setOpacity(obj, opacity);
      opacity += 10;
      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 10);
    }
  }
}

function dispCopyright() {
	window.open("/copyright/", "copyright", 'width=300,height=150') 
	return false;
}
function larger(galimg) {
	window.open("/gallery/larger/?"+galimg, "larger", 'toolbar=no, scrollbars=yes, resizable=yes') ;
	return false;
}
function popup(url) {
	window.open(url, "", 'toolbar=no, scrollbars=yes, resizable=yes') ;
	return false;
}
