var egfi = {
	init:function(){
		// Cufon is less likely to flash in IE if we run it at the bottom of the page rather than using a "ready" event
		Cufon.replace('#nav a', { hover: true, fontFamily: 'Felt Tip'});
		Cufon.replace('#main h1,#main h2,#sidebar h2,#sidebar h3', { fontFamily: 'Felt Tip' });
		Cufon.replace('#sidebar h4,#sidebar .read-more', { fontFamily: 'Gotham Bold' });
		Cufon.now();
	}
}

$( function() {
	$("a[href='#']").click( function() { alert('This link is not active.'); return false; } );

	flashParams = {
		exploreEGFILink: 'http://www.egfi-k12.org/',
		newsletterLink: 'http://www.egfi-k12.org/about/contact-us/',
		teachersLink: 'http://teachers.egfi-k12.org/',
		contactLink: 'http://www.egfi-k12.org/about/contact-us/',
		whatsNewLink: 'http://www.egfi-k12.org/whats-new/',
		engineerYourPathLink: 'http://www.egfi-k12.org/engineer-your-path/',
		readTheMagazineLink: 'http://www.egfi-k12.org/read-the-magazine/',
		aboutEGFILink: 'http://www.egfi-k12.org/about/',
		skipIntro: true
	};

	// Activate the current section
	flashParams[ {
		"": "noButtonSelected",
		"whats-new": "whatsNewButtonSelected",
		"engineer-your-path": "engineerYourPathButtonSelected",
		"about": "aboutEGFIButtonSelected",
		"teachers": "aboutEGFIButtonSelected"
	}[section] ] = true;

	//HIDEFLASHHEADER swfobject.embedSWF("/flash/MainMenu.swf", "header", "961", "170", "9.0.28", "/flash/expressInstall.swf", flashParams, {base: "/flash/", scale: "noscale", salign: 'tl', wmode: 'transparent'}, {});

	// Work around IE's lousy support for CSS selectors
	$('ul').find('>li:last').addClass('last-child');
	$('ul').find('>li:first').addClass('first-child');
});
