<!-- tvdMenu.js JavaScript file	
//=======================================
	function ImageWindow(ImgName)
	{
		var imgWindowProperties = new String();
		imgWindowProperties = "dependent=yes,directories=no,hotkeys=no,location=no,menubar=no,resizeable=no,scrollbars=yes,titlebar=yes,toolbar=no,status=yes,width="+screen.width+",height="+screen.height;
		imgWindow=window.open("","ImgLarge", imgWindowProperties);
		imgWindow.document.open('text/html');
		imgWindow.document.writeln("<html>");
		imgWindow.document.writeln("<script language='javascript' type='text/javascript'>");
		imgWindow.document.writeln("function nocopy() {window.clipboardData.clearData; setTimeout('nocopy()',100) }");
		imgWindow.document.writeln("window.oncontextmenu=new Function('return false');");
		imgWindow.document.writeln("document.onmousedown='return false;'");
		imgWindow.document.writeln("nocopy();");
		imgWindow.document.writeln("setInterval(\"window.clipboardData.setData('text','')\",2)"); 
		imgWindow.document.writeln("</script>");
		imgWindow.document.writeln("<style type='text/css'> #spacer { width: 100%; height: 100%; } </style>");
		imgWindow.document.writeln("<body onkeydown='window.close();' oncontextmenu='return false;' >");
		imgWindow.document.write("<div align='center' style='background-image:url(");
		imgWindow.document.write('"/images/background.jpg"');
		imgWindow.document.writeln(")'>");
		var imgTag="<img src='"+ImgName+"' border='0' oncontextmenu='return false;' galleryimg='no' />";
		imgWindow.document.writeln(imgTag);
		imgWindow.document.writeln("</div></body></html>");
		imgWindow.document.onmouseout=function(){imgWindow.close()};
		imgWindow.document.close();
		imgWindow.moveTo(0,0);
		
		imgWindow.focus();
					
	}
//======================================
	function selectArrow(xPageNb)
	{
		var nPageNb = 0;
		if (isNaN(xPageNb) == true) 
		{
			alert("error:no page number selected");
			return false;
		}
		nPageNb = xPageNb - 1;
		if (nPageNb < 0)
		{
			nPageNb = 0;
		}
		var myForm = document.formGallery;
		var nSelected = myForm.iNewPage.selectedIndex;
		nSelected = nPageNb;
		myForm.iNewPage.selectedIndex = nPageNb;
		myForm.iNewPage.focus();
		myForm.submit();
		return true;
	}
// end javascript -->
