
 var viewportheight;

 // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

 if (typeof window.innerHeight != 'undefined')
 {
      viewportheight = window.innerHeight
 }

// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
 else if (typeof document.documentElement != 'undefined'
    && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0)
 {
       viewportheight = document.documentElement.clientHeight 
 }

 // older versions of IE
 else
 {
       viewportheight = document.body.clientHeight
 }



// Berechnung der Höhenangaben (abhängig von der Bildschirmhöhe):
hoehe = viewportheight / 2;

if (viewportheight > 600)
{  	hoehe2 = hoehe - 290;
	hoehe3 = hoehe + 252;
	hoehe4 = hoehe + 108;
	hoehe5 = hoehe + 152;	
	}
else
{ 	hoehe2 = 20;
 	hoehe3 = 563;
 	hoehe4 = 443;
 	hoehe5 = 463;
 }

