﻿function embedFlash(oPlayerId, oPlayerWidth, oPlayerHeight, oPlayerPath){
                    
         var PlayerID = oPlayerId;
         var omniMovieFile = oPlayerPath + "video/";
           
      	 document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='"+oPlayerWidth+"' height='"+oPlayerHeight+"' id='omniturePlayer' align='middle'>");
      	 document.write("<param name='allowScriptAccess' value='always' />");
      	 document.write("<param name='movie' value='"+omniMovieFile+"omniturePlayer.swf?actionSourcePath=" + omniMovieFile + "&pwidth=" + oPlayerWidth + "&pheight=" + oPlayerHeight + "&playerId="+PlayerID+"&flashId=omniturePlayer&blank=blank&videoRef=null&lineupId=null&playerTag=null&swfFile=federated_f8.swf' />");
      	 document.write("<param name='quality' value='high' />");
      	 document.write("<param name='bgcolor' value='#FFFFFF' />");
      	 document.write("<embed src='"+omniMovieFile+"omniturePlayer.swf?actionSourcePath=" + omniMovieFile + "&pwidth=" + oPlayerWidth + "&pheight=" + oPlayerHeight + "&playerId="+PlayerID+"&flashId=omniturePlayer&blank=blank&videoRef=null&lineupId=null&playerTag=null&swfFile=federated_f8.swf' quality='high' bgcolor='#FFFFFF' width='" + oPlayerWidth + "' height='" + oPlayerHeight + "' name='omniturePlayer' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>");
}

function insertAudioPlayer(soundfile, extFile, audioPlayer) { 
        document.write('<object width="244" height="46" align="middle" id="audioplayer" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">');
        document.write('<param value="sameDomain" name="allowScriptAccess"></param>');
        document.write('<param value="'+audioPlayer+'audio/audioplayer.swf?soundfile='+soundfile+'&externalFile='+extFile+'" name="movie"></param>');
        document.write('<param value="high" name="quality"></param>');
        document.write('<param value="#ffffff" name="bgcolor"></param>');
        document.write('<embed width="244" height="46" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="audioplayer" bgcolor="#ffffff" quality="high" src="'+audioPlayer+'audio/audioplayer.swf?soundfile='+soundfile+'&externalFile='+extFile+'"></embed>');
        document.write('</object>');
 }

function oneSpotNews(url){
    oneSpotNewsWindow = window.open(url,'oneSpotNews','width=999,height=600,directories=yes,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes');
    oneSpotNewsWindow.focus();
}