

$(document).ready(function(){


// $('ul#paper').prepend('<li class="print"><a href="./contact.php#print">Click me to print</a></li>');
// 	$('ul#paper li.print a').click(function() {
// 	window.print();
// 	return false;
// });
	


// $(".entry a:hover")
//   .animate( { color: '#900' }, 9000)
//   .animate( { color: '#090' }, 9000)
//   .animate( { color: '#009' }, 9000)
  
// 4 - #A6ACBF --> #BF998C --> #BFAF81 --> #A6B399 --> #A6ACBF
// $("body.four")
//   .animate( { backgroundColor: '#BF998C' }, 30000)
//   .animate( { backgroundColor: '#BFAF81' }, 30000)
//   .animate( { backgroundColor: '#A6B399' }, 30000)
    
// 3 - #A2AFD5 --> #D5886F --> #D5B459 --> #A2BB88 --> #A2AFD5
// $("body.three")
//   .animate( { backgroundColor: '#D5886F' }, 30000)
//   .animate( { backgroundColor: '#D5B459' }, 30000)
//   .animate( { backgroundColor: '#A2BB88' }, 30000)

// 2 - #99B3FF --> #FF6633 --> #FFBD07 --> #99CC66 --> #99B3FF
// $("body.two")
//   .animate( { backgroundColor: '#FF6633' }, 30000)
//   .animate( { backgroundColor: '#FFBD07' }, 30000)
//   .animate( { backgroundColor: '#99CC66' }, 30000)
  
// 1 -  #808080 --> #18181C --> #808080 --> #18181C
$("body")
  .animate( { backgroundColor: '#272727' }, 30000)
  .animate( { backgroundColor: '#808080' }, 30000)
  .animate( { backgroundColor: '#272727' }, 30000)
  .animate( { backgroundColor: '#808080' }, 30000)

// #cccccc --> #7a7a7a --> #cccccc --> #7a7a7a
$("#footer p, #footer a")
  .animate( { color: '#cccccc' }, 30000)
  .animate( { color: '#7a7a7a' }, 30000)
	.animate( { color: '#cccccc' }, 30000)
  .animate( { color: '#7a7a7a' }, 30000)

// Fading in elements on load
$("#index #head, #nav")
  .animate( { opacity: '1.0' }, 3000)

$("#index .box")
  .animate( { opacity: '0' }, 3000)
  .animate( { opacity: '1.0' }, 2000)

$("#about .box, #services .box, #press .box, #contact .box")
  .animate( { opacity: '0' }, 500)
  .animate( { opacity: '1.0' }, 800)

$("#index #footer")
  .animate( { opacity: '0' }, 5000)
  .animate( { opacity: '1.0' }, 2000);
});



// Slideshow settings
// jQuery Cycle Plugin
// http://malsup.com/jquery/cycle/

$(document).ready(function() {
	$('.slideshow')
	.cycle({
	fx: 'fade',
	timeout: 4000,
	speedIn:  3500,
	  speedOut: 3000,
	  next:   '.slideshow',
	  delay: 2500
	});
	
	$('.pr')
	.cycle({
	fx: 'scrollUp',
	timeout: 3000,
	speedIn:  800,
	  speedOut: 800,
	  next:   '.slideshow',
	  delay: 0
	});
});


// Fade in on hover

// $(function() {
//       // OPACITY OF BUTTON SET TO 50%
//       $(".entry").css("opacity","0.6");
// 
//       // ON MOUSE OVER
//       $(".entry").hover(function () {
// 
//         // SET OPACITY TO 100%
//         $(this).stop().animate({
//         opacity: 1.0
//         }, "fast");
//       },
// 
//       // ON MOUSE OUT
//       function () {
// 
//         // SET OPACITY BACK TO 50%
//         $(this).stop().animate({
//         opacity: 0.6
//         }, "slow");
//       });
// });

// $(document).ready(function(){
//        $(".container").ready(function(){
//          $(this).stop().animate({
//           opacity:0.6
//           }, "slow");
//        });
     // });


