
function k() {
    var Hz = [], element;
    for (var C = 0; C < arguments.length; C++) {
        element = arguments[C];
        if (typeof element == "string") {
            element = document.getElementById(element);
        }
        Hz.push(Element.FO(element));
    }
    return Hz.length < 2 ? Hz[0] : Hz;
}
if (!window.Element) {
    var Element = new Object();
}
Element.FO = function (element) {
    if (!element) {
        return;
    }
    if (!element.kn && element.tagName && element != window) {
        var jJ = Element.LJ;
        for (property in jJ) {
            var value = jJ[property];
            if (typeof value == "function") {
                element[property] = value.FL(null, element);
            }
        }
    }
    element.kn = true;
    return element;
};
var CH, Cx;
var fY = true;
var jl = false;
function kl() {
    if (fY) {
        k("cLeft").style.width = parseInt(CH) - 11 + "px";
        k("map").style.width = parseInt(CH) - 11 + "px";
        if (k("cFunBar")) {
            k("cFunBar").style.left = (CH - 11) / 2 - 516 / 2;
        }
        k("cRight").style.display = "none";
        k("barCollapse").style.display = "";
        fY = false;
    } else {
        k("cLeft").style.width = CH - 301 + "px";
        k("map").style.width = CH - 301 + "px";
        if (k("cFunBar")) {
            k("cFunBar").style.left = (CH - 301) / 2 - 516 / 2;
        }
        k("cRight").style.display = "";
        k("barCollapse").style.display = "none";
        fY = true;
    }
    Cy.Hi();
}
function Fo(aa) {
    if(typeof(aa)!="undefined") k("ifr").src = aa;
    if (!fY) {
        kl();
    }
}
window.onresize = function () {
    CH = ji();
    Cx = jo();
    window.setTimeout(function () {
        k1();
    }, 100);
};
function LV() {
	IS();
    kK();
    if (k("ifr").src == "") {
        k("ifr").src = "info/index.htm";
    }
}
function kK(L) {
    if (!L) {
        L = 0;
    }
    L++;
    if (L > 100) {
        return;
    }
    try{
	    if (jv) {
	        Cy.Ic();
	        if (fz) {
	            k("mapLoading").style.display = "none";
	        }
	    } else {
	        var cj = "kK(" + L + ")";
	        window.setTimeout(cj, 100);
	    }
  	}catch(e){
		var cj = "kK(" + L + ")";
        window.setTimeout(cj, 100);
  	}
}
function IS(L) {
	if (!L) {
        L = 0;
    }
    L++;
    if (L > 100) {
        return;
    }
	try{
		 CH = ji();
		Cx = jo();
		if (k("cLeft")) {
			k("cLeft").style.height = Cx - 98;
		}
		if (k("map")) {
			k("map").style.height = Cx - 98;
		}
		if (k("cRight")) {
			k("cRight").style.height = Cx - 98;
		}
		if (k("barExpand")) {
			k("barExpand").style.height = Cx - 98;
		}
		if (k("ifrContent")) {
			k("ifrContent").style.height = Cx - 98;
		}
		if (k("barCollapse")) {
			k("barCollapse").style.height = Cx - 98;
		}
		if (k("btnExpand")) {
			k("btnExpand").style.height = Cx - 98;
		}
		if (k("btnCollapse")) {
			k("btnCollapse").style.height = Cx - 98;
		}
		if (k("content")) {
			k("content").style.top = 94;
		}
		if (k("map")) {
			k("map").style.width = CH - 301;
		}
		if (k("cLeft")) {
			k("cLeft").style.width = CH - 301;
		}
		if (k("cFunBar")) {
			k("cFunBar").style.left = (CH - 301) / 2 - 516 / 2;
		}
		if (k("navigation")) {
			k("navigation").style.left = (CH - 301) / 2 - 290;
		}
	}catch(e){
		var cj = "IS(" + L + ")";
        window.setTimeout(cj, 100);
	}
   
}
function k1() {
    if (!jl) {
        IS();
    }
    Cy.Hi();
}
function mh(fw) {
    var i0 = fw.value;
    if (i0 == "") {
        alert("\u8bf7\u8f93\u5165\u5173\u952e\u5b57");
        fw.focus();
        return false;
    }
    if (!fY) {
        k("cLeft").style.width = CH - 301 + "px";
        k("map").style.width = CH - 301 + "px";
        k("cRight").style.display = "";
        k("barCollapse").style.display = "none";
        fY = true;
        Cy.Hi();
    }
    return true;
}
function ji() {
    var width = 0;
    if (typeof window.innerWidth == "number") {
        width = window.innerWidth;
    } else {
        if (document.documentElement && document.documentElement.clientWidth) {
            width = document.documentElement.clientWidth;
        } else {
            if (document.body && document.body.clientWidth) {
                width = document.body.clientWidth;
            }
        }
    }
    if (!width || width < 100) {
        width = 100;
    }
    return width;
}
function jo() {
    var height = 0;
    if (typeof window.innerHeight == "number") {
        height = window.innerHeight;
    } else {
        if (document.documentElement && document.documentElement.clientHeight) {
            height = document.documentElement.clientHeight;
        } else {
            if (document.body && document.body.clientHeight) {
                height = document.body.clientHeight;
            }
        }
    }
    if (!height || height < 100) {
        height = 100;
    }
    return height;
}
function test() {
    alert("\u6d4b\u8bd5\u4e2d...");
    return false;
}
function mJ(fw) {
    if (fw.value == "\u4f8b\u5982\uff1a\u6559\u5b66\u697c\u3001\u56fe\u4e66\u9986\u3001\u9910\u5385") {
        fw.value = "";
    }
}
function m1(fw) {
    if (fw.value == "") {
        fw.value = "\u4f8b\u5982\uff1a\u6559\u5b66\u697c\u3001\u56fe\u4e66\u9986\u3001\u9910\u5385";
    }
}
function mj(id, ki) {
    ypdiv.style.display = "none";
    bussearch.style.display = "none";
    classdiv.style.display = "none";
    k("sLocal").className = "";
    k("sLocal").style.textDecoration = "underline";
    k("sBus").className = "";
    k("sBus").style.textDecoration = "underline";
    k(id).className = "curSelect";
    k(id).style.textDecoration = "none";
    k(ki).style.display = "";
    return false;
}
function LW() {
    k("top").style.display = "none";
    k("cRight").style.display = "none";
    k("navBar").style.display = "none";
    k("fs").style.display = "none";
    k("exitfs").style.display = "";
    k("barCollapse").style.display = "none";
    k("exitFullScreen").style.display = "";
    k("exitFullScreen").style.top = 0 + "px";
    k("exitFullScreen").style.left = CH - 17 + "px";
    if (k("cLeft")) {
        k("cLeft").style.height = Cx - 1;
        k("cLeft").style.width = CH - 1;
    }
    if (k("content")) {
        k("content").style.top = 0 + "px";
    }
    if (k("map")) {
        k("map").style.width = CH - 1;
        k("map").style.height = Cx - 1;
    }
    if (k("cFunBar")) {
        k("cFunBar").style.left = CH / 2 - 516 / 2;
    }
    fY = false;
    jl = true;
	Cy.Hi();
}
function Lx() {
    k("top").style.display = "";
    k("navBar").style.display = "";
    k("barCollapse").style.display = "";
    k("cRight").style.display = "";
    k("fs").style.display = "";
    k("exitfs").style.display = "none";
    k("exitFullScreen").style.display = "none";
    fY = true;
    IS();
}
function LX() {
    var io = k("citylist");
    if (io.style.display == "none") {
        io.style.display = "";
    } else {
        io.style.display = "none";
    }
}
function mc(Jl) {
    Cy.Iv(Jl.id, Jl.checked);
}
function kI() {
    var iz = k("navigation");
    if (iz.style.display == "none") {
        iz.style.display = "";
        k("alpha").style.display = "";
		k("alpha").style.height = Cx - 95;
    } else {
        iz.style.display = "none";
        k("alpha").style.display = "none";
    }
}
function MM(pX, n) {
    Cy.Fl(pX, n);
    kI();
}
function rg(){
    k('ifr').src = 'info/index.htm';
}
