//Cufon.replace('#header,#footer li');
//Cufon.replace('h1');

function slideSwitch() {
    var $active = $('#slideshow IMG.active');
    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');
    $active.addClass('last-active');
    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 2000, function() {
            $active.removeClass('active last-active');
        });
}
$(function() {
    setInterval( "slideSwitch()", 3000 );
});


//Animate Content
$(document).ready(function(){
$("#content").delay(0.750).animate(
{opacity: 1.0},
{duration: 1000, easing: "easeInCubic"});
});


//Press Thumbnail Animation
$(document).ready(function(){
$(".press-content img, .shops img, .thedesigner-content img").delay(2000).one("load",function(){
$(this).animate({opacity: 1.0},{duration: 900, easing: "easeOutCubic"})
})
.each(function(){
if(this.complete) $(this).trigger("load");
});
});



//Widow Fix
$(document).ready(function() {
    $('p').widowFix();
});

	
