// Funktion zur Einbindung der korrekten Stylesheetdatei in den Browser

var plattform = "win";

if (navigator.userAgent.indexOf("Win")!= -1) {
         plattform = "win";
}
if (navigator.userAgent.indexOf("Mac")!= -1) {
         plattform = "mac";
}
if((navigator.userAgent.indexOf("Mac")!= -1) && (navigator.userAgent.indexOf("MSIE 5") != -1)) {
         plattform = "win";
}

if ((navigator.userAgent.indexOf("Mac")!= -1) || ( (navigator.userAgent.indexOf("MSIE") < 0) &&  (navigator.appVersion.substring(0,1) < 6)) ){
 plattform = "mac";
}

if((navigator.userAgent.indexOf("Mac")!= -1) && (navigator.userAgent.indexOf("MSIE 5") != -1)) {
         plattform = "mac";
}




document.write("<link href=\"../../lib/css/"+plattform+".css\" REL=\"STYLESHEET\" TYPE=\"text/css\">");

// Ausgabe der entsprechenden div-Dateien - Achtung IE5 benötigt dafür Mac-Datei

//document.write("<link href=\"../../lib/css/div"+plattform+".css\" REL=\"STYLESHEET\" TYPE=\"text/css\">");

/*****************************************************************************************************************/
// reloads the window if Nav4 resized
function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

/*****************************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popup(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
      		{
              cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
              //if (posx) cc_child.moveTo(posx,posy);
              window.cc_child.focus();
              return;
      		}

         if (window.cc_child.closed)
                {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
                }
       
        if (window.cc_child)
        	{
             window.cc_child.close();
			 cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
             //if (posx) cc_child.moveTo(posx,posy);
              window.cc_child.focus();
        	}
}
function popPrint(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/

// Funktion zum Öffnen eines Childwindow an einer bestimmten Position MIT TOOLBAR!
function popupA(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,toolbar=yes,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}

/**************************************************************************************************************/

// Funktion zum Öffnen eines Childwindow an einer bestimmten Position MIT TOOLBAR!+scroll
function popupB(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,toolbar=yes,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/



// Kaskadiertes Popup
function popuptext(PopURL,FName,x,y,posx,posy)
{
        ns=( document.layers )?true:false;
        ie=( document.all )?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");

        if( ! window.cc_child_text )
        {
                if( ie )
                {
                        x = x +20;
                }
                cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                if ( posx )
                        cc_child_text.moveTo( posx,posy );
                window.cc_child_text.focus();
                return;
        }
        if (ie && ie4 < 0)
        {
                if( window.cc_child_text.closed )
                {
                        if( ie )
                        {
                                x = x +20;
                        }
                        cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                        if ( posx )
                                cc_child_text.moveTo( posx,posy );
                        window.cc_child_text.focus();
                        return;
                }
        }

        if( window.cc_child_text )
        {
                if (ie && ie4 < 0)
                {
                        window.cc_child_text.close();
                }
                cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                if( posx )
                        cc_child_text.moveTo( posx,posy );
                window.cc_child_text.focus();
        }
}
/**************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popupmessage(PopURL,FName,x,y,posx,posy)
{       alert ("THIS");
        if (!(posx)) posx=100;
        if (!(posy)) posy=100;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=no,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popupclose()
{
     top.window.close();
}
/**************************************************************************************************/

/*****************************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position für webspecials in Flash
function pop(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=no,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=no,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=no,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}

function popupPrint(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        	{
                cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        	}

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                		//if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        	{
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
               cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        	}
}