goog.provide('owgis.ncwms.animation.status');

// Is the animation status it can be:
// 		none -> There is not animation or is being stopped
// 		loading -> The animation is being requested but not all of the frames have loaded
//		playing -> Animation is being played at current speed
//		pause   -> Animation paused
owgis.ncwms.animation.status.loading = "loading"; 
owgis.ncwms.animation.status.loadingplaying = "loading_playing"; 
owgis.ncwms.animation.status.playing = "playing"; 
owgis.ncwms.animation.status.none = "none"; 
owgis.ncwms.animation.status.paused = "paused"; 
owgis.ncwms.animation.status.current = owgis.ncwms.animation.status.none;

/**
 * The resolution of the animation depends on the size of the screen. Assuming
 * that if you have a larger screen then you will have a better internet 
 * @returns {Number}
 */
window['owgis.ncwms.animation.status.getResolutionRatio'] = owgis.ncwms.animation.status.getResolutionRatio;
owgis.ncwms.animation.status.getResolutionRatio = function getResolutionRatio(){
	var selectedRes = $("[name=video_res]:checked").val(); 
	switch(selectedRes){
		case "high":
			return .55;
			break;
		case "normal":
			return .3;
			break;
		case "low":
			return .2;
			break;
	}
}

window['owgis.ncwms.animation.status.getResolutionRatioCurrents'] = owgis.ncwms.animation.status.getResolutionRatioCurrents;
owgis.ncwms.animation.status.getResolutionRatioCurrents = function getResolutionRatioCurrents(){
	var selectedRes = $("[name=video_res]:checked").val(); 
	switch(selectedRes){
		case "high":
			return .8;
			break;
		case "normal":
			return .5;
			break;
		case "low":
			return .25;
			break;
	}
}
@@ -1555,9 +1555,9 @@
 rn .
-8
+9
 ;%0A%09%09
@@ -1630,17 +1630,17 @@
 return .
-2
+1
 5;%0A%09%09%09br

Change resolution in AnimationStatus.js