/* hash */

var hash=escape(self.location.pathname);
if (hash)
{
	var testeradframe = hash.indexOf('adframe');
	if (testeradframe==-1)
	{	
		var testerhtm = hash.indexOf('.htm');
		if (testerhtm == -1)
		{
			hash+='index.html';
		}
		var temp='/cgi-bin/adframe'+hash+self.location.search;
		top.location=temp 
	}
}



/* ------------ TOGGLE ------------ */
function showElement(layer)
	{
	var myLayer = document.getElementById(layer);
	if(myLayer.style.display=="none"){
	myLayer.style.display="block";
	myLayer.backgroundPosition="top";
	} 
	else 
	{ 
		myLayer.style.display="none";
	}
}

/* ------------ POPUP ------------ */
function genericOpenNoScroll(name,url,width,height)
{
	var genmesg = open(url,name,"toolbar=0,status=0,menubar=0,resizable=no,scrollbars=no,width="+width+",height="+height); 
}

/* ----- rechtsklick nogo ---- */

function click (e) {
  if (!e)
    e = window.event;
  if ((e.type && e.type == "contextmenu") || (e.button && e.button == 2) || (e.which && e.which == 3)) {
    if (window.opera)
      window.alert("Sorry: Diese Funktion ist deaktiviert.");
    return false;
  }
}
if (document.layers)
  document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = click;
document.oncontextmenu = click;



