/*
Openshop
*/

var ie6 = navigator.appVersion.indexOf('MSIE 6') > 0;

if (ie6)
{
	if (document.all && document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule)
		document.styleSheets[0].addRule('.hotfix', 'behavior: url(/js/iepngfix.htc)');
}


function toggle(sId)
{
	var obj = document.getElementById(sId);

	if (obj)
		obj.style.display == 'none' ? obj.style.display = 'block' : obj.style.display = 'none';
}

function toDefault(obj)
{
	if (obj.value == obj.defaultValue)
		obj.value = '';

	if (!obj.onblur)
	{
		obj.onblur = function (){
			if (obj.value == '')
				obj.value = obj.defaultValue
		}
	}
}

function SelectRating(id,url)
{
	var i=1;
	for (i=1;i<=5;i++)
	{
		if (i<=id) 
		{
			document.getElementById('ster_'+i).src='/'+url+'/star.png';			
		}
		else
		{
			document.getElementById('ster_'+i).src='/'+url+'/star_off.png';
		}	
	}
	document.getElementById('score').value=''+id+'';
}

