$(document).ready(function () {
	
<!-- png fix -->
$(document).pngFix();
<!-- end -->

<!-- image cycle -->
$('#index-cycle').cycle({
    fx:     'fade', 
    speed:  1800,
	timeout: 1400
});
<!-- end -->

<!-- photo cycle -->
$('#photos p').cycle({ 
    fx:     'fade', 
    speed:  3000, 
    timeout: 0, 
    pager:  '#thumbnails',
    // callback fn that creates a thumbnail to use as pager anchor 
    pagerAnchorBuilder: function(idx, slide) { 
        return '<div><a href="#"><img src="' + slide.src + '" width="25" height="25" /></a></div>'; 
    } 
})
<!-- end -->

<!-- menu hovers -->
 $("nav ul li a").mouseenter(function() {
    $(this).parent().animate({ backgroundColor: "black" }, 300)
  }).mouseleave(function(){
   $(this).parent().animate({ backgroundColor: "#4F0037" }, 300)
  });
<!-- end -->

<!-- contact details -->
$('#contact').toggle(function() {
  $("#details-wrap").show();
  $("#details").animate({"top": "+=160px"}, "slow", "easeOutQuart");
}, function() {
  $("#details").animate({"top": "-=160px"}, "slow", "easeOutQuart", function(){
  $("#details-wrap").hide(); });
});
<!-- end -->

<!-- fade ins -->
$('#img1 img').delay(350).fadeIn(2000);
$('#img2 img').delay(500).fadeIn(2000);
$('#img3 img').delay(650).fadeIn(2000);
$('#img4 img').delay(800).fadeIn(2000);


$('#perf-right').delay(450).fadeIn(1000);
$('#video').delay(450).show();
$('#perf-left').delay(100).fadeIn(1000);
$('#content-right').delay(450).fadeIn(1000);
$('#content-left').delay(100).fadeIn(1000);
$('#studio-left').delay(100).fadeIn(2000);

<!-- end -->

<!-- home link -->
$('#home').click( function(){
	window.location = "http://www.dianareyesflamenco.com.au/";
});
<!-- end -->

<!-- wp caption fix -->
$('.wp-caption').each( function(){
	var newW = $(this).width() - 10;
	$(this).width(newW);
});
<!-- end -->

});
