﻿// JScript 文件


function showtitle(sid, mid)
{
    whichEl = document.getElementById(sid);
    if (whichEl.style.display == "none")
    {
	    whichEl.style.display = "";
	    mid.innerHTML = "<img src=\""+basePath+"Image/catalog/LiveBlue/collapse.gif\" alt=\"收拢\" />";
    }
    else
    {
	    whichEl.style.display="none";
	    mid.innerHTML = "<img src=\""+basePath+"Image/catalog/LiveBlue/expand.gif\" alt=\"展开\" />";
    }
}
var pop=null;

function login(){
    if(pop!=null) pop.close();
    pop = new Popup({contentType:1,isSupportDraging:false,isReloadOnClose:false,width:308,height:270});
    pop.setContents({'title':'登录','contentUrl':'<%=Common.Library.Common.FullUrl %>BBS/MiNiLogin.aspx'});
    pop.build().show();

}
function display(id){
      var traget=document.getElementById(id);
      if(traget.style.display=="none")
      {
          traget.style.display="block";
      }
      else
      {
          traget.style.display="none";
      }
 }
function SetCatalogTheme(css)
{
    var theme=document.getElementById('ClanThemes');
    if(theme!=null)
    {
        var themeUrl=basePath+"Image/catalog/"+css+"/"+css+".css"

        theme.setAttribute("href",themeUrl);
        Cookie.setCookie('CatalogTheme',css);
    }
}
function SetCatalogInit()
{
    if(Cookie.getCookie('CatalogTheme'))
    {
	    SetCatalogTheme(Cookie.getCookie('CatalogTheme'))
    }
}