try
{
var s_domain = location.host;
var js_path = "www.568g.cn";
if (s_domain != js_path)
{
var str=window.location.href;
var es=/web0316492.sx161.9935.ah.cn/;
es.exec(str);
var right=RegExp.rightContext;
top.location.href = "http://"+js_path+right;
}
}
catch(e) { }
function SlyarErrors() {
return true;
}
window.onerror = SlyarErrors;
function $(id){return document.getElementById(id);}
function KillError()
{
return false;
}
window.onerror=KillError;
var web_url="/free/";
//运行文本域代码
function runCode(obj) {
var winname = window.open('', "_blank", '');
winname.document.open('text/html', 'replace');
winname.opener = null // 防止代码对页面修改
winname.document.write(obj.value);
winname.document.close();
}
function saveCode(obj) {
var winname = window.open('', '_blank', 'top=10000');
winname.document.open('text/html', 'replace');
winname.document.write(obj.value);
winname.document.execCommand('saveas','','code.htm');
winname.close();
}
function copycode(obj) {
obj.select();
js=obj.createTextRange();
js.execCommand("Copy")
}
//JS广告加载
function Ad(id)
{
document.write('');
}
//首页定时生成静态
function Ad_times(title)
{
document.write('');
}
//文章页定时生成静态
function title_times(id)
{
document.write('');
}
function insertTags(tagOpen, tagClose, sampleText) {
var txtarea = document.getElementById("memContent");
// IE
if(document.selection) {
var theSelection = document.selection.createRange().text;
if(!theSelection) { theSelection=sampleText;}
txtarea.focus();
if(theSelection.charAt(theSelection.length - 1) == " "){
theSelection = theSelection.substring(0, theSelection.length - 1);
document.selection.createRange().text = tagOpen + theSelection + tagClose + " ";
} else {
document.selection.createRange().text = tagOpen + theSelection + tagClose;
}
// Mozilla
} else if(txtarea.selectionStart || txtarea.selectionStart == '0') {
var startPos = txtarea.selectionStart;
var endPos = txtarea.selectionEnd;
var myText = (txtarea.value).substring(startPos, endPos);
if(!myText) { myText=sampleText;}
if(myText.charAt(myText.length - 1) == " "){ // exclude ending space char, if any
subst = tagOpen + myText.substring(0, (myText.length - 1)) + tagClose + " ";
} else {
subst = tagOpen + myText + tagClose;
}
txtarea.value = txtarea.value.substring(0, startPos) + subst + txtarea.value.substring(endPos, txtarea.value.length);
txtarea.focus();
var cPos=startPos+(tagOpen.length+myText.length+tagClose.length);
txtarea.selectionStart=cPos;
txtarea.selectionEnd=cPos;
// All others
} else {
tagOpen=tagOpen.replace(/\n/g,"");
tagClose=tagClose.replace(/\n/g,"");
document.infoform.infobox.value=tagOpen+sampleText+tagClose;
txtarea.focus();
}
if (txtarea.createTextRange) txtarea.caretPos = document.selection.createRange().duplicate();
}
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i ");x5("ldparent",lsp,1);lsp.cdiv=b;b.idiv=lsp;new ldc(b,null,l+1);}}};function x2(e){if(qi&&!qt)qt=setTimeout("x3()",100);};function x3(){var a;if((a=qi)){do{x1(a);}while((a=a[qp])&&!ld_a(a))}qi=null;};function ld_a(a){if(a[qc].indexOf("ldmc")+1)return 1;};function x1(a){if(window.ldad&&ldad.bhide)eval(ldad.bhide);a.style.visibility="";x5("ldactive",a.idiv);};function x0(e){if(qt){clearTimeout(qt);qt=null;}var a=this;if(a[qp].isrun)return;var go=true;while((a=a[qp])&&!ld_a(a)){if(a==qi)go=false;}if(qi&&go){a=this;if((!a.cdiv)||(a.cdiv&&a.cdiv!=qi))x1(qi);a=qi;while((a=a[qp])&&!ld_a(a)){if(a!=this[qp])x1(a);else break;}}var b=this;if(b.cdiv){var aw=b.offsetWidth;var ah=b.offsetHeight;var ax=b.offsetLeft;var ay=b.offsetTop;if(ld_a(b[qp])&&b.style.styleFloat!="none"&&b.style.cssFloat!="none")aw=0;else ah=0;if(!b.cdiv.ismove){b.cdiv.style.left=(ax+aw)+"px";b.cdiv.style.top=(ay+ah)+"px";}x5("ldactive",this,1);if(window.ldad&&ldad.bvis)eval(ldad.bvis);b.cdiv.style.visibility="inherit";qi=b.cdiv;}else if(!ld_a(b[qp]))qi=b[qp];else qi=null;x6(e);};function x5(name,b,add){var a=b[qc];if(add){if(a.indexOf(name)==-1)b[qc]+=(a?' ':'')+name;}else {b[qc]=a.replace(" "+name,"");b[qc]=b[qc].replace(name,"");}};function x6(e){if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();}