//Contents of this file are Copyright,loss.de - Webdesign und Programmierung / 17-05-2006
//
// Diese Software ist urheberrechtlich geschützt. 
// Es ist verboten, den Source Code zu veränden,
// sowie die Software mehr als lizensiert zu nutzen. 
// Zuwiderhandlungen werden strafrechtlich verfolgt.


function BrowserCheck() 
{
var detect = navigator.userAgent.toLowerCase()
this.all = (document.all) ? true : false
this.layers = (document.layers) ? true : false
this.dom = (document.getElementById) ? true : false
this.ie4 = (this.all && !this.dom) ? true : false
this.ie6 = (this.all && this.dom) ? true : false
this.ns6 = (!this.all && this.dom) ? true : false

this.win = detect.indexOf("win") != -1;
this.mac = detect.indexOf("mac") != -1;
this.linux = detect.indexOf("linux") != -1;
this.unix = detect.indexOf("x11") != -1;

}
is = new BrowserCheck()


/*var displayMin = 65536;
var displayStr = Math.pow (2,screen.colorDepth);
 
if (displayMin > displayStr) {NewWindowCheck('control/farben.html','check',300,230,'no')}
else if (is.layers) {NewWindowCheck('control/browsercheck.html','check',300,300,'no')}
else if(screen.width<800 && screen.height<600) NewWindowCheck('control/bildschirm.html','check',300,230,'no')
else if(top.frames.length == 0)
{
document.write('<a href="http://www.riccon.de" style="text-decoration:none"  onfocus="this.blur()"><font face="Arial, Helvetica, sans-serif" size="2" color="#FF0000"><u>Zur Homepage</u></font></a><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><a href="impressum.html" style="text-decoration:none"  onfocus="this.blur()"><font face="Arial, Helvetica, sans-serif" size="2" color="#FF0000"><u>Impressum</u></font>');
}
else {}*/


// Fenster
var win=null;
function NewWindowCheck(mypage,myname,w,h,scroll)
{
breite=screen.width;
hoehe=screen.height;
LeftPosition=breite/2-w/2;
TopPosition=hoehe/2-h/2;

settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);
if (win.focus) win.focus()
}

