/*
 onLoadersetzer



	Functions
	- addLoadEvent()

	Function Calls
	- addLoadEvent(initLightbox)
	- addLoadEvent(Select_Buchart_anzeigen)
	- addLoadEvent(wordCounterInit)

*/


//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//
function addLoadEvent(func)
{
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
		window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}
}



addLoadEvent(initLightbox);	// run initLightbox onLoad
addLoadEvent(Select_Buchart_anzeigen);
addLoadEvent(wordCounterInit);  //Wörter bei der Eingabefensterzählung

