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='../images/1.gif';
		obj2.style.background="#f7f7f7";  //选择后的颜色
        }
        else {
            obj.style.display = "none";
			obj2.all.tags('img')[0].src='../images/2.gif';
		obj2.style.background="#999999"; 
        }
}

// 自动 COPY 代码开始
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function JM_cc(ob){
	var obj=MM_findObj(ob); if (obj) { 
	obj.select();js=obj.createTextRange();js.execCommand("Copy");}
	alert("地址复制成功，您现在可以粘贴到QQ/MSN/论坛等任何地方！");
}
// 自动 COPY 代码结束
function mytool(){
document.write('<input name="page_url" type=hidden value="'+window.location.href+'" onfocus="this.select()"> <a href="#" onClick=JM_cc("page_url") title="复制本页网址"><img src="../images/t_1.gif" width="20" height="20"></a>');
document.write('<a href="javascript:history.go(-1)" title="后退"><img src="../images/t_2.gif" width="20" height="20"></a>');
document.write('<a href="javascript:window.close();" title="关闭本页"><img src="../images/t_3.gif" width="20" height="20"></a>');
document.write('<a href="javascript:window.external.addFavorite(document.location.href,document.title)" title="收藏本站"><img src="../images/t_4.gif" width="20" height="20"></a>');
document.write('<a href="" onClick=this.style.behavior="url(#default#homepage)";this.setHomePage("http://www.xx113.com");return(false); style="behavior: url(#default#homepage)" title="将本站设为首页"><img src="../images/t_5.gif" width="20" height="20"></a>');
}












  function setCookie(name, value, expire) {      
  
  window.document.cookie = name + "=" + escape(value) + ((expire == null) ? "" : ("; expires=" + expire.toGMTString()));   
  
}   
  
function getCookie(Name) {      
  
   var search = Name + "=";   
  
   if (window.document.cookie.length > 0) { // if there are any cookies   
  
     offset = window.document.cookie.indexOf(search);   
  
         if (offset != -1) { // if cookie exists   
  
       offset += search.length;          // set index of beginning of value   
  
           end = window.document.cookie.indexOf(";", offset)          // set index of end of cookie value   
  
           if (end == -1)   
  
             end = window.document.cookie.length;   
  
           return unescape(window.document.cookie.substring(offset, end));   
  
     }   
  
   }   
  
   return null;   
  
}   
  















