﻿function doOverlay(id) {
    pp = document.getElementById(id);
    if (pp.style.display == "inline") {
        pp.style.display = (pp.style.display == "inline") ? "none" : "inline";
    } else if (pp.style.display == "block") {
        pp.style.display = (pp.style.display == "block") ? "none" : "block";
    } else {
        pp.style.display = (pp.style.display == "inline") ? "none" : "inline";
    }  
}

function showTable(tabid) {
    $get(tabid).style.display = 'block';
    return false;
}

var srcData;
var img;
function SetImagePreview(srcImgId, srcDataId, hfId, themeId) {
    $('#imagePreview').fadeOut(700);
    img = $get(srcImgId);
    var hf = $get(hfId);
    srcData = srcDataId;
    hf.value = themeId;
    setTimeout("SetSourceData()", 700);
    clearTimeout("SetSourceData()");
    return false;
}

function SetSourceData() {
    img.src = srcData;
    $('#imagePreview').fadeIn(700);
}

function Show(pnlId) {
    document.getElementById(pnlId).style.display = 'inline';
    return false;
}

function Close(pnlId) {
    document.getElementById(pnlId).style.display = 'none';
    return false;
}
