self.focus();

function testnav() {
isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;
isIENS6 = (document.all || document.getElementById) ? true : false;
}

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers)
setTimeout("window.onresize=regenerate",10)
}

function pullV(){
if (window.drawit)
clearInterval(drawit)
pullit=setInterval("pullengineV()",15)
}
function drawV(){
clearInterval(pullit)
drawit=setInterval("drawengineV()",15)
}
function pullengineV()
	{
	if ((isIE4||isIE5)&&themenu.pixelTop<bottomboundary)
		{
		themenu.pixelTop+=5;
		}
	else if (isNS4&&themenu.top<bottomboundary)
		{
		themenu.top+=5;
		}
	else if (isNS6&&parseInt(themenu.top)<bottomboundary)
		{
		themenu.top = parseInt(themenu.top) + 5 + "px";
		}
	else if (window.pullit)
		{
		clearInterval(pullit);
		}
	}
function drawengineV()
	{
	if ((isIE4||isIE5)&&themenu.pixelTop>topboundary)
		{
		themenu.pixelTop-=5;
		}
	else if (isNS4&&themenu.top>topboundary)
		{
		themenu.top-=5;
		 }
	else if (isNS6&&parseInt(themenu.top)>topboundary)
		{
		themenu.top = parseInt(themenu.top) - 5 + "px";
		}
	else if (window.pullit)
		{
		clearInterval(pullit);
		}
	}
	
function calque(calque_nav)
	{
	// NS4
	window.onload=regenerate2;
	
	/* Scrollfunktion Top = Höhe der Tabelle  */
	
	// IE 
	if (isIE4||isIE5)
		{
		document.write('<div id="slidemenubarIE" style="top:-340" onMouseover="pullV()" onMouseout="drawV()">');
		}
	// NS 6
	if (isNS6)
		{
		document.write('<div id="slidemenubarIE" style="top:-340" onMouseover="pullV()" onMouseout="drawV()">');
		}
	// NS 4
	if (isNS4)
		{
		document.write('<layer id="slidemenubarNS" onMouseover="pullV()" onMouseout="drawV()">');
		}
	
	// 
	document.write(calque_nav);
	
	// IE 4,6 | NS 6
	if (isIENS6)
		{
		document.write('</div>');
		}
	// NS 4
	if (isNS4)
		{
		document.write('</layer>');
		}

	}


