function fadeIn(whatdiv,speed) {
	if (navigator.appName=="Microsoft Internet Explorer") {
		document.getElementById(whatdiv).style.filter="blendTrans(duration="+speed+")";
		    if (document.getElementById(whatdiv).filters.blendTrans.status != 2) {
		        document.getElementById(whatdiv).filters.blendTrans.apply();
		        document.getElementById(whatdiv).style.visibility="visible";
		        document.getElementById(whatdiv).filters.blendTrans.play();
		    }
	} else {
	        document.getElementById(whatdiv).style.visibility="visible";
	}
}

function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}


function findPosY(obj)
{
	var curtop = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curtop += obj.y;
	return curtop;
}

function init() {
	for (i=1;i<20;i++) {
		o=document.getElementById("vak"+i);
		if (o) window.setTimeout("fadeIn('vak"+i+"',0.3)",i*200);
	}
}

function startkader(w,h,img) {
	document.write('<IMG SRC="/images/top_'+img+'.gif" WIDTH='+w+' HEIGHT=33>');
	document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 STYLE="width:'+w+'px;height:'+(h-44)+'px;background:#e5dcbf;border-left:1px solid #50501a;border-right:1px solid #50501a">');
	document.write('<TR><TD STYLE="padding:6 11 0 11;font-size:10px" VALIGN=TOP>');
}

function stopkader(w,footer) {
	document.write('</TD></TR>');
	if (footer!="") {
		document.write('<TR><TD VALIGN=BOTTOM STYLE="padding:0 11 0 11">');
		document.write(footer);
		document.write('</TD></TR>');
	}
	document.write('</TABLE>');
	document.write('<IMG SRC="/images/bottom_1.gif" WIDTH='+w+' HEIGHT=11><BR>');
}

function showmenu(o,nr) {
	hidemenus();
	document.getElementById('submenu'+nr).style.left=findPosX(o);
}
function showmenu2(o,nr,w) {
	hidemenus2();
	document.getElementById('submenu'+nr).style.left=findPosX(o)+w-8;
}

function hidemenus() {
	for (i=0;i<=100;i++) 	if (document.getElementById("submenu"+(i))) document.getElementById("submenu"+(i)).style.left=-999;
	hidemenus2();
}
function hidemenus2() {
	for (i=100;i<=1000;i++) 	if (document.getElementById("submenu"+(i))) document.getElementById("submenu"+(i)).style.left=-999;
}


