function menujs() {
	if(document.getElementById("nav")){
	   var navItems = document.getElementById("nav").getElementsByTagName("li");
		  for (var i=0; i< navItems.length; i++) {
			  if(navItems[i].className == "submenu") {
				 navItems[i].onmouseover=function() {this.getElementsByTagName('ul')[0].style.display="block";}
				 navItems[i].onmouseout=function() {this.getElementsByTagName('ul')[0].style.display="none";}
			  }
	   }
	}
}


function wOpen( imgName ,scr) {
	if (scr){
		scr_str='yes'
		imgWidth=screen.width
		imgHeight=screen.height
	}else{
		scr_str='no';
		imgWidth=500
		imgHeight=500
	}
	imgCaption="Trifiniti Gallery";
	textColor="#ffffff"
	bgColor="#000000"
	winHeight=imgHeight+20;
	w = window.open('','Demo','toolbar=no,location=no,directories=no,status=no,scrollbars='+scr_str+',resizable=yes,copyhistory=no,width='+imgWidth+',height='+winHeight);
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<STYLE TYPE='text/css'>" );
	w.document.write( "A {font-family: verdana; font-size: 10px; color: "+textColor+"; text-decoration : none;}" );
	w.document.write( "A:Visited {font-family: verdana;font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "A:Active { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "A:Hover { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "IMG {border-color : "+textColor+";}" );
	w.document.write( "BODY { font-family: verdana; font-size : 10px; font-weight: normal; color : "+textColor+"; background-color : "+bgColor+"; }" );
	w.document.write( "</STYLE>" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true\n");
	w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31+20)\n");
	w.document.write( "	else if(NN6) self.sizeToContent()\n");
	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+20)\n");
	w.document.write( "	self.focus()\nself.moveTo((screen.width/2)-(document.images[0].width/2),150)");
	w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><style>body{height:100%}</style><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
	if(scr){
		w.document.write("''>");
		w.document.write( "<table cellpadding=0 cellspacing=0 border=0 width='100%' height='100%'>")
	}else{
		w.document.write( "'javascript:autoSize();'>" );
		w.document.write( "<table cellpadding=0 cellspacing=0 border=0>")
	}
	w.document.write("<tr><td colspan=3 valign='middle' align='center'><img src='"+imgName+"' border=0 alt='"+imgCaption+"'></td></tr>" );
	w.document.write( "<tr><td align='left'></td>" );
	w.document.write( "<td align='center'></td>" );
	w.document.write( "<td align='right'><a href='javascript:top.window.close();'>close window</a>&nbsp;&nbsp;</td></tr>" );
	w.document.write( "</table></body></html>" );
	w.document.close();
}