$(document).ready(function(){
$('.holder').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 4500, 
	next: '.next',
	prev: '.prev'
});
$('.play').hide();
$('.wrapper').hide();
$('.pause').click(function() {
	$(this).hide();
	$('.play').show();
	$('.wrapper').show();
    $('.holder').cycle('pause'); 
});
$('.play').click(function() {
	$(this).hide();
	$('.pause').show();
	$('.wrapper').hide();
    $('.holder').cycle('resume'); 
});
$('.mirror li:last-child').css('marginRight', '0px');
$('.mirror li:first-child').css('marginLeft', '0px');
$('.menu li::nth-child(1)').css('background', '#f8b31b');
$('.menu li::nth-child(2)').css('background', '#f2ab18');
$('.menu li::nth-child(3)').css('background', '#eba414');
$('.menu li::nth-child(4)').css('background', '#e49c10');
$('.menu li::nth-child(5)').css('background', '#d69310');
$(".content a").not(".button").css('color', '#d93c21');
$(".content a").not(".button").hover(
  function () {
    $(this).css("color", "#9c2c19");
  }, 
  function () {
    $(this).css("color", "#d93c21");
  }
);
$(".popupWrapper").hide();
$(".popupWrapper").fadeIn(500);
$(".popupWindow").hide();
$(".popupWindow").fadeIn(1000);

$(".popupWrapper").click(function() {
$(".popupWrapper").fadeOut();
$(".popupWindow").fadeOut();
});
$(".closeBtn").click(function() {
$(".popupWrapper").fadeOut();
$(".popupWindow").fadeOut();
});
});
