/*/////////////////////////////////////////////////////////////////////////*/
/*                                                                         */
/*   in memory of patrick 2001-12-10                                       */
/*                                                                         */
/*   publicvoid (r) 2000 - (c) by Alexander HEINRICH                       */
/*   Suengweg 4, A-2201 Gerasdorf, Austria                                 */
/*   Tel.: 02246 / 3623 Fax.: 02246 / 3138                                 */
/*   E-Mail:office@publicvoid.at                                           */
/*                                                                         */
/*   license: GPL                                                          */
/*                                                                         */
/*/////////////////////////////////////////////////////////////////////////*/
	
	function over(objEvent){
		
		var objE=(window.event)?window.event:objEvent;
		var objETarget=(window.event)?((objE.srcElement.id)?objE.srcElement:objE.srcElement.parentElement):objE.currentTarget;
				
		objETarget.className="navoptionsover";	
		
		return stopE(objE);
			
	}
	
	function out(objEvent){
		
		var objE=(window.event)?window.event:objEvent;
		var objETarget=(window.event)?((objE.srcElement.id)?objE.srcElement:objE.srcElement.parentElement):objE.currentTarget;
				
		var mnClass;
		if(objETarget.id.match(/^sub/)!=null)mnClass="navoptionssubshadow";
		if(objETarget.id.match(/^cat/)!=null)mnClass="navoptionstopshadow";
		objETarget.className=mnClass;
		
		window.setTimeout("setBGColorOut(\""+objETarget.id+"\")",250);
		
		return stopE(objE);
		
	}
	
	function setBGColorOut(strETargetID){
		var mnClass;
		if(strETargetID.match(/^sub/)!=null)mnClass="navoptionssub";
		if(strETargetID.match(/^cat/)!=null)mnClass="navoptionstop";
		$getElementById(strETargetID).className=mnClass;
	}
	
	function stopE(objE){
		
		if(NS6){	
			objE.stopPropagation();
			objE.preventDefault();
		}
			
		if(IE4||IE5){
			objE.cancelBubble=true;
			objE.returnValue=false;
		}
		
		return false;
	
	}
	
	function openWin(strLink,strName,numWidth,numHeight){
		void window.open(strLink,strName,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+numWidth+',height='+numHeight+',left='+Math.max(parseInt((screen.width-numWidth)/2),0)+',top='+Math.max(parseInt((screen.height-numHeight)/3),0)).focus();
	}
		
	onload=function(){
	
		window.PVAPI=new objPVAPI;
		window.browser=new PVAPI.browser;

		if(Opera||IE4||IE5||NS6){
			window.arrTDs=(IE4)?document.all.tags("TD"):document.getElementsByTagName("TD");
			for(var i=0,strR="";i<arrTDs.length;i++){
				if(String(arrTDs[i].id).match(/^(cat|sub)Menu_[0-9]{1,2}$/)!=null){
					if(NS6){
						arrTDs[i].addEventListener("mouseover",over,false);
						arrTDs[i].addEventListener("mouseout",out,false);
					}
					if(Opera||IE4||IE5){
						arrTDs[i].onmouseover=over;
						arrTDs[i].onmouseout=out;	
					}
				}
			}
		}
	}
			


