window.addEvent('domready', function(){
	//call mooSIFR (example usage: mooSIFR_goodgirl)
	if($$('h1,h2,h3,h4,h5,h6').length > 0){//only triggered if 'h tags' are found on page
		$$('h1,h2,h3,h4,h5,h6').each(function(el,i){//loop through each h tag
			var font = '';//declare variable to store font in
			if(el.className.contains('mooSIFR')){//only grab h tags with mooSIFR class
				el.className.split(' ').each(function(myClass,i){//incase h tag has more than 1 class
					if(myClass.contains('mooSIFR')){//grab the class we need
						font = myClass.split('_')[1];//only take the font part and store it
					};
				});
				var initSIFR = new sIFR({//create a swf to replace text
					elements: el,
					swfPath: 'Portals/Dundee-Carers-Centre/flash/',
					font: font
				});
			};
		});
	};
			//call mooSwitch
	if($$('.mooSwitch').length > 0){//only triggered if 'mooSwitch' id is found on page
		var initSwitch = new mooSwitch({
			container: $('Container'),//inline font-size style will be applied to this
			linksContainer: $('FontSize'),//container that holds the links (error message will be output here)
			templateContainer: $('ChangeTemplate'),//container that holds the template links (error message will be output here)
			smallSize: '90%',//small font size
			mediumSize: '100%',//medium font size(should be your default size)
			largeSize: '110%',//large font size
			speed: 400
		}).start();
	};
});
