function winOpen(url, breite, hoehe) {
		links = (screen.width/2)-(breite/2);
		oben = (screen.height/2)-(hoehe/2);
		window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
} 

function winOpen2(url, breite, hoehe) {
	links = (screen.width/2)-(breite/2);
	oben = (screen.height/2)-(hoehe/2);
	window.open(url,"popup","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = yes,fullscreen = no,top ="+oben+",left ="+links);
}  

var Slackline = {
	defaultWidth: 1000,
	defaultHeight: 700,

	init: function() {
		jsReady = true;
	},
	resize: function(width, height) {
		if (width && typeof width == "number") Slackline.defaultWidth = width;
		if (height && typeof height == "number") Slackline.defaultHeight = height;

		if (document.body.clientWidth < Slackline.defaultWidth) {
			document.getElementById("flashcontent").style.width = Slackline.defaultWidth + "px";
		} else {
			document.getElementById("flashcontent").style.width = "100%";
		}
		if (document.body.clientHeight < Slackline.defaultHeight) {
			document.getElementById("flashcontent").style.height = Slackline.defaultHeight + "px";
		} else {
			document.getElementById("flashcontent").style.height = "100%";
		}
	}
}

window.onload = Slackline.init;
window.onresize = Slackline.resize;
	
var jsReady = false;
function isReady() {
	return jsReady;
}
