// filename: biohonig_gen.js
// version 1.01 - 2006-04-16
// author: kontakt at manderbachmedia dot de

window.onerror = null
var globalslideimg = 1;

function slide(which) {
	if (document.images) document.images["slideimage"].src = "/img/flugbild" + which +".jpg";
	if (document.getElementById) document.getElementById("imgdescr"+globalslideimg).style.display = "none";
	if (document.getElementById) document.getElementById("imgdescr"+which).style.display = "block";
	globalslideimg = which;
}


function show(where, what) {
	if (document.getElementById) {
		toppos = where;
		document.getElementById(what).style.top = toppos+"px";		
		document.getElementById(what).style.visibility = "visible";		
		}
}

function hide(what) {
	if (document.getElementById) document.getElementById(what).style.visibility = "hidden";
}
	
// makeArray() - make new arrays with image objects
function makeArray(n) {
	this.length = n + 1
	for (var i = 1; i<=n; i++) {
		this[i] = new Image()
		}
	return this
	}
	
// open pop-up window
function windowOpener(winUrl,winWidth,winHeight,winName,winX,winY,winScrollbars,winLocation,winStatus,winPersonalbar,winResizable,winToolbar,winMenubar,winDependent,winDirectories) {
	var windowName = ""
	// set defaults
	if (!winWidth) winWidth = 345
	if (!winHeight) winHeight = 323
	if (!winName) winName = 'popupWindow'
	if (!winX) winX = 10
	if (!winY) winY = 10
	if (!winScrollbars) winScrollbars = "yes"
	if (!winLocation) winLocation = "no"
	if (!winStatus) winStatus = "no"
	if (!winPersonalbar) winPersonalbar = "no"
	if (!winResizable) winResizable = "no"
	if (!winToolbar) winToolbar = "no"
	if (!winMenubar) winMenubar = "yes"
	if (!winDependent) winDependent = "no"
	if (!winDirectories) winDirectories = "no"
	// open pop-up window
	eval(winName +  '= window.open(winUrl,winName,"width=' + winWidth + ",height=" + winHeight + ",left=" + winX + ",top=" + winY + ",screenX=" + winX + ",screenY=" + winY + ",scrollbars=" + winScrollbars + ",location=" + winLocation + ",status=" + winStatus + ",personalbar=" + winPersonalbar + ",resizable=" + winResizable + ",toolbar=" + winToolbar + ",menubar=" + winMenubar + ",dependent=" + winDependent + ",directories=" + winDirectories + '")')
	eval(winName).focus()
	}