connectionmodal=0;
function connection() {
if (connectionmodal) {
document.getElementById("bgconnection").style.display="none";
connectionmodal=0;
} else {
document.getElementById("bgconnection").style.display="block";
connectionmodal=1;
}
}

function showbbcat() {
document.getElementById("bb_bgcat").style.background="url('/i/bb_bgcat.gif') center 264px no-repeat";
document.getElementById("amobbcatcnt").style.display="block";
document.getElementById("librarycatcnt").style.display="none";
}

function showlibrarycat() {
document.getElementById("bb_bgcat").style.background="url('/i/bb_bgcat.gif') center 264px no-repeat";
document.getElementById("librarycatcnt").style.display="block";
document.getElementById("amobbcatcnt").style.display="none";
}


function genIframe(debug) {
debug=1;
document.getElementById("iframeholder").innerHTML = '<iframe name="hiddeniframe" frameborder="0" '+((debug)?'width="400" height="150"':'width="1" height="1"')+'></iframe>';
}

function getExt(filename) {
    var ext = filename.split('.').pop();
    if(ext == filename) return "";
    return ext;
}
