<!--
function SetActiveStars(star_nr, max_stars,avg_value)
{
	var counter = 1;
	while(counter <= max_stars)
	{
		if(avg_value >= counter)
		{
			var elemID2change = 'star'+counter;
			document.getElementById(elemID2change).src='./gfx/star_c.png';
		}
		else
		{
			var elemID2change = 'star'+counter;
			document.getElementById(elemID2change).src='./gfx/star_a.png';		
		}
		
		counter++;
	}

	counter = 1;
	while(counter <= star_nr)
	{
		var elemID2change = 'star'+counter;
		document.getElementById(elemID2change).src='./gfx/star_b.png';
		counter++;
	}	
}

function clearLoginForm()
{
	document.frm_login.input_email.value="";
	document.frm_login.input_password.value="";
}



function myCustomInitInstance(inst) {
    var theIframe = instance.getWin().frameElement;
    theIframe.setAttribute("allowTransparency","true");
}

function switchopenclose(naviboxname)
{
	var curVisibilityState = document.getElementById(naviboxname).style.visibility;
	
	if(curVisibilityState == "hidden")
	{
		document.getElementById(naviboxname).style.display = "block";
		document.getElementById(naviboxname).style.visibility = "visible";
	}

	if(curVisibilityState == "visible")
	{
		// EINFÜGEN: WENN IE: DANN hidden STATT collapse
		document.getElementById(naviboxname).style.display = "none";
		document.getElementById(naviboxname).style.visibility = "hidden";
	}
	
	if(curVisibilityState == "collapse")
	{
		document.getElementById(naviboxname).style.visibility = "visible";
		document.getElementById(naviboxname).style.display = "block";
	}	
		
}

function IE7Fix()
{
	if (!/*@cc_on!@*/0) return;
	var all = document.getElementsByTagName('*'), i = all.length;
	while (i--)
	{
		if (all[i].scrollWidth > all[i].offsetWidth)
		{
			all[i].style['paddingBottom'] = '20px';
			all[i].style['overflowY'] = 'hidden';
		}
	}
}

-->
