<!--
function SearchClear(elmName, text)
{
	elm = document.getElementById(elmName);

	if(elm.value == text)
	{
		elm.value = "";
		elm.focus();
	}
}

// function GetVoting(url, id)
// {
// 	$("#Voting"+id).load(url);
// }

function GetRating(url, id)
{
	$("#Rating"+id).load(url.replace(/&amp;/g, '&'));
}

function GetVoting(url, id)
{
	$("#Voting"+id).load(url.replace(/&amp;/g, '&'));
}

function Voting(url, params)
{
	window.location = url+'?'+params.replace(/&amp;/g, '&');
};

function ShowNewDetail(object, show)
{
	if(object.className == 'new newismore' || show == true)
		object.className = 'new newisdetail';
	else
		object.className = 'new newismore';
}

function HighLight(object)
{
	if(object.style.backgroundColor.toUpperCase() == '#9CCE65' || object.style.backgroundColor.toUpperCase() == 'RGB(156, 206, 101)')
	{
		object.style.background = '';

		if(object.className == 'new newismore')
		{
			object.style.backgroundImage = "url('/res/more.gif')";
	 		object.style.backgroundRepeat = 'no-repeat';
			object.style.backgroundPosition = '195px 11px';
		}
	}
	else
	{
		object.style.backgroundColor = "#9CCE65";
		object.style.backgroundImage = "url('/res/bg-green.gif')";
 		object.style.backgroundRepeat = 'repeat-x';
		object.style.backgroundPosition = 'left top';
	}
}

function KatalogZanrChange(id)
{
	if(document.getElementById('KatalogZanrLabel'+id).className == 'title orange')
	{
		KatalogZanrHide(id);
	}
	else
	{
		KatalogZanrShow(id);
	}
}

function KatalogZanrShow(id)
{
	document.getElementById('KatalogZanrLabel'+id).className = 'title orange';
	document.getElementById('KatalogZanrList'+id).style.display = '';
// 	document.getElementById('KatalogZanrCount'+id).style.display = 'none';
}

function KatalogZanrHide(id)
{
	document.getElementById('KatalogZanrLabel'+id).className = 'title';
	document.getElementById('KatalogZanrList'+id).style.display = 'none';
// 	hideChildren(document.getElementById('KatalogZanrList'+id));
// 	document.getElementById('KatalogZanrCount'+id).style.display = '';
}

function hideChildren(parent, disable, unset)
{
	if (!parent)
		return;
	
	if (parent.children)
	{
		for (var i = 0; i < parent.children.length; i++)
		{
			if (parent.children[i].children)
				hideChildren(parent.children[i], disable, unset);
		}
	}
	parent.style.display = 'none';
	if (disable)
		parent.disabled = true;
	if (unset && parent.tagName != 'OPTION')
		parent.value = '';
}

function ChangeClass(obj, className)
{
	if(obj)
	{
		obj.className = className;
	}
}
//-->