/*
function show(w,object) {
    var scrolling = document.all  ? w.document.body.scrollTop : w.self.pageYOffset;

	if (w.document.layers && w.document.layers[object] != null) {
        w.document.layers[object].visibility = 'show';
	  w.document.layers[object].top = scrolling;
    }
    else if (document.all) {
        w.document.all[object].style.visibility = 'visible';
        w.document.all[object].style.top = scrolling + 'px';
    }

}

function hide(w,object) {

    if (w.document.layers && w.document.layers[object] != null) {
		w.document.layers[object].visibility = 'hide';
    }
	else if (document.all) {
		w.document.all[object].style.visibility = 'hidden';
	}
} 
*/
function ShowHideDropDown() {
	var testLayer = findObject(parent.mainPage, 'contactMenu');
	if(!testLayer) return;  // exit if they haven't loaded yet....

	var show = hasDOM ? 'visible' : 'show';
	var hide = hasDOM ? 'hidden' : 'hide';
	var args = ShowHideDropDown.arguments;

	if(args.length > 0) {	// show the requested one...
		ShowHideDropDown() // clear all open ones first though...
		// before trying to clear the timer. Only works in IE 5.5 or greater though?
		var main_page = window.parent.mainPage;
		if(main_page.timer){
			main_page.clearTimeout(main_page.timer);
		}
		// now we can open this layer.
		var a = window.top.current = args[0];
		findObject(main_page, a).visibility = show;

		//now reposition the main pages drop-downs...
		var scrolling = document.all  ? main_page.document.body.scrollTop : main_page.self.pageYOffset;
		// IE only uses body.scrollTop. NN (all variants) uses self.pageYOffset;
		findObject(main_page, a).top = scrolling;
	}
	else {	// we need to clear the visible one...
		if(window.top.current) {
			thisObj = findObject(window.parent.mainPage, window.top.current);
			thisObj.visibility = hide;
		}
		if(parent.topNav.highlite) {
			parent.mainPage.highliteIndicator(parent.topNav.highlite, '');
		}
	}
}

function findObject(loc, name) {
	var thisObj;
	if(document.getElementById) {
		thisObj = loc.document.getElementById(name);
	} else {
		if(document.all) {
			thisObj = loc.document.all[name];
		} else {
			thisObj = loc.document.layers[name];
		}
	}
	if(!thisObj) return;
	if(hasDOM) thisObj = thisObj.style;

	return thisObj;
}

function hasDOM() {
	if(document.getElementById || document.all)
		return true;
	//else
	return false;
}



function clearform(which){
if (which.value=="Suche")
which.value=''

}
