/*
	browser-Variable aus nse_inc_allg: 
	
	ff IsFirefox 
	ie MSExplorer 
	ismac = Mac 
	iswin = Windows 
	ns4 Netscpe 4
	ns6 Netscpe 6
	ns7 Netscpe 7
*/

function chClassName (ooo, cl) {
	if (document.getElementById(ooo)) document.getElementById(ooo).className = cl;
}

function ZuFavoriten(){
	if (ie || ff) {
		window.external.AddFavorite(top.location.href, top.document.title);
	}
	if (ns4 || ns6 || ns7)	{
		alert("Dr&uuml;cken Sie STRG + D um die Seite als Bookmark aufzunehmen.\n Please press STRG + D to bookmark this site.");
	}
}


function checkBrowser () {
	var nMSIE = 0;
	var nNS = 0;
	// OS
	isMac  = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
	isPC   = (navigator.appVersion.indexOf("Windows")!=-1) ? true : false;
	isUnix = (navigator.appVersion.indexOf("Unix")!=-1) ? true : false;
	// MS Browser
	var ie4=document.all
	if (ie4) nMSIE = 4;
	var ie5=document.getElementById&&document.all;
	if (ie5) nMSIE = 5;
	var ie6= (navigator.appVersion.indexOf("MSIE 6.")!=-1);
	if (ie6) nMSIE = 6;
	var ie7= (navigator.appVersion.indexOf("MSIE 7.")!=-1);
	if (ie7) nMSIE = 7;
	//alert(navigator.appVersion + ", Browser: " + nMSIE);
	// NS Browser
	var ns4=document.layers
	if (ns4) nNS = 4;
	var ns6=document.getElementById&&!document.all
	if (ns6) nNS = 6;
	
	if (nMSIE > 0) sBrowser = "MS " + nMSIE;
	else sBrowser = "NS " + nNS;
	return sBrowser;
}

/*
	Useragent: navigator.userAgent;
    var ns="";
    ns = ns+"&scrw=" +screen.width;
    ns = ns+"&scrh=" +screen.height;
    ns = ns+"&scrcd="+screen.colorDepth;
    ns = ns+"&winiw="+window.innerWidth;
    ns = ns+"&winih="+window.innerHeight;
    ns = ns+"&navL=" +navigator.language;
    ns = ns+"&navCE="+navigator.cookieEnabled;
    ns = ns+"&navJE="+navigator.javaEnabled();
    var ie="";
    ie = ie+"&navuL="+navigator.userLanguage;
    ie = ie+"&docw=" +document.body.offsetWidth;
    ie = ie+"&doch=" +document.body.offsetHeight;
    var jsr = "&jsr="+document.referrer;
    var ua  = "&navuA="+navigator.userAgent;
*/
