var mtt = 0;
var om = -1;
var tt1 = 0, tt2 = 0;

function m(x,st) {
mtt=0;
clearTimeout(tt1);
tt1=0;
clearTimeout(tt2);
tt2=0;
var d = document.getElementById('m'+x);
var dh = document.getElementById('mh'+x);
if (st) { d.style.display = 'block';d.style.opacity=1;
d.style.filter='alpha(opacity=100)';
dh.className='a';
if (om!=x && om>=0) { document.getElementById('m'+om).style.display='none';
document.getElementById('mh'+om).className='' } om = x;
}else{
om = -1;
d.style.display = 'none';
dh.className = '';
} }


function mt(x,st) { if (!tt1&&!mtt) {
mtt = 5;
tt1 = setTimeout('mo('+x+','+st+')',150);
} }



function mo(x,st) {
clearTimeout(tt1);
tt1=0; if (mtt) {
if (!--mtt) { m(x,st);
}else{
var d = document.getElementById('m'+x);
var op = mtt*20+10;d.style.opacity=op/100;
d.style.filter='alpha(opacity='+op+')';
tt2 = setTimeout('mo('+x+','+st+')',50); } } }



var pdrx = 1;

function drx(i)
    {
    if (i == pdrx)
        return;
    var pi = document.getElementById('drxi' + pdrx);
    var pt = document.getElementById('drxt' + pdrx);
    pi.style.display = 'none';
    pt.className = 'n';
    var ai = document.getElementById('drxi' + i);
    var at = document.getElementById('drxt' + i);
    ai.style.display = 'block';
    at.className = 'a';
    pdrx = i;
    }


function ph(e) {
document.getElementById("im").src='/images/uploads/'+e;
}

function ph100(id,rubrid,w,h) {

var v=window.open('/alb/?id='+id+'&rubid='+rubrid,'_new','width='+(w+20)+',height='+(h+60)+',toolbar=no,directories=no,menubar=no,resizable=no,status=no'); v.focus()

}

