﻿// JavaScript Document
//工具栏的操作
_class.Tools = function tools(obj) {
    //刚开始载人的时候
    this.onstart = function () {
		$("tools_main", $("default", "<0"), -1);
		$("light", $("tools_main"), -1);
        $("light", true);
        $("light", _a, 80);
		$("tools_main", _y, $("default").scrollTop + 30);
		$("light", _h, $("default").scrollHeight);
    }
    //载人完成的时候
    this.onload = function () {
        $("tools_main", true);
        $("tools_main", true);
		/*/
        var old_w = $("tools_content", _w);
        var old_h = $("tools_content", _h);
        $("tools_content", ".style.width", "auto");
        $("tools_content", ".style.height", "auto");
        var new_w = $("tools_content", _w);
        var new_h = $("tools_content", _h);
        $("tools_content", _w, old_w);
        $("tools_content", _h, old_h);
        $$("tools_content", _w, new_w);
        $$("tools_content", _h, new_h);
		//*/
    }
    //卸载的时候
    this.onunload = function () {
        $("tools_main", false);
        $("light", false);
    }
    //请求出错
    this.onerror = function () {
        alert("error!!!");
    }
    obj.onstart = this.onstart;
    obj.onload = this.onload;
    obj.onunload = this.onunload;
    obj.onerror = this.onerror;

    this.SetChild = function (child) {
        child.onload = this.onload;
		child.onunload = function(){
			$(child, "=", "");
		}
    }
}
