function showimg(room_filename, i) {
    var a = ['lobby', 'table', 'website'];
    document.getElementById('itd1').className = '';
    document.getElementById('itd2').className = '';
    document.getElementById('itd3').className = '';
    
    document.getElementById('itd'+i).className = 'active';
    
    document.getElementById("simg").src = "/i/" + room_filename + "/" + a[i-1] + "_.jpg";
    document.getElementById("sbigimg").href = "/i/" + room_filename + "/" + a[i-1] + ".jpg";    
}

function url(t) { window.open('/url/' + t + '/', '_blank'); }
function download(t) { window.open('/download/' + t + '/', '_blank'); }
function content(t) { window.open('/content/' + t + '/', '_blank'); }

function go(t) { window.open(t, '_blank'); }


function mon(t) {
  window.status = t; 
  return true;
}

function mout() {
  window.status = ''; 
  return true;
}

function toggleAff() {
    var obj = document.getElementById('oAff');
    var is_hidden = obj.style.display == 'none'; 
    obj.style.display = is_hidden ? 'block' : 'none';
    obj = document.getElementById('oAffBt');
    obj.className = is_hidden ? 'dwn' : 'aff';    
}

function bookmarkSite() {
var title = 'Online Poker Explorer';
var url = 'http://www.online-poker-explorer.com/?fav';
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}