// ����� ��������
function showImage(image) {
    var img = "<img src='" + image + "' style='margin-top:-140px;' />";
    //when IE - fade immediately
    if(jQuery.browser.msie)
    {
        jQuery('#opaco').height(jQuery(document).height()).toggleClass('hidden').click(function(){
            jQuery(this).togglePopup();
        });
    }
    else
    //in all the rest browsers - fade slowly
    {
        jQuery('#opaco').height(jQuery(document).height()).toggleClass('hidden').fadeTo('slow', 0.7).click(function(){
            jQuery(this).togglePopup();
        });
    }
    jQuery('#popup').html(img).toggleClass('hidden');
}

function showData(innerData) {
    var data = data;
    //when IE - fade immediately
    if(jQuery.browser.msie)
    {
        jQuery('#opaco').height(jQuery(document).height()).toggleClass('hidden').click(function(){
            jQuery(this).togglePopup();
        });
    }
    else
    //in all the rest browsers - fade slowly
    {
        jQuery('#opaco').height(jQuery(document).height()).toggleClass('hidden').fadeTo('slow', 0.7).click(function(){
            jQuery(this).togglePopup();
        });
    }
    jQuery('#popup').html(innerData).toggleClass('hidden');
}

function closePopup()
{
    jQuery('#opaco').toggleClass('hidden').removeAttr('style').unbind('click');
    jQuery('#popup').toggleClass('hidden');
    jQuery('#popup').html("");
}

function ShowHide(id) {
    if ($('#' + id).css('display') == "none")
    {
        $('#' + id).show();
        $('#lc_'+id).attr({
            src:'resources/image/app/regnet/collapse_sign.gif',
            alt:''
        });
    }
    else
    {
        $('#' + id).hide();
        $('#lc_'+id).attr({
            src:'resources/image/app/regnet/expand_sign.gif',
            alt:''
        });
    }
}

