/**
 *
 * @param {Object} id
 */
function montre(id){
    var d = document.getElementById(id);
    if (d) {
        d.style.display = 'block';
    }
}

/**
 *
 * @param {Object} id
 */
function cache(id){
    var d = document.getElementById(id);
    if (d) {
        d.style.display = 'none';
    }
}

/**
 *
 * @param {Object} frm
 * @param {Object} target
 */
function MM_Menulink(frm, target){
    URL = frm.options[frm.selectedIndex].value
    if (frm.selectedIndex != 0) {
        if (target == "blank") 
            mywindow = window.open('' + URL + '');
        else 
            if (target == "self") 
                document.location = URL;
            else 
                parent.frames[target].location = URL;
    }
}

/**
 *
 * @param {Object} targ
 * @param {Object} selObj
 * @param {Object} restore
 */
function MM_jumpMenu(targ, selObj, restore){ //v3.0
    eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
    if (restore) 
        selObj.selectedIndex = 0;
}

/**
 *
 */
function MM_preloadImages(){ //v3.0
    var d = document;
    if (d.images) {
        if (!d.MM_p) 
            d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments;
        for (i = 0; i < a.length; i++) 
            if (a[i].indexOf("#") != 0) {
                d.MM_p[j] = new Image;
                d.MM_p[j++].src = a[i];
            }
    }
}

/**
 *
 */
window.onload = function(){
    var oIFrames = document.getElementsByTagName('IFRAME');
    for (i = 0; i < oIFrames.length; i++) {
        window.frames[i].document.body.onscroll = function(){
            fSwapSelect('oDiv', true);
        }
    }
}

