﻿var currentBehaviorName;

function ShowInfoPopup(behaviorName, title, text) {

    //alert(document.getElementById("divHead"));
    document.getElementById("divHead").innerHTML = title;
    document.getElementById("divText").innerHTML = text;
    
    ShowPopUp(behaviorName);

} // function

// this method shows the product popup
function ShowPopUp(behaviorName) {
    currentBehaviorName = behaviorName;

    // find the matching behaviour and show
    $find(behaviorName).show();

    return true;

} // function ShowPopUp


// this method hides the product popup
function HidePopUp() {

    // search the matching behaviour and hide
    window.setTimeout("$find(currentBehaviorName).hide()", 500);

    return false;

}  // function HidePopUp
