/*HEADER_START************************************************************************************
 Page:		browser.js 	                                                  		*
 Modul:		Library										*
 Author:		Bruno Maurer                                                			*
 Version:	1_001                                                       			*
 Function:	Browserauflösung -> Anpassung der Bereiche					*
**************************************************************************************************
 Changes:	20031205	Anpassung an Checkliste_1001                   			*
				V1_001                                      			*
**************************************************************************************HEADER_END*/
   function GetBrowserType()
   {
     var name = navigator.userAgent.toLowerCase()
     var ie = (name.indexOf("msie") >= -1)    // INTERNET EXPLORER
     var netscape = (name.indexOf("mozilla")!=-1 && name.indexOf("compatible")==-1 && name.indexOf("opera")==-1)
     if (netscape) return("n");
     else if (ie) return("i");
   }

   function getWindowHeight()
   {return window.innerHeight? window.innerHeight : document.body.clientHeight;}
   function getWindowWidth()
   {return window.innerWidth? window.innerWidth : document.body.clientWidth;}

   function CheckSolution()			/*Allgemeiner Bereich -> Mainfenster -> Breite*/
   {
    if(screen.width <= 800)
     alert("Die Seite kann nicht vollständig angezeigt werden.\nOptimale Darstellung ab 1024x768");
   }
   function Width_Full()				/*Breite gesammter Bereich*/
   {
    return(800);
   }

   function Height_Top()       			/*Allgemeiner Bereich -> Logo Kopf Höhe*/
   {
    var i=0;
    if(screen.width <= 800)i=127;
    if(screen.width >= 1024)i=127;
    if(screen.width >= 1280)i=127;
    if(screen.width >= 1400)i=127;
    if(screen.width >= 1600)i=127;
    return(i);
   }

   function MainFromLeft()       			/*Spezielle Zentrierung des Main Divs. Browserabhängig*/
   {
    if (GetBrowserType()=="i")
    {
     return(2);
    }
    else if (GetBrowserType()=="n")
    {
     return(1.4);
    }
   }

   function MainFromTop()       			/*Spezielle Zentrierung des Main Divs. Browserabhängig*/
   {
    if (GetBrowserType()=="i")
    {
     return(2);
    }
    else if (GetBrowserType()=="n")
    {
     return(0);
    }
   }

