function changeacc(name, lang)
{
	ajax_request('http://www.office.memo.bg:1080/www/winslow_gardens/webhost/accent.php', 'lang='+lang+'&name='+name,ajax_response_send); 	
}
function ajax_request(url, data, rslt) {
    
    var myAjax = new Ajax.Request(
        url,
        {method: 'get', parameters: data, onComplete: rslt}
    );
}

/*function ajax_response_updaters(originalRequest)
{
   var result = originalRequest.responseText;
}*/

function ajax_response_send(originalRequest)
{
   //alert(originalRequest);
   var result = originalRequest.responseText;
   //alert(result);
   hold = document.getElementById('accent');
   hold.innerHTML = result;      
}


function CP(OBJ, src_)
{
	//alert(OBJ);
	OBJ.firstChild.src = src_;
}

function removeSel(bt_)
{
	for(i=0; i<bt_; i++)
	{
	buton = document.getElementById("bt_"+i);
	buton.src = picsRO[i][1];
	}
	
}

function CC(text , p_id, map_m, bt_num)
{
	removeSel(bt_num);
	//alert(picsRO[map_m][0]);
	//alert( text );
	hold = document.getElementById("content");
	hold.innerHTML = text;
	hold1 = document.getElementById("flashcontent1");
	var so2 = new SWFObject("i/map.swf", "sotester", "439", "247", "9", "#72BF44");
	so2.addVariable("crrPgId", p_id);
	so2.write("flashcontent1");
	
	buton = document.getElementById("bt_"+map_m);
	buton.src = picsRO[map_m][0];
	
}
function overh()
{
	hold = document.getElementById("list");
	if(hold)if(hold.scrollHeight > 545)
	{
		hold1 = document.getElementById("tuk");
		hold1.style.visibility = 'visible';
	}
	
}