﻿var intPadding = 4;
var intMarginLeft = 0;
var intMarginRight = 0;


function fun() {

    var aryDivs = document.getElementsByTagName('DIV');
    var intHeight = 0;

    for (var x = 0; x <= aryDivs.length - 1; x++) {
        if (aryDivs[x].getAttribute('AreaItem') != null) {
            intHeight = Sys.UI.DomElement.getBounds(aryDivs[x].parentNode).height;
            aryDivs[x].style.height = intHeight + 'px';
            aryDivs[x].style.maxHeight = intHeight + 'px';
            aryDivs[x].parentNode.style.height = intHeight + 'px';
            aryDivs[x].parentNode.style.maxHeight = intHeight + 'px';
        }
    }
}
function MouseEv(elm) {
    if (elm.getElementsByTagName('UL').length > 0) {
        elm.getElementsByTagName('UL').item(0).style.display = '';
        if (elm.getElementsByTagName('UL').item(0).getElementsByTagName('UL').length > 0) {
            var aryUls = elm.getElementsByTagName('UL').item(0).getElementsByTagName('UL');
            for (var x = 0; x <= aryUls.length - 1; x++) {
                aryUls[x].style.display = '';
            }
        }
    }
}