function list(url,target,txt)
{document.write("<tr><td height=\"18\" width=\"10\"></td><td><img src='images/li.jpg' width='17' height='10'><a href="+url+" target="+target+">"+txt+"</a></td></tr><tr><td></td><td height=1 bgcolor='#dcdcdc'></td></tr>")}
function t(txt,x)
{document.write("<tr><td height=10></td></tr><tr><td width=\"165\"><img src='images/0"+x+".jpg' width=\"31\" height=\"20\" align=\"absmiddle\" ><b>"+txt+"</b></td><td width='30'><img src='images/icon-folder-open.gif' width=\"26\" height=\"11\" align=\"absmiddle\" ></td></tr><tr><td height=1 bgcolor='#dcdcdc' colspan=\"2\"></td></tr>")}
var w=200;
function closenavi() {
w-=10;
if (w>-10) {window.parent.testframeset.cols = ''+w+',*';repeat=setTimeout("closenavi()",10);}
else {clearTimeout(repeat);w=200;}
}



function initIt(){
        divCount = document.all.tags("DIV");
        for (i=0; i<divCount.length; i++) {
            obj = divCount(i);
            if (obj.className == "child" || obj.className == "child1") obj.style.display = "block";
        }
}

function expandIt(el) {

        obj = eval("page" + el);
        obj2 = eval("main" + el);
        if (obj.style.display == "none") {
            obj.style.display = "block";
			obj2.all.tags('img')[0].src=obj2.all.tags('img')[0].src.substring(0,obj2.all.tags('img')[0].src.length-6)+'.jpg';
			obj2.all.tags('img')[1].src='images/icon-folder-open.gif';
        }
        else {
            obj.style.display = "none";
			obj2.all.tags('img')[0].src=obj2.all.tags('img')[0].src.substring(0,obj2.all.tags('img')[0].src.length-4)+'-a.jpg';
			obj2.all.tags('img')[1].src='images/icon-folder-close.gif';
        }

}

//onload = initIt;

var judge=0;
function expandall(o) {
if (judge==0) {divCount2 = document.all.tags("DIV");
        for (i=0; i<divCount2.length; i++) {
            obj2 = divCount2(i);
            if (obj2.className == "child" || obj.className == "child1" || obj2.style.display == "none") 
			{obj2.style.display = "block";}
			if (obj2.className == "menu")
			{obj2.all.tags('img')[0].src=obj2.all.tags('img')[0].src.substring(0,obj2.all.tags('img')[0].src.length-6)+'.jpg';
            obj2.all.tags('img')[1].src='images/icon-folder-open.gif';
            }
}

judge=1;
o.src='images/icon-closeall.gif';
o.alt='全部折叠';
}
else {divCount2 = document.all.tags("DIV");
        for (i=0; i<divCount2.length; i++) {
            obj2 = divCount2(i);
            if (obj2.className == "child" || obj.className == "child1" || obj2.style.display == "block") 
			{obj2.style.display = "none";}
			if (obj2.className == "menu")
			{obj2.all.tags('img')[0].src=obj2.all.tags('img')[0].src.substring(0,obj2.all.tags('img')[0].src.length-4)+'-a.jpg';
            obj2.all.tags('img')[1].src='images/icon-folder-close.gif';
            }
}

judge=0;
o.src='images/icon-expandall.gif';
o.alt='全部展开';
}
}
