    $(document).ready(function() {
    	$().piroBox({
    			my_speed: 600, //animation speed
    			bg_alpha: 0.5, //background opacity
    			radius: 4, //caption rounded corner
    			scrollImage : false, // true == image follows the page, false == image remains in the same open position
    			pirobox_next : 'piro_next', // Nav buttons -> piro_next == inside piroBox , piro_next_out == outside piroBox
    			pirobox_prev : 'piro_prev',// Nav buttons -> piro_prev == inside piroBox , piro_prev_out == outside piroBox
    			close_all : '.piro_close',// add class .piro_overlay(with comma)if you want overlay click close piroBox
    			slideShow : 'slideshow', // just delete slideshow between '' if you don't want it.
    			slideSpeed : 4 //slideshow duration in seconds(3 to 6 Recommended)
    	});
    });

$(document).ready(function(){
  $('A.OpenForm').click(function(){
    $(this).parent().parent().find('.SendForm').show('slow');
  });
});

$(document).ready(function(){
  $('.Accordion').click(function(){      
    $('.CatalogPageCatalogSections').hide();
    $('.ArrowOpened').removeClass('ArrowOpened').addClass('ArrowClosed');
    $(this).children().eq(0).removeClass('ArrowClosed').addClass('ArrowOpened');
    Target = $(this).next().next();
    Target.slideDown(300);
    $.scrollTo(Target,300);
    
//     $(this).next().hide();    
//     return false;   
  });
  if(location.hash){
    $('A[href='+location.hash+']').click();
  }
});

$(document).ready(function(){
  $('.Filter .Items DIV IMG').each(function(){
    if(!$(this).parent().prev().attr('checked')){
      $(this).fadeTo(0,0.6);
    }
  });
  $('.Filter .Items DIV IMG').hover(
    function(){
      $(this).fadeTo(200,1);
    },
    function(){
      if($(this).parent().prev().attr('checked') == false){
      $(this).fadeTo(200,0.6);
      }
    }
  );
  $('.Filter .Items DIV IMG').click(function(){
    check = $(this).parent().prev();
    if(check.attr('checked') == true){
      check.attr('checked',false);
    }
    else{
      check.attr('checked',true);
    } 
  });
  $('.Filter .Items DIV INPUT').click(function(){
    if($(this).attr('checked')){
      $(this).next().find('IMG').fadeTo(200,1);
    }
    else{
      $(this).next().find('IMG').fadeTo(200,0.6);
    }
  });
});


  $(document).ready(function(){
    $('a.overflow[rel]').overlay({effect: 'apple'});
  });
 
 $(document).ready(function(){
  $('.CatalogItem').mouseover(function(){
    $(this).stop().css('background-image','URL(/img/catalog_hover.jpg)');
  });
  $('.CatalogItem').mouseout(function(){
    $(this).stop().css('background-image','none');
  });    
  $('.CatalogItem').mouseout(function(){
    $(this).find('A').click();
  });    
      
});

  $(document).ready(function(){
    $('#plan').click(function(){
      $('.views').fadeOut(300);
      $('.plans').fadeIn(300);
      return false;
    });
    $('#fas').click(function(){
      $('.plans').fadeOut(300);
      $('.views').fadeIn(300);
      return false;
    });
  });
