

/* [only lt IE7] add new items to the array of selects we don't want to hide on TopNavigation Mouseover */
sfHover_NoHide_selects.push('MSDS_List','Problems','cat','Products');


/* interaction on Distributor Contact map  */
function hideElement ( element ) {
    element.style.display = 'none';
}

function showElement ( element ) {
    // FF and other w3c compliant browser: avoid bubbles to be croped / partially invisible
    document.getElementById('CenterColumn').style.overflow = 'visible'; 

    var arrBubbles = $$('.map .Contact');
    for (var i=0; i < arrBubbles.length; i++) {
        arrBubbles[i].style.display = 'none';
    }
    document.getElementById( element ).style.display = 'block';
}


/* Problems / Markets Overview */

function loadTable ( name, catID ) {
    var url = location.href;
    var queryStart = (url.indexOf( '?open' ) <0) ? "?open" : "";
    var begin = url.indexOf( '&catID' );
    var beginCat = url.indexOf( '&cat' );
    var end = url.length;
    if ( begin != -1)
       location.href = location.href.slice( 0, begin ) + '&catID=' + catID + '&cat=' + name
    else 
       location.href = location.href  + queryStart + '&catID=' + catID + '&cat=' + name
}
