
var Win=/(Win)/.test(navigator.userAgent);
var Mac=/Mac/.test(navigator.userAgent);

var MSIE5 = /(MSIE 6.)/g.test(navigator.userAgent);
if(!MSIE5)MSIE5 = /(MSIE 5.)/g.test(navigator.userAgent);
var NN=(document.all?false:true);

var inputHeight=(Win||NN)?14:10;
var LetSize=(Win||NN)?9:7;

function d(p){return document.write(p);}
function Style(p){
	if(document.all) return document.all(p).style;
	else return document.getElementById(p).style;
	}

d('<style> a {font-family:Arial;font-size:'+((document.all)?9:10)+'pt;margin-left:5px;color:black;text-decoration:none;}</style>');
	
function ebene(p){
	if(document.all) return document.all(p);
	else return document.getElementById(p);
	}


var Img=new Array();

function PreLoad(p){
	var l=document.images.length;
	Img[l]=new Image();
	
	if(p.search(/png/)!=-1)Img[l].src="Bilder/"+p;
	else Img[l].src="Bilder/"+p+".jpg";
	
	return Img[l].src;
}

function PicChange(q,p){
	document.images[q].src=PreLoad(p);
}

	// Global vars for Positioning ToolTips to MouseCursor
				var glob_ttpos_x = -320;
				var glob_ttpos_y = 15;
	
	wmtt = null;
	wmtt2 = null;
	
	document.onmousemove = updateWMTT;

	function updateWMTT(g) {
		if (document.all && window.event != null && document.body != null || g != null) {
			x = (document.all) ? window.event.x + document.body.scrollLeft + 100 : g.pageX+100;
			y = (document.all) ? window.event.y + document.body.scrollTop  : g.pageY;
		}
		if (wmtt != null) {
			wmtt.style.left = (x + glob_ttpos_x) + "px";
			wmtt.style.top 	= (y + glob_ttpos_y) + "px";
		}
	}

	function showWMTT(Trigger,id) {
	    wmtt = document.getElementById(id);
	    wmtt2 = document.getElementById("tooltip2");
	    var hint;
	    hint = Trigger.getAttribute("hint");
	    if((hint != null) && (hint != "")){
	    wmtt2.innerHTML = hint;
	    wmtt.style.display = "block";
	    wmtt2.style.display = "block";
	    }
	}


	function hideWMTT() {
		wmtt.style.display = "none";
	}
		
		

