var hT={}, sT={};
function Show(objId, x) {
var obj = document.getElementById(objId);
op = (obj.style.opacity)?parseFloat(obj.style.opacity):parseInt(obj.style.filter)/100;
if(op < x) {
clearTimeout(hT[objId]);
op += 0.1;
obj.style.opacity = op;
obj.style.filter='alpha(opacity='+op*100+')';
sT[objId]=setTimeout('Show(\''+objId+'\', '+x+')',30);
}
}
function Hide(objId, x) {
var obj = document.getElementById(objId);
var ieop = obj.style.filter.match(/alpha\(opacity=(.*)\)/);

if(ieop && ieop.length)

ieop = ieop[1];

else

ieop = 100;

op = (obj.style.opacity)?parseFloat(obj.style.opacity):parseInt(ieop)/100; 
if(op > x) {
clearTimeout(sT[objId]);
op -= 0.1;
obj.style.opacity = op;
obj.style.filter='alpha(opacity='+op*100+')';
hT[objId]=setTimeout('Hide(\''+objId+'\', '+x+')',30);
}
}