
	if(document.getElementsByTagName){if(window.addEventListener){window.addEventListener("load",MInit,false);}else if(window.attachEvent){window.attachEvent("onload",MInit);}else{alert("Could not attach MInit event to window.");}}
	function MInit(){m=document.getElementsbyClass("menu");v=document.getElementsbyClass("menu");m.concat(v);for(i=0;i<m.length;i++){c=m[i].getElementsByTagName("LI");for(j=0;j<c.length;j++)menulink(c[j],"li","hover");}};
	function menulink(n,e,c){if (n.nodeName.toLowerCase()==e&&document.all){n.onmouseover=function(){this.className+=" "+c;};n.onmouseout=function(){this.className=this.className.replace(new RegExp(" "+c+"\\b"), "");};n.onmouseup=function(){for(var i=0;i<n.childNodes.length;i++){if(this.childNodes[i].nodeName=='A'){if(this.childNodes[i].href!='')location.href=this.childNodes[i].href;}}};}};
	document.getElementsbyClass = function(classname){var ClassElements=new Array();var inc=0;var alltags=document.all?document.all:document.getElementsByTagName("*");for(i=0;i<alltags.length;i++)if(alltags[i].className==classname)ClassElements[inc++]=alltags[i];return ClassElements;};	function zoomImage(iFile){var p=window.open(".","pxPop","directories=0,height=100,width=100,location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,top=10,left=10");if(!p){alert('The popup image could not be created this may be due to a popup blocker on your browser please either disable your popup blocker for this website or try holding the "ctrl" key down when clicking on the images in future, thanks');}else{var d = p.document;d.open();d.write("<HTML>\n<HEAD>\n<TITLE>Picture Viewer</TITLE>\n<script language=\"javascript\">function ResizeWindow(myImg){var maxSize=550;var width=myImg.width;var height=myImg.height;if(width>maxSize||height>maxSize){var dx=(maxSize/width);var dy=(maxSize/height);ratio=dx<dy?dx:dy;width=width*ratio;height=height*ratio;myImg.width=width;myImg.height=height;};window.resizeTo(width, height);}</script>\n</HEAD>\n<BODY onBlur=\"window.close();\" style=\"padding:0;margin:0;border:0;overflow:hidden\" onload=\"ResizeWindow(document.getElementById('myImg'));\">\n<IMG src=\"" + iFile + "\" border=\"0\" id=\"myImg\" onClick=\"window.close();\" />\n</BODY>\n</HTML>");d.close();p.focus();};}
	function imgResize(myImg){var width=myImg.width;var height=myImg.height;if(width>200||height>200){var dx=(200/width);var dy=(200/height);ratio=dx<dy?dx:dy;width=width*ratio;height=height*ratio;myImg.width=width;myImg.height=height;}}
