// myfunctions
// bf aug.2008
// modified 02.09


function checkResolution(){
	window.location = "empfang.php?res="+window.screen.width;
}

/*
function posNav(){
	var mx=0;
	var my=0;
	var cookiearray = document.cookie.split(";");
	for (var iterator = 0; iterator < cookiearray.length; iterator++) {
   		cookiearray[iterator] = new Array(cookiearray[iterator].split("=")[0], cookiearray[iterator].split("=")[1]*1);
   		if(trim(cookiearray[iterator][0])=='x') mx=cookiearray[iterator][1];
   		if(trim(cookiearray[iterator][0])=='y') my=cookiearray[iterator][1];
	}
	var mNav = dd.elements.mNav;
//	if(mx!=0 && my!=0) mNav.moveTo(mx, my);
//	document.getElementById(mNav).style.visibility = 'visible';
}
*/	


function trim (zeichenkette) {
  // Erst führende, dann Abschließende Whitespaces entfernen
  // und das Ergebnis dieser Operationen zurückliefern
  return zeichenkette.replace (/^\s+/, '').replace (/\s+$/, '');
}


//***  used by drowDown box - create url 
function goLinkDropDown(obj){
  	urlLink=obj.Nav_1.options[obj.Nav_1.selectedIndex].value;
  	top.location.href=urlLink;
}

//***  used by drowDown box - create url 
function goLinkDropDown2(obj){
  	urlLink=obj.Nav_2.options[obj.Nav_2.selectedIndex].value;
  	top.location.href=urlLink;
}


function changeZ(){
	tabObj = document.getElementById('div_logo');
	//alert(tabObj.style.zIndex)
	tabObj.style.zIndex=1;
}


var showNews=0;
var lastDiv="";
// news
function showNewsDiv(divn){
	
	//last hidden
	if(lastDiv != "") document.getElementById(lastDiv).style.visibility = 'hidden';
	document.getElementById(divn).style.visibility = 'visible';
	lastDiv=divn;
	
}

function hiddeNews(divn){
	document.getElementById(divn).style.visibility = 'hidden';
	lastDiv="";
}


