/*sfHover = function() {
	var sfEls = document.getElementById("hover").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}*/
	/*var sfEls = document.getElementById("hover2").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

if (window.attachEvent) window.attachEvent("onload", sfHover);*/
var lastOpenResult=null;
function showSearchResult(id) {
	if(lastOpenResult!=null)hideSearchResult(lastOpenResult);
	var paragraph = document.getElementById(id);
	if (paragraph.style.display == "block")return
	paragraph.style.display = "block";
	lastOpenResult=id;
}
function hideSearchResult(id) {
	var paragraph = document.getElementById(id);
	if (paragraph.style.display == "none")return
	paragraph.style.display = "none";
}
function toggleVisibility(id) {
	var paragraph = document.getElementById(id);
	if (paragraph.style.display == "none") {
		paragraph.style.display = "block";
	} else {
		paragraph.style.display = "none";
	}
}
function vidcheck(){
	if(document.getElementById('flashmovie')==null)return;
	if(document.getElementById('flashmovie').style.display=='none'){
		document.getElementById('flashmovie').style.display='block';
	}
}
function lupe_event(x){
	document.getElementById(x).style.display='block';
}
function lupe_event_aus(x){
	document.getElementById(x).style.display='none';
}
function set_img_null(){
	document.getElementById('imgbig').innerHTML = "";
	document.getElementById('imgsmall').innerHTML = "";
}
function blind_hovertxt(anzahl){
	var x;
	anzahl++;
	for (var i=1; i<anzahl; i++){
		x='hover'+i;
		document.getElementById(x).style.display='none';
	}
}
function showDetail(url,e) {
	if(!e)e=window.event;
	lastEventMouseX = e.clientX;
	lastEventMouseY = e.clientY;
	if(document.getElementById('flashmovie')!=null)document.getElementById('flashmovie').style.display='none';
	sendAjaxRequest1(url,processReqDetailView);
	myLightbox.start('detailView');
}
function initLightbox() {
	myLightbox = new whxLightbox();
}
Event.observe(window, 'load', initLightbox, false);
