<!--
var sitedir = 'http://climattrade.ru';

function flow_window_open(obj,x,y)
{
var it=document.getElementById(obj).style;
	it.left=x;
	it.top=y;
	if (it.display=='') it.display='block';
	else it.display='';
	return false;
}
function flow_window_close(obj)
{

}

function SwapImg(it,x1,x2)
{
	if (it.src==x1) it.src=x2;
	else it.src=x1;
}

function ShowTip(obj,w,h)
{
	if (document.getElementById) {
		target = document.getElementById(obj);
		target.style.position="absolute";
		target.style.width=w+'px';
		target.style.height=h+'px';
		target.style.left=document.body.clientWidth/2+document.getElementById('content').clientWidth/2-w+'px';
		target.style.top=document.getElementById('phones').style.top;
		target.style.background="#f5f5f5";
		target.style.border="1px solid #e8e8e8";
		target.style.padding="15px 10px";
		if (target.style.display == "none") target.style.display="";
		else target.style.display = "none";
	}
}


function toggle(targetId,img)
{
if (document.getElementById)
	{target = document.getElementById(targetId);
	if (target.style.display == "none") target.style.display="block";
	else target.style.display = "none";
	}
	if ((img.src==sitedir+"/img/plus-out.png")||(img.src==sitedir+"/img/plus-on.png")) {
		img.src=sitedir+"/img/minus-out.png";
		img.alt="[&ndash;]";	
		img.title="Свернуть список";	
		}
	else {
		img.src=sitedir+"/img/plus-out.png";
		img.alt="[+]";	
		img.title="Раскрыть список";
		}

}

function onimg(img)
{
	if (img.src==sitedir+'/img/plus-out.png') img.src=sitedir+'/img/plus-on.png';
	if (img.src==sitedir+'/img/minus-out.png') img.src=sitedir+'/img/minus-on.png';
}

function outimg(img)
{
	if (img.src==sitedir+'/img/plus-on.png') img.src=sitedir+'/img/plus-out.png';
	if (img.src==sitedir+'/img/minus-on.png') img.src=sitedir+'/img/minus-out.png';
}

function ClearFill(th,arg)
{
	if (th.value=='') th.value=arg;
}

function ReClearFill(th,arg)
{
	if (th.value==arg) th.value='';
}

//-->