// --------------------------------------------------------------------
// open new window
// --------------------------------------------------------------------

function oWin(url,title,sizeH,sizeV)  {
     winHandle = top.open(url,title,'toolbar=no,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=no,width='+sizeH+',height='+sizeV);
     if(navigator.appVersion.indexOf("MSIE 3",0)==-1) id = setTimeout('winHandle.focus()',1000);
}

function oWinFeatures(theURL,winName,features) {
  top.open(theURL,winName,features);
}

function oWinPresseschau() {
	var leftvalue = (screen.width - 500) / 2;
	window.open("/presseschau","Presseschau","width=500,height=300,top=10,left=" + leftvalue +",menubar=no,location=no,toolbar=yes,resizable=yes,scrollbars=yes");
}

function openDEGWindow(theURL, title)
 {
  var fenster;
  var options ='toolbar=yes,location=yes,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1014,height=622,left=0,top=0';
  fenster = window.open(theURL,title,options);
  fenster.focus();
 }
 
function oWinPopup(id) {
	var leftvalue = (screen.width - 680) / 2;
	var path = "../" + id + "/popupcontent.html";
	var popup = window.open(path,"News","width=680,height=450,top=10,left=" + leftvalue +",menubar=no,location=no,toolbar=yes,resizable=no,scrollbars=yes,dependant=yes");
	if (popup) popup.focus();
	return false;
}


// --------------------------------------------------------------------
// Highlighting
// --------------------------------------------------------------------

function chgImg(imgID, src)
{
   if(document.images){
      document.images[imgID].src = src;
   }
}

/* which Browser? */
var ns4 	= (document.layers) 							? true : false;
var ie		= (document.all)								? true : false;
var ns6		= (!document.all && document.getElementById)	? true : false;
var opera	= window.opera									? true : false;