if ($('divFlashVideo'))
{
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

	if(hasRightVersion) {  // if we've detected an acceptable version

var strVideoPlayerFile = 'RDM39163.7455258218';
var intDefaultVideoClip = '1';


		var oeTags = '<object width="280" height="250" align="middle" id="myPlayer" VIEWASTEXT '

		+ 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '

		+ 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0">'

		+ '<param name="allowScriptAccess" value="sameDomain"><param name="allowFullScreen" value="true"><param name="movie" value="images/FlashPlayer/' + strVideoPlayerFile.replace('.', '') + '.swf?playmode=video&amp;preload=../VideoPlayer/clips/' + eval('strVideoClipFile'+intDefaultVideoClip+'.replace(".", "")') + '.flv|' + eval('strVideoClipLength'+intDefaultVideoClip) + '"><param name="quality" value="high"><param name="bgcolor" value="#ffffff"> '

		+ '<embed src="images/FlashPlayer/' + strVideoPlayerFile.replace('.', '') + '.swf?playmode=video&amp;preload=../VideoPlayer/clips/' + eval('strVideoClipFile'+intDefaultVideoClip+'.replace(".", "")') + '.flv|' + eval('strVideoClipLength'+intDefaultVideoClip) + '" quality="high" bgcolor="#ffffff" width="290" height="260" id="myplayer" name="myPlayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> '

		+ '<\/embed>'

		+ '<\/object>';

		$('divFlashVideo').innerHTML = oeTags;   // embed the flash movie
		

		
		oeTags = '<span class="modulelink"><img alt="" src="images/taAssets/arrow_grey2.gif" class="arrowgrey"><a href="javascript:urchinTracker(\'/video/' + strVideoClipName1 + '\'); setvideo(\'../VideoPlayer/clips/' + strVideoClipFile1.replace('.', '') + '.flv\', \'' + strVideoClipLength1 + '\');">' + strVideoClipName1 + '</a></span>'
		
		+ '<span class="modulelink"><img alt="" src="images/taAssets/arrow_grey2.gif" class="arrowgrey" /><a href="javascript:urchinTracker(\'/video/' + strVideoClipName2 + '\'); setvideo(\'../VideoPlayer/clips/' + strVideoClipFile2.replace('.', '') + '.flv\', \'' + strVideoClipLength2 + '\');">' + strVideoClipName2 + '</a></span>'
		
		+ '<span class="modulelink"><img alt="" src="images/taAssets/arrow_grey2.gif" class="arrowgrey" /><a href="javascript:urchinTracker(\'/video/' + strVideoClipName2 + '\'); setvideo(\'../VideoPlayer/clips/' + strVideoClipFile3.replace('.', '') + '.flv\', \'' + strVideoClipLength3 + '\');">' + strVideoClipName3 + '</a></span>'

		$('divLinksVideo').innerHTML = oeTags;   // links for the flash movie
		

	} else {  // flash is too old or we can't detect the plugin

		var alternateContent = ''

				+ 'This content requires Macromedia Flash Player, version 9.'

				+ '<a href="http://www.macromedia.com/go/getflash/" target="_blank">Get Flash</a>';

		$('divFlashVideo').innerHTML = alternateContent;  // insert non-flash content
		
		$('divLinksVideo').innerHTML = '';

	}
	
	// -->
}


function setvideo(arg1, arg2) {
			
		
	if ((navigator.userAgent.indexOf("Firefox") > -1) || (navigator.userAgent.indexOf("Opera") > -1) || (navigator.userAgent.indexOf("Safari") > -1)) {
		document.myplayer.setvid (arg1, arg2);
	} else {
    	thisMovie("myPlayer").setvid (arg1, arg2);
	}
}

function stopvideo() {
	//alert( "stop video called");
	if ((navigator.userAgent.indexOf("Firefox") > -1) || (navigator.userAgent.indexOf("Opera") > -1) || (navigator.userAgent.indexOf("Safari") > -1)) {
		document.myplayer.stopvid ();
	} else {
    	thisMovie("myPlayer").stopvid ();
	}
}

function thisMovie(movieName) {


var isIE6 = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Opera") == -1));

var isIE6Pc2K = ((navigator.userAgent.indexOf("MSIE 6.") != -1) && (navigator.userAgent.indexOf("Windows NT 5.0") != -1) && (navigator.userAgent.indexOf("Opera") == -1));

	if (navigator.appName.indexOf("Microsoft") != -1  || isIE6 || isIE6Pc2K) {
		return window[movieName]
	}
	else {
		return document[movieName]
	}
}