// JavaScript Document
Cufon.replace('h1', {fontFamily: 'regular', hover: true});
Cufon.replace('h1 strong', {fontFamily: 'bold', hover: true});
Cufon.replace('h2', {fontFamily: 'regular', hover: true});
Cufon.replace('h2 strong', {fontFamily: 'bold', hover: true});
Cufon.replace('h3', {fontFamily: 'regular', hover: true});
Cufon.replace('h3 strong', {fontFamily: 'bold', hover: true});
Cufon.replace('h4', {fontFamily: 'regular', hover: true});
Cufon.replace('h4 strong', {fontFamily: 'bold', hover: true});
Cufon.replace('h5', {fontFamily: 'regular', hover: true});
Cufon.replace('h5 strong', {fontFamily: 'bold', hover: true});

$(document).ready(function(){
	///preload the colours so rollover effect works right away
	$("#nav a#on").stop(true, true).animate({ backgroundColor: "#9f0a6c" }, 1);
	$("#nav a.off").stop(true, true).animate({ backgroundColor: "#0f1035" }, 1);
	
	$("#nav a.off").hover(function() {
		$(this).stop(true, true).animate({ backgroundColor: "#9f0a6c" }, 400);
	},function() {
		$(this).stop(true, true).animate({ backgroundColor: "#0f1035" }, 400);
	});
	
	$("#example1").carousel({
				"transition": "fade",
				 "loop": true,
                "autoplay": true,
				"hoverpause": true,
				"delay": 4000,
				 speed: 500// Default: 200
				
            });
});
