// Suckerfish
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

$(document).ready(function(){	
	$("#slider").easySlider({
		auto: true,
		continuous: true,
		controlsBefore: '<div id="controls">',
		controlsAfter: '</div>',
		pause: 5000
	});
	
	// Set event button colors
	$('.side-button:nth-child(2)').addClass('orange');
	$('.side-button:nth-child(3n)').addClass('pink');
	$('.side-button:nth-child(4n)').addClass('green');
	$('.side-button:nth-child(6n)').addClass('orange');
	
	$('.box .continue').nextAll().hide();
	$('.box .continue').parent('p').nextAll().hide();
	
	$('.box .continue').click(function() {
		$(this).nextAll().toggle();
	});
	
	$('.box .continue').click(function() {
		$(this).parent('p').nextAll().toggle();
	});
	
});
