// ************************************************************************************
// StyleSheet je nach Plattform und Browsertyp einbinden

var platform;
var browser;
var version;

version = parseInt(navigator.appVersion);

if(navigator.userAgent.indexOf('Win') == -1) {
        platform = 'Macintosh';
} else {
        platform = 'Windows';
}

if(navigator.appName.indexOf('Netscape') == -1) {
        browser = 'IE';
} else {
        browser = 'Netscape';
}

        if((platform == 'Macintosh') && (browser == 'Netscape')) {
	        if (navigator.appVersion.indexOf('Safari') != -1) {

//				window.alert("safari");
                document.write("<link rel='stylesheet' href='/style_ns.css'>");
	        }
	        else
	        {
//				window.alert("falsch Mac netscape else");
                document.write("<link rel='stylesheet' href='/style_else.css'>");
	        }
        }
        if((platform == 'Macintosh') && (browser == 'IE')) {

//				window.alert("falsch Mac IE");
                document.write("<link rel='stylesheet' href='/style_ie.css'>");

        }
        if((platform == 'Windows') && (browser == 'Netscape')) {
		if(version > 4){

//				window.alert("falsch windows Netscape");
                document.write("<link rel='stylesheet' href='/style_nspc.css'>");

		} else {

//				window.alert("falsch windows Netscape else");
                document.write("<link rel='stylesheet' href='/style_ie.css'>");
		}

        }
        if((platform == 'Windows') && (browser == 'IE')) {

//				window.alert("falsch windows IE");
                document.write("<link rel='stylesheet' href='/style_ie.css'>");

        }
      
//        if(version < 4) {
//
//				window.alert("falsch <4");
//                document.write("<link rel='stylesheet' href='/style_ns.css'>");
//
//       } else {
//
//				window.alert("falsch else <4");
//                document.write("<link rel='stylesheet' href='/style_else.css'>");
//
//                }
                
                
                
                
//if (((navigator.platform.indexOf('Win')) != -1) && (navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) < 5)){
//  document.write("<link rel='stylesheet' href='mma_ns.css'>");
//} 
//else { 
//  if ((navigator.appName == 'Microsoft Internet Explorer')|| (navigator.appName == 'Netscape'))
//  {
//    document.write("<link rel='stylesheet' href='mma_ie.css'>");
//  }
//  else{
//    document.write("<link rel='stylesheet' href='mma_else.css'>");    
//  }
//}
//
//



function showPopup(sFile,h,w,sScroll)
  {


//    vX =  screen.width / 2 - w / 2
//    vY =  screen.height / 2 - h / 2

//    window.open(sFile,null,"left="+vX+",top="+vY+",height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,scrollbars=no");

  Fenster = window.open(sFile,null,"height="+h+",width="+w+",status=no,toolbar=no,menubar=no,location=no,scrollbars=" + sScroll);
  Fenster.focus() 
  }


