
function loadPageBanner()
{
	var sections = new Array('about', 'news', 'courses', 'resources', 'register', 'contact');
	var currentSection = null;
	
	for ( var i = 0; i < sections.length; i++ ) {
		if ( window.location.toString().match(sections[i]) ) {
			currentSection = sections[i];
			break;
		}
	}
	
	if ( !currentSection && window.location.toString().match('gallery') ) {
		currentSection = 'courses';
	}
	
	if ( currentSection ) {
		
		var So = new SWFObject ('/site_flash/imagerotator.swf', 'Banner', 701, 277, 8);
		So.addVariable('width', '701');
		So.addVariable('height','277');
		So.addVariable('showicons', 'false');
		So.addVariable('shownavigation', 'false');
		So.addVariable('rotatetime', '6');
		So.addVariable('transition', 'blocks');
		So.addVariable('screencolor', '0xFFFFFF');
		So.addVariable('shuffle', 'true');
	
		So.addParam("wmode", "transparent");
		So.addVariable('file', '/files/' + currentSection + '.xml');
		
		So.write('header_image_container');
	}
}
/*
sfHover = function() {
	var sfEls = document.getElementById("navigation").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);*/

