$(document).ready(function() {

/* page backgrounds */


$('body').add_layer("url('css-images/images/smallArrow.png') no-repeat 100px top");
$('body').add_layer("url('css-images/images/bigArrow.png') no-repeat 520px top");
/*$('body').add_layer("url('css-images/images/look.png') no-repeat 230px 70px");*/
$('body').add_layer("url('css-images/me-posed.jpg') no-repeat 440px 60px");
/*$('body').add_layer("url('css-images/images/sideways.png') no-repeat 430px 100px");*/
$('body').add_layer("url('css-images/images/charles-ward.png') no-repeat 680px 60px");

/********************************************************************************************************************
	SIMPLE ACCORDIAN STYLE MENU FUNCTION
	*******************************************************************************************************************	
*/

	$(".accordionButton").click(function(){
		$(this).next(".accordionContent").slideToggle("slow")
		.siblings(".accordionContent:visible").slideUp("slow");
		
	});

	/********************************************************************************************************************
	CLOSES ALL DIVS ON PAGE LOAD
	********************************************************************************************************************/	
	$("div.accordionContent").hide();
	$("div.active").show();
	$("#email").hide();
	
	/* fade up menu tabs */
$('.accordionButton a.im').animate({opacity:0}).animate({opacity:1}, '600',
function() {
$('.accordionButton a.mob').animate({opacity:0}).animate({opacity:1}, '600',
function() {
$('.accordionButton a.e').animate({opacity:0}).animate({opacity:1}, '600',
function() {
$('.accordionButton a.p').animate({opacity:0}).animate({opacity:1}, '600',
function() {
$('.accordionButton a.i').animate({opacity:0}).animate({opacity:1}, '600',
													   function() {
$('.accordionButton a.fp').animate({opacity:0}).animate({opacity:1}, '600');
});
	
});
	
});
	
});

});

	
 $('.accordionButton a')
  .hover(function() {
   $(this).animate({ left: 10 }, 'fast');
  }, function() {
   $(this).animate({ left: 0 }, 'fast');
  });
  
/* topline quotes */

				$('.fade').innerfade({
						speed: 750,
						timeout: 5000,
						type: 'random',
						containerheight: '3.5em'
					});
/*
  $("#col2").fadeTo("slow", 0.2); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("#col2").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.2); // This should set the opacity back to 30% on mouseout
							   	});
  $("#col1").fadeTo("slow", 1); // This sets the opacity of the thumbs to fade down to 30% when the page loads
						   $("#col1").hover(function(){
						   $(this).fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
						   },function(){
						   $(this).fadeTo("slow", 0.2); // This should set the opacity back to 30% on mouseout
							   	});
*/
							  $('a[rel*=facebox]').facebox();
				


})(jQuery);