
function setSize() {
	var myWidth = 0, myHeight = 0, ff1=0, ff2=0;
	if( typeof( window.innerWidth ) == 'number' ) {
        // Firefox, Chrome
		myWidth = window.innerWidth; myHeight = window.innerHeight;
        ff1=190, ff2=143;
	} else if( document.documentElement && ( document.documentElement.clientWidth ||document.documentElement.clientHeight ) ) {
        // ?? 
		myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight;
        ff1=190, ff2=156;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 
		myWidth = document.body.clientWidth; myHeight = document.body.clientHeight;
        ff1=190, ff2=143;
	}
    fudgeH = -20;
    /* height now set in css with body and container set to 100%
    var contenttable_ = document.getElementById("contenttable"); 
    contenttable_.style.height = (myHeight - ff1) + "px";*/
    var lbcontent_ = document.getElementById("lbcontent"); 
    //alert(lbcontent_.clientHeight);
    var int_ht = (myHeight - ff2) + fudgeH;
    var set_ht = (lbcontent_.clientHeight > int_ht) ? lbcontent_.clientHeight :int_ht ;
    lbcontent_.style.height = set_ht + "px";
    //alert(lbcontent_.style.height);
    //var scrolldown_ = document.getElementById("scrolldown"); 

    //scrolldown_.style.top = (getTopPosition(lbcontent_) + lbcontent_.offsetHeight - 38) + 19 + "px";
    //scrolldown_.style.left = (getLeftPosition(lbcontent_) + 343 + 73) + "px";
    //
    //var cat_container_ = document.getElementById("cat_container"); 
    //cat_container_.style.visibility = 'visible';
}
function getPosition(obj){
    var topValue= 0,leftValue= 0;
    while(obj){
    	leftValue+= obj.offsetLeft;
    	topValue+= obj.offsetTop;
    	obj= obj.offsetParent;
    }
    finalvalue = leftValue + "," + topValue;
    return finalvalue;
}
function getTopPosition(obj){
    var topValue= 0;
    while(obj){
    	topValue+= obj.offsetTop;
    	obj= obj.offsetParent;
    }
    return topValue;
}
function getLeftPosition(obj){
    var leftValue= 0;
    while(obj){
    	leftValue+= obj.offsetLeft;
    	obj= obj.offsetParent;
    }
    return leftValue;
}

