//notes about security:
//a cause of the tight security settings in mozilla you have to sign the javascript to make it work another way is to change your mozilla settings
//to do this add this line to your prefs.js file in your Mozilla user profile directory

//user_pref("signed.applets.codebase_principal_support", true);

//or change it from within the browser with calling the "about:config" page
function CopyToClipboard(InText)
{	
	if (window.clipboardData) 
	{	
		window.clipboardData.setData("Text", InText);
	}
	else if (window.netscape) 
	{ 
		netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
		var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
		if (!clip) return;
	   
		var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
		if (!trans) return;

		trans.addDataFlavor('text/unicode');

		var str = new Object();
		var len = new Object();
		var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
		var copytext=InText;
		
		str.data=copytext;
		trans.setTransferData("text/unicode",str,copytext.length*2);
	 
		var clipid=Components.interfaces.nsIClipboard;

		if (!clip) return false;

		clip.setData(trans,null,clipid.kGlobalClipboard);
	}
	return false;
}

function popup(strUrl, strWindowName, strWindowFeatures) {
	window.open(strUrl, strWindowName , strWindowFeatures);
}

function PopWindow(NewURL, Width, Height, Center)
{
	var WinTop
	var WinLeft
	
	if (Center = true)
	{
		WinTop = (screen.height - Height) / 2;
		WinLeft = (screen.width - Width) / 2;
		var NewWin = window.open(NewURL, 'Popup', config='toolbar=no,menubar=no,status=no,location=no,directories=no,scrollbars=yes,width=' + Width + ',height=' + Height + ',top=' + WinTop + ',left=' + WinLeft );
	}
	else
	{
		var NewWin = window.open(NewURL, 'Popup', config='toolbar=no,menubar=no,status=no,location=no,directories=no,scrollbars=yes,width=' + Width + ',height=' + Height );
	}
}

function getInfo()
{

}

function expandText(thistag) {
   styleObj=document.getElementById(thistag).style;
   if (styleObj.display=='none') {styleObj.display='';}
   else {styleObj.display='none';}
}

function klappe(id)
{
	var klappText = document.getElementById('k' + id);
	var klappBild = document.getElementById('pic' + id); 

	if (klappText.style.display == 'none') {
  		klappText.style.display = 'block';
  		// klappBild.src = 'images/blank.gif';
	}
	else {
  		klappText.style.display = 'none';
  		// klappBild.src = 'images/blank.gif';
	}
}

function klappe_news(id)
{
	var klappText = document.getElementById('k' + id);
	var klappBild = document.getElementById('pic' + id); 

	if (klappText.style.display == 'none') {
  		klappText.style.display = 'block';
  		klappBild.src = '/i/minus.gif';
	}
	else {
  		klappText.style.display = 'none';
  		klappBild.src = '/i/plus.gif';
	}
}