var delay=25;
var nextm=10;
browserTyp = 0;
topVal=0;
leftVal=0;
layerRef="";
styleSwitch="";


if(navigator.appName=="Netscape"){
document.captureEvents(Event.MOUSEUP);
}


document.onmouseup = MDNS;

function MDNS()
{
timeoutsc()
return true
}

function imagechange(test)
{

}






function init(){
        if (navigator.appName == "Netscape") {
				layerStyleRef="layer.";
				layerRef="document.layers";
				styleSwitch="";
				browserTyp = 1;
        }else{
				layerStyleRef="layer.style.";
				layerRef="document.all";
				styleSwitch=".style";
				browserTyp = 2;
	}

}
init()

function writesub(out,top,leftpos)
{

var aktlayerheight
document.getElementById("subnav").innerHTML=out;
	
inittopwidth("subnav",top,leftpos)
}

function subnavleer()
{
writesub(' ')
return true
}

function inittopwidth(layerName,topv,leftv){

var heightwindow,heightlayer;
if(navigator.appName=="Netscape"){
		heightlayer=0
		akthight=window.pageXOffset
		heightwindow=window.outerWidht  
		}
		else
		{
		heightlayer=subnav.offsetwidht
		heightwindow=document.body.clientHeight
		akthight=document.body.scrollTop
		}
		
		
		//if ((topv+heightlayer)>heightwindow){
		//topv=topv-((topv+heightlayer)-heightwindow)
		
		//}
		if (leftv){
		
		document.getElementById(layerName).style.left=leftv;
		}
}

function timeoutsc()
{
window.setTimeout("subnavleer()",12);
}


window.onscroll=subnavleer

