
	/* Basis-Script */
	
	var onloadHooks = [];
			
	window.onload = function()
	{
		// Get onload scripts
		for(i = 0; i < onloadHooks.length; i++)
		{
			onloadHooks[i]();
		}
	
		// Blurlinks
		blurlinks = $$("a");
		for(var i = 0, o; o = blurlinks[i]; i++)
		{
			o.addEvents({'focus': function(e) {
				this.blur();
			}});
		}
		
		if($('fade')){
			var height1 = window.innerHeight || (window.document.documentElement.clientHeight || document.body.clientHeight);
			var height2 = parseInt(getY($('copyright')))+50;
			if(parseInt(height1)<parseInt(height2)) height1 = height2;
			$('fade').style.height = height1;
		}
	}
	
	function getY (el) {
		y = el.offsetTop;
		if (!el.offsetParent) return y;
		else return (y+getY(el.offsetParent));
	}			
	
	function submit_dam_dl_browse(){
		$('dam_pointer').selectedIndex = 0;
		document.dam_dl_browse.submit();
	}

function update_search(){
	document.forms["tx_indexedsearch"].elements["tx_indexedsearch[pointer]"].value=document.forms["suche_browse"].elements["pointer"].selectedIndex;
	document.tx_indexedsearch.submit(); 	
}


