function gebi(id){return document.getElementById(id)}
function popup(l,w){if(!window.focus)return true;var h=typeof(l)=='string'?l:l.href;window.open(h,w,'width=400,height=230,left=50,top=50,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=no');return false}
function BgMove(e,c){e.style.backgroundPosition=c;}function BgMoveByX(e){BgMove(e,-e.offsetWidth+'px 0px');}
function srAddEvent(obj,type,fn){
	try {
		if(obj.addEventListener)
			obj.addEventListener(type,fn,false);
		else
		if(obj.attachEvent)
			obj.attachEvent(("on"+type),fn);
	} catch (e)   {
	//	alert('event error');
	}
}
function SwapImage(){if(document.images)document.getElementById(SwapImage.arguments[0]).src="/img/tanat/"+SwapImage.arguments[1];}
function ProcessMenu(id,ignore){
	if(ignore)return;
	var div='mBut'+id+'_content';
	var subBlock=document.getElementById(div).style.display;
	if(subBlock!='none'){
		document.getElementById('mPM00'+id).style.display='none';
		document.getElementById('mPM01'+id).style.display='block';
		document.getElementById(div).style.display='none';
	}else{
		document.getElementById('mPM00'+id).style.display='block';
		document.getElementById('mPM01'+id).style.display='none';
		document.getElementById(div).style.display='block';
	}
}