browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
var vPos = "home"
function setup(){
Bild = new Image();
if(browser){
anzBild=document.images.length;
for(n=1;n<anzBild;n++){
bildName=document.images[n].src;
pos=bildName.indexOf("_pas.gif")
if(pos!=-1){
Bild[n]=new Image();Bild[n].src=bildName.substring(0,pos)+"_sel.gif"
}}}}

// Aufruf: <a href="javascript:zoom('xxx.html')">

function zoom(url)
{
	window.open(url,'zoom','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=700,height=550,screenX=100,screenY=0,top=0,left=0');
}

function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 

}

function resizeWin(){
// wird ueber: <body onload="self.focus();resizeWin();return false">
// aufgerufen und verkleinert das fenster auf bildgroesse  
// vorraussetzung: Bild muss name haben  name="theimage"
	if (document.images){
		var width = document["theimage"].width + 50;
		var height = document["theimage"].height + 200;
		if (height > 700)
		var height = 700;
		self.resizeTo(width,height); // absolute positioning
		self.focus();
	}

}

//------------------------
// basic variables
//------------------------
var standardView="toolbar=no , location=no , directories=no , status=yes , scrollbars=no , resizable=no , copyhistory=no , titlebar=no";
var windowObjects=new Array();
//------------------------
// openStandardWindow
//------------------------
//  onclick="openStandardWindow( windowName , 'ewxample.htm' , windowWidth , windowHeight , xPosition , yPosition , windowAttributes);" 
// onclick="closeStandardWindow(windowName);" 
function openStandardWindow(name,url,windowWidth,windowHeight,xPosition,yPosition,windowAttributes)   {
	// set Standard if no windowAttributes
	if (!windowAttributes) {

		windowAttributes = standardView;
	}

	if (browser !="opera") {
		// if a window object already exists.... close it and delete everything
		if (windowObjects[name])       {
			if (!windowObjects[name].closed) {windowObjects[name].close();}
			windowObjects[name] = null;
		}
		// standard opening
		windowObjects[name] = window.open(url , name,windowAttributes + ',width=' + windowWidth + ',height='+windowHeight + ',screenX=' + xPosition + ',screenY=' + xPosition);
	}

	// Opera dont't know Much
	else {
		windowObjects[name] = window.open(url , name,windowAttributes+',width='+windowWidth+',height='+windowHeight + ',screenX=' + xPosition + ',screenY=' + xPosition);

	}
}

//------------------------
// closeStandardWindow
//------------------------
function closeStandardWindow(name)   {
	// if a window object already exists.... close it and delete everything
	if (windowObjects[name])       {
		if (!windowObjects[name].closed) {windowObjects[name].close();}
		windowObjects[name] = null;
	}
}


function mOver(a){





if(browser){





if(a!=vPos){





bildSrc = document.images[a].src;





document.images[a].src = bildSrc.substring(0,bildSrc.length-8) + "_sel.gif";





}





}





}











function mOut(a){





if(browser){





if(a!=vPos){





bildSrc = document.images[a].src;





document.images[a].src = bildSrc.substring(0,bildSrc.length-8) + "_pas.gif";


}

}

}

function mClick(a){





if(browser){
if(vPos!="home"){


bildSrc = document.images[vPos].src;


document.images[vPos].src = bildSrc.substring(0,bildSrc.length-8) + "_pas.gif";


}


bildSrc = document.images[a].src;





document.images[a].src = bildSrc.substring(0,bildSrc.length-8) + "_sel.gif";











vPos=a











}}









































if (window.focus) {





 self.focus();





} 




































// Deklaration fuer externe Windows





function winopen(whichone) {





options="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=no,directories=no,width=300,height=450";





window.open('hilfe.html',options);





}




















function karte(whichone) {





options="location=no,scrollbars=yes,status=no,menubar=no,toolbar=no,resizable=no,directories=no,width=800,height=560";





window.open(whichone,'karte',options);





}





























function shw(t)





{





	window.status=t;





}











function openwindow(url)





	{





	window.open(url,'openwindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1,copyhistory=0,width=700,height=550,screenX=0,screenY=0,top=0,left=0');





	}

















function FensterOeffnen() {





	   fenster1 = window.open("de/index2.html", "homeWindow", "toolbar=yes,status=no,width=790,height=550,resizable=no,scrollbars=no");





	   fenster1.moveTo(0,0);





	   fenster1.focus();





        } 























//  aufruf:  <a href="xxx.htm" 





//             onMouseOver="Bildwechsel(0,Highlight1)" 





//             onMouseOut="Bildwechsel(0,Normal1)"





<!--





	Normal1 = new Image(); 





	Normal1.src = "bilder/mainbutton.jpg"; /* Hier erste Standard-Grafik angeben */





	Highlight1 = new Image(); 





	Highlight1.src = "bilder/mainbuttonhighl.jpg"; /* Hier erste Highlight-Grafik angeben */











/* usw. fuer alle weiteren zu benutzenden Grafiken */











	function Bildwechsel(Bildnr,Bildobjekt)





	{





 		window.document.images[Bildnr].src = Bildobjekt.src;





	}

















// Deklaration fuer externe Windows





function openwindow(url) {





options="location=no,scrollbars=yes,status=yes,menubar=no,toolbar=no,resizable=no,directories=no,width=300,height=450";





window.open(url,'openwin',options);





}

















//	<div align="left">  <img src="bilder/menupunktinact.gif" width="8" height="8" name="info"> <a href="info.html" target="main" 





//      onclick="javascript:Bildclick(0)"> Info</a><br>  </div>

















//





//<a href="xxx.html" 	onmouseover="shw('xxx');return true;"	onmouseout="shw(' ');return true;"





//				onclick="javascript:Bildclick(0)" target="main">XXX</a>





//





	





		function Bildclick(Bildnr)





   		 {





			G=0;





    			for(i = 0; i < 12; i++)





     			 {





       			 window.document.images[i].src = "images/menupunktinact.gif";





      			}





    





   				 window.document.images[Bildnr].src = "images/menupunktact.gif";





    		}




// z.B. href="javascript:DreiFrames('kopf-fitness.htm',0,'fitness/fitness-inh.htm',1,'fitness/fitness1.htm',2)"



function ZweiFrames(URL1,F1,URL2,F2) { parent.frames[F1].location.href=URL1;


	parent.frames[F2].location.href=URL2; }


function DreiFrames(URL0,F0,URL1,F1,URL2,F2) {


	parent.frames[F0].location.href=URL0; parent.frames[F1].location.href=URL1; }



var message="Bei Fragen wenden Sie sich an info@gerard-paperworks.com";
function click(e) {if (document.all) {if (event.button == 2) {alert(message);
return false;}}if (document.layers) {if (e.which == 3) {alert(message);
return false;}}}if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);}
document.onmousedown=click;// -->

				  