function m_on(nr){
//	this.style.background='#006633';
	document.getElementById('mm'+nr).style.backgroundColor='#004E05';
	document.getElementById('m'+nr).style.color='#FFFFFF';
}

function m_off(nr){
//	this.style.background='#006633';
	document.getElementById('mm'+nr).style.backgroundColor='#008137';
	document.getElementById('m'+nr).style.color='#FFFFFF';
}


function img(name){
	this.on= new Image();
	this.on.src ="i/t/"+name+".co.gif";
	this.off= new Image();
	this.off.src ="i/t/"+name+".bw.gif";
}

var pav=new Array();

function pop(url,name,width,height){
	if (url=='') {return;}
	if (name=='') name='';
	if (!(width>0)) width=300;
	if (!(height>0)) height=200;
	url="http://www.cili.lt/kaimas/"+url;
	img=window.open(url,name,'width='+width+',height='+height+',buttons=no,scrollbars=no,location=no,menubar=no,resizable=no,status=no,directories=no,toolbar=no');
	img.focus();
}

if (document.images) {
	pav['cili']=new img('cili');
	pav['kaimas']=new img('kaimas');
	pav['kinija']=new img('kinija');
	pav['bistro']=new img('bistro');
	pav['kava']=new img('kava');
}

function imgOn(imgName){
	if (document.images) {
	   document[imgName].src =pav[imgName].on.src;
    }
}

function imgOff(imgName) {
       if (document.images) {
           document[imgName].src =pav[imgName].off.src;
      }
}