var newwindow;
function openPopup(url)
{
	newwindow=window.open(url,'popup','height=550,width=800,toolbar=no,menubar=no,scrollbars=yes,resizable=yes');
	if (window.focus) {newwindow.focus()}
}


function hideAll()
{
    hideLayer('fhm_nights');
    hideLayer('angelina');
    hideLayer('fridaynight');
    hideLayer('kazbar');
}
	 
function show(div)
{
    var elem;
    if( document.getElementById ) // this is the way the standards work
        elem = document.getElementById(div);
    else if(document.all) // this is the way old msie versions work
        elem = document.all[div];
    else if(document.layers) // this is the way nn4 works
        elem = document.layers[div];
        
    if ((elem.style.display) == "none")

    {
        elem.style.display = 'block';
    }
    else
    {
        elem.style.display = 'none';
    }
}

function init(div)
{
    document.getElementById(div).style.display = 'block';
}
    
function hideLayer(layerName)
{
    var elem, vis;
    if( document.getElementById ) // this is the way the standards work
        elem = document.getElementById(layerName);
    else if(document.all) // this is the way old msie versions work
        elem = document.all[layerName];
    else if(document.layers) // this is the way nn4 works
        elem = document.layers[layerName];
    vis = elem.style;
    vis.display = 'none';
}
