function Is() {

	this.ns = document.layers;
	this.ie = document.all;
	this.dom = document.documentElement;

	var agent = navigator.userAgent.toLowerCase();
	this.IE_Browser = agent.indexOf("msie") != -1;
	this.win = agent.indexOf("win") != -1;
	this.mac = agent.indexOf("mac") != -1;
	this.unix = agent.indexOf("x11") != -1;

}

var is = new Is(); 

function einbindenCss( nsCss, domCss ){

	var css = "";

	if ( is.ns ) {
		css = nsCss;
	} else {
		css = domCss;
	}
	document.write( '<link rel="stylesheet" type="text/css" href="' + css + '">' );	
}

function getObjById( id ) {
	
	var vorne = "";
	var hinten = "";

	if ( is.ns ){
		vorne = 'document.';
	}
	if ( is.ie ){
		vorne = 'document.all.';
	}
	if ( is.dom ){
		vorne = 'document.getElementById("';
		hinten = '")';
	}

	if ( vorne != "" ) {
		return eval( vorne + id + hinten );
	} else {
		return "Unbekannter Browser !";
	}

}

function getObjStyleById( id ) {
	
	
	var vorne = "";
	var hinten = "";

	if ( is.ns ){
		vorne = 'document.';
	}
	if ( is.ie ){
		vorne = 'document.all.';
		hinten = '.style';
	}
	if ( is.dom ){
		vorne = 'document.getElementById("';
		hinten = '").style';
	}

	if ( vorne != "" ) {
		return eval( vorne + id + hinten );
	} else {
		return "Unbekannter Browser !";
	}

}

