var linkColor = new Array('#013B93', '#3FAA4A');

function hoverLink(obj, state)
{
	var tmp_colors = linkColor;
	
	tmp_colors.reverse();
	
	var link = obj.childNodes;

	for(var i in link)
		link.item(i).style.color=tmp_colors[i];
}

function changeColor(obj, state)
{
	obj.style.color = linkColor[state];
}

//меняем цвет блока вместе с ссылкой - это для показа логотипов и т.п.
function changeColorBoxLink(block, state) {
	var class_name = 'carLogo';
	var childs = block.childNodes;
	for(c in childs){
		if(childs[c].nodeName == 'DIV')
			 childs[c].className = class_name + (state == 1 ? 'Sel':'');
		if(childs[c].nodeName == 'A')
			 childs[c].style.color = '#' + (state == 1 ? '3faa4a':'013B93');
	}
}

function openImageWindow(name, href, width, height, scrollbars){
FLS=window.open(href+'&width='+width+'&height='+height, name, "width="+(width+24)+", height="+(height+24)+", scrollbars="+scrollbars+", resizable=0,left=100,top=100");
FLS.focus();
return false;
}