$(window).load(function () {
  $('#header .top_nav a:not(.current)').css('color','#0269c0');

});

$(document).ready(function(){
		$('#header .top_nav a').css('color','#000');
    $('.main_scrollable').scrollable({
        circular: true,
        items: '.items',
        item: 'li',
        prev: '.prev',
        next: '.next'
    });
    $('.form .file,.form .text, .form textarea, .form select').focus(function(){$(this).addClass('focused')});
    $('.form .file,.form .text, .form textarea, .form select').blur(function(){$(this).removeClass('focused')});
    
    $('.faq .item .answer').css('display', 'none');
    $('.faq .item .read_answer').click(function(){
      $(this).next('.answer').slideToggle('fast');
      return false;
    });
       
    $('.order_form .other_field input').attr('disabled','disabled');

    $('.order_form .other input').each(function(){
            var fieldset = $(this).parents('fieldset');

            if ($(this).attr('checked')){
                fieldset.find('.other_field input').removeAttr('disabled');
                fieldset.find('select').attr('disabled','disabled');
            }
            else{
                fieldset.find('.other_field input').attr('disabled','disabled');
                fieldset.find('select').removeAttr('disabled');
            }
            
    });

    $('.order_form .other input').change(function(){
            var fieldset = $(this).parents('fieldset');

            if ($(this).attr('checked')){
                fieldset.find('.other_field input').removeAttr('disabled');
                fieldset.find('select').attr('disabled','disabled');
            }
            else{
                fieldset.find('.other_field input').attr('disabled','disabled');
                fieldset.find('select').removeAttr('disabled');
            }
            
    });

    if(typeof jQuery.fancybox == 'function') {
        $("a.zoom").fancybox({
            'titleShow'        : false,
            'transitionIn'    : 'none',
            'transitionOut'    : 'none'
        });
    }
});

            


