if ($.browser.msie) {
    $('div.gallerycomment').css('padding-top','15px')
}


$(document).ready(function() {
    $('#_e').remove();
    $('li.currentpage ul').hide() ;
    
     jQuery('img.gal_im').each(function(item, index){
        old_str = jQuery (index).attr('src');
        new_str = replace_string(old_str,'thumb_','') ; 
        jQuery (index).attr('src',new_str )
     });  
   
     jQuery('img._r_im').each(function(item, index){
        old_str = jQuery (index).attr('src');
        new_str = replace_string(old_str,'thumb_','') ; 

     });
      jQuery('p.albumname').each(function(item, index){
        old_str = jQuery (index).html();
        new_str = replace_string(old_str,' and ',' & ') ;
         
           jQuery (index).html(new_str ); 
     });  
     
});


function replace_string(txt,cut_str,paste_str){
var f=0;
var ht='';
ht = ht + txt;
f=ht.indexOf(cut_str);
while (f!=-1){
//цикл для вырезания всех имеющихся подстрок
f=ht.indexOf(cut_str);
if (f>0){
ht = ht.substr(0,f) + paste_str + ht.substr(f+cut_str.length);
};
};
return ht
};

