﻿
function OpenDetail(source, title){
    var dialog;
    var location = '../detail.aspx?source=' + source + '&title=' + title;
    var width = 700;
    var height = 400;
    var topLocation = ((screen.availHeight ? screen.availHeight : (height + 30)) - height)/2;
    var leftLocation = ((screen.availWidth ? screen.availWidth : (width + 30)) - width)/2;
    var features = 'top=' + topLocation + ',left=' + leftLocation + ',width=' + width + ',height=' + height + ',toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0';
    
    dialog = window.open(location, '_detail', features);
    
    dialog.focus();
}

function SetDetailStatus(linkIds){
    for(var i = 0; i < linkIds.length; i++){
        var element = document.getElementById('DetailLink' + linkIds[i]);
        if(!element) continue;
        
        element.onmouseover = function(){ window.status = 'click for additional detail';return true;};
        element.onmouseout = function(){ window.status = ''; return true;};
    }
}