<!-- 

var foto_url = "http://www.hennustall.ch/cgi-bin/foto.pl";

function win(theURL,winName,features) { //v2.0
  foto=null;

  foto=window.open(theURL,winName,features);
  
  if(foto!=null) {
  	if(foto.opener==null) { foto.opener==self; foto.location.href=theURL; }
  } 
}

function zoom(nr) {
	var url = foto_url + "?" + nr;
	
	win(url, "foto", "width=470,height=320");
}

function over(text) { status = text; }

function out() { 
	if(status_text) { status = status_text; }
	else { status = ""; }
}

	// Open new window, special dimensions
	function win2(theURL,winName,features) {
  		fenster=null;

 		fenster=window.open(theURL,winName,features);
  
		if(fenster!=null) {
			if(fenster.opener==null) { fenster.opener==self; fenster.location.href=theURL; }
 		} 
	}
	
	// Open new document window
	function foto(name) {
		// Open new window
		win2("/foto.php?" + name, "foto", "width=2,height=2,scrollbars=no");
	}
	
	// Resize window to contents
	function resize_to_contents(image_width,image_height) {
		// Get new window width
		var width_new = image_width+55;
	
		// Get new window height
		var height_new = image_height+175;
		
		// Resize window
		window.resizeTo(width_new,height_new);
		
		// Move to 0,0
		window.moveTo(10,10);
	}

	
//-->