// Funktion zur Referenzierung von Div-Layern
function div_ref (id)
{
	if  (document.layers)
		return document.layers[id]; // NC 4
	else
		if (document.all)
			return document.all[id]; // IE 4
    	else
			if (document.getElementById)
				return document.getElementById(id); // DOM
			else
				return null;        
}
  
// Funktion zur Referenzierung von Div-Layern mit Zugriff auf CSS-Eigenschaften
function div_ref_style (id)
{
	if (document.layers)
	{
		obj = document.layers[id]
		return (obj ? document.layers[id] : null);
	}
	else
		if (document.all)
		{
			obj = document.all[id];
			return (obj ? obj.style : null);
		}
		else
			if (document.getElementById)
			{
				obj = document.getElementById(id);
				return (obj ? obj.style : null);
			}
			else
				return null;        
}
  
function toggleItem(id)
{
	style = div_ref_style(id);
	if (style)
		style.display = (style.display == "none" ? "" : "none");
	
	return false;
}

function CoverPop(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
    newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
    newWindow.document.open();
    newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
    newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
    newWindow.document.write('</body></html>');
    newWindow.document.close();
    newWindow.focus();
}

/*
function SwitchTickerContents()
{
		
	if (document.getElementById("umschalter").firstChild.nodeValue == "Branchen-News")
	{
		document.getElementById("hlwdnws").setAttribute("style", "visibility:visible;", "false");
		document.getElementById("brnchnnws").setAttribute("style", "visibility:hidden;", "false");
		document.getElementById("umschalter").firstChild.nodeValue = "Hollywood-News";
	}
	else
	{
		document.getElementById("hlwdnws").setAttribute("style", "visibility:hidden;", "false");
		document.getElementById("brnchnnws").setAttribute("style", "visibility:visible;", "false");
		document.getElementById("umschalter").firstChild.nodeValue = "Branchen-News";

	}
}
*/

function SwitchTickerContents()
{
		
	if (document.getElementById("umschalter").firstChild.nodeValue == "Branchen-News")
	{
		document.getElementById("hlwdnws").style.visibility = "visible";
		document.getElementById("brnchnnws").style.visibility = "hidden";
		document.getElementById("umschalter").firstChild.nodeValue = "Hollywood-News";
	}
	else
	{
		document.getElementById("hlwdnws").style.visibility = "hidden";
		document.getElementById("brnchnnws").style.visibility = "visible";
		document.getElementById("umschalter").firstChild.nodeValue = "Branchen-News";

	}
}

function HideEmpfehlung()
{
		if (document.getElementById('closeLink').firstChild.nodeValue == "[-]")
		{
			//document.getElementById(id).style.display = "block";
			Effect.Fade('empfehlungContainer');
			document.getElementById('closeLink').firstChild.nodeValue = "[+]";
		}
		else
		{
			//document.getElementById(id).style.display = "none";
			Effect.Appear('empfehlungContainer');
			document.getElementById('closeLink').firstChild.nodeValue = "[-]";
		}
}
