function showDescription(pPluginId, pLanguage)
{
    w = 400;
    h = 300;
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2 - 50; // -50px for the taskbar
    winprops = 'height='+h+', width='+w+', top='+wint+', left='+winl+', scrollbars=yes, menubar=yes, resizable';
    win = window.open("pop_description.php/?plugin_id=" + pPluginId +"&language=" + pLanguage, "pop_description", winprops);
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function showImage(pPluginId, pImageId)
{
    w = 800;
    h = 600;
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2 - 50; // -50px for the taskbar
    winprops = 'height='+h+', width='+w+', top='+wint+', left='+winl+', scrollbars=yes, menubar=yes, resizable';
    win = window.open("redirect.php?type=screen_capture" + pImageId + "&plugin_id=" + pPluginId , "pop_description", winprops);
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function showImageFromUrl(pImageUrl)
{
    w = 900;
    h = 700;
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2 - 50; // -50px for the taskbar
    winprops = 'height='+h+', width='+w+', top='+wint+', left='+winl+', scrollbars=yes, menubar=yes, resizable';
    win = window.open(pImageUrl, "pop_description", winprops);
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}