//----------------------------------------------------------//
//                      Mediaplazza v6                      //
//----------------------------------------------------------//
// File:                mpv6.lib.js                         //
// Author:              Matt|UsrX                           //
// Creation date:       2003-10-15 02:01 :)                 //
// Last mod date:       2003-10-12 02:01 :)                 //
//----------------------------------------------------------//
// Lib javascript pour mpv6.                                //
//----------------------------------------------------------//
function writeInfo(info) {
    document.getElementById('imgInfo').innerHTML=info;
}
function GetInfo(id) {
    var o = document.getElementById(id);
    var mySrc = o.src.substring(o.src.lastIndexOf("/"));
    mySrc = mySrc.substring(1);
    var txt = '[<b>'+mySrc+'</b> | <b>';
    txt += o.height;
    txt += 'x'+o.width+'</b>]';
    writeInfo(txt);
}
function mpChangePropertie(oref,prop,val) {
    for(var i=0; i<8; i++) {
        o = document.getElementById('o_'+oref+'_'+i);
        if (o) {
            o.style[prop] = val;
        }
    }
    //document.getElementById('o_'+oref).style[prop] = val;
}
function chTdCol(ref, sens) {
    o = document.getElementById(ref);
    if(o) {
        if(sens == 1) {
            o.style.background = '#FFFFFF';
            o.style.color = '#292929';
            o.style.cursor = 'pointer';
        }else{
            o.style.background = '#efefef';
            o.style.color = '#575757';
            o.style.cursor = 'normal';
        }
    }
}

function chTdColor(o, sens) {
    if(o) {
        if(sens == 1) {
            o.style.background = '#FFCC00';
            o.style.color = '#FFFFFF';
            o.style.cursor = 'pointer';
        }else{
            o.style.background = '#949494';
            o.style.color = '#FFFFFF';
            o.style.cursor = 'normal';
        }
    }
}

function chMenuColor(o, sens) {
    if(o) {
        if(sens == 1) {
            this.className='classe2';
        }else{
            this.className='classe1';
        }
    }
}

function chMenuColorOld(o, sens) {
    if(o) {
        if(sens == 1) {
            o.style.background = '#FFCC00';
            o.style.color = 'white';
            o.style.cursor = 'pointer';
        }else{
            o.style.background = '#FFFFFF';
            o.style.color = '#949494';
            o.style.cursor = 'normal';
        }
    }
}


function go(url) {
    self.location = url;
}
