//滑动门
var fodTime;
function setTab(area,id) {
	clearTimeout(fodTime);
	fodTime=setTimeout(function(){setTabDO(area,id)},150);

}
function setTabDO(area,id) {
$($("#title_"+area).children()).removeClass("curtab");

$("#tab_"+id).addClass('curtab');
$($("#body_"+area).children()).removeClass("show");
$($("#body_"+area).children()).addClass("hidden");
$("#main_"+id).addClass('show');

}

function   sAlert(strC,StrTitle,BoxW,BoxH,Ctype){   
	var   sWidth,sHeight;
	sWidth=document.body.offsetWidth;
	sHeight=document.body.offsetHeight;	  
	var   bgObj=document.createElement("div");//背景
	bgObj.setAttribute('id','bgDiv');
	bgObj.style.width=sWidth+"px";
	bgObj.style.height=sHeight+"px";
	document.body.appendChild(bgObj);
	var   msgObj=document.createElement("div");//主体 
	msgObj.setAttribute("id","msgDiv"); 
	msgObj.style.width=BoxW+"px";
	msgObj.style.height=BoxH+"px";
	msgObj.style.left=(sWidth-BoxW)/2+"px";
	msgObj.style.top=(window.screen.height-BoxH-200)/2+"px";
	var   title=document.createElement("h3");//标题
	title.setAttribute("id","msgTitle");
	title.innerHTML="<span id=msgTitleH3>"+StrTitle+"</span> <span id='CloseX'>×</span>";
	title.onclick=function(){
		document.body.removeChild(bgObj);
		document.getElementById("msgDiv").removeChild(title);
		document.body.removeChild(msgObj);
	}
	document.body.appendChild(msgObj);
	document.getElementById("msgDiv").appendChild(title);
	var   txt=document.createElement("span");
	if (Ctype=="Url"){
		BoxH=BoxH-25;
		strC="<iframe src='"+strC+"' height='"+BoxH+"' width='"+BoxW+"'></iframe>";
	}
	txt.innerHTML=strC;
	document.getElementById("msgDiv").appendChild(txt);
}
