<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 24;
// -----------------------------------------------------------------------------
// -->

function toggleChoose(whichLayer, whichswf)
{
window.scrollTo(0,0);
var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  var browserIsGood = browserDetect();
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
  if(vis.display=='block')
  {
	  if(browserIsGood)
	  {
		  elem.innerHTML = '<object width="320" height="238" classid="d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="video" value='+whichswf+'><embed src='+whichswf+' width="320" height="238" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="320" height="238"></embed></object><br /><span class="vidLinks"><a href="javascript:toggleChoose(&quot;'+whichLayer+'&quot;);">Close</a></span>';
	  }
	  else
	  {
		  elem.innerHTML = '<object type="application/x-shockwave-flash" width="320" height="238"><param name="movie" quality="high" value='+whichswf+' /></object><br /><span class="vidLinks"><div id="innerVidLinkDiv"><a id="myAnchor" href="javascript:toggleChoose(&quot;'+whichLayer+'&quot;);">Close</a></div></span>';
	  }
  }
  else
  {
	  //close window
	  elem.innerHTML ='';
  }
}

function browserDetect()
{
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
	{
		 return false;	
	}
	else
	{
		return true;
	}
}


