

function load_body (j,i) {
var window_width=document.documentElement.clientWidth ;
var margin1=(window_width-780)/2 + "px" ;
document.getElementById("div_frcontent").style.marginLeft=margin1 ;


//var window_height=document.documentElement.clientHeight  ;
//var document_height= positionT("bot") - positionT("div_frcontent")  ;
//if (document_height < 580) document_height=580 ;

//if (window_height > document_height) {
//var margin2=(window_height - document_height)/2 + "px" ;
//document.getElementById("div_frcontent").style.marginTop=margin2 ;   }


obj=document.getElementById("titletr") ; // tr  containing a
var as=obj.getElementsByTagName("a");
as[(j-1)].style.color="white";

obj=document.getElementById("kavtr") ; // tr  containing td
var tds=obj.getElementsByTagName("td");
tds[(j-1)].style.backgroundImage="url(images/yellowb.gif)";

if (arguments.length > 1)  {
obj=document.getElementById("submenu") ; // p  containing spans
var al=obj.getElementsByTagName("span");
al[(i-1)].className="sel" }

document.getElementById("div_frcontent").style.visibility="visible" ;
	

}

function positionT(id) {
    var offsetTrail = document.getElementById(id);
    var offsetTop = 0;
    while (offsetTrail) {
    offsetTop=offsetTop + offsetTrail.offsetTop;
    offsetTrail = offsetTrail.offsetParent; }
	return offsetTop
	}


	function positionL(id) {
    var offsetTrail = document.getElementById(id);
    var offsetLeft = 0;
    while (offsetTrail) {
    offsetLeft=offsetLeft + offsetTrail.offsetLeft;
    offsetTrail = offsetTrail.offsetParent; }
	return offsetLeft
	}



