{
		//////////////////////////////////
		// the subfolder and file name - these are used only on the mozilla browser
		var videosubdirectory = "http://www.protectis.net/video/Protectis_media/";
		var videofile = "Protectis.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
		{
			////////////////////////////
			// THIS IS NOT A LOCAL FILE - give relative path

			//no need to give an absolute path
			if ( videosubdirectory.length > 0 )
				videolink = videosubdirectory + "/" + videofile;
			else
				videolink = videofile;
		}

		//write out the mozilla complient code
		document.write( "<EMBED NAME   =\"EmbedmediaPlayer\"");
		document.write( "TYPE   =\"application/x-mplayer2\" ");
		document.write( "SRC    =\"" + videolink + "\"");
		document.write( "WIDTH  =\"500\" ");
		document.write( "HEIGHT =\"433\"> ");
		document.write( "</EMBED>" );
	}