
function fnBuildFLVPlayer(sClip,sElementId,sPlayer){	
	// close previous movie
  if(sClick!=0)
	{	
		if (sClick!=sClip)
		{
			toggleSlide(sClick)
			fnFLVPlayer(null,sClick,sPlayer)		
		}	
	}//sClick

//alert("pre"+sClick)
  if(document.getElementById(sElementId).style.height == "1px")
  {
	fnFLVPlayer(sClip,sElementId,sPlayer)
	sClick=sElementId;
  }//showing element
  else{  
	sClip="null";
	fnFLVPlayer(sClip,sElementId,sPlayer)  
	sClick=0;
  }//else showing element

}//fnBuildPlayer


// was + 'width="332px" height="280px" 
//			GOA_FLAPlayer640x360.swf
//			'width', '648',	'height', '395',			
			
			
// + 'width="332px" height="280px" name="flvPlayer" 			
function fnFLVPlayer(sClip,sElementId,sPlayer){
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) 
	{  // if we've detected an acceptable version
	    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
        + 'width="648px" height="395px" name="flvPlayer" id="flvPlayer" swLiveConnect=true'
	    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	    + '<param name="movie" value="' 
		+ sPlayer
		+ '.swf" />'	
		+ '<param name="FlashVars" value="strGo='
		+ sClip 
		+ '" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="allowFullScreen" value="true" />'
		+ '<param name="bgcolor" value="white" />'
	    + '<embed src="'
		+ sPlayer
		+ '.swf" quality="high" bgcolor="white" '
	    + 'width="648px" height="395px" name="flvPlayer" align="middle"'
	    + 'play="true"'
	    + 'loop="false"'
	    + 'quality="high"'
	    + 'allowScriptAccess="sameDomain"'
	    + 'type="application/x-shockwave-flash"'
		+ 'allowFullScreen="true"'
		+ 'FlashVars="strGo='
		+ sClip
		+ '"'
	    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	    + '<\/embed>'
	    + '<\/object>';
		document.getElementById(sElementId).innerHTML = oeTags;
	  } else {  // flash is too old or we can't detect the plugin
	    var alternateContent = 'This content requires the Macromedia Flash Player.'
	   	+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash player (Free version)</a>';
	    document.write(alternateContent);  // insert non-flash content
	  }//else	
}




function fnBuildFLVPlayerIndex(sClip,sElementId,sPlayer){	
	// close previous movie
  if(sClick!=0)
	{	
		if (sClick!=sClip)
		{
			toggleSlide(sClick)
			fnFLVPlayerIndex(null,sClick,sPlayer)		
		}	
	}//sClick

//alert("pre"+sClick)
  if(document.getElementById(sElementId).style.height == "1px")
  {
	fnFLVPlayerIndex(sClip,sElementId,sPlayer)
	sClick=sElementId;
  }//showing element
  else{  
	sClip="null";
	fnFLVPlayerIndex(sClip,sElementId,sPlayer)  
	sClick=0;
  }//else showing element

}//fnBuildPlayer



function fnFLVPlayerIndex(sClip,sElementId,sPlayer){
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) 
	{  // if we've detected an acceptable version
	    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	    + 'width="100%" height="100%" name="flvPlayer" id="flvPlayer" swLiveConnect=true'
	    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	    + '<param name="movie" value="' 
		+ sPlayer
		+ '.swf" />'	
		+ '<param name="FlashVars" value="strGo='
		+ sClip 
		+ '" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="allowFullScreen" value="true" />'
		+ '<param name="bgcolor" value="white" />'
	    + '<embed src="'
		+ sPlayer
		+ '.swf" quality="high" bgcolor="white" '
	    + 'width="100%" height="100%" name="flvPlayer" align="middle"'
	    + 'play="true"'
	    + 'loop="false"'
	    + 'quality="high"'
	    + 'allowScriptAccess="sameDomain"'
	    + 'type="application/x-shockwave-flash"'
		+ 'allowFullScreen="true"'
		+ 'FlashVars="strGo='
		+ sClip
		+ '"'
	    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	    + '<\/embed>'
	    + '<\/object>';
		document.getElementById(sElementId).innerHTML = oeTags;
	  } else {  // flash is too old or we can't detect the plugin
	    var alternateContent = 'This content requires the Macromedia Flash Player.'
	   	+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash player (Free version)</a>';
	    document.write(alternateContent);  // insert non-flash content
	  }//else	
}

function fnFLVPlayerSmallRight(sClip,sElementId,sPlayer){
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) 
	{  // if we've detected an acceptable version
	    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	    + 'width="210" height="180" name="flvPlayer" id="flvPlayer" swLiveConnect=true'
	    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	    + '<param name="movie" value="' 
		+ sPlayer
		+ '.swf" />'	
		+ '<param name="FlashVars" value="strGo='
		+ sClip 
		+ '" />'
		+ '<param name="play" value="false" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="allowFullScreen" value="true" />'
		+ '<param name="bgcolor" value="white" />'
	    + '<embed src="'
		+ sPlayer
		+ '.swf" quality="high" bgcolor="white" '
	    + 'width="210" height="180" name="flvPlayer" align="top"'
	    + 'play="false"'
	    + 'loop="false"'
	    + 'quality="high"'
	    + 'allowScriptAccess="sameDomain"'
	    + 'type="application/x-shockwave-flash"'
		+ 'allowFullScreen="true"'
		+ 'FlashVars="strGo='
		+ sClip
		+ '"'
	    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	    + '<\/embed>'
	    + '<\/object><br>';
		document.getElementById(sElementId).innerHTML = oeTags;
	  } else {  // flash is too old or we can't detect the plugin
	    var alternateContent = 'This content requires the Macromedia Flash Player.'
	   	+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash player (Free version)</a>';
	    document.write(alternateContent);  // insert non-flash content
	  }//else	
}



function fnFLVPlayerCenter(sClip,sElementId,sPlayer){
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) 
	{  // if we've detected an acceptable version
	    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	    + 'width="331" height="216" name="flvPlayer" id="flvPlayer" swLiveConnect=true'
	    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	    + '<param name="movie" value="' 
		+ sPlayer
		+ '.swf" />'	
		+ '<param name="FlashVars" value="strGo='
		+ sClip 
		+ '" />'
		+ '<param name="play" value="false" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="allowFullScreen" value="true" />'
		+ '<param name="bgcolor" value="white" />'
	    + '<embed src="'
		+ sPlayer
		+ '.swf" quality="high" bgcolor="white" '
	    + 'width="331" height="216" name="flvPlayer" align="top"'
	    + 'play="false"'
	    + 'loop="false"'
	    + 'quality="high"'
	    + 'allowScriptAccess="sameDomain"'
	    + 'type="application/x-shockwave-flash"'
		+ 'allowFullScreen="true"'
		+ 'FlashVars="strGo='
		+ sClip
		+ '"'
	    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	    + '<\/embed>'
	    + '<\/object><br>';
		document.getElementById(sElementId).innerHTML = oeTags;
	  } else {  // flash is too old or we can't detect the plugin
	    var alternateContent = 'This content requires the Macromedia Flash Player.'
	   	+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash player (Free version)</a>';
	    document.write(alternateContent);  // insert non-flash content
	  }//else	
}

