﻿function TdmRoleManager(clientId, concernsPanelId, questionsPanelId) {
    this.clientId = clientId;
    this.concernsPanelId = concernsPanelId;
    this.questionsPanelId = questionsPanelId;
}

TdmRoleManager.prototype.showPanel = function(showConcerns) {

    $get(this.concernsPanelId).style.display = showConcerns ? "block" : "none";
    $get(this.questionsPanelId).style.display = !showConcerns ? "block" : "none";

    //alert($get(this.concernsPanelId).style.display);
}

/*
function rotate(left)
{
getMoveAnimation().set_target($get('<%= this.ClientID %>_RoleImagesBlock'));
getMoveAnimation().set_horizontal(left ? -68 : 68);
getRotateAnimation().play();
}

function getMoveAnimation()
{
return getRotateAnimation().get_animations()[1];
}

function getRotateAnimation()
{
return $find('<%= this.ClientID %>_Rotate').get_OnClickBehavior().get_animation();
}
*/

if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();