
var vmenuId = null;
var intHide = null;

function menuv(f) {
    if (null==vmenuId) return;
    var ets = document.getElementById(vmenuId);
    if (typeof(ets) != 'undefined') {
        if (ets.style.display != f) {
            ets.style.display = f;
        }
    }
}


function menushow(mid,f) {
    if (f) { //show
        intHide = window.clearTimeout(intHide);
        if (mid != vmenuId) {
            menuv('none');
            vmenuId = mid;
            menuv('');
        } else {
            menuv('');
        }
    } else {
        intHide = window.clearTimeout(intHide);
        intHide = window.setTimeout('menuv(\'none\')', 500);
        vmenuId = mid;
    }
}

function showImg(id) {
 var img = document.getElementById('img' + id);
 if (img && img.width != 1 && img.height != 1) {
  img.nextStyle='block';
  img.style.display='block';
 }
}
function hideImg(id) {
 var img = document.getElementById('img' + id);
 img.nextStyle='none';
 var closure=function() {
	 img.style.display=img.nextStyle;
 }
 setTimeout(closure,100);
}

function video(url)
{
	window.open(url,'_blank', 'directories=no,location=no,resizable=yes,scrollbars=no,top=50, width=340, height=335');
	return false;
}
