$(document).ready( function () {
	//this is for collapsible sections
	$('p.collapses').click(function() { $(this).next("div.collapses").slideToggle("slow,"); });
	$('p.collapses').next("div.collapses").slideToggle("slow,");
	
	$('.sf-menu').superfish();
});

function otliam(ot, liam) {
	ta = ot.substr(ot.indexOf('|')+1);
	var fr = ot.substring(ot.length - ta - ta.length - 1, ot.length - ta.length - 1);
	var rf = '';
	for (var x = fr.length; x >= 0; x--) { rf += fr.charAt(x); }
	tat = '@:otliam';
	var at = '';
	for (var y = tat.length; y >= 0; y--) { at += tat.charAt(y); }
	ta = at.substr(0, at.length - 1) + rf + at.charAt(at.length - 1) + ot.substr(0, ot.length - ta - ta.length - 1);
	document.write('<a href="' + ta + '">' + liam + '</a>');
}