function chpartnerimg(imgid, stat)
{
	if(!document.getElementById(imgid)) return false;
	
	
	if(stat==1)
	{
		document.getElementById(imgid).src='/templates/udmm/img/manufacter/'+imgid+'-color.jpg';
	}else
	{
		document.getElementById(imgid).src='/templates/udmm/img/manufacter/'+imgid+'-grey.jpg';
	}
}

function bookmark(title, url) {
if (window.external || window.sidebar)
{
	if (title == undefined)
		title = document.title;
	if (url == undefined)
		url = top.location.href;

	if (window.sidebar)
	{
		// Firefox
		window.sidebar.addPanel(title, url, '');
	} else if (window.opera && window.print)
	{
		alert('ds');
		// Opera
		var t = document.createElement('a');
		t.setAttribute('rel', 'sidebar');
		t.setAttribute('href', url);
		t.setAttribute('title', title);
		t.click();
	} else if(window.external ) 
	{
		// IE
		window.external.AddFavorite(url, title);
	}
	else 
	{
		//???? ??? ???????? ???? ????????, ????, ?? ???? ??? ??????? ??????? ?? ??????????
		//?? ??? ?????????? ????? ?????
		alert('??? ?? ???????? ???????? ? ????????? ??????? CTRL+D.');
	}
}
else
{
	//????????? ???????? ??? ??? ?????
	this.agent = navigator.userAgent;
	this.mac = this.agent.indexOf("Mac")-1;
	//??? ????????? ?????????????? ???????
	if (this.mac>=0) alert('??? ?? ???????? ???????? ? ????????? ??????? Command+D.');
	//??? PC ???????
	else alert('??? ?? ???????? ???????? ? ????????? ??????? CTRL+D.');
}
 return false;
}
