function simplePreload(){var a=simplePreload.arguments;document.imageArray=new Array(a.length);for(var b=0;b<a.length;b++){document.imageArray[b]=new Image;document.imageArray[b].src=a[b]}}function AddDir(b){var a=document.getElementById("Padddir");a.innerHTML="<iframe src='publicer/adddir.aspx?articleid="+b+"' height='30' width='500'></iframe>"}function show_pro(b,c){var a=new myHttpRequest("../publicer/ajxserver.aspx?"+b,"",c,"<img src=/images/loading.gif> \u8f7d\u5165\u9875\u9762\u2026\u2026");a.sender();a=null}function show_data(b,d,e,c){var a=b+d;if(c==1){loadbox("\u8f7d\u5165\u9875\u9762...")}else{$("#"+e).html("<img src='/images/loading0.gif' border='0'/>")}$.ajax({url:a,processData:false,beforeSend:function(f){f.setRequestHeader("If-Modified-Since","0")},success:function(f){$("#"+e).html(f);if(c==1){Uloadbox()}}})}function show_imglist(b,c){var a="/publicer/ajxserver.aspx?"+b;$("#"+c).html("<img src='/images/loading4.gif' border='0'/>");$.ajax({url:a,processData:false,beforeSend:function(d){d.setRequestHeader("If-Modified-Since","0")},success:function(d){$("#"+c).html(d)}})}function subget(b,d,e,c){var a=b+d;if(c==1||c==2){$("#"+e).append("<img src='/images/loading0.gif' id='imgload' border='0'/>")}else{$("#"+e).html("<img src='/images/loading0.gif' id='imgload' border='0'/>")}$.ajax({url:a,processData:false,beforeSend:function(f){f.setRequestHeader("If-Modified-Since","0")},success:function(f){if(c==1){$("#imgload").remove();$("#"+e).append(f)}else{if(c==2){$("#imgload").remove();$("#"+e).prepend(f)}else{$("#"+e).html(f)}}}})}function subpost(d,a,g,e){if(e==1){$("#"+g).append("<img src='/images/loading0.gif' id='imgload' border='0' />")}else{$("#"+g).html("<img src='/images/loading0.gif' id='imgload' border='0' />")}citiesOfProvince=a.split("|");var f="";for(r=0;r<citiesOfProvince.length;r++){var b=$("#"+citiesOfProvince[r]);if(b.get(0).type=="checkbox"){f+="&"+citiesOfProvince[r]+"="+b.get(0).checked}else{if(b.get(0).type=="select-one"){f+="&"+citiesOfProvince[r]+"="+escape(b.get(0).value)}else{if(citiesOfProvince[r].indexOf("CE_")!=-1){f+="&"+citiesOfProvince[r]+"="+escape(escape(document.getElementById(citiesOfProvince[r]).getHTML()))}else{f+="&"+citiesOfProvince[r]+"="+escape(htmlspecialchars(b.val()))}}}}var c=d;$.ajax({url:c,processData:true,type:"POST",data:f,success:function(h){if(e==1){$("#imgload").remove();$("#"+g).prepend(h)}else{$("#"+g).html(h)}},error:function(h,k,j){$("#"+g).html(h.responseText)}})}function subpost_fun(e,a,c,g){loadbox("\u4fdd\u5b58\u6570\u636e....");citiesOfProvince=a.split("|");var f="";for(r=0;r<citiesOfProvince.length;r++){var b=$("#"+citiesOfProvince[r]);if(b.get(0).type=="radio"){f+="&"+citiesOfProvince[r]+"="+$(":radio[name="+citiesOfProvince[r]+"][checked]").val()}else{if(b.get(0).type=="checkbox"){f+="&"+citiesOfProvince[r]+"="+b.get(0).checked}else{if(b.get(0).type=="select-one"){f+="&"+citiesOfProvince[r]+"="+escape(htmlspecialchars(b.get(0).value))}else{if(citiesOfProvince[r].indexOf("CE_")!=-1){f+="&"+citiesOfProvince[r]+"="+escape(escape(document.getElementById(citiesOfProvince[r]).getHTML()))}else{f+="&"+citiesOfProvince[r]+"="+escape(escape(b.val()))}}}}}var d=e;$.ajax({type:"POST",url:d,data:f,beforeSend:function(h){h.setRequestHeader("Context-Type","application/x-www-form-urlencoded")},success:function(h){show_data(c,"",g);Uloadbox()},error:function(h,k,j){$("#"+g).html(h.responseText)}});$("#"+g).ajaxError(function(k,j,h){$(this).append("<li>\u51fa\u9519\u9875\u9762:"+h.url+"</li>")})}function show_titleimg(b,c){var a=new myHttpRequest("'/"+b+"'","","","");a.sender();alert(a.responsetext());a=null}function flashChecker(){var a=0;var b=0;var e=0;if(e){var d=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(d){a=1;VSwf=d.GetVariable("$version");b=parseInt(VSwf.split(" ")[1].split(",")[0])}}else{if(navigator.plugins&&navigator.plugins.length>0){var d=navigator.plugins["Shockwave Flash"];if(d){a=1;var f=d.description.split(" ");for(var c=0;c<f.length;++c){if(isNaN(parseInt(f[c]))){continue}b=parseInt(f[c])}}}}return{f:a,v:b}}function tab_window(a){var a=a;var b=a.parentNode.getElementsByTagName("span");for(i=0;i<b.length;i++){b[i].className=""}a.className="tabspan"}function loadbox(c){var a;var b;b=document.createElement("div");b.innerHTML="<div style='width:300px;background-color: #FFf;height: 30px;text-align: center; padding-top: 20px; border: 1px solid #CCC;'><img src='/images/loading4.gif'/><div>"+c+"</div></div>";b.id="loadimgbox";b.style.left=document.documentElement.scrollWidth/2-150+"px";b.style.top="240px";b.style.position="absolute";b.zIndex=2;a=document.createElement("div");a.id="loadboxbg";a.className="MODAL";a.style.position="absolute";a.style.zIndex=1;a.style.width=document.documentElement.scrollWidth+"px";a.style.height=document.documentElement.scrollHeight+"px";a.style.left="0px";a.style.top="0px";a.style.cursor="not-allowed";document.body.appendChild(b);document.body.appendChild(a)}function Uloadbox(){var a;var b;a=$("#loadboxbg");b=$("#loadimgbox");a.remove();b.remove()}function hitbox(){var a;var b;b=document.createElement("div");b.innerHTML="<div style='width:600px;background-color: #FFf;height: 340px;text-align: center; padding-top: 20px; border: 1px solid #CCC;'><div><table whidth=100% align=left cellpadding=10><tr><td><img src=images/window/wj.jpg /></td><td align=left style='font-size: 14px;'><div class=linkad style='font-size: 12px;'>\u201c\u6587\u96c6\u201d\u662f\u72ec\u7acb\u7684\u7f51\u7edc\u7a7a\u95f4\uff0c\u62e5\u6709\u72ec\u7acb\u7684\u57df\u540d\u53ef\u4ee5\u968f\u65f6\u8bbf\u95ee\u3002<br>\u60a8\u53ef\u4ee5\u5229\u7528\u6587\u96c6\u5bf9\u5916\u53d1\u5e03\u6587\u7ae0\u3001\u7167\u7247\u7b49\u4fe1\u606f\u3002</div><div class='line'></div>\u606d\u559c\u60a8\uff01\u60a8\u5df2\u6210\u4e3a\u9ad8\u7ea7\u4f1a\u5458\uff0c\u5df2\u7ecf\u62e5\u6709\u4e86\u81ea\u5df1\u7684\u6587\u96c6\u7a7a\u95f4\uff01<div><a href='#' onclick=\"show_data('ajaxserver/koohome/','', 'databox');Uloadbox();\">\u70b9\u51fb\u8fd9\u91cc\u60a8\u53ef\u4ee5\u751f\u6210\u81ea\u5df1\u7684\u6587\u96c6\u7a7a\u95f4\uff01</a></div></td></tr></table></div></div>";b.id="loadimgbox";b.style.left=document.documentElement.scrollWidth/2-300+"px";b.style.top="150px";b.style.position="absolute";b.style.zIndex=2;b.className="";a=document.createElement("div");a.id="loadboxbg";a.className="MODAL";a.style.position="absolute";a.style.zIndex=1;a.style.width=document.documentElement.scrollWidth+"px";a.style.height=document.documentElement.scrollHeight+"px";a.style.left="0px";a.style.top="0px";document.body.appendChild(a);document.body.appendChild(b)}String.prototype.Trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};function htmlspecialchars(c){var b="";if(c.length==0){return""}c=c.Trim();for(var a=0;a<c.length;a++){switch(c.substr(a,1)){case"&":b+="&amp;";break;case"<":b+="&lt;";break;case">":b+="&gt;";break;case" ":if(c.substr(a+1,1)==" "){b+="&nbsp;&nbsp;";a++}else{b+=" "}break;case"\n":b+="&lt;br&gt;";break;case'"':b+="&quot;";break;default:b+=c.substr(a,1);break}}return b}function bqtab(){var a='<SPAN onmousemove=\'$(this).css("background-color","#999")\' style="BACKGROUND-COLOR: #fff" onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/0.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' style="BACKGROUND-COLOR: #fff" onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/1.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' style="BACKGROUND-COLOR: #fff" onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/2.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/3.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/4.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\'onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/5.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/6.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/7.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/8.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/9.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/10.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/11.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/12.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' style="BACKGROUND-COLOR: #fff" onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/13.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' style="BACKGROUND-COLOR: #fff" onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/14.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' style="BACKGROUND-COLOR: #fff" onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/15.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' style="BACKGROUND-COLOR: #fff" onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/16.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/17.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/18.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/19.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/20.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/21.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/22.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/23.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/24.gif"></SPAN><SPAN onmousemove=\'$(this).css("background-color","#999")\' style="BACKGROUND-COLOR: #fff" onmouseout=\'$(this).css("background-color","#fff")\'><IMG src="/images/bq/25.gif"></SPAN>';return a}function bqwork(b){var a="";switch(b){case"0":a="[\u5fae\u7b11]";break;case"1":a="[\u5927\u7b11]";break;case"2":a="[\u6ee1\u610f]";break;case"3":a="[\u50bb\u7b11]";break;case"4":a="[\u6fc0\u52a8]";break;case"5":a="[\u5472\u7259]";break;case"6":a="[\u6d41\u6cea]";break;case"7":a="[\u62bd\u6ce3]";break;case"8":a="[\u96be\u8fc7]";break;case"9":a="[\u5927\u54ed]";break;case"10":a="[\u6cae\u4e27]";break;case"11":a="[\u751f\u6c14]";break;case"12":a="[\u9634\u9669]";break;case"13":a="[\u6124\u6012]";break;case"14":a="[\u50bb\u773c]";break;case"15":a="[\u60ca\u6050]";break;case"16":a="[\u6487\u5634]";break;case"17":a="[\u5450\u558a]";break;case"18":a="[\u54ac\u7259]";break;case"19":a="[\u773c\u82b1]";break;case"20":a="[\u5174\u594b]";break;case"21":a="[\u53f9\u6c14]";break;case"22":a="[\u7231\u6155]";break;case"23":a="[!]";break;case"24":a="[?]";break;case"25":a="[\u7761\u89c9]";break}return a}function showreinput(a,c){if($(a).parent("div").find("textarea").html()!=null){return}var h=$("<div>");var f=$("<div style='margin: 5px;'></div>");f.html("<a href='javascript:' onclick='$(this).next(\".dbq\").show()'><img  src=\"images/bq/0.gif\" />\u8868\u60c5</a><div class='dbq'><div onclick='$(this).parent(\"div\").hide()'><img src='/images/del1.gif'/></div>"+bqtab()+"</div>");var b=$("<div ><textarea style='height:70px;width:400px;' ONSELECT='this.pos=document.selection.createRange();' onkeyup='this.pos=document.selection.createRange()'; onclick='this.pos=document.selection.createRange()' onmousemove='this.focus()';></textarea></div>");var d=$("<input>");d.attr("type","button");d.attr("value","\u63d0\u4ea4");var e=$("<input>");e.attr("type","button");e.attr("value","\u53d6\u6d88");h=h.append(f);h=h.append(b);h=h.append(d);h=h.append(e);var g=h;$(a).parent("div").append(g);d.click(function(){var k=$(a).parent("div").find("textarea").val();var j=$(a).parent("div").find("input").val();if(k==""){alert("\u60a8\u4e0d\u6253\u7b97\u5199\u70b9\u4ec0\u4e48\u5417\uff01");$(a).parent("div").find("textarea")[0].focus();return}if(k.length>140){alert("\u60a8\u6700\u591a\u53ef\u4ee5\u5199140\u4e2a\u5b57\u7b26\uff01");$(a).parent("div").find("textarea")[0].focus();return}subget(c,"&msg="+escape(k)+"&shuyuid="+j,j,1);$(a).parent("div").find("textarea").val("")});e.click(function(){g.remove()});$(a).parent("div").find(".dbq").find("span").click(function(){var k=$(this).find("img").attr("src");var l=k.lastIndexOf("/");k=k.substring(l+1,k.length-4);var j=$(this).parent("div").parent("div").next("div").find("textarea");j=j.get(0);j.focus();if(j.pos){j.pos.text=bqwork(k)}else{j.value+=bqwork(k)}$(this).parent().hide()});$(a).parent("div").find(".dbq").find("span").mousemove(function(){if($(this).attr("title")==""){var j=$(this).find("img").attr("src");var k=j.lastIndexOf("/");j=j.substring(k+1,j.length-4);$(this).attr("title",bqwork(j))}})}function imgloader(f,a,b,d,e){$("#"+a).html("<img src='/images/lightbox-ico-loading.gif'/>");var c=new Image();c.onload=function(){$("#"+a).html("<img src='"+f+"' width='"+b+"px' height='"+d+"px' title='"+e+"'/>");c.onload=function(){}};c.src=f}function funcharcount(a,b){var c=$(a).val().length;if(c<=140){$(b).html("\u5b57\u6570\u7edf\u8ba1\uff1a"+c+"/140 \u5269\u4f59\uff1a"+Number(140-c))}else{$(a).val($(a).val().substring(0,140));$(b).html("\u5b57\u6570\u5df2\u8fbe\u4e0a\u9650\uff01")}}function MM_goToURL(){var i,args=MM_goToURL.arguments;document.MM_returnValue=false;for(i=0;i<(args.length-1);i+=2){eval(args[i]+".location='"+args[i+1]+"'")}}function pubdown(a){$("#fbox"+a).append("<iframe src='/ajaxserver/filessys/download.aspx?fid="+a+"'' style='display:none;'></iframe>")}function down(a){$("#downloader").html("<iframe src='/ajaxserver/filessys/download.aspx?fid="+a+"' style='display:none;'></iframe>")};
