
	function getVideoPath(vvid) {
//2010-10-14 支持高清播放
		var FlashPlayer = new sinaFlash("http://p.you.video.sina.com.cn/swf/bokePlayer20101012_V4_1_40_3.swf", "player", "500", "420", "9,0,2,8", "#ffffff", false,"high","","",true);
		FlashPlayer.addParam("allowScriptAccess", "always");
		FlashPlayer.addParam("allowFullScreen", "true");
		FlashPlayer.addParam("quality", "high");
		FlashPlayer.addParam("wmode", "transparent");

		FlashPlayer.addVariable("vid", vvid);
		//控制是否出现全屏按钮 0否 1出
//		FlashPlayer.addVariable("pid", 478);
		FlashPlayer.addVariable("full", 1);
		FlashPlayer.addVariable("as", 0);
		FlashPlayer.addVariable("tj", 0);
		FlashPlayer.write("video_flash");
/*

		$.ajax({
			url: '/service/get_videopath.php?vid='+vvid+'',
			type: 'GET',
			dataType: 'xml',
			timeout: 1000,
			error: function(){
				alert('网络繁忙，请稍后刷新重试!!!');
			},
			success: function(xml){
				result = $(xml).find('result').text();
				if ( result == 'suee' ) {
					filepath = $(xml).find('durl url').eq(0).text();
					// $('#videopath').attr('value',filepath);
					//var html = '<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="420"><param name="allowScriptAccess" value="always"/><param name="allowFullScreen" value="true"/><param name="movie" value="/templates_images/flvplayerv2.swf" /><param name="quality" value="high" /><param name="allowFullScreen" value="true" /><param name="FlashVars" id="debug" value="vcastr_file='+filepath+'"/><embed id="debug2" flashvars="vcastr_file='+filepath+'" src="/templates_images/flvplayerv2.swf" allowfullscreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="420"></embed></object>';
					//$('#debug').val('vcastr_file='+filepath);
					var html = '<object id="player" name="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500" height="420"><param name="allowscriptaccess" value="always"/><param name="allowfullscreen" value="true"/><param name="movie" value="/templates_images/f/player.swf?autostart=true" /><param name="quality" value="high" /><param name="flashvars" value="file='+filepath+'"/><embed id="player_emb" flashvars="file='+filepath+'" src="/templates_images/f/player.swf?autostart=true" allowfullscreen="true" quality="high" type="application/x-shockwave-flash" width="500" height="420"></embed></object>';
					$('#video_flash').html(html);
				} else {
					result = $(xml).find('message').text();
					alert(result);
				}
			}
		});
*/
	}

	function openPlayer ( vvid ) {
		getVideoPath( vvid );
	}

	/**
	 * 清空留言区内容
	 */
	function reply_content_clean () {
		if(confirm('您真的要清空留言内容？')) {
			$('#reply_content').empty();
			$('#reply_content').val('');
		}
	}
	/**
	 * 向留言区添加表情符号
	 */
	function insert_smiley( id ) {
		$('#reply_content').insertAtCaret($('img#'+id).attr('alt'));
	}
	/**
	 * 监控回复输入框按键事件
	 */
	function ctlent(event) {
		if((event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83) && $('#reply_postsubmit')) {
			submit_reply();
		}
	}
	/**
	 * 提交留言功能
	 */
	function submit_reply () {
		//	postSubmited = true;
		var content = $.trim($('#reply_content').val());
		if ( content != '' ) {
			$('#reply_postsubmit').attr('disabled', true);
			$('#reply_postform').submit();
		} else {
			alert('请填写回复内容！');
			$('#reply_content').focus();
		}
	}
