$(document).ready(function() {

	$('ul#rotate').innerfade({
        speed: 'slow',
        timeout: 4000,
        type: 'sequence',
        containerheight: '377px'
    });

	$('ul.sf-menu').superfish({
		autoArrows: false,
		speed: 150,
		animation:   {opacity:'show',height:'show'},
		delay: 1500,
		dropShadows: false
	});
	
    $('a[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });


});


addEvent(window, 'load', initCorners);
function initCorners() {
	var settings = {
		tl: { radius: 20 },
		tr: { radius: 20 },
		bl: { radius: 20 },
		br: { radius: 20 },
		antiAlias: true
	}
	curvyCorners(settings, ".rounded");
}


