function showTrailer(uri)
{
	//mHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="320" height="256">';
	//mHTML += '<param name="movie" value="http://trailer.tcfhe.de/player.swf?file=' + uri + '"></param>';
	//mHTML += '<param name="wmode" value="transparent"></param>';
	//mHTML += '<param name="allowFullscreen" value="true"></param><param name="allowScriptAccess" value="sameDomain" />';	
	//mHTML += '<embed src="http://trailer.tcfhe.de/player.swf?file=' + uri + '" type="application/x-shockwave-flash" allowFullscreen="true" wmode="transparent" width="320" height="256"></embed>';
	//mHTML +=	'</object>';
	mHTML = '<embed src="http://trailer.tcfhe.de/player.swf" width="320" height="256" bgcolor="undefined" allowscriptaccess="always" allowfullscreen="true" flashvars="file=' + uri + '&dock=false"/>'
	document.write(mHTML);
	

	
}

function epkTrailer(uri)
{
	mHTML = '<embed src="http://trailer.tcfhe.de/player.swf" width="384" height="288" allowscriptaccess="always" allowfullscreen="false" flashvars="file=' + uri + '&dock=false&stretching=none" />';
	document.write(mHTML);
}

function openWindow(url, name, attr, formX)
{
	if (formX) url += eval(formX);
	attr += ',menubar=yes,scrollbars=yes,status=1,resizable=yes';
	var w = window.open(url,name,attr);
	w.focus();
}

function expand(id)
{
	o = document.getElementById("row_" +id);
	i = document.getElementById("image_" + id);
	if (o)
	{
		if (o.style.display == 'none')
		{
			o.style.display = '';
			if (i) i.src = 'i/minus.gif';
		}
		else
		{
			o.style.display = 'none';
			if (i) i.src = 'i/plus.gif';
		}
	}
}

function showHide(id)
{
	if(document.getElementById(id).style.display == "none")
	{
		document.getElementById(id).style.display  = "inline";
	}else{
		document.getElementById(id).style.display  = "none";
	}
}

function fe_popup(id, width, height)
{
	var url = "?template=popup&id=" + id;
	var attr = "width=" + width + ",height=" + height + ",menubar=no,scrollbars=no,status=0,resizable=yes";
	var name = "";
	window.open(url,name,attr);
}

function epk_popup(id, width, height)
{
	var url = "?template=popup_epk&id=" + id;
	var attr = "width=" + width + ",height=" + height + ",menubar=no,scrollbars=no,status=0,resizable=yes";
	var name = "";
	window.open(url,name,attr);
}

var isDescriptionOn = readCookie('isDescriptionOn', 'true');

function switchDescription(switcher)
{
	isDescriptionOn = ((isDescriptionOn == 'true') ? 'false' : 'true');
	writeCookie('isDescriptionOn', isDescriptionOn);
	showDescription(switcher);
}
function showDescription(switcher)
{
	var elements = document.getElementsByTagName('div');
	for (var i = 0; i < elements.length; i++)
	{
		if (elements[i].className != 'imagedescription') continue;
		if (isDescriptionOn == 'true') elements[i].style.display = '';
		else elements[i].style.display = 'none';
	}
	var i = document.getElementById(switcher);
	if (i) i.src = "http://be.tcfhe.de/i/" + ((isDescriptionOn == 'true') ? 'minus.gif' : 'plus.gif');
}

function readCookie(parameterName, defaultValue)
{
	var cname = parameterName + "=";
	var dc = document.cookie;
	if (dc.length > 0)
	{
		var begin = dc.indexOf(cname);
		if (begin != -1)
		{
			begin += cname.length;
			end = dc.indexOf(";", begin);
			if (end == -1) end = dc.length;
			return unescape(dc.substring(begin, end));
		}
	}
	return defaultValue;
}

function writeCookie(parameterName, parameterValue)
{
	var d = new Date("January 31, 2104");
	var cd = d.toGMTString();
	var c = parameterName + "=" + parameterValue + ";expires=" + cd;
	document.cookie = c;
}

window.onload=montre;
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}
