	window.onerror=function(){return true}

	var preloads=Array('nav_discussion_on.gif','nav_discussion_current.gif','nav_project_on.gif','nav_project_current.gif','nav_clients_on.gif','nav_clients_current.gif','nav_bios_on.gif','nav_bios_current.gif','nav_arms_on.gif','nav_arms_current.gif','nav_contact_on.gif','nav_contact_current.gif');
	 var imgArray=Array;

	for (i=0;i<preloads.length ; i++)	{
			imgArray[i]=new Image();
			imgArray[i].src=imageDir + preloads[i];
	}

	
	
	function imgOn(img){
			document.images ? document.images[img].src=imageDir + img+"_on.gif":"";
	}

	function imgOff(img){
			document.images ? document.images[img].src=imageDir + img+".gif":"";
	}

	function getEvent(obj,e){
			alert(e.x);
	}

	function swapBg(obj){
			if (document.getElementById){
					obj.style.backgroundColor="#CCCC99";
					obj.style.cursor='hand';
			}
	}

	function swapBack(obj){
			if (document.getElementById){
					obj.style.backgroundColor="#FFFFFF";
			}
	}

	function getMenu(obj,e){

		if (document.getElementById){

				if (navigator.userAgent.match("MSIE")){
					 var ptop=(e.y+5+document.body.scrollTop)+"px";
					 var pleft=(document.body.clientWidth-240)+"px";	   
				}	  
				
				if (navigator.userAgent.match("Gecko")){
					 var ptop=(e.pageY+5)+"px";
					 var pleft=(window.innerWidth-250+window.pageXOffset)+"px";
				}

			  document.getElementById("popMenu").style.top=ptop;
			  document.getElementById("popMenu").style.left=pleft;
			  document.getElementById("popMenu").style.visibility="visible";
		}
		if (document.layers){
				var ptop=(e.pageY+5);
				var pleft=(window.innerWidth-250+window.pageXOffset)

				document.layers["popMenu"].top=ptop
				document.layers["popMenu"].left=pleft
				document.layers["popMenu"].visibility="show";
			}
			return;
	}

	function hideMenu(){
			if (document.getElementById){
					document.getElementById("popMenu").style.visibility="hidden";
					document.getElementById("popMenu").style.top="0px"
					document.getElementById("popMenu").style.left="0px";
			}
			if (document.layers){
				document.layers["popMenu"].visibility="hide";
				document.layers["popMenu"].top=0
				document.layers["popMenu"].left=0

			}
			return;
	}

 function openPDF(link){
	 window.open(link,'pdfWin','width=620,height=550,scrollbars=yes,toolbar=yes,resizable=yes');
		return false;
}