var ptpServer = "www.pictopia.com";
var providerID = 40;
var namespace = 'dallasmn';
var ptpName = '';
var ptpSiteBase = window.location.hostname;

function goPtp (name, title, pps) {
    switch(pps) {   
        case("dmnpt"): ptpName = new String(name);
            ptpName = ptpName.replace(/\/sharedcontent\/dws\/pt\/photos\//g, "");
            break;
        default: ptpName = new String(name);
        }
        win = window.open('http://' + ptpServer + '/perl/ptp/' + namespace + '?photo_name=' + ptpName + '&embedded=y' + '&thumbnail_url=' + ptpSiteBase + name +  '&title=' + title + '&pps=' + pps + '&time=' + new Date().getTime(), 'ptp_' + providerID, 'scrollbars=yes, resizable=yes, toolbar=no, ' + 'status=yes, width=670,height=700, menubar=no');
        win.focus();
}

// eof goPtp

function ssPop2(pageName) {
    var ssWin = window.open(pageName,"largeWin","top=0,left=0,width=960,height=760,directories=no,resizable=yes,menubar=no,scrollbars=yes,toolbar=no,location=no ,statusbar=no");
    ssWin.focus();
}
