// JavaScript Document

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("This page requires AC_RunActiveContent.js.");
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '228',
			'height', '200',
			'src', 'rotator',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'rotator1',
			'flashVars', 'XML_PATH=rotator1.xml',
			'bgcolor', '#ffffff',
			'name', 'rotator1',
			'menu', 'false',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','false',
			'movie', 'rotator',
			'salign', 'lt'
			); //end AC code

		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '228',
			'height', '200',
			'src', 'rotator',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'transparent',
			'devicefont', 'false',
			'id', 'rotator2',
			'flashVars', 'XML_PATH=rotator2.xml',
			'bgcolor', '#ffffff',
			'name', 'rotator2',
			'menu', 'false',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','false',
			'movie', 'rotator',
			'salign', 'lt'
			); //end AC code

	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="/_lib2008/img/flash_rotator_temp.jpg" alt="" width="228" height="148" class="flash_margin" /><img src="/_lib2008/img/ausrail_txt.gif" alt="Australian Rail Network - Click to zoom" class="flash_margin2" />';
		document.write(alternateContent);  // insert non-flash content
	}
}