// Main document ready function
$(function(){  
	$("#cp_mainmenu").cp_menu(); // cp_menu widget

});

//react when the page and its assets are done loading
CP.bind("pageLoaded",function(page){
	trace("page loaded",page);
});

//react when the DOM of a new page is done loading
CP.bind("htmlLoaded",function(page){
	initCufon();  
});

function initCufon(){
	if(!window["Cufon"]) return;
	
	Cufon.replace('h1,h2,h3,h4,h5,h6',{ fontFamily: 'Gill Sans Alt One WGL Light' });
	Cufon.replace('a.join, a.arrow, a.quiz, a.enter',{ fontFamily: 'Gill Sans Alt One WGL Light', hover: true });
}


