jQuery(function($){
	// Hide the Symfony debug toolbar...
	var ms = parseInt($("#sfWebDebugDetails li:eq(5)").text().replace(/\ ms/, ''));
	var db = parseInt($("#sfWebDebugDetails li:eq(6)").text());
	var error = parseInt($("#sfWebDebug:has(.sfWebDebugWarning)").size()) + parseInt($("#sfWebDebug:has(.sfWebDebugError)").size());
	
	if (ms < 750 && db < 10 && error == 0) {
		sfWebDebugToggleMenu();
	}
	
	$("ul").each(function(){
		$(this).children("li:first").addClass('first');
		$(this).children("li:last").addClass('last');
	});
	
	$(".viewColours").colorbox({
		width: 		725,
		maxHeight: 	'90%',
		opacity:    0.6
	});
	
	$("a.flv").colorbox({
		opacity:    0.6
	});
	
	$("a.colorBox").colorbox({
		opacity:    0.6
	});
});

