//lib for about footer 'about.js'
function getCenteredWindow(width,height)
{
    obj = new Object();
    obj.left = (screen.width-width)/2;
    obj.top = (screen.height-height)/2;
    return obj;

}

function openDialogWindow(url,name,dlgw,dlgh,dx,dy) {
    if (window.showModalDialog) {
        window.showModalDialog(url, name,
            "status:no;dialogWidth:"+dlgw+"px;dialogHeight:"+(dlgh+16)+"px;center;edge:sunken;scroll=0;help=0");
    } else {
        window.open(url, name,
            'height=' + dlgh + ',width=' + dlgw + ',left=' + dx + ',top=' + dy + ',toolbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,modal=yes');
    }
}

function showAboutWindow(url){

    var dlgw = 400;
    var dlgh = 310;
    var cent = getCenteredWindow(dlgw,dlgh);
    openDialogWindow(url,'aboutWindow',dlgw,dlgh,cent.left,cent.top);
}
//end lib for about footer 'about.js'
