/* ýÿýÿýÿýÿýÿýÿýÿýÿýÿ ýÿýÿýÿýÿýÿýÿ ýÿýÿýÿýÿýÿýÿýÿýÿýÿ */





/* ýÿýÿýÿýÿýÿýÿ ýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿ  GetElementById*/



function _GetElementById(id){



    if(typeof(id)!='string') return id;



    if(document.getElementById){



	return document.getElementById(id);



    }else if(document.all){



	return document.all[id];



    }else if(document.layers){



	return document.layers[id]; //maybe I need ta del it?



    }else{



        return null;



    }



}



function _Num(n) {



  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])!='number') return false;}



  return true;



}



function _Def() {



  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])=='undefined') return false;}



  return true;



}



function _Str(s) {



  for(var i=0; i<arguments.length; ++i){if(typeof(arguments[i])!='string') return false;}



  return true;



}



/* ýÿýÿýÿýÿýÿýÿýÿýÿýÿ ýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿ ýÿýÿýÿýÿýÿýÿ ýÿýÿýÿýÿýÿýÿýÿ*/



function _Height(e,uH) {



  if(!(e=_GetElementById(e))) return 0;



  if (_Num(uH)) {



    if (uH<0) uH = 0;



    else uH=Math.round(uH);



  }



  else uH=-1;



  var css=_Def(e.style);



  if(css && _Def(e.offsetHeight) && _Str(e.style.height)) {



    if(uH>=0) _SetCH(e, uH);



    uH=e.offsetHeight;



  }



  else if(css && _Def(e.style.pixelHeight)) {



    if(uH>=0) e.style.pixelHeight=uH;



    uH=e.style.pixelHeight;



  }



  return uH;



}







/*ýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿýÿ ýÿýÿýÿýÿýÿ */



function H() {



var a=_Height('news');



var b=_Height('main');





if (a<b){document.getElementById('news').style.height = _Height('main')+'px';



}



}
