// JavaScript Document
String.prototype.reverse = function(){
	splitext = this.split("");
	revertext = splitext.reverse();
	reversed = revertext.join("");
	return reversed;
}

function fGetFilename(str) {
	if (str.lastIndexOf('/') == str.length){
		return '';
	} else {
		return str.substring(str.lastIndexOf('/') + 1);
	}
}

function fHeading(sText,sColour,nSize){
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '300',
			'height', '30',
			'src', 'includes/swf/flashHeading',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'swf/flashHeading',
			'bgcolor', '#ffffff',
			'name', 'swf/flashHeading',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'FlashVars','sText='+escape(sText)+'&sColour='+sColour+'&nSize='+nSize,
			'movie', 'includes/swf/flashHeading',
			'salign', ''
			); //end AC code
	}
}