<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>debug</title>
<script src="js/drag.js"></script>
<script src="js/jquery-1.11.3.min.js"></script>
<link href="debuger/css/base.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function IsResize() {
		if (document.frames['main_iframe'].document.getElementById("fraset2").cols == "210,0,*") {
			document.frames['main_iframe'].document.getElementById("fraset2").cols = "0,15,*";
		} else if (document.frames['main_iframe'].document
				.getElementById("fraset2").cols == "0,15,*") {
			document.frames['main_iframe'].document.getElementById("fraset2").cols = "210,0,*";
		}
	}

	function hideMenu() {
		document.frames['main_iframe'].document.getElementById("fraset2").cols = "0,15,*";
	}

	function showMenu() {
		document.frames['main_iframe'].document.getElementById("fraset2").cols = "210,0,*";
	}

	function switchWindow(winName) {
		document.getElementById("debug").style.display = "none";
		document.getElementById("console").style.display = "none";

		if (winName == 'debug') {
			document.getElementById("debug").style.display = "";
			window.frames["iframe_debug"].refresh();
		} else if (winName == 'console') {
			document.getElementById("console").style.display = "";
		}

	}

	//璁剧疆涓讳綋鍐呭楂樺害
	function setMainHeight() {
		var documentH = jQuery(window).height();
		var actTableH = jQuery("#actTable").height();
		jQuery("#debug").height(documentH - actTableH);
		jQuery("#console").height(documentH - actTableH);
	}

	jQuery(function(){
		setMainHeight();//璁剧疆涓讳綋鍐呭楂樺害
		switchWindow('console');//璁剧疆杈撳嚭鏃ュ織
	});

	jQuery(window).resize(function() {
		setMainHeight();//璁剧疆涓讳綋鍐呭楂樺害
	});
</script>
	</head>
	<body style="margin: 0px; overflow: hidden;">
		
			<table id="actTable" cellpadding="0" cellspacing="0" border="0"
				bgcolor="#000000" width="100%">
				<tr>
					<td>&nbsp;&nbsp;<span> </span> &nbsp;&nbsp;<span><a href="#"
							onclick="switchWindow('debug')"
							style="color: #ffffff; font-size: 14px; font-family: Arial">
								<img src="img/debuger.gif" border="0" />
								璋冭瘯</a> </span> &nbsp;&nbsp;<span><a href="#"
							onclick="switchWindow('console')"
							style="color: #ffffff; font-size: 14px; font-family: Arial">
								<img src="img/console.gif" border="0" />
								鏃ュ織 </a> </span></td>
				</tr>
			</table>
			<!-- 璋冭瘯鍣� -->
			<div id='debug' style="display: none">
				<iframe
					src="../macro/debuger/debuger.html"
					id="iframe_debug" name="iframe_debug" width="100%" height="100%"
					align="top" scrolling="no" frameborder="0" style="overflow: hidden"></iframe>
			</div>
			<!-- 鎺у埗鍙� -->
			<div id='console' style="display: none">
				<iframe
					src="../macro/debuger/console.html"
					id="iframe_console" name="iframe_console" width="100%"
					height="100%" align="top" scrolling="no" frameborder="0"
					style="overflow: hidden"> </iframe>
			</div>
		

		<div id="PopWindows_dialog" class="front-div-dialog-popWindows"></div>

		<input type="hidden" id="mappStr" />

		<div id="closeWindow_DIV" class="front-div-dialog-black_overlay"></div>

		<div id="PopWindows" class="front-div-dialog-white_content">
			<div id="dheader" class="front-div-dialog-dheader">
				<div id="dheader_title" class="front-div-dialog-title"></div>
			</div>
			<div id="dbody" class="front-div-dialog-dbody"></div>
		</div>
		<DIV ID="loadingDiv"
			STYLE="position: absolute; z-index: 100; width: 60%; height: 60%; left: 40%; top: 40%; display: none;">
			<table>
				<tr>
					<td><img src="../resource/imgnew/loading.gif">
					</td>
					<td><b><font size='3'>{*[page.loading]*}...</font> </b>
					</td>
				</tr>
			</table>
		</DIV>
		<div id="loadingDivBack"
			style="position: absolute; z-index: 50; width: 104%; height: 100%; top: 15px; left: 0px; display: none; background-color: #DED8D8; filter: alpha(opacity =   20); opacity: 0.20;">
		</div>
	</body>
</html>