var dropbox = {
	state : 0,
	setDropboxState : function(s) {
		var container = document.getElementById("dropboxContainer");
		this.state = s;
		if (s == 1) {
			container.style.zIndex = 1000;
			document.getElementById("digiFrame").onbeforeactivate = function() { return false; }
		} else {
			container.style.zIndex = 0;
		}
	}
}

function initDropbox() {
	newEl = new flash("dropbox.swf",262,getInnerHeight());
	newEl.flashVars += "&sourceFile=../../data.xml";
	var container = document.getElementById("container")
	newEl._appendObject(container, "dropbox");
}

function setIframeSize() {
	document.getElementById("digiFrame").style.height = 514;
}

function loadFrame() {
	document.getElementById("digiFrame").src = "start.html";
}

// ensure that the intro of an I-Module not coming back when you have seeing the learningUnit
var methodIntro = true;

function setMethodIntro() {
	methodIntro = false;
}

addEvent(window, "load", setIframeSize);
addEvent(window, "load", loadFrame);
addEvent(window, "load", initDropbox);