// JavaScript Document
function InsertDMSMovie()
{
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="300" width="400">\n');
document.write('<param name="src" value="DMSVideo.mp4">\n');	
document.write('<param name="autoplay" value="true">\n');	
document.write('<param name="controller" value="true">\n');	
document.write('<embed src="DMSVideo.mp4" width="400" height="300" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" controller="true" autoplay="true" enablejavascript="true">\n');	
document.write('</embed>\n');	
document.write('</object>\n');	
}


function InsertAwardsMovie()
{
document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="300" width="400">\n');
document.write('<param name="src" value="DiversityAwards.mp4">\n');	
document.write('<param name="autoplay" value="true">\n');	
document.write('<param name="controller" value="true">\n');	
document.write('<embed src="DiversityAwards.mp4" width="400" height="300" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" controller="true" autoplay="true" enablejavascript="true">\n');	
document.write('</embed>\n');	
document.write('</object>\n');	
}


function InsertMuseumMovie()
{var videosubdirectory = "";
var videofile = "ChildrensMuseum90.wmv";
//this will be the final video link (absolute path)
var videolink = location.href;

//remove the file:// because windows media doesn't understand that
var file = videolink.indexOf( "file://");

if ( file > -1 )
{
   // THIS IS A LOCAL PATH
   videolink = videolink.substring( file + 8 );

   //remove the %20 because media player doesn't understand those
   while( videolink.lastIndexOf( "%20" ) != -1 )
   {
      videolink = videolink.replace( "%20", " " );
   }

   //remove the html file name now
   var lastslash = videolink.lastIndexOf( "/");

   if ( lastslash > -1 )
      videolink = videolink.substring( 0, lastslash );

   //add the subfolder (if there is one) and then the video file name
   if ( videosubdirectory.length > 0 )
      videolink = videolink + "/" + videosubdirectory + videofile;
   else
      videolink = videolink + "/" + videofile;
}
else
{
   if ( videosubdirectory.length > 0 )
      videolink = videosubdirectory + videofile;
   else
      videolink = videofile;
}
var oeTags = '<object id="mediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"'
         + 'width="408" height="300"'
         + 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"'
         + 'standby="Loading Microsoft Windows Media Player components..."'
         + 'type="application/x-oleobject" showstatusbar="0">'
         + '   <param name="autoStart" value="false"/>'
         + '   <param name="url"       value="ChildrensMuseum90.wmv" />'
         + '   <param name="wmode"     value="transparent" />'
		 + ' <param name="AnimationatStart" value="1" /> '
		 + ' <param name="ShowDisplay" value="0" /> '
		 + '   <param name="uimode"     value="full" />'
         + '   <param name="ShowStatusBar" value="false" />'
         + '   <param name="loop"      value="false" />' 
		+  '   <param name="showcontrols" value="false" />'
		+  '   <param name="stretchToFit" value="false" />'
		 + '   <param name="ShowPositionControls" value="0" />'
		 + ' <param name="AutoSize" value="0" />'
         + '   <embed id       ="EmbedmediaPlayer"'
         + '       type        ="application/x-mplayer2"'
         + '       src         ="' + videolink + '"'
         + '       width       ="408"'
         + '       height      ="300">'
         + '   </embed>'
         + '</object>';
document.write(oeTags);
	
}








function InsertClues1()
{var videosubdirectory = "";
var videofile = "Part1_CLUES.wmv";
//this will be the final video link (absolute path)
var videolink = location.href;

//remove the file:// because windows media doesn't understand that
var file = videolink.indexOf( "file://");

if ( file > -1 )
{
   // THIS IS A LOCAL PATH
   videolink = videolink.substring( file + 8 );

   //remove the %20 because media player doesn't understand those
   while( videolink.lastIndexOf( "%20" ) != -1 )
   {
      videolink = videolink.replace( "%20", " " );
   }

   //remove the html file name now
   var lastslash = videolink.lastIndexOf( "/");

   if ( lastslash > -1 )
      videolink = videolink.substring( 0, lastslash );

   //add the subfolder (if there is one) and then the video file name
   if ( videosubdirectory.length > 0 )
      videolink = videolink + "/" + videosubdirectory + videofile;
   else
      videolink = videolink + "/" + videofile;
}
else
{
   if ( videosubdirectory.length > 0 )
      videolink = videosubdirectory + videofile;
   else
      videolink = videofile;
}
var oeTags = '<object id="mediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"'
         + 'width="408" height="300"'
         + 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"'
         + 'standby="Loading Microsoft Windows Media Player components..."'
         + 'type="application/x-oleobject" showstatusbar="1">'
         + '   <param name="autoStart" value="false"/>'
         + '   <param name="url"       value="Part1_CLUES.wmv" />'
         + '   <param name="wmode"     value="transparent" />'
		 + '   <param name="uimode"     value="full" />'
         + '   <param name="ShowStatusBar" value="true" />'
         + '   <param name="loop"      value="false" />' 
		+  '   <param name="showcontrols" value="false" />'
		+  '   <param name="stretchToFit" value="false" />'
		 + '   <param name="ShowPositionControls" value="1" />'
		 + ' <param name="AutoSize" value="0" />'
         + '   <embed id       ="EmbedmediaPlayer"'
         + '       type        ="application/x-mplayer2"'
         + '       src         ="' + videolink + '"'
         + '       width       ="408"'
         + '       height      ="300">'
         + '   </embed>'
         + '</object>';
document.write(oeTags);
	
}



function InsertClues2()
{var videosubdirectory = "";
var videofile = "Part2_CLUES.wmv";
//this will be the final video link (absolute path)
var videolink = location.href;

//remove the file:// because windows media doesn't understand that
var file = videolink.indexOf( "file://");

if ( file > -1 )
{
   // THIS IS A LOCAL PATH
   videolink = videolink.substring( file + 8 );

   //remove the %20 because media player doesn't understand those
   while( videolink.lastIndexOf( "%20" ) != -1 )
   {
      videolink = videolink.replace( "%20", " " );
   }

   //remove the html file name now
   var lastslash = videolink.lastIndexOf( "/");

   if ( lastslash > -1 )
      videolink = videolink.substring( 0, lastslash );

   //add the subfolder (if there is one) and then the video file name
   if ( videosubdirectory.length > 0 )
      videolink = videolink + "/" + videosubdirectory + videofile;
   else
      videolink = videolink + "/" + videofile;
}
else
{
   if ( videosubdirectory.length > 0 )
      videolink = videosubdirectory + videofile;
   else
      videolink = videofile;
}
var oeTags = '<object id="mediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"'
         + 'width="408" height="300"'
         + 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"'
         + 'standby="Loading Microsoft Windows Media Player components..."'
         + 'type="application/x-oleobject" showstatusbar="1">'
         + '   <param name="autoStart" value="false"/>'
         + '   <param name="url"       value="Part2_CLUES.wmv" />'
         + '   <param name="wmode"     value="transparent" />'
		 + '   <param name="uimode"     value="full" />'
         + '   <param name="ShowStatusBar" value="true" />'
		 + ' <param name="AutoSize" value="0" />'
         + '   <param name="loop"      value="false" />' 
		+  '   <param name="showcontrols" value="false" />'
		 + '   <param name="ShowPositionControls" value="1" />'
         + '   <embed id       ="EmbedmediaPlayer"'
         + '       type        ="application/x-mplayer2"'
         + '       src         ="' + videolink + '"'
         + '       width       ="408"'
         + '       height      ="300">'
         + '   </embed>'
         + '</object>';
document.write(oeTags);
	
}