//zentriertes Pop-Up öffnen; Größe variabel
function openOwnWindowCentered(theURL,width,height)
{
	
    var args = "toolbar=no,"
		    + "location=no,"
		    + "status=no,"
		    + "menubar=no,"
		    + "scrollbars=yes,"
		    + "resizable=yes,"			
		    + "titlebar=0,"
		    + "hotkeys=0,"

		    + "screenx=" + (window.screen.width - width ) / 2  + ","  // NN Only
		    + "screeny=" + (window.screen.height - height) / 2  + ","  // NN Only
		    + "left=" + (window.screen.width - width ) / 2  + ","     // IE Only
		    + "top=" + (window.screen.height - height) / 2;           // IE Only

	var wnd = window.open(theURL,"newWin","width=" + width + ",height=" + height + "," + args);
	wnd.focus;
}


//zentriertes Pop-Up öffnen; Größe variabel, nicht anpassbar
function openOwnWindowCenteredFix(theURL,width,height)
{
	
    var args = "toolbar=no,"
		    + "location=no,"
		    + "status=no,"
		    + "menubar=no,"
		    + "scrollbars=no,"
		    + "resizable=yes,"			
		    + "titlebar=0,"
		    + "hotkeys=0,"

		    + "screenx=" + (window.screen.width - width ) / 2  + ","  // NN Only
		    + "screeny=" + (window.screen.height - height) / 2  + ","  // NN Only
		    + "left=" + (window.screen.width - width ) / 2  + ","     // IE Only
		    + "top=" + (window.screen.height - height) / 2;           // IE Only

	var wnd = window.open(theURL,"newWin","width=" + width + ",height=" + height + "," + args);
	wnd.focus;
}


//variables Pop-Up öffnen
function openOwnWindow(theURL,winName,features) { //v2.0

    var args =  features + ","
		    + "location=0,"
		    + "menubar=0,"
		    + "scrollbars=yes,"
		    + "resizable=yes,"
		    + "status=0,"
		    + "titlebar=0,"
		    + "hotkeys=0,"

		    + "screenx=10,"  // NN Only
		    + "screeny=10,"  // NN Only
		    + "left=10,"     // IE Only
		    + "top=10";      // IE Only


  window.open(theURL,winName,args);
}





//Navigation
function hideSub( ) {
if (!document.getElementsByTagName)
return;
var mnu = document.getElementById("menu");
var toplis = mnu.getElementsByTagName("li"); 
for (it = 0; it < toplis.length; it++) { 
/* each top li */
var sublis = toplis[it].getElementsByTagName("li");

for (is = 0; is < sublis.length; is++) 
{ /* each sub li */

if (sublis[is].style)
if (toplis[it].className == 'show')
sublis[is].style.display = 'block';

else

sublis[is].style.display = 'none';
}
}
}
function mShow(Me)
			{

if (!Me.getElementsByTagName)
return;
var mylis = Me.getElementsByTagName("li");
if (!mylis)
return;
for (j = 0; j < mylis.length; j++) {

if (mylis[j].style.display == 'block')
mylis[j].style.display = 'none';

else

mylis[j].style.display = 'block';
}
}