function openWindow (url) {
    window.open(url);
}

function openPhoto (url) {
    options = 'width=340,height=500,scrollbars=yes';
    window.open(url,'',options);
}

function openGallery (url) {
    options = 'width=340,height=433';
    window.open(url,'',options);
}

function openVideo (url) {
    options = 'width=340,height=463';
    window.open(url,'',options);
}

function openAudio (url) {
    options = 'width=210,height=154';
    window.open(url,'',options);
}

function closeWindow () {
    window.close();
}

function interceptLinks () {
    txt = 'This area is only available within the AOL client.';
    for (i = 0; i < document.links.length; i++) {
        url = document.links[i].href;
        if (url.substring(0,6) == 'aol://') {
            document.links[i].href = 'javascript: alert("'+txt+'");';
        }
    }
}
