// 弹出自定义分类页面
function ShowWindow(strClass){
	var rtn=window.showModalDialog("UserCustomClass1.asp?Class="+strClass,"","dialogWidth=460px;dialogHeight=460px;help: no; scroll: no; status: no;center=yes;");
	if (rtn!=null){
		window.location.reload();
	}
}
// 添加到收藏夹函数
function CustWindow(strClass){
	var rtn=window.showModalDialog(strClass.toString(),"","dialogWidth=320px;dialogHeight=200px;help: no; scroll: no; status: no;center=yes;");
	if (rtn!=null){
		window.location.reload();
	}
}
//弹出一个居中显示的窗口
function OpenWindow(url){
	var rtn=window.showModalDialog("/MyHongxi/UserCustomClass1.asp?strUrl="+url,"","dialogWidth=460px;dialogHeight=460px;help: no; scroll: no; status: no;center=yes;");
	if (rtn!=null){
		window.location.reload();
	}
}

//弹出一个居中显示的窗口
function OpenWindow_bf(url){
	var WLeft = Math.ceil((window.screen.width - 424) / 2 ); 
	var WTop = Math.ceil((window.screen.height - 422) / 2 ); 
	window.open(url,"修改分类","width=,460,height=460,left="+WLeft+",top="+WTop);
}
function OpenDlWindow(url){
	window.showModalDialog(url,"","dialogWidth=460px;dialogHeight=460px;help: no; scroll: no; status: no;center=yes;");
}

//预先载入图像
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//展开折叠内容函数
function OpenCloseDiv(img,obj){
	var tempChangeImg=document.getElementById(img.toString());
	var tempChangeObj=document.getElementById(obj.toString());
	//折叠内容
	if (tempChangeObj.style.display==""){
		tempChangeObj.style.display="none";
		tempChangeImg.src="images/plus.gif";
	//展开内容
	}else{
		tempChangeObj.style.display='';
		tempChangeImg.src="images/nofollow.gif";
	}
}