<!-- 

// Browsertyp ermitteln
var B_Type = new crossBrowserType();
function crossBrowserType() {		
	this.IE = false;
	this.NS4 = false;
	this.NS6 = false;
	this.OPERA = false;
	this.MAC = false;
	this.id = "";
	
	var agt = navigator.userAgent.toLowerCase();
	
	if(agt.indexOf("opera") != -1) {this.OPERA = true; this.id = "OPERA";}
	else if(document.all) {this.IE = true; this.id = "IE";}
	else if(document.getElementById) {this.NS6 = true; this.id = "NS6";}
	else if(document.layers) {this.NS4 = true; this.id = "NS4";}
	
	if(agt.indexOf("mac") != -1) {
		this.MAC = true;		
	}
}

// Mausposition zurückgeben
var crossMouseX, crossMouseY;
if(B_Type.NS4) document.captureEvents(Event.MOUSEMOVE);

function crossMousePosition(e) {
	if(B_Type.IE) {
		if(B_Type.MAC) {
			crossMouseX=event.x + document.body.scrollLeft; 
			crossMouseY=event.y + document.body.scrollTop;
		} else {
			crossMouseX=event.x; 
			crossMouseY=event.y;			
		}
			
	} else {
		crossMouseX=e.pageX; crossMouseY=e.pageY;
	}
}

// Objekt positionieren x/y
function crossMoveTo(obj, x, y) {
	if(B_Type.IE) {obj.style.pixelLeft=x; obj.style.pixelTop=y;}
	else if(B_Type.NS4) {obj.left=x; obj.top=y;}
	else if(B_Type.NS6 || B_Type.OPERA) {obj.style.left=x+"px"; obj.style.top=y+"px";}
}

// browserspezifisches DHTML-Objekt anhand von ID zurückgeben
function crossGetObject(id) {
	var obj = null;
	if(B_Type.IE) obj=document.all[id];
	else if(B_Type.NS6 || B_Type.OPERA) obj=document.getElementById(id);
	else if(B_Type.NS4) obj=document.layers[id];
	return obj;
}

// Objekt anzeigen
function crossShowObject(obj) {
	if(B_Type.IE || B_Type.NS6 || B_Type.OPERA) {		
		obj.style.visibility="visible";		
	} else if(B_Type.NS4) {
		obj.visibility="show";
	}
}

// Objekt ausblenden
function crossHideObject(obj) {
	if(B_Type.IE || B_Type.NS6 || B_Type.OPERA) {
		obj.style.visibility="hidden";
	} else if(B_Type.NS4) {
		obj.visibility="hide";
	}
}

function crossWrite(obj, text) {		
	if(B_Type.IE) obj.innerHTML = text;
	else if(B_Type.NS6 || B_Type.OPERA) obj.innerHTML = text;
	else if(B_Type.NS4) {
		obj.document.open();
		obj.document.write(text);
		obj.document.close();
	}
}

//-->
