<!--
/* window openers */
/* 10:39 19.02.2010 */

// center and no resize
function cn(url, name, w, h)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=no,toolbar=no'
	winContent = window.open(url, name, winprops)
	winContent.focus()
}

// center and resize
function cy(url, name, w, h)
{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,toolbar=no'
	winContent = window.open(url, name, winprops)
	winContent.focus()
}

// set position and no resize
function wn(url, name, w, h, t, l) 
{
	winprops = 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars=no,resizable=no,toolbar=no'
	winContent = window.open(url, name, winprops)
	winContent.focus();
}

// set position and resize
function wy(url, name, w, h, t, l)
{
	winprops = 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars=yes,resizable=yes,toolbar=no'
	winContent = window.open(url, name, winprops)
	winContent.focus();
}

/* Show - hide DIV tags */
// click to show and click to hide
function show(x)
{
	 if (document.getElementById(x).style.display == 'block')
	 {
		document.getElementById(x).style.display = 'none';
	 }
	 else
	 {
		document.getElementById(x).style.display = 'block';
	 }
}

// click to show and click to hide, change the trigger
function showChange(x, href)
{
	if (document.getElementById(x).style.display == 'block')
	{
		document.getElementById(x).style.display = 'none';
		href.innerHTML = '[+]'
	}
	else
	{
		document.getElementById(x).style.display = 'block';
		href.innerHTML = '[&ndash;]'
	}
}

// Only one at the same time
var lastdisplayed = null;
var hideme = null;

function showHide(x)
{
	// remove the text
	if (document.getElementById(x).style.display == 'block')
	{
		document.getElementById(x).style.display = 'none';
	}
	// show text
	else
	{	
		if (lastdisplayed != null) {
		   hideme = document.getElementById(lastdisplayed);
		   hideme.style.display = 'none';
		}
		document.getElementById(x).style.display = 'block';
		lastdisplayed = x;
	}
}

// Only one at the same time, change the trigger
// Danke Christine
var lastdisplayed = null;
var lastref = null;
var hideme = null;

function toggle(x, href)
{
	// remove the text and set +
	if (document.getElementById(x).style.display == 'block')
	{
		document.getElementById(x).style.display = 'none';
		href.innerHTML = '[+]';
	}
	// show text and -
	else
	{	
		if (lastdisplayed != null) {
		   hideme = document.getElementById(lastdisplayed);
		   hideme.style.display = 'none';
		   lastref.innerHTML = '[+]';
		}
		document.getElementById(x).style.display = 'block';
		href.innerHTML = '[&ndash;]';
		lastdisplayed = x;
		lastref = href;
	}
}  

//-->