function getV() {
	$
			.ajax( {
				url : "frontPage/vNew",
				type : "post",
				dataType : "json",
				success : function(json) {
					$("#vfilm")
							.append(
									"<object id='video' width='230' height='208' border='0' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'><embed width='230' height='208' autostart='false' loop='false' src='views/"
											+ json.v + "'></embed></object>");
				},
				error : function() {
					//		$("#list1").append("数据库为空");
			}
			});
}
function getAllV() {
	$
			.ajax( {
				url : "frontPage/allViews",
				type : "post",
				dataType : "json",
				success : function(json) {
					var index = 1;
					var bg = "<table width='100%'>";
					$
							.each(
									json.views,
									function(i, value) {
										bg = bg
												+ "<tr><td style='font-size:13px;font-family:黑体' width='5%'>"
												+ index
												+ "、</td><td style='font-size:13px;font-family:黑体;text-align:left' width='80%'>"
												+ json.views[i][1]
												+ "</td><td style='font-size:13px;font-family:黑体' width='15%'><a align='center' href='javascript:openfile("
												+ json.views[i][0]
												+ ")'>在线观看</a></td></tr>";
										index = index + 1;
									});
					$("#vfilm").append(bg+"</table>");
				},
				error : function() {
					//		$("#list1").append("数据库为空");
			}
			});
}

function openfile(id) {
	window.open('viewFile.action?id=' + id, '',
			'resizable=yes,toolbar=no,menubar=no,status=no');
}

function getpV(pathv) {
	$("#files")
			.append(
					"<object id='video' width='600' height='500' border='0' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'><embed width='600' height='500' autostart='false' loop='false' src='views/"
							+ pathv + "'></embed></object>");
}
