<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>[WCName]</title>
	<link href="[BasePath]/css/base.css" rel="stylesheet" />
    <link href="[BasePath]/css/cp.css" rel="stylesheet" />
    <script src="/Areas/Admin/Content/js/jquery.min.js"></script>
</head>
<body>
	<div style="width:930px;height:618px;margin:0px auto 0px auto;">
		<div>
			<img src="[BasePath]/Images/Header.jpg" style="width:100%;max-height:88px;">
		</div>
		<div style="border:1px solid #ccc; background:#fff;">
			<marquee id="marquee" height="500" width="98%" onMouseOut="this.start()" onMouseOver="this.stop()" align="center" direction="up" scrollamount="3" scrolldelay="0" valign="middle" behavior="scroll" style="text-align:left;"> 
				<div id="ChatData1" style="height:auto;color:#333;font-size:32px;">
					
				</div>
			</marquee>
			<div id="nomarquee" style="width:98%;height:500px;text-align:left;text-valign:middle;overflow:auto;"> 
				<div id="ChatData2" style="height:auto;color:#333;font-size:32px;">
					
				</div>
			</div>
		</div>
		<div style="text-align:center;">
			网络在线直播系统(EMR), <a href="http://www.edoctor.cn" target="_blank">上海翼多版权所有</a> <a href="http://www.edoctor.cn" target="_blank" >http://www.edoctor.cn</a>
		</div>
	</div>
	<script type="text/javascript">
		function UrlSearch() {
			var name, value;
			var str = location.href;
			var num = str.indexOf("?")
			str = str.substr(num + 1);
			var arr = str.split("&");
			for (var i = 0; i < arr.length; i++) {
				num = arr[i].indexOf("=");
				if (num > 0) {
					name = arr[i].substring(0, num).toLowerCase();
					value = arr[i].substr(num + 1);
					this[name] = value;
				}
			}
		}
		$(function(){
			$("#marquee").hide();
			$("#nomarquee").hide();
			try
			{
				var Request=new UrlSearch(); 
				if(Request.marquee=="1"){
					$.post("/ajax/GetQuestionWall",{"url":"[Url]"},function(data){
						$("#ChatData2").html(data);
						$("#marquee").hide();
						$("#nomarquee").show();
					});					
					setInterval(function(){
						$.post("/ajax/GetQuestionWall",{"url":"[Url]"},function(data){
							$("#ChatData2").html(data);
						});
					},5000);
					return;
				}				
			}
			catch(e){}
			$.post("/ajax/GetQuestionWall",{"url":"[Url]"},function(data){
				$("#ChatData1").html(data);
				$("#marquee").show();
				$("#nomarquee").hide();
			});			
			setInterval(function(){
				$.post("/ajax/GetQuestionWall",{"url":"[Url]"},function(data){
					$("#ChatData1").html(data);
				});
			},5000);			
		});
	</script>
</body>
</html>