pfeil1=new Image();
pfeil1.src="/images/pfeil.gif";
fill1=new Image();
fill1.src="/images/fill.gif";
var timer = 1;

function writit(text,id)
	{
		if (document.getElementById)
		{
			x = document.getElementById(id);
			x.innerHTML = '';
			x.innerHTML = text;
		}
		else if (document.all)
		{
			x = document.all[id];
			x.innerHTML = text;
		}
		else if (document.layers)
		{
			x = document.layers[id];
			text2 = '<P CLASS="testclass">' + text + '</P>';
			x.document.open();
			x.document.write(text2);
			x.document.close();
		}
	}

function changenewspicon(img, nr) {
	document[img+nr].src = "/images/" + img + "_on.gif";
}

function changenewspicoff(img, nr) {
	document[img+nr].src = "/images/" + img + "_off.gif";
}


function changepicon(img, nr) {
	document[img+nr].src = "/images/" + img + "_on.gif";
}

function changepicoff(img, nr) {
	document[img+nr].src = "/images/" + img + "_off.gif";
}

function turnnavon(imgName) {
	document[imgName].src = eval(imgName + "aon.src");
	return;
}

function turnnavoff(imgName) {
	
	document[imgName].src = eval(imgName + "aoff.src");
	return;
}


function turnpointeron(imgName) {
	document[imgName].src = pfeil1.src;
	return;
}

function turnpointeroff(imgName) {
	
	document[imgName].src = fill1.src;
	return;
}

function hidesubnavwithdelay(which){
	timer = window.setTimeout('hidesubnav("' + which + '")', 200);
}



function showsubnav(subnav)
	{
	    window.clearTimeout(timer);
		if(document.all){
			document.all[subnav].style.visibility = "visible";
		}
		if(document.layers){
			document.layers[subnav].visibility = "show";
		}
		if(document.getElementById){
			document.getElementById(subnav).style.visibility = "visible";
		}
	}
function hidesubnav(subnav)
	{
		if(document.all){
			document.all[subnav].style.visibility = "hidden";
		}
		if(document.layers){
			document.layers[subnav].visibility = "hide";
		}
		if(document.getElementById){
			document.getElementById(subnav).style.visibility = "hidden";
		}
	}
	
function simplePopup(url, name, w, h) {
	if( w == "0" || h == "0" ){
		var w = screen.availWidth;
		var h = screen.availHeight;
	}
	
	var x = screen.availWidth/2-w/2;
	var y = screen.availHeight/2-h/2;
	
	var popupWindow = window.open(url, name, 'width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y+',resizable=no,location=no,menubar=no,status=no,toolbar=no');
	popupWindow.focus();
}