function link_to_ajax(container,a_obj){    
    p_r = jQuery('#'+container).css('padding-right');
    p_l = jQuery('#'+container).css('padding-left');
    p_t = jQuery('#'+container).css('padding-top');
    p_b = jQuery('#'+container).css('padding-bottom');
    
    
    w = jQuery('#'+container).width() + parseInt(p_l)+ parseInt(p_r) 
    h = jQuery('#'+container).height() + parseInt(p_b)+ parseInt(p_t)
    l = jQuery('#'+container).offset().left ;
    t = jQuery('#'+container).offset().top;
    
    jQueryloader =   jQuery('<div/>')
                .addClass('loader')
                .css({
                      position:'absolute'
                    ,'top':t+(h/2)-24
                    ,'left':l+(w/2)-71
                    })
                .html( typeof MSG_LOADING !='undefined' && MSG_LOADING ? MSG_LOADING : 'Loading ...');
    

    jQuerysahder = jQuery('<div/>')
                .css({width:w,height:h,left:l,top:t})
                .addClass('ajax-shader');
    
    
    if(typeof FIX_IE_BUG !='undefined' && jQuery.browser.msie){
        document.location = a_obj.href;
        jQuery('body').append(jQuerysahder).append(jQueryloader);
        return false;
    }
    
    
    
    jQuerycont = jQuery('#'+container);
    jQuery.ajax({
          url: a_obj.href
        , cache: false
        , success    : function(data){jQuerycont.html(data);  jQuerysahder.remove();jQueryloader.remove(); }
        , beforeSend : function(data){ jQuery('body').append(jQuerysahder).append(jQueryloader); }
    });
}

