 	import flash.events.IOErrorEvent;
 	import flash.events.SecurityErrorEvent;
 	import flash.net.SharedObject;
-	
+
 	import org.puremvc.as3.interfaces.INotification;
 	import org.puremvc.as3.patterns.mediator.Mediator;
-	
-	
+
+
 	public class ClosedCaptionsMediator extends Mediator
 	{
 		public static const NAME:String = "closedCaptionsMediator";
-		
+
 		private var _entryId:String = "";
 		private var _flashvars:Object = null;
 		private var _defaultFound : Boolean = false;

		//new Boolean flag indicating that the entry is currently showing embedded rather than external captions.
		private var _showingEmbeddedCaptions : Boolean = false;
		private var _embeddedCaptionsId : String;
		
		private var _mediaProxy : MediaProxy;
		
		private var _hideClosedCaptions:Boolean  = false;
		
		public function ClosedCaptionsMediator (closedCaptionsDefs:closedCaptionsFlexiblePluginCode , viewComponent:Object=null)
		{
			super(NAME, viewComponent);
			_closedCaptionsDefs = closedCaptionsDefs;
		}
		
		public function get hideClosedCaptions():Boolean
		{
			return _hideClosedCaptions;

			else {
				_closedCaptionsDefs.hasCaptions = false;
			}

			sendNotification( ClosedCaptionsNotifications.CC_DATA_LOADED );

			parseEntryCCData();
		}

		private function captionsListFault (e : KalturaEvent=null) : void
		{
			sendNotification( ClosedCaptionsNotifications.CC_DATA_LOAD_FAILED );
		}

		private function parseEntryCCData () : void
		{
			_defaultFound = false;

			var preferredLang : String;
			try
			{
