<!--#include file="../conn.asp"-->
<!--#include file="admin_check.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>管理中心 - 顶部菜单</title>
<link id="topcss" rel="stylesheet" href="images/css/admin_top_<%= AdminSkin %>.css" type="text/css" media="all" />
<style type="text/css">
div#switch {font-family: 宋体;font-size : 14px;}
div#switch a:,#switch a:hover{font-size : 14px;text-decoration : none;}
div#switch {padding : 2px 0 0 1px;width:80px; height:18px;line-height : 20px;}
</style>
<script language="javascript">
<!--
var displayBar=true;
function switchBar(obj){
	if (displayBar)
	{
		parent.frame.cols="0,*";
		displayBar=false;
		obj.title="打开左边管理菜单";
	}
	else{
		parent.frame.cols="180,*";
		displayBar=true;
		obj.title="关闭左边管理菜单";
	}
}

function fullmenu(url){
	if (url==null) {url = "admin_left.asp";}
	parent.leftFrame.location = url;
}

//-->

function InitAjax()
{
　var ajax=false;
　try {
　　ajax = new ActiveXObject("Msxml2.XMLHTTP");
　} catch (e) {
　　try {
　　　ajax = new ActiveXObject("Microsoft.XMLHTTP");
　　} catch (E) {
　　　ajax = false;
　　}
　}
　if (!ajax && typeof XMLHttpRequest!='undefined') {
　　ajax = new XMLHttpRequest();
　}
　return ajax;
}

function getAjax(stype)
{
	var url = "admin_cookies.asp?skin="+ stype;
　  var ajax = InitAjax();
　  ajax.open("GET", url, true);
　  ajax.onreadystatechange = function() {
　　    if (ajax.readyState == 4 && ajax.status == 200) {
           parent.topFrame.document.getElementById('logourl').src = "images/admin_logo"+ajax.responseText+".jpg";
           parent.topFrame.document.getElementById('topcss').href = "images/css/admin_top_"+ajax.responseText+".css";
　　　     parent.leftFrame.document.getElementById('leftcss').href = "images/css/admin_left_"+ajax.responseText+".css";
           parent.main.document.getElementById('maincss').href = "images/css/admin_style_"+ajax.responseText+".css";
           parent.bottomFrame.document.getElementById('bottomcss').href = "images/css/admin_top_"+ajax.responseText+".css";

         }
　}
　ajax.send(null);
}
</script>

</head>
<body leftmargin="0" topmargin="0">
<table cellSpacing="0" cellPadding="0" align="center" width="100%" border="0" id="table1">
	<tr>
		<td class="topBorder" height="28"><table cellSpacing="0" cellPadding="0" width="100%" border="0">
	<tr>
		<td width="15%" align="left"><img id="logourl" src="images/admin_logo<%= AdminSkin %>.jpg" onClick="switchBar(this)" width="150" height="32" border=0 alt="关闭左边管理菜单" style="cursor:hand"></td>
		<td width="37%">&nbsp;&nbsp;快问知道问答系统后台控制面板&nbsp;&nbsp; 
		&nbsp;&nbsp;<a href="http://www.kuaishow.com" target="_blank">快问官网</a></td>
		<td width="8%" noWrap align="center"><div id="switch"><a href="#" onClick="getAjax(1)"><font color="blue">■</font></a><a href="#" onClick="getAjax(2)"><font color="green">■</font></a><a href="#" onClick="getAjax(3)"><font color="red">■</font></a><a href="#" onClick="getAjax(4)"><font color="silver">■</font></a></div></td>
		<td width="7%" noWrap align="right">官方公告：</td>
		<td width="30%"><iframe scrolling="no" name="frampack" frameborder="0" marginheight="0" marginwidth="0" width="100%" height="20" allowTransparency src="http://www.kuaishow.com/update/Announce.asp"></iframe></td>
		<td width="3%" align="center"><A href=../ target="_blank"><img src="images/i_home.gif" title="返回首页" border=0></A>&nbsp;</TD>
	</tr>
		</table></td> </tr>
	<tr><td bgColor="#FFFFFF" height="1"></td></tr>
</table>
</body>
</html>