
Shadowbox.init({
    language: 'ru',
    players:  ['img']
});

$(document).ready(function(){   
    
    var isOpera = (navigator.userAgent.indexOf("Opera") != -1);
    if (isOpera) {
        $("table.coder_price div.spacer").each(function(i){ 
            $(this).addClass('spacer_opera'); 
        });
    } 
    
    $("div.table_even tr:even").addClass('bg'); 
    
    if ($("a.fancy").length) {
    $("a.fancy").fancybox({
        overlayShow: true,
        overlayOpacity: 0,
        zoomSpeedIn: 1500,
        zoomSpeedOut:600
    });
    }
    
    
    $(".tab_or_title a").focus(function(){
        $(this).blur();
    });
    
    $(".tab_or_title a").click( function() {
        div_tab_or = $(this).parent("p").next("div");
        if (div_tab_or.css('display')=='none') {
            div_tab_or.show('slow'); 
            $(this).addClass('on');        
        } else {
            div_tab_or.hide('slow'); 
            $(this).removeClass('on');
        } 
        return false;
    } );

    
});