function pngalpha() {
	
	if( navigator.appVersion.indexOf('MSIE 6.0') > 0 ) {

		var picId = 0;
		
		var overlayimage = 'images/spacer.gif';

		while( picId < document.images.length ) {
	
			//Bildtyp ermitteln
			var ext = document.images[picId].src;
			ext = ext.substring(ext.length-3,ext.length);
			ext = ext.toLowerCase();

			if( ext == 'png' ) {

				var src = document.images[picId].src;
				var height = document.images[picId].height;
				var width = document.images[picId].width;

				document.images[picId].src = overlayimage;
				document.images[picId].height = height;
				document.images[picId].width = width;
				document.images[picId].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='scale')";
	
			}

			++picId;
	
		}

	}
	
}


window.onload = pngalpha;

wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {

	if( e ) {
	
		offsexX = window.pageXOffset;
		offsetY = window.pageYOffset;
		
	}
	else {
		
		offsexX = document.documentElement.scrollLeft;
		offsetY = document.documentElement.scrollTop;
		
		e = window.event;
		
	}
		
	x = e.clientX + offsexX + 20 - ( document.body.offsetWidth - 950 )/2;
	y = e.clientY + offsetY + 30;
	
	if( wmtt != null ) {
		
		wmtt.style.left = x + "px";
		wmtt.style.top = y + "px";
		
	}
	
}

function showWMTT(id) {
	wmtt = document.getElementById(id); //
	wmtt.style.display = "block";
	
	fade('in', id);
}

function hideWMTT(id) {
	
	fade('out', id);
	
	wmtt.style.display = "none";
}

function fade(a, o) {
	
	var myMaxOpacity = 100;

	var myOpacityStep = 10;
	
	var myObject = document.getElementById(o);

	myCurrentOpacity = navigator.appName == 'Microsoft Internet Explorer' ? parseInt(myObject.style.filter.substr(14, myObject.style.filter.length-15)) : myMaxOpacity * myObject.style.opacity;

	if( !myCurrentOpacity ) myCurrentOpacity = 0;

	if( a == 'in' ) var myOpacity = myCurrentOpacity + myOpacityStep;
	else if( a == 'out' ) var myOpacity = myCurrentOpacity - myOpacityStep;
	else alert('Error');
	
	if( ( a == 'in' && myOpacity <= myMaxOpacity ) || ( a == 'out' && myOpacity ) ) {
		
		navigator.appName == 'Microsoft Internet Explorer' ? myObject.style.filter = 'alpha(opacity='+myOpacity+')' : myObject.style.opacity = (myOpacity/myMaxOpacity);

		setTimeout("fade('"+a+"', '"+o+"')", 20);
	
	}
	
}