Inpl.NewsSwitcher=new function(){
var _1;
this.init=function(_2){
_1=$(_2).getElementsByTagName("li");
for(var i=0,size=_1.length;i<size;i++){
_1[i].onmouseover=new Function("Inpl.NewsSwitcher.rollOver("+i+"); return false;");
}
this.recalc();
};
this.rollOver=function(_4){
for(var i=0,size=_1.length;i<size;i++){
_1[i].className=_1[i].className.replace(" selected","");
}
_1[_4].className+=" selected";
if(document.all&&!window.opera){
if(typeof document.body.style.maxHeight=="undefined"){
this.recalc();
}
}
};
this.recalc=function(){
var _6=[];
for(var i=0,size=_1.length;i<size;i++){
_6.push(parseInt(_1[i].getElementsByTagName("div")[0].clientHeight));
}
_6.sort(compare);
for(var i=0,size=_1.length;i<size;i++){
_1[i].getElementsByTagName("div")[0].style.height=_6[_6.length-1]+"px";
}
};
function compare(a,b){
return (a-b);
}
function $(el){
return document.getElementById(el);
}
};


