//Transparenz in verschieden Browsern wechseln 
function changeOp(opacity, id) { 
    var object = document.getElementById(id).style; 
    object.opacity = (opacity / 100); 
    object.MozOpacity = (opacity / 100); 
    object.KhtmlOpacity = (opacity / 100); 
    object.filter = "alpha(opacity=" + opacity * 100 + ")"; 
}

var i = 100;
function op(id, opStart, opEnd, geschw) {
var uhr = 0;
function x() { window.setTimeout("changeOp(" + i + ",'" + id + "')",(uhr * geschw));
uhr++;
}
if(opStart > opEnd) {
for(i = opStart; i >= opEnd; i--) {
x();
}
} else if(opStart < opEnd) { 
for(i = opStart; i <= opEnd; i++) 
{ 
x();
} 
} 
} 

function aus(id) {
op(id, 99, 40, 4.5);
}
function ein(id) {
op(id, i, 99, 4.5);
}
