function ClsQuickTimePlayer(cfg) {
	var _this = this;
	var m_root = tv_starv_fun.Cfg(cfg,'rootpath','');
	var m_size_button = tv_starv_fun.Cfg(cfg,'sizeButton',true);
	var m_background = tv_starv_fun.Cfg(cfg,'background','transparent');
	var m_panel_header = tv_starv_fun.Cfg(cfg,'head',true);
	this.for_public = false;
	var m_timer = null;
	var m_timer_forplayer = null;
	this.video_id = 'tv_starv_player_quick_'+tv_starv_fun.getRandomString(15);
	this.renderto = null;
	this.use_window = true;
	this.ctnr_panel = null;
	this.ctnrpanel_baseCls = false;
	this.panel_border_cssstyle = false;
	this.show_playerswitch = true;
	this.show_speedswitch = false;
	this.speed_click_handler = function(e,tool_el,panel){return 1;}		//this function must return a integer speed
	this.hdl_playurl_error = function(url,camid,camtitle){};
	this.hdl_resized = function(w,h,maxmize){};
	this.speed = 1;
	this.bl_w = 352;	//ratio : width
	this.bl_h = 288;	//ratio : height
	this.w = parseInt(tv_starv_fun.Cfg(cfg,'w',422));
	this.h = parseInt(tv_starv_fun.Cfg(cfg,'h',345));
	this.maxmized = false;
	this.w1 = 352;
	this.h1 = 288;
	this.w2 = 422;
	this.h2 = 345;
	this.hd_w1 = 720;
	this.hd_h1 = 576;
	this.magnification = 1.05;
	this.reduce = 0.95;
	//�Ƿ�Ϊ����
	this.hdnormals = "normal";

	this.panel_toolbar_height = (m_panel_header ? 25 : 0);
	this.videobar_height = 0;
	this.hofw = this.videobar_height+30;
	this.wofw = 12;
	this.hofp = this.videobar_height+this.panel_toolbar_height;
	this.wofp = 0;

	this.window = null;
	this.winpel = null;
	this.panel = null;

	this.hdl_switchplayer = function(id,title,url,w,h,maxmize){}
	this.hdl_savevideosize = function(w,h,maxmize){}

	var m_title = '';
	var m_id = 0;

	var m_tools_refresh_sh = false;
	var is_first = true;

	var getWinW = function(vw) {
		return vw + _this.wofw;
	}
	var getWinH = function(vh) {
		return vh + _this.hofw;
	}
	var getPnlW = function(vw) {
		return vw + _this.wofp;
	}
	var getPnlH = function(vh) {
		return vh + _this.hofp;
	}
	var getVnlH = function(vh) {
		return vh + _this.videobar_height
	}
	var getVdoW = function(ww) {
		return ww - _this.wofw
	}
	var getVdoH = function(wh) {
		return wh - _this.hofw
	}
	var getVdoWByPanel = function(ww) {
		return ww - _this.wofp
	}
	var getVdoHByPanel = function(wh) {
		return wh - _this.hofp
	}

	var resizePanel = function(w,h) {
		_this.ctnr_panel.setSize(w,h);
	}
	var resizeByPnlSize = function(w,h) {
		var v_w = getVdoWByPanel(w);
		var v_h = getVdoHByPanel(h);
		var vdo_w = 352;
		var vdo_h = 288;


		vdo_h = v_h;
		vdo_w = Math.ceil(_this.bl_w * vdo_h / _this.bl_h);
		if (vdo_w > v_w) {

			vdo_w = v_w;
			vdo_h = Math.ceil(_this.bl_h * vdo_w / _this.bl_w);
		}

		_this.w = vdo_w;
		_this.h = vdo_h;

		client_wh = _this.winpel.getSize();

		//top left corner of the container panel
		var client_w = client_wh.width;
		var client_h = client_wh.height;
		var x = Math.ceil((client_w - getPnlW(vdo_w)) / 2);
		var y = Math.ceil((client_h - getPnlH(vdo_h)) / 2);


		if (_this.ctnr_panel) {
			_this.ctnr_panel.setPosition(x,y);
			_this.ctnr_panel.setSize(w,h);
		}

		if (_this.panel) {
			_this.panel.setPosition(0,0);
			_this.panel.setSize(vdo_w, getVnlH(vdo_h));
		}

		var player = _this.getPlayer();
		if (player) {
			try{
				player.width = vdo_w;
				player.height = vdo_h;
			}catch(e){}

			try{
				player.SetRectangle('0,0,'+vdo_w+','+vdo_h);
			}catch(e){}
		}

		if (_this.panel) _this.panel.doLayout();
		try{_this.ctnr_panel.doLayout();}catch(e){}		//when initializing, the panel is not avaliable

		_this.hdl_resized(w,h,_this.maxmized);
	}

	var resizeWindow = function(w,h) {
		_this.window.setSize(w,h);
	}
	var resizeByWinSize = function(w,h) {
		var v_w = getVdoW(w);
		var v_h = getVdoH(h);
		var vdo_w = 352;
		var vdo_h = 288;

		vdo_h = v_h;
		vdo_w = Math.ceil(_this.bl_w * vdo_h / _this.bl_h);
		if (vdo_w > v_w) {

			vdo_w = v_w;
			vdo_h = Math.ceil(_this.bl_h * vdo_w / _this.bl_w);
		}

		_this.w = vdo_w;
		_this.h = vdo_h;

		//left top corner of the video panel
		var client_w = w-_this.wofw;
		var client_h = h-_this.hofw;
		var x = Math.ceil((client_w - vdo_w) / 2);
		var y = Math.ceil((client_h - vdo_h) / 2);


		if (_this.ctnr_panel) {
			_this.ctnr_panel.setPosition(0,0);
			_this.ctnr_panel.setSize(w,h);
		}

		if (_this.panel) {
			_this.panel.setPosition(x,y);
			_this.panel.setSize(vdo_w, getVnlH(vdo_h));
		}
		//
		var player = _this.getPlayer();
		if (player) {
			player.width = vdo_w;
			player.height = vdo_h;
			try{
				player.SetRectangle('0,0,'+vdo_w+','+vdo_h);
			}catch(e){}
		}

		_this.panel.doLayout();
		_this.window.doLayout();

		_this.hdl_resized(w,h,_this.maxmized);
	}

	var createPPanel = function() {
		if (_this.ctnr_panel==null) {
			if (_this.renderto) {
				var tools = [];
				if (m_size_button) {
					tools.push({id:'minus',qtip:_this.lan.smaller,handler:function(e,tool_el,panel){
						resizePanel(getPnlW(_this.w1), getPnlH(_this.h1));
						//resizeByWinSize(getWinW(_this.w1), getWinH(_this.h1));
					}});
					tools.push({id:'plus',qtip:_this.lan.bigger,handler:function(e,tool_el,panel){
						resizePanel(getPnlW(_this.w2), getPnlH(_this.h2));
						//resizeByWinSize(getWinW(_this.w2), getWinH(_this.h2));
					}});
				}
				if (_this.show_playerswitch) {
					tools.unshift({id:'refresh',qtip:_this.lan.switch_to_realplayer,handler:function(e,tool_el,panel){
						_this.hdl_switchplayer(m_id, m_title, m_url, _this.w, _this.h, _this.maxmized);
						//resizeByWinSize(getWinW(_this.w1), getWinH(_this.h1));
					}});
				}
				if (_this.show_speedswitch) {
					tools.unshift({id:'speed',qtip:_this.lan.switch_speed,handler:function(e,tool_el,panel){
						_this.speed = _this.speed_click_handler(e,tool_el,panel);
					}});
				}
				//tools.push({id:'maximize',qtip:'maximize',handler:function(e,tool_el,panel){
				//	//_this.hdl_switchplayer(m_id, m_title, m_url, _this.w, _this.h, _this.maxmized);
				//	//resizeByWinSize(getWinW(_this.w1), getWinH(_this.h1));
				//
				//	_this.ctnr_panel.header.setDisplayed(false);
				//
				//	createWindow(false);
				//	_this.window.add(_this.ctnr_panel);
				//
				//	_this.window.show();
				//	//
				//	_this.maxmized = true;
				//	if (_this.maxmized) {
				//		_this.window.maximize();
				//		var tmpsize = _this.window.getSize();
				//		resizeByWinSize(tmpsize.width, tmpsize.height);
				//	}
				//}});
			}
			var pnl_obj = {
				layout:'absolute', x:0, y:0,
				header:false,

				width:getPnlW(_this.w), height:getPnlH(_this.h),
				border:(_this.panel_border_cssstyle ? true : false), bodyStyle:"padding:0px; margin:0px; background:#000000"+(_this.panel_border_cssstyle ? "; border:"+_this.panel_border_cssstyle : ""),
				listeners: {
					'resize' : function(win, width, height) {
						if (!_this.renderto) return false;
						//win.center();
	
						resizeByPnlSize(width, height);
					}
				}
			}

			if (_this.renderto) {
				if (m_panel_header) {
					pnl_obj.header = true;
				}
				else{
					pnl_obj.header = false;
				}
				if (tools.length>0) pnl_obj.tools = tools;
			}

			if (_this.ctnrpanel_baseCls) pnl_obj.baseCls = _this.ctnrpanel_baseCls;
			_this.ctnr_panel = new Ext.Panel(pnl_obj);
		}
		return _this.ctnr_panel;
	}

	var createWinpnl = function() {
		if (_this.winpel==null) {
			var pnl_obj = {
				layout:'absolute', x:0, y:0,

				height:_this.h+_this.hofp,
				border:false, bodyStyle:"padding:0px; margin:0px; background:"+m_background
			}
			_this.winpel = new Ext.Panel(pnl_obj);
		}
		return _this.winpel;
	}
	var createWindow = function(closable) {
		if(getWinW(_this.w)>document.body.clientWidth || getWinH(_this.h)>document.body.clientHeight)
		{	if(_this.hdnormals=="hd")
			{	
				_this.w = _this.hd_w1;
				_this.h = _this.hd_h1;
			}
			else{
				_this.w = _this.w1;
				_this.h = _this.h1;
			}
			
			
			var window_w = document.body.clientWidth;
			var window_h = document.body.clientHeight;
			var vdo_h=0;
			var vdo_w=0;
			vdo_h = _this.h;
			vdo_w = Math.ceil(_this.bl_w * vdo_h / _this.bl_h);
			if (vdo_w > window_w) {
				vdo_w = window_w;
				vdo_h = Math.ceil(_this.bl_h * vdo_w / _this.bl_w);
			}
	
			_this.w = vdo_w;
			_this.h = vdo_h;
			
		}
		if (typeof(closable)=='undefined' || closable==null) closable = true;
		if (_this.window==null) {
			var tools = [];
			if (m_size_button) {
				tools.push({id:'orginal',qtip:"original",handler:function(e,tool_el,panel){
					if(_this.hdnormals=="hd")
					{	
						_this.w = _this.hd_w1;
						_this.h = _this.hd_h1;
					}
					else{
						_this.w = _this.w1;
						_this.h = _this.h1;
					}
					
					
					var window_w = document.body.clientWidth;
					var window_h = document.body.clientHeight;
					var vdo_h=0;
					var vdo_w=0;
					vdo_h = _this.h;
					vdo_w = Math.ceil(_this.bl_w * vdo_h / _this.bl_h);
					if (vdo_w > window_w) {
						vdo_w = window_w;
						vdo_h = Math.ceil(_this.bl_h * vdo_w / _this.bl_w);
					}
			
					_this.w = vdo_w;
					_this.h = vdo_h;
					
					resizeWindow(getWinW(_this.w), getWinH(_this.h));

				}});
				tools.push({id:'minus',qtip:_this.lan.smaller,handler:function(e,tool_el,panel){
					if(parseInt(_this.w*_this.reduce)>=_this.w1 && parseInt(_this.h*_this.reduce)>=_this.h1){
						_this.w = parseInt(_this.w*_this.reduce);
						_this.h = parseInt(_this.h*_this.reduce);
						resizeWindow(getWinW(_this.w), getWinH(_this.h));
					}
				}});
				tools.push({id:'plus',qtip:_this.lan.bigger,handler:function(e,tool_el,panel){
					if(getWinW(parseInt(_this.w*_this.magnification))<=document.body.clientWidth && getWinH(parseInt(_this.h*_this.magnification))<=document.body.clientHeight){
						_this.w = parseInt(_this.w*_this.magnification);
						_this.h = parseInt(_this.h*_this.magnification);
						resizeWindow(getWinW(_this.w), getWinH(_this.h));
					}
				}});
			}
			if (_this.show_playerswitch) {
				tools.unshift({id:'refresh',qtip:_this.lan.switch_to_realplayer,handler:function(e,tool_el,panel){
					_this.hdl_switchplayer(m_id, m_title, m_url, _this.w, _this.h, _this.maxmized);
					//resizeByWinSize(getWinW(_this.w1), getWinH(_this.h1));
				}});
			}

			var win_obj = {
				closeAction: 'close', modal: false, plain: true, resizable: false, header: true,
				title: '',
				closable: closable, shadow: true,
				maximizable: true,
				width: getWinW(_this.w), autoHeight: false,
				height: getWinH(_this.h),
				bodyStyle: 'padding:0px;',
				border: false,
				defaults: {border:false},
				listeners: {
					'close' : function(){
						_this.close();
					},
					'resize' : function(win, width, height) {
						win.center();
						//adjust the video size
						resizeByWinSize(width, height);
					},
					'maximize' : function(win) {
						_this.maxmized = true;
	
						_this.window.tools.minus.hide();
						_this.window.tools.plus.hide();
						if (_this.show_playerswitch) {
							m_tools_refresh_sh = _this.window.tools.refresh.isVisible();
							try{_this.window.tools.refresh.hide();}catch(e){}
						}
	
						_this.hdl_resized(_this.window.getWidth(),_this.window.getHeight(),_this.maxmized);
					},
					'restore' : function(win) {
						_this.maxmized = false;
						if (!_this.renderto) {
							forceRestoreWinsize();
	
							_this.window.tools.minus.show();
							_this.window.tools.plus.show();
							if (_this.show_playerswitch) {
								try{
									if (m_tools_refresh_sh) _this.window.tools.refresh.show();
								}catch(e){}
							}
						}
						else{
							if (_this.w > _this.w2) {
								_this.w = _this.w1;
								_this.h = _this.h1;
							}
							_this.winpel.add(_this.ctnr_panel);
							_this.winpel.doLayout();
							_this.window.hide();
						}
	
						_this.hdl_resized(_this.window.getWidth(),_this.window.getHeight(),_this.maxmized);
					}
				}
			};
			if (tools.length>0) win_obj.tools = tools;
			win_obj.maximizable = false;
			if (m_size_button) win_obj.maximizable = true;
			_this.window = new Ext.Window(win_obj);
		}
		return _this.window;
	}
	this.createPlayer = function() {
		if (_this.panel==null) {
			//var player_str = getPlayerString(_this.w, _this.h);
			var player_str = '';

			_this.panel = new Ext.Panel({
				header: false, width:_this.w, height:getVnlH(_this.h), defaults: {border:false}, border:false

				,layout:'absolute', x:0, y:0
				,bodyStyle: 'background:#000000'

				,html: player_str
			});
		}
		return _this.panel;
	}
	var checkPlayerExists = function() {
		var p = _this.getPlayer();
		if (!p) {
			try{
				if (_this.panel) {
					_this.panel.destroy();
					_this.panel = null;
				}
			}catch(e){}
			try{
				if (_this.ctnr_panel) {
					_this.ctnr_panel.destroy();
					_this.ctnr_panel = null;
				}
			}catch(e){}
			try{
				if (_this.winpel) {
					_this.winpel.destroy();
					_this.winpel = null;
				}
			}catch(e){}
			try{
				if (_this.window) {
					_this.window.destroy();
					_this.window = null;
				}
			}catch(e){}
			return false;
		}
		else{
			return true;
		}
	}
	this.stop = function() {
		var player = _this.getPlayer();
		if (player) {
			try{player.Stop()}catch(e){};
		}
	}
	this.show = function(title) {
		if (typeof(title)=='undefined' || title==null) title = '';
		_this.play(0,title,null);
	}
	this.play = function(camera_id, title, url) {
		m_url = url;
		m_title = title;
		m_id = camera_id;
		is_first = !checkPlayerExists();

		if (is_first) {
			_this.createPlayer();


			createPPanel();
			_this.ctnr_panel.add(_this.panel);

			if (!_this.renderto) {
				createWindow();
				_this.window.add(_this.ctnr_panel);
				_this.window.show();

				if (_this.maxmized) {
					_this.window.maximize();
					var tmpsize = _this.window.getSize();
					resizeByWinSize(tmpsize.width, tmpsize.height);
				}

			}
			else{
				createWinpnl();
				_this.winpel.render(_this.renderto);

				client_wh = Ext.get(_this.renderto).getSize();
				_this.winpel.setSize(client_wh.width, client_wh.height);
				
				if (is_first) _this.winpel.add(_this.ctnr_panel);
				_this.winpel.doLayout();
			}
		}
		
		_this.stop();

		_this.showmsg(_this.lan.preparing + title);

		var play_success = false;
		if (typeof(url)=='undefined' || url==null) {
			if (camera_id>0) {
				_this.showmsg(_this.lan.getting_video + title);
				Ext.Ajax.abort();
				Ext.Ajax.request({
					url: m_root + 'play_servernew.php',
					params: {'ids':camera_id, 'public':(_this.for_public ? 1 : 0)},
					success: function(response, options){
						try{
							var rjdata = Ext.util.JSON.decode(response.responseText);
							_this.showmsg(tv_starv_fun.qpDHanzi(rjdata.message) + ' ' + title);
							play_success = _play(rjdata.urls);
							_this.hdnormals = rjdata.hdnormals;
						}
						catch(e){
							_this.showmsg(_this.lan.unexpected_error+' 1' + title);
							alert(e.message + "\r\n\r\n" + response.responseText);
						}
					},
					failure: function(response, options){
						if (!response) {
							alert(_this.lan.unexpected_error+' 3'); return false;
						}
						if (!response.responseText) {
							alert(_this.lan.unexpected_error+' 4'); return false;
						}
						if (response.responseText.length>0) {
							alert(tv_starv_fun.qpDHanzi(response.responseText), '', _this.lan.unexpected_error+' 2');
						}
						else{

							_this.showmsg(_this.lan.waiting_msg + title);
						}
					}
				});
			}
			else{
				_this.showmsg(_this.lan.player_status_ready + title);
			}
		}
		else{
			play_success = _play(url);
		}

		//if (!play_success) return false;
		
		//load the specified url(eg: for stats)
		if (tv_starv_fun.Cfg(cfg,'loadpage','')!='') {
			var ifm = getIframe();
			if (!ifm) {
				if (_this.panel) {
					Ext.DomHelper.append(_this.panel.body,{tag:'iframe',src:cfg.loadpage,style:'display:none;'});
				}
			}
			else{
				ifm.src = cfg.loadpage;
			}
		}
	}
	var getIframe = function() {
		var r = false;
		if (!_this.panel) return false;
		if (_this.panel.body.dom.lastChild) {
			if (_this.panel.body.dom.lastChild.tagName.toLowerCase()=='iframe') {
				if (_this.panel.body.dom.lastChild.src.indexOf('apple_obj.php')==-1) {
					r = _this.panel.body.dom.lastChild;
				}
			}
		}
		return r;
	}
	var _play = function(url) {
		if (!url) {
			_this.showmsg(_this.lan.video_url_empty);
			return false;
		}
		if (url.indexOf('[error]')>-1) {
			_this.showmsg(url);
			_this.hdl_playurl_error(url,m_id,m_title);
			return false;
		}
		url = tv_starv_fun.replaceAll(url, "&amp;", "&");
		
		_play_3(url);
		
		/*var player = _this.getPlayer();

		if (!player) {
			_this.showmsg(_this.lan.player_status_initializing);
			m_timer_forplayer = window.setInterval(function(){
				checkPlayer(url);
			}, 500);
			return false;
		}
		else{
			_play_2(player, url);
			checkForPlay(player, url);
		}*/
		

		_this.showmsg(m_title);
		return true;
	}
	var _play_3 = function(url) {
		var pstr = getPlayerString(_this.w, _this.h, url, true);

		_this.panel.body.update(pstr);
		
		if (Ext.isIE) {
			//Ext.fly(_this.video_id).on('onqt_timechanged', function(){
			//});
			window.setTimeout(setVideoSize, 1000*40);
		}
		else{
			if (Ext.isChrome || Ext.isSafari) {
				Ext.fly(_this.video_id).on('qt_timechanged', function(){
					setVideoSize();
				});
			}
			else{
				Ext.fly(_this.getPlayer()).on('qt_timechanged', function(){
					setVideoSize();
				});
			}
		}

	}
	var setVideoSize = function() {
		if (_this.renderto) {
			var tmp_size = _this.ctnr_panel.getSize();
			resizeByPnlSize(tmp_size.width, tmp_size.height);;
		}
		else{
			var tmp_size = _this.window.getSize();
			resizeByWinSize(tmp_size.width, tmp_size.height);
		}
	}
	/*var _play_2 = function(player, url) {
			try{player.Stop()}catch(e){};
			player.SetURL(url);
			player.SetKioskMode(true);
			player.SetControllerVisible(false);
			player.Play();

			if (is_first) {
				if (_this.renderto) {
					var tmp_size = _this.ctnr_panel.getSize();
					//use setTimeout because of playing may not started at this time, the setRectangle() method can't work well
					window.setTimeout(function(){resizeByPnlSize(tmp_size.width, tmp_size.height);},10000);
				}
				else{
					var tmp_size = _this.window.getSize();
					//use setTimeout because of playing may not started at this time, the setRectangle() method can't work well
					window.setTimeout(function(){resizeByWinSize(tmp_size.width, tmp_size.height);},10000);
				}
			}
	}*/
	/*var checkForPlay = function(player,url) {
		m_timer = window.setInterval(function(){
			if (player.GetPluginStatus()=='Waiting') {
				_play_2(player, url);
			}
			else{
				window.clearInterval(m_timer);
				m_timer = null;
			}
				
			//}
		},2000);
	}*/
	
	var checkPlayer = function(url) {
		_this.showmsg(_this.lan.waiting_player_avaliable + m_title);
		var player = _this.getPlayer();
		if (player) {
			window.clearInterval(m_timer_forplayer);
			m_timer_forplayer = null;

			_play(url);
		}
	}
	var forceRestoreWinsize = function() {
		//to avoid window be maxmized when click the restore button, if window closed when it is maxmized
		if (_this.w > _this.w2) {
			_this.w = _this.w1;
			_this.h = _this.h1;
		}

		_this.maxmized = false;
		var tmp_w = getWinW(_this.w);
		var tmp_h = getWinH(_this.h);
		_this.window.setSize(tmp_w, tmp_h);
	}
	this.close = function() {
		//in a new window, load complete event of player can't be captured, so the following 4 lines disabled for the present
		/*if (_this.w>_this.w2) {
			_this.w = _this.w1;
			_this.h = _this.h1;
		}*/
		_this.stop();
		
		_this.hdl_savevideosize(_this.w, _this.h, _this.maxmized);

		if (_this.ctnr_panel) {_this.ctnr_panel.destroy(); _this.ctnr_panel=null;}
		if (_this.panel) {_this.panel.destroy(); _this.panel=null;}
		if (_this.window) {_this.window.destroy(); _this.window=null;}
		if (_this.winpel) {_this.winpel.destroy(); _this.winpel=null;}
	}
	this.showmsg = function(msg) {
		try{
			if (!_this.renderto) {
				if (_this.window!=null) _this.window.setTitle(msg);
			}
			else{
				if (!m_panel_header) return true;
				if (_this.ctnr_panel!=null) _this.ctnr_panel.setTitle(msg);
			}
		}catch(e){}
	}
	this.setPlayerSwitcherVisible = function(tf) {
		if (!_this.window) return false;
		if (!_this.window.tools) return false;
		if (!_this.window.tools.refresh) return false;

		if (tf) {
			_this.window.tools.refresh.show();
		}
		else{
			_this.window.tools.refresh.hide();
		}
	}
	this.doSwitchplayer = function(id, title, url) {
		if (typeof(id)=='undefined') id = m_id;
		if (typeof(title)=='undefined') title = m_title;
		if (typeof(url)=='undefined') url = m_url;
		this.hdl_switchplayer(id, title, url, _this.w, _this.h, _this.maxmized);
	}
	this.getVHByW = function(w) {

		vdo_w = w;
		vdo_h = Math.ceil(_this.bl_h * vdo_w / _this.bl_w);
		return vdo_h;
	}
	this.getVWByH = function(h) {

		vdo_h = h;
		vdo_w = Math.ceil(_this.bl_w * vdo_h / _this.bl_h);
		return vdo_w;
	}
	this.getPlayer = function() {
		var x = document.getElementById(_this.video_id);
		//if (!x) x = document.getElementById(_this.video_id+"_FF");
		if (!x) {
			return null;
		}
		else{
			//return x;
			if (Ext.isIE) {
				return window[_this.video_id];
				//return x;
			}
			else{
				return document[_this.video_id];
			}
		}
	}
	var getPlayerString = function(w, h, movie_src, autoplay) {
		if (typeof(movie_src)=='undefined' || movie_src==null) movie_src = '';
		if (typeof(autoplay)=='undefined' || autoplay==null) autoplay = 'false';
		if (autoplay==true) autoplay = 'true';
		if (autoplay==false) autoplay = 'false';
		
		//var vdstr = QT_GenerateOBJECTText('sample.mov',w,h,'','qtsrc','sample.mov','href','', 'id',_this.video_id, 'name',_this.video_id, 'enablejavascript','true','loop','true','AUTOPLAY','false','BGCOLOR','#000000','postdomevents','true', 'emb#NAME' , _this.video_id , 'obj#id' , _this.video_id, 'emb#id', _this.video_id);
		//var vdstr = QT_GenerateOBJECTText('',w,h,'','qtsrc','','href','', 'id',_this.video_id, 'name',_this.video_id, 'enablejavascript','true','loop','true','AUTOPLAY','false','BGCOLOR','#000000','postdomevents','true', 'emb#NAME' , _this.video_id , 'obj#id' , _this.video_id, 'emb#id', _this.video_id);
		//var vdstr = QT_GenerateOBJECTText('sample.mov',w,h,'','qtsrc',movie_src,'href','', 'id',_this.video_id, 'name',_this.video_id, 'enablejavascript','true','loop','true','AUTOPLAY',autoplay,'BGCOLOR','#000000','postdomevents','true', 'emb#NAME' , _this.video_id , 'obj#id' , _this.video_id, 'emb#id', _this.video_id);
		var vdstr = QT_GenerateOBJECTText('sample.mov',w,h,'','qtsrc',movie_src,'href','', 'id',_this.video_id, 'name',_this.video_id, 'enablejavascript','true','loop','true','AUTOPLAY',autoplay,'BGCOLOR','#000000','postdomevents','true', 'emb#NAME' , _this.video_id , 'obj#id' , _this.video_id, 'emb#id', _this.video_id+"_FF");
		return vdstr;
	}
}
