function myInit() {
	
	$("a[href^='http:']").not("[href*='westlondonfreeschool.co.uk']").attr('target','_blank');
	
	$('#archive > li > a').click( function() {		
		$(this).parent().find("ul:first").toggleClass("closed"); 
		return false;
		});
	$('#archive > li > ul > li > a').click( function() {		
		$(this).parent().find("ul:first").toggleClass("closed"); 
		return false;
		});
	
	if ($('#quote_container').html()) {
		$('#quote_container').cycle({
			fx: 'fade',
			timeout: 10000,
			cleartypeNoBg: true 
		});
	}
	
	$('#faq h3 a').click( function() {			
		$('#content div#faq div.faq').hide();
		$('#faq .on').removeClass('on');
								
		var theId = this.id;
		theDiv = theId.replace("q","a");		
		$('#'+theDiv).show();
		$(this).parent().addClass('on');
			
		return false;
		});
	
	$("#content div#faq div.faq").hide();
	$("#content div#faq div.faq:first").show();
	$('#faq h3:first').addClass('on');
	
	$("#commentForm").submit(function() {		
		$('#commentForm').attr('method','post');
		errors = '';	
		if (!$('#cf_comment').val()) {
			errors += "Comment\n";
			}
		if (!$('#cf_name').val()) {
			errors += "Name\n";
			}
		if (!$('#cf_email').val()) {
			errors += "Email\n";
			}
		if (errors) {			
			alert("The following fields are required:\n\n"+errors);
			return false;
			} 	
		});
	
	
	
	}



function goback() {
	history.back();
	}

