 			if(ExternalInterface.available) {
 				ExternalInterface.addCallback("getCurrentTime", getCurrentTime);
 				ExternalInterface.addCallback("seekToSegment", seekToSegment);
+				ExternalInterface.addCallback("trackViewTime", trackViewTime);
 			}
 		}
 
 		// EXTERNAL METHOD
 		public function getCurrentTime():Number {
-			
 			var currentTime:Number = 0
 			try {
 				currentTime = video.getCurrentTime();
 			} catch(e:Error) {
 				currentTime = 0;
 			}
-			
 			return currentTime;
-			
 		}
 		
 		// EXTERNAL METHOD
 		public function seekToSegment(id:String):void {
-			
 			trace("seekToSegment, id:" + id);
-						
 			var seekTime:Number = 0;
 			for each(var segment:Object in videoSegments) {
 				if(segment.id == id) {

			}
		}
		
		
	}
	

					break;
				}
			}
			try {
				video.seekTo(seekTime);
				video.play();
