
path = new Array();
path.push('/static/js/functions.js');
path.push('/static/js/prototype.js');
path.push('/static/js/animator.js');
path.push('/static/js/imgReplace.js');
path.push('/static/js/swfobject.js');
path.push('/static/js/slidebox.js');
path.push('/static/js/scriptaculous.js?load=effects');
path.push('/static/js/lightbox.js');
path.push('/static/js/animBackground.js');

loadScrips(path);

var myLightbox;

function onDocumentLoad ()
{
	replaceHeading("em");
	replaceHeading("var");
	replaceHeading("h1");
	replaceHeading("h2");
	replaceHeading("h3");
	replaceHeading("h4");
	setupSlideboxes();
	myLightbox = new Lightbox();
	new animBackground();
}


function loadScrips (path) {
	for(i=0;i<path.length;i++) {
		document.write('<script type="text/javascript" src="' + path[i] + '"></script>');
	}
}
function handleError($message,$uri,$nr) {
//	$errortext = "Fehler: " + $message + " | Nr: " + $nr + " | Uri: " + $uri;
//	window.status = $errortext;
	return true;
}

window.onload = onDocumentLoad;
window.onerror = handleError;
