
// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);


// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) {  // if we've detected an acceptable version
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
			+ 'width="320" height="280"'
			+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
			+ '<param name="movie" value="http://www.news.ucdavis.edu/flash/montoya2.swf" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#ffffff" />'
			+ '<embed src="http://www.news.ucdavis.edu/flash/montoya2.swf" loop="false" menu="false" quality="high" scale="noscale" bgcolor="#ffffff" '
			+ 'width="320" height="280" name="montoya2" align="middle" '
			+ 'play="true" '
			+ 'loop="false" '
			+ 'quality="high" '
			+ 'allowScriptAccess="sameDomain" '
			+ 'type="application/x-shockwave-flash" '
			+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
			+ '<\/embed>'
			+ '<\/object>';

    document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
    var caption = '<p class="xsmallcopy">The class includes speakers who support the death penalty and those, like Chicana/o studies professor Malaquias Montoya, who oppose the practice. In this video, Montoya talks about using art to discuss social justice issues. You can also <a href="http://broadcast.ucdavis.edu/search/broadcast_detail.lasso?id=176"> view this video in RealMedia<\/a> with closed captioning. (Paul Pfotenhauer, News Service producer, and Ken Zukin, videographer)<\/p>';
		document.write(caption);   // write the caption
  } else {  // flash is too old or we can't detect the plugin
   var alternateContent = '<img border="0" src="../photos_images/news_images/03-2006/Montoya_big.jpg" hspace="0" vspace="0" alt="graphic: print with arm stretched up from person">'
		+ '<p class="smallcopy">"The Killing of the Innocent" 2002 by Malaquias Montoya will be on display at the Nelson Gallery through May 21.<br>'
		+ 'A <a href="http://broadcast.ucdavis.edu/search/broadcast_detail.lasso?id=176" target="_blank">closed-captioned video about this class<\/a> in RealMedia Player format is also available, or view a Flash video version of the same by downloading <a href="http://www.macromedia.com/go/getflash/" target="_blank">Flash Player<\/a> 7 or above.<\/p>';
		document.write(alternateContent);  // insert non-flash content
  }

