
var globalCurrentHighlight = "divBannerItem1";
var debug = 0;

function InitJS()
    {
    var id;
//    alert( globalBaseURL);

    // fix columns
    SetColumnHeights( 'divMainContainer', 'divSidebarLeft', 'divSidebarRight', 31);

    // fix vertical separators
    SetColumnHeights( 'divMainContainer', 'divSepVertLeft', 'divSepVertRight', 0);

//    SetSlide( '', 0);
    }

//
function BuildImageName( filename)
    {
    var name;

    name = "url(" + globaltemplateURL + "/images/" + filename + ")";

//    alert( name);
    return( name);
    }



function SetColumnHeights( id1, id2, id3, offset)
    {
    // find the height of the tallest column, set the columns
    var h, h1, h2, h3;
    var d1 = document.getElementById( id1);
    var d2 = document.getElementById( id2);
    var d3 = document.getElementById( id3);

    if ( d1 && d2 && d3)
    {

    h1 = d1.offsetHeight;
    h2 = d2.offsetHeight;
    h3 = d3.offsetHeight;

//    alert( ' d1 oh ' + d1.offsetHeight);
//    alert( ' d2 oh ' + d2.offsetHeight);
//    alert( ' d3 oh ' + d3.offsetHeight);

    h = h1;
    if ( h2 > h)
        h = h2;
    if ( h3 > h)
        h = h3;

//    h = h + "px";

//    alert( '1 dml h ' + document.getElementById( 'div_menuleft').style.height);
//    alert( '1 dr h ' + document.getElementById( 'div_right').style.height);

    var hMod = h - offset; // ? unique to layout

    document.getElementById( id1).style.height = (hMod) + "px";
    document.getElementById( id2).style.height = h + "px";
    document.getElementById( id3).style.height = h + "px";

//    alert( '2 dml h ' + document.getElementById( 'div_menuleft').style.height);
//    alert( '2 dr h ' + document.getElementById( 'div_right').style.height);

    }
//    else
//        alert( 'column div ids?');

    }

