// JavaScript Document
//=== Embedding Clipstream ===
function videoshow(firstFlv)
{
	
// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
var hasProductInstall = DetectFlashVer(6, 0, 65);

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

// Location visited after installation is complete if installation is required
var MMredirectURL = window.location;

// Stored value of document title used by the installation process to close the window that started the installation process
// This is necessary to remove browser windows that will still be utilizing the older version of the player after installation is complete
// DO NOT MODIFY THE FOLLOWING TWO LINES
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;

// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasReqestedVersion ) {
    var productInstallOETags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="480" height="364"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="../playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=ActiveX&MMdoctitle='+MMdoctitle+'" />'
    + '<param name="quality" value="high" /><param name="bgcolor" value="#3A6EA5" />'
    + '<embed src="../playerProductInstall.swf?MMredirectURL='+MMredirectURL+'&MMplayerType=PlugIn" quality="high" bgcolor="#3A6EA5" '
    + 'width="100" height="100" name="detectiontest" aligh="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<object type="application/x-shockwave-flash" data="movie.swf"  width="100" height="100"><\/object>'
    + '<\/object>';
    document.write(productInstallOETags);   // embed the Flash Product Installation SWF
} else if (hasReqestedVersion) {  // if we've detected an acceptable version
document.writeln('<object id="flvVideoPlayer" name="flvVideoPlayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="550" height="400">');

document.writeln('<param name="movie" value="flvVideoPlayer.swf?playerSkin=arcticexternalnovol.swf&FLVFile='+firstFlv+'&showMovie=YES">');
document.writeln('<param name="quality" value="high">');
document.writeln('<param name="wmode" value="transparent" />');
document.writeln('<embed src="flvVideoPlayer.swf?playerSkin=arcticexternalnovol.swf&FLVFile='+firstFlv+'&showMovie=YES" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400" wmode="transparent"  name="flvVideoPlayer"></embed>');
//document.writeln('<object type="application/x-shockwave-flash" data="movie.swf"  width="400" height="300">');
//document.writeln('</object>');
document.writeln('</object>');
 }
else {  
    var alternateContent = '<p align="center"><font color="red">An old version of the Flash plugin was detected. <strong><a href="http://www.macromedia.com/go/getflash/" >Please upgrade your Flash plugin.</a></strong></font></p>';
    document.write(alternateContent);
	}
}

//===  function for audio play ====
function playaudio()
{
	
document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="225" height="55" align="middle">');
document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
document.writeln('<param name="movie" value="audioplayer.swf" />');
document.writeln('<param name="quality" value="high" />');
document.writeln('<param name="wmode" value="transparent" />');
document.writeln('<embed src="audioplayer.swf" quality="high" width="225" height="55" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent"/>');  
document.writeln('</object>');
	
}

