/// <reference name="MicrosoftAjax.js" />
/// <reference path="jquery-1.3.2-vsdoc2.js" />
/// <reference path="EICv3.js" />

window.alert = function(txt) {
    eic.alertDebug(txt);
};

$(document).ready(function() {
    eic.createExternalLinks();
    var display = $('.pop').css("display");
    
    if (display == "block")
        _set_interface();
    else
        $('#jquery-overlay_c').css("display", "none");

    $("#fechar").click(function() {
        $('.pop').hide();
        $('#jquery-overlay_c').hide();
    });

    $('div.select').click(function() {
        $(this).find("ul").toggle("normal");
        $(this).find("ul > li").click(function() {
            $(this).parent().prev().text($(this).text());
            $(this).parent().prev().attr("id", $(this).attr("id"));
        });
    });
});

function EventShow(div) {

    $("#" + div).removeAttr('filter');
    if ($("." + div).hasClass(div)) {
        $("." + div).addClass(div + "_on");
        $("." + div).removeClass(div);
        $("#" + div).fadeIn();
    }
    else {
        $("." + div + "_on").addClass(div);
        $("." + div + "_on").removeClass(div + "_on");
        $("#" + div).fadeOut();
    }
}

function _set_interface() {
    $('#jquery-overlay_c').css('height', $(document).height()).hide();
    $('#jquery-overlay_c').toggle();
}
       

