text: (function($){
  	/**
  	 * Constructor.
  	 * @name ElementLayout : 皮肤布局对象.
  	 * 
  	 */
  	var ElementLayout = SewisePlayerSkin.ElementLayout = function(elementObject){
  		var $container = elementObject.$container;
  		var $controlBarProgress = elementObject.$controlBarProgress;
  		var $playtime = elementObject.$playtime;
  
  		var that = this;
  		var defStageWidth = elementObject.defStageWidth;
  		var defStageHeight = elementObject.defStageHeight;
  		
  		var defLeftValue = elementObject.defLeftValue;
  		var defTopValue = elementObject.defTopValue;
  		var defOffsetX = elementObject.defOffsetX;
  		var defOffsetY = elementObject.defOffsetY;
  		var defOverflow = elementObject.defOverflow;
  
  		//var btnsWidth = 38 * 5 + 118 + 3 * 6;
  		/**
  		 * 由于ios设备下不允许控制音量，所以
  		 * 这里统一取消音量控制按钮。
  		 */
  		var btnsWidth = 38 * 4 + 118 + 3 * 6;
  		var defProgressWidth = parseInt(defStageWidth) - btnsWidth;
  		
  		init();
  		////////////////////////////////////////////////////////////////////////////////////////////
  		function init(){
  			if(defProgressWidth < 0){
  				defProgressWidth = defProgressWidth + $playtime.width();
  				$playtime.hide();
  			}
  			$controlBarProgress.css("width", defProgressWidth);
  		}
  		this.fullScreen = function(state){
  			if(state == "not-support"){
  				$("body").css("overflow", "hidden");
  
  				var clientW = $(window).width();
  				var clientH = $(window).height();
  				//console.log("clientW: " + clientW + "\nclientH: " + clientH);
  				$container.css("width", clientW);
  				$container.css("height", clientH);
  
  				//var offsetX = (defLeftValue - defOffsetX) + 'px';
  				//var offsetY = (defTopValue - defOffsetY) + 'px';
  				
  				var scrollL = $(document).scrollLeft();
  				var scrollT = $(document).scrollTop();
  				var marginL = parseInt($("body").css("margin-left"));
  				var marginT = parseInt($("body").css("margin-top"));
  				var offsetX = (defLeftValue - defOffsetX + scrollL) + 'px';
  				var offsetY = (defTopValue - defOffsetY + scrollT - marginT) + 'px';
  
  				$container.css("left", offsetX);
  				$container.css("top", offsetY);
  				
  				
  				/*$container.css("width", window.screen.width);
  				$container.css("height", window.screen.height);*/
  				//console.log($container.width());
  			}else{
  				$container.css("width", "100%");
  				$container.css("height", "100%");
  			}
  			
  			//var fullProgressWidth = parseInt($container.width()) - btnsWidth;
  			//兼容火狐bootstrap框架下，弹窗全屏时进度条显示的问题。
  			var fullProgressWidth = parseInt($(window).width()) - btnsWidth;
  			
  			//console.log(fullProgressWidth);
  			if(fullProgressWidth < 0){
  				fullProgressWidth = fullProgressWidth + $playtime.width();
  				$playtime.hide();
  			}else{
  				$playtime.show();
  			}
  			$controlBarProgress.css("width", fullProgressWidth);
  		}
  		this.normalScreen = function(){
  			//$container.css("width", defStageWidth);
  			//$container.css("height", defStageHeight);
  			
  			$container.css("width", "100%");
  			$container.css("height", "100%");
  
  			$container.css("left", defLeftValue);
  			$container.css("top", defTopValue);
  			$("body").css("overflow", defOverflow);
  			
  			defProgressWidth = parseInt(defStageWidth) - btnsWidth;
  			if(defProgressWidth < 0){
  				defProgressWidth = defProgressWidth + $playtime.width();
  				$playtime.hide();
  			}else{
  				$playtime.show();
  			}
  			$controlBarProgress.css("width", defProgressWidth);
  		}
  		this.resize = function(){
  			defStageWidth = $container.width();
  			defStageHeight = $container.height();
  			defProgressWidth = parseInt(defStageWidth) - btnsWidth;
  			if(defProgressWidth < 0){
  				defProgressWidth = defProgressWidth + $playtime.width();
  				$playtime.hide();
  			}else{
  				$playtime.show();
  			}
  			$controlBarProgress.css("width", defProgressWidth);
  		}
  		
  	};
  	
  })(window.jQuery)