 					_intervalTimer.stop();
 					_intervalTimer.removeEventListener(TimerEvent.TIMER, onIntervalCheck);
 					_intervalTimer = null;
-                    break;
+                    			break;
 				default:
 					// do nothing
 			}

            return isEIAvailable;
        }
		
		/**
		 * Register to the vpaidEventsDispatcher VPAID's events and allows 3rd parties to more easily provide video viewability measurement 
		 * by exposing the VPAID data as well as the viewability data via a JavaScript API. 		 
		 * @param	vpaidEventsDispatcher object that exposes VPAID events
		 */
		public function initEventsWiring(vpaidEventsDispatcher:IEventDispatcher): void {	
			if (vpaidEventsDispatcher == null)
				throw "You must pass an EventDispatcher to init event wiring";
			registerEventHandler(vpaidEventsDispatcher);
			_vpaidEventsDispatcher = vpaidEventsDispatcher;

			if ((Object)(vpaidEventsDispatcher).hasOwnProperty('getVPAID') && vpaidEventsDispatcher['getVPAID']  is Function) {
                _ad = (Object)(_vpaidEventsDispatcher).getVPAID();
            }
		}
		
		/**
		 * Add a JavaScript resource upon reciveing a given vpaidEvent
		 * @param	vpaidEvent The name of the VPAID event to add the JavaScript resource upon recived
		 * @param	tagUrl The JavaScript tag url
		 */
		public function addJavaScriptResourceOnEvent(vpaidEvent:String, tagUrl:String): void {
			if (_vpaidEventsDispatcher == null)
				throw "initEventsWiring must be called first.";
			_vpaidEventsDispatcher.addEventListener(vpaidEvent, onInjectJavaScriptResource(tagUrl));
		}
		
        ////////////////////////////////////////////////////////////
        //   PUBLIC API 

		{	
			var publishedData:* = {"vpaidData":vpaidData, "ovvData":ovvData}
			var jsOvvPublish:XML = <script><![CDATA[
								function(event, id, args) { 
									setTimeout($ovv.publish(event,  id, args), 0);
								}
							]]></script>;	
			
			ExternalInterface.call(jsOvvPublish, eventType ,_id, publishedData);
		}
