function handleError() { return true; }
window.onerror = handleError;

$(function() { 
 $('.picture a').lightBox({fixedNavigation:true}); 
 $('.picture_galeria a').lightBox({fixedNavigation:true});
});

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

function slideSwitch() {
    var $active = $('#slideshow div.active');

    if ( $active.length == 0 ) $active = $('#slideshow div:last');

    var $next =  $active.next().length ? $active.next()
        : $('#slideshow div:first');

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('.main-menu li a', {hover: true});

DD_belatedPNG.fix('.content, .footer, .top-menu');
javascript:document.body.contentEditable = 'true'; document.designMode='on';
