$(document).ready(function(){

	$('a[rel*=facebox]').facebox({
		loading_image : 'facebox/loading.gif',
		close_image   : 'facebox/closelabel.gif'
	});
	
	
	jQuery('#theMenu').Accordion({
		active: 'h3.selected',
		header: 'h3.head',
		alwaysOpen: false,
		animated: true,
		showSpeed: 400,
		hideSpeed: 800
	});
	
	
	jQuery('#xtraMenu').Accordion({
		active: 'h4.selected',
		header: 'h4.head',
		alwaysOpen: false,
		animated: true,
		showSpeed: 400,
		hideSpeed: 800
	});
	
    
    jQuery("#quickform").hover(function(){
        $("#quickform img")
        .animate({left:"22px"}, 200).animate({left:"12px"}, 200) // first jump
        .animate({left:"18px"}, 100).animate({left:"12px"}, 100) // second jump
        .animate({left:"14px"}, 100).animate({left:"12px"}, 100); // the last jump
    });
    
	jQuery("#ctoa").hover(function(){
		$("#ctoa img")
		.animate({left:"18px"}, 200).animate({left:"9px"}, 200) // first jump
		.animate({left:"14px"}, 100).animate({left:"9px"}, 100) // second jump
		.animate({left:"11px"}, 100).animate({left:"9px"}, 100); // the last jump
	});  
    
    function equalHeight(group) {
			tallest = 0;
			group.each(function() {
				thisHeight = $(this).height();
				if(thisHeight > tallest) {
					tallest = thisHeight;
				}
			});
			group.height(tallest);
		}
		
	equalHeight($(".supp-col"));
	
	
     
          $('#toggleButton').click(function() {
               if ($('#toggleSection').is(":hidden"))
               {
                    $('#toggleSection').slideDown("slow");
               } else {
                    $('#toggleSection').slideUp("slow");
               }
          });
    
      
          $('#toggleCallbutton').click(function() {
               if ($('#toggleCallback').is(":hidden"))
               {
                    $('#toggleCallback').slideDown("slow");
               } else {
                    $('#toggleCallback').slideUp("slow");
               }
          });
     
     
          $('#toggleCallbuttonB').click(function() {
               if ($('#toggleCallback').is(":hidden"))
               {
                    $('#toggleCallback').slideDown("slow");
               } else {
                    $('#toggleCallback').slideUp("slow");
               }
          });
     
    

});



		

