

function ShowHide(id) {
    obj = document.getElementsByTagName("div");
    if (obj[id].style.visibility == 'visible'){
    obj[id].style.visibility = 'hidden';
	    
    }
    else {
    obj[id].style.visibility = 'visible';
    }
}

function ShowMe (id) {
	obj = document.getElementsByTagName("div");
	obj[id].style.visibility = 'visible';
}
function HideMe (id) {
	obj = document.getElementsByTagName("div");
	obj[id].style.visibility = 'hidden';
}







function changeimage (img, ref) {
  document.images[img].src = ref;
}



function grossNoSize(url, bildtitel)
	{
	foto = new Image();
	foto.src = (url);
	width=foto.width;
	height=foto.height;
	gross(url, width, height, bildtitel);
	}
		var sys_win; 
function gross (url,width,height,bildtitel)
	 {
	 var w=width;
  	 var h=height;
		xposition=100; yposition=100;
		    if ((parseInt(navigator.appVersion) >= 4 ) && (1)){
		    	if (screen.width > 640) {
		        xposition = (screen.width - width) / 2;
		        yposition = -20+((screen.height - height) / 2);}
		    }

		args = "width=" + w + "," 
		    + "height=" + h + "," 
		    + "location=0," 
		    + "menubar=0,"
			+ "scrollbars=0,"
		    + "resizable=0,"
		    + "screenx=" + xposition + ","  //NN Only
		    + "screeny=" + yposition + ","  //NN Only
		    + "left=" + xposition + ","     //IE Only
		    + "top=" + yposition;           //IE Only
		
		try{
      sys_win.close();
    }catch(e){}
    
		
		sys_win = window.open("","",args);
		sys_win.focus();

		with (sys_win) {
  		document.write('<html>');
		document.write('<head>');
  		document.write('<title>'+ bildtitel +'<\/title><\/head>');
		document.write('<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" bgcolor="#ffffff" bottommargin="0" rightmargin="0">');
  		document.write('<table cellpadding="0" cellspacing="0"><tr valign="top"><td><img src="'+ url +'" border="0">');
  		document.write('<\/td><\/tr><\/table>');
		document.write('<\/body><\/html>');
		
		sys_win.document.close();
		}	 
		}
		
		
		
		
function sw (url)
	 {
	 width=512;
	 height=603;
		xposition=100; yposition=100;
		    if ((parseInt(navigator.appVersion) >= 4 ) && (1)){
		    	if (screen.width > 640) {
		        xposition = (screen.width - width) / 2;
		        yposition = -20+((screen.height - height) / 2);}
		    }
		var sys_win; 
		args = "width=" + width + "," 
		    + "height=" + height + "," 
		    + "location=0," 
		    + "menubar=0,"
			+ "scrollbars=0,"
		    + "resizable=0,"
		    + "screenx=" + xposition + ","  //NN Only
		    + "screeny=" + yposition + ","  //NN Only
		    + "left=" + xposition + ","     //IE Only
		    + "top=" + yposition;           //IE Only
		
		sys_win = window.open(url,'its',args );	 
	  
	 }

