function ser(tom,x){
	document.getElementById(tom).style.left=x;
}
function geser(tom,arah){
	window.ges=function(tome,arah){
		tomb=tome;
		arahs=arah;
		if(arah=="ka"){
			i++;
			ser(tomb,i);
			if(i<20) setTimeout('ges(tomb,arahs)',i);
		}
		else if(arah=="klik")ser(tomb,20);
		else ser(tomb,i);
		}
	i=0;
	tome=tom;
	arahs=arah;
	ges(tome,arahs);
}
function show(id){
	if(document.getElementById(id+1)!=null){
		var argv=show.arguments;
		var argc=show.arguments.length;
		var x=(argc>1)?argv[1]:170;
		var y=(argc>2)?argv[2]:-10;
		function getposOffset(what,offsettype){
			var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;
			var parentEl=what.offsetParent;
			while(parentEl!=null){
				totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;
			}
			return totaloffset;
		}
		document.getElementById(id+1).style.display='block';
		document.getElementById(id+1).style.left=getposOffset(document.getElementById(id),"left")+x+"px";
		document.getElementById(id+1).style.top=getposOffset(document.getElementById(id),"top")+y+"px";
	}
}
function hide(id){
	if(document.getElementById(id+1)!=null)
	document.getElementById(id+1).style.display='none';
}
