﻿//core.js
var Element={};Element.gE=function($){return document.getElementById($)};Element.gETop=function(_){var $=0;while(_){$+=_.offsetTop;_=_.offsetParent}return $};Element.gEBottom=function($){return($.offsetHeight+Element.gETop($))};Element.gELeft=function(_){var $=0;while(_){$+=_.offsetLeft;_=_.offsetParent}return $};Element.gERight=function($){return($.offsetWidth+Element.gELeft($))};Element.clonePos=function(_,$){$.style.display=_.style.display;if(_.style.top)$.style.top=parseInt(_.style.top)+"px";if(_.style.left)$.style.left=parseInt(_.style.left)+"px";if(_.offsetWidth)$.style.width=parseInt(_.offsetWidth)+"px";if(_.offsetHeight)$.style.height=parseInt(_.offsetHeight)+"px"};var Keys={};Keys.isUpDown=function($){if($==40||$==38||$==33||$==34)return true;else return false};Keys.isCtrl=function($){if($==16||$==17||$==18)return true;else return false};function $P($){return document.getElementById($)}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};function Browseris(){var $=navigator.userAgent.toLowerCase();this.osver=1;if($){var _=$.substring($.indexOf("windows ")+11);this.osver=parseFloat(_)}this.major=parseInt(navigator.appVersion);this.nav=(($.indexOf("mozilla")!=-1)&&(($.indexOf("spoofer")==-1)&&($.indexOf("compatible")==-1)));this.nav6=this.nav&&(this.major==5);this.nav6up=this.nav&&(this.major>=5);this.nav7up=false;if(this.nav6up){var B=$.indexOf("netscape/");if(B>=0)this.nav7up=parseInt($.substring(B+9))>=7}this.ie=($.indexOf("msie")!=-1);this.aol=this.ie&&$.indexOf(" aol ")!=-1;if(this.ie){var A=$.substring($.indexOf("msie ")+5);this.iever=parseInt(A);this.verIEFull=parseFloat(A)}else this.iever=0;this.ie4up=this.ie&&(this.major>=4);this.ie5up=this.ie&&(this.iever>=5);this.ie55up=this.ie&&(this.verIEFull>=5.5);this.ie6up=this.ie&&(this.iever>=6);this.ie7up=this.ie&&(this.iever>=7);this.winnt=(($.indexOf("winnt")!=-1)||($.indexOf("windows nt")!=-1));this.win32=((this.major>=4)&&(navigator.platform=="Win32"))||($.indexOf("win32")!=-1)||($.indexOf("32bit")!=-1);this.mac=($.indexOf("mac")!=-1);this.w3c=this.nav6up;this.safari=($.indexOf("safari")!=-1);this.safari125up=false;if(this.safari&&this.major>=5){B=$.indexOf("safari/");if(B>=0)this.safari125up=parseInt($.substring(B+7))>=125}}var browseris=new Browseris();function newE($){return document.createElement($)}function GetEventSrcElement($){if(browseris.nav)return $.target;else return $.srcElement}function GetEventKeyCode($){if(browseris.nav)return $.which;else return $.keyCode}function GetInnerText($){if(browseris.safari)return $.innerHTML;else if(browseris.nav)return $.textContent;else return $.innerText}var Pager={first:function(){window.location=Methods.editParam(window.location.href,"page",1)},prev:function($){window.location=Methods.editParam(window.location.href,"page",$-1)},next:function($){window.location=Methods.editParam(window.location.href,"page",$+1)},last:function($){window.location=Methods.editParam(window.location.href,"page",$)},go:function($){window.location=Methods.editParam(window.location.href,"page",$)},setPeerItemCount:function(_){var $=window.location.href;$=Methods.editParam($,"peer",_),$=Methods.editParam($,"page",1),window.open($,"_self")}};function PagerObj($,A,_){this.baseScript=null;this.currentIndex=A;this.totalItem=$;this.firstItem=(A-1)*_+1;this.lastItem=((A*_)>$)?$:(A*_);this.lastIndex=Math.round(($/_),0);if(($/_)>this.lastIndex)this.lastIndex+=1;this.haveFirst=A>1;this.havePri=A>1;this.haveNext=this.lastItem<$;this.haveLast=this.lastItem<$}PagerObj.prototype.BuildPagerItem=function(B,_){if(this.currentIndex==_)B[B.length]="<span class=\"cur_page\">"+_+"</span>";else if(this.baseScript){var $=/__0__/g,A=this.baseScript.replace($,_);B[B.length]="<a href=\"javascript:void(0);\" onclick=\""+A+"\">"+_+"</a>"}else{A=Methods.editParam(window.location.href,"page",_);B[B.length]="<a href=\""+A+"\">"+_+"</a>"}};PagerObj.prototype.BuildPagerItemMap=function(B,_){if(this.currentIndex==_)B[B.length]="<span class=\"cur_page\">"+_+"</span>";else if(this.baseScript){var $=/__0__/g,A=this.baseScript.replace($,_);B[B.length]="<a href=\"javascript:"+A+"\">"+_+"</a>"}else{A=Methods.editParam(window.location.href,"page",_);B[B.length]="<a href=\""+A+"\">"+_+"</a>"}};PagerObj.prototype.MapBuildPager=function(){if(this.lastItem<1)return"";var $=new Array();$[$.length]="<div class=\"page\">";if(this.currentIndex<5){for(i=1;i<=this.lastIndex;i++){this.BuildPagerItemMap($,i);if(i>=5)break}if(this.lastIndex>5){$[$.length]=("<span class=\"break_page\">...</span>");this.BuildPagerItemMap($,this.lastIndex)}}else if(this.currentIndex>this.lastIndex-4){if(this.currentIndex!=5){this.BuildPagerItemMap($,1);$[$.length]=("<span class=\"break_page\">...</span>")}for(i=this.lastIndex-4;i<=this.lastIndex;i++)this.BuildPagerItemMap($,i)}else{this.BuildPagerItemMap($,1);$[$.length]=("<span class=\"break_page\">...</span>");for(i=this.currentIndex-1;i<=this.currentIndex+1;i++)this.BuildPagerItemMap($,i);$[$.length]=("<span class=\"break_page\">...</span>");this.BuildPagerItemMap($,this.lastIndex)}$[$.length]="</div>";return $.join("")};PagerObj.prototype.BuildPager=function(){if(this.lastItem<1)return"";var A=new Array();A[A.length]="<div class=\"page\">";A[A.length]="<span class=\"page_cur_all\">\u5171"+this.totalItem+"\u6761&nbsp;\u7b2c"+this.currentIndex+"/"+this.lastIndex+"\u9875</span>";this.BuildPagerItem(A,1);if(this.lastIndex>1)this.BuildPagerItem(A,2);if(this.lastIndex<3);else if(this.lastIndex<9){for(var $=3;$<=this.lastIndex;$++)this.BuildPagerItem(A,$)}else if(this.lastIndex>8){if(this.currentIndex==2)this.BuildPagerItem(A,3);if(this.currentIndex>4||this.currentIndex<3)A[A.length]="<span class=\"break_page\">...</span>";var _=this.currentIndex;if((this.currentIndex<3)||(this.currentIndex>this.lastIndex-2))_=Math.ceil(this.lastIndex/2);if(this.currentIndex!=3)this.BuildPagerItem(A,_-1);this.BuildPagerItem(A,_);this.BuildPagerItem(A,_+1);if(_+3<this.lastIndex)A[A.length]="<span class=\"break_page\">...</span>";if(this.currentIndex==this.lastIndex-1)this.BuildPagerItem(A,this.lastIndex-2);if(_+2<this.lastIndex)this.BuildPagerItem(A,this.lastIndex-1);this.BuildPagerItem(A,this.lastIndex)}A[A.length]="</div>";return A.join("")};PagerObj.prototype.NaviButtons=function(){var $=new Array();$[$.length]="<div class=\"LListTopRight\"><span>\u5171"+this.totalItem+"\u6761&nbsp;\u7b2c"+this.currentIndex+"/"+this.lastIndex+"\u9875</span>";if(this.haveFirst)$[$.length]="<a class=\"AbovePage\" href=\"javascript:Pager.prev("+this.currentIndex+");\" title='\u4e0a\u4e00\u9875'></a>";if(this.haveNext)$[$.length]="<a class=\"NextPageAct\" href=\"javascript:Pager.next("+this.currentIndex+");\">\u4e0b\u4e00\u9875</a>";$[$.length]="</div>";return $.join("")};function DropDownPanel(_,$,A){this.containerId=$?$:"idDropDownPanel";this.downPanel=null;this.isShown=false;this.refControl=$P(_);this.containerClass=A;this.getContainer($)}DropDownPanel.prototype.getContainer=function($){if(!this.downPanel){this.downPanel=$P($);if(!this.downPanel){this.downPanel=document.createElement("DIV");this.downPanel.id=$;document.body.appendChild(this.downPanel)}if(!$P(this.containerId+"Frame")){this.downPanel.innerHTML="<div style='position:relative;'><iframe id=\""+this.containerId+"Frame\" name=\""+this.containerId+"Frame\" scrolling=no frameborder='no' frameborder='no' hidefocus='hidefocus' unselectable='on' style='position:absolute;background-color:#e6f7d4;z-index:201;left:0px;top:0px;'></iframe><div id=\""+this.containerId+"Div\" name=\""+this.containerId+"Div\"  style='position:relative;background-color:#e6f7d4;z-index:202;left:0;top:0;'></div></div>";this.container=$P(this.containerId+"Div")}}if(!this.containerClass)this.downPanel.className="DownShow";else this.downPanel.className=this.containerClass;this.downPanel.style.display="none";this.downPanel.style.position="absolute"};DropDownPanel.prototype.showEle=function(D){if(this.isShown)return;var A=this.refControl,_=0,$=0;$P(this.containerId+"Frame").height=1;$P(this.containerId+"Frame").width=1;this.downPanel.style.height=10+"px";this.downPanel.style.width=10+"px";this.container.style.height=10+"px";this.container.style.width=10+"px";if(D&&this.container){D.style.display="";if(D.parentNode)D.parentNode.removeChild(D);this.container.appendChild(D)}this.downPanel.style.display="block";this.isShown=true;if(A){while(A&&(A.tagName!="BODY")&&(A.tagName!="HTML")){_+=A.offsetLeft;$+=A.offsetTop;A=A.offsetParent}_+=A.offsetLeft;$+=A.offsetTop}else{_=Math.ceil(window.document.documentElement.offsetWidth/2-this.downPanel.offsetWidth/2);$=Math.ceil(window.document.documentElement.offsetHeight/2-this.downPanel.offsetHeight/2)}var B=this.container.scrollHeight,C=this.container.scrollWidth;if((_)<=(document.body.scrollWidth-C))this.downPanel.style.left=_+"px";else this.downPanel.style.left=(document.body.scrollWidth-C)+"px";this.downPanel.style.top=($+((this.refControl)?this.refControl.offsetHeight:0))+"px";$P(this.containerId+"Frame").height=this.container.scrollHeight;$P(this.containerId+"Frame").width=this.container.scrollWidth};DropDownPanel.prototype.show=function(C){var A=this.refControl,_=0,$=0;$P(this.containerId+"Frame").height=1;$P(this.containerId+"Frame").width=1;this.downPanel.style.height=10+"px";this.downPanel.style.width=10+"px";this.container.style.height=10+"px";this.container.style.width=10+"px";if(C)this.container.innerHTML=C;this.downPanel.style.display="block";this.isShown=true;if(A){while(A&&(A.tagName!="BODY")&&(A.tagName!="HTML")){_+=A.offsetLeft;$+=A.offsetTop;A=A.offsetParent}_+=A.offsetLeft;$+=A.offsetTop}else{_=Math.ceil(window.document.documentElement.offsetWidth/2-this.downPanel.offsetWidth/2);$=Math.ceil(window.document.documentElement.offsetHeight/2-this.downPanel.offsetHeight/2)}var B=this.container.scrollHeight,D=this.container.scrollWidth;if((_)<=(document.body.scrollWidth-D))this.downPanel.style.left=_+"px";else this.downPanel.style.left=(document.body.scrollWidth-D)+"px";this.downPanel.style.top=($+((this.refControl)?this.refControl.offsetHeight:0))+"px";$P(this.containerId+"Frame").height=this.container.scrollHeight;$P(this.containerId+"Frame").width=this.container.scrollWidth};DropDownPanel.prototype.hide=function(){this.downPanel.style.display="none";this.isShown=false};var Methods={openTopWin:function(A,B,$,_){if(window.parent)window.parent.location.href=A;else if(window.opener)window.opener.location.href=A;else Methods.openTopNewWin(A,B,$,_)},openTopNewWin:function(C,D,_,A,$){_=_||450;A=A||600;var B=$?"resizable=yes,scrollbars=yes":"resizable=no,scrollbars=no",E=window.open(C,D,"height="+A+",width="+_+",location=no,status=no,toolbar=no,menubar=no,"+B);E.focus()},addOption:function(A,$,_){A.options.add(new Option($,_))},clearOptions:function($){$.options.length=0},getSelectText:function($){if(!$)return"";return $.options[$.selectedIndex].text},selectByText:function(_,$){if(!_)return;for(i=0;i<_.options.length;i++)if(_.options[i].text==$){_.options[i].selected=true;break}},selectByValue:function(A,_){if(!A)return;var $=0;for($=0;$<A.options.length;$++)if(A.options[$].value==_){A.options[$].selected=true;break}if($>=A.options.length)return 0;else return $},editParam:function(A,B,$){var C=A.toLowerCase();$=encodeURIComponent($);var E=B.length+1,D=C.indexOf("?"+B+"=");if(D<0)D=C.indexOf("&"+B+"=");if(D<0){if(C.indexOf("?")<0)return A+"?"+B+"="+$;else return A+"&"+B+"="+$}else{var _=A.substr(0,D+E+1)+$;C=A.substr(D+E);D=C.indexOf("&");if(D<0)return _;else return _+C.substr(D)}},getAllParams:function(A){var B=A.indexOf("?");if(B<0)return;A=A.substr(B+1).toLowerCase();var _=A.split("&"),C=new Array();for(var $=0;$<_.length;$++){B=_[$].indexOf("=");if(B<0)continue;C[C.length]=_[$].substr(0,B)}if(C.length==0)return;return C},getURLParam:function($,_){$=$.toLowerCase();_=_.toLowerCase();var A=$.indexOf("&"+_+"=");if(A<0)A=$.indexOf("?"+_+"=");if(A<0)return"";$=$.substr(A+1);A=$.indexOf("&");if(A>-1)$=$.substr(0,A);A=$.indexOf("=");$=$.substr(A+1);return decodeURIComponent($)},removeURLParam:function(_,A){_=_.toLowerCase();A=A.toLowerCase();var B=_.indexOf("&"+A+"=");if(B<0)B=_.indexOf("?"+A+"=");if(B<0)return"";var $=_.substr(0,B);_=_.substr(B+1);B=_.indexOf("&");if(B>-1){_=_.substr(0,B);$+=_.substr(B+1)}return $},addTimeparam:function(_){var $=escape(Date.parse(new Date()));return Methods.editParam(_,"refreshtime",$)},addReturnParam:function($,_){if(!_)_=window.location.href;return Methods.editParam($,"ReturnUrl",_)},openWinWithReturn:function($,_){$=Methods.addReturnParam($,_);window.location.href=$},refeshWin:function(){window.location.href=Methods.addTimeparam(window.location.href)},refeshPage:function(){var $=Methods.addTimeparam(window.location.href);window.location.href=$},onImgError:function($,_){if(_)$.src=basepath+"content/images/noImg"+_+".png";else $.src=basepath+"content/images/noImg40.png"},getAjaxStr:function(_){_=Methods.addTimeparam(_);try{return $H.ajax({type:"GET",url:_,async:false}).responseText}catch(A){return""}},getAjaxStrAsync:function(B,_,A){B=Methods.addTimeparam(B);$H.ajax({type:"GET",url:B,async:true,error:function(){_(A,"errors ocu.")},success:function($){_(A,$H)}})},postDataAsync:function(B,C,_,A){B=Methods.addTimeparam(B);$.post(B,C,function($){_(A,$)})},selectAllValue:function($){for(i=0;i<=$P($).options.length-1;i++)$P($).options[i].selected="true"},createFlash:function(D,C,$,_,B,A){if(!$)$="100%";if(browseris.ie){if(!_)_=document.documentElement.offsetHeight-40;if(B)B="<param name='"+B+"' value='"+A+"' /> ";else B="";return"<object codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0' width='"+$+"' height='"+_+"' align='middle' id='"+D+"' name='"+D+"' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' >"+"<param name='movie' value='"+C+".swf' /> "+"<param name='quality' value='high' /> "+"<param name='wmode' value='transparent' /> "+B+"<param name='allowFullScreen' value='false' /> "+"<param name='allowScriptAccess' value='always' /> "+"</object>"}else{if(!_)_=window.innerHeight-40;if(B)B=" "+B+"='"+A+"' ";else B="";return"<embed type=\"application/x-shockwave-flash\" "+B+" src=\""+C+".swf\"  width=\""+$+"\" height=\""+_+"\"  allowScriptAccess=\"always\" id=\""+D+"\" name=\""+D+"\" quality=\"high\" swLiveConnect=\"true\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" wmode=\"opaque\" ></embed> "}},setObjEvent:function($,A,_){if(!$)return false;if($.addEventListener){$.addEventListener(A,_,true);return true}else if($.attachEvent){return $.attachEvent("on"+A,_);return true}else return false},checkAll:function(B,A){if(!B)return;var $=document.getElementsByName("ids");for(var _=0;_<$.length;_++)if($[_].tagName=="INPUT"&&$[_].type=="checkbox")$[_].checked=A},moveSelect:function(B,A){for(i=0;i<=$(B).options.length-1;i++)if($(B).options[i].selected&&$(B).options[i].value!=0){var _=window.Option.create($(B).options[i].text,$(B).options[i].value,0);$(A).add(_);$(B).options[i]=null}for(i=0;i<=$(A).options.length-1;i++)$(A).options[i].selected="true"},removeSelect:function(_){for(i=0;i<=$(_).options.length-1;i++)if($(_).options[i].selected)$(_).remove(i)},correctPNG:function(){if(browseris.ie7up)return;for(var B=0;B<document.images.length;B++){var D=document.images[B],_=D.src.toUpperCase();if(_.substring(_.length-3,_.length)=="PNG"){var $=(D.id)?"id='"+D.id+"' ":"",C=(D.className)?"class='"+D.className+"' ":"",F=(D.title)?"title='"+D.title+"' ":"title='"+D.alt+"' ",E="display:inline-block;"+D.style.cssText;if(D.align=="left")E="float:left;"+E;if(D.align=="right")E="float:right;"+E;if(D.parentElement&&D.parentElement.tagName=="A")E="cursor:hand;"+E;var A="<span "+$+C+F+" style=\""+"width:"+D.width+"px; height:"+D.height+"px;"+E+";"+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"+"(src='"+D.src+"', sizingMethod='scale');\"></span>";D.outerHTML=A;if(browseris.ie)B--}}},loadJS:function(D,F,$,A){var E=(browseris.ie)?document.charset:document.characterSet;D=Methods.editParam(D,"encode",E);if(document.getElementsByTagName("head").length<0)return;var C=document.getElementsByTagName("head").item(0);if(!C)return;if(F){var _=$P(F);if(_)C.removeChild(_)}var B=document.createElement("SCRIPT");B.src=D;B.defer=true;B.type="text/javascript";if(F)B.id=F;if($){B.onload=function(){$(A)};B.onreadystatechange=function(){if(B.readyState=="complete"||B.readyState=="loaded")$(A)}}C.appendChild(B)},skipKey:function(A){A=A||event;var $=A.keyCode,_=A.srcElement||A.target;if(window.event){A.keyCode=0;A.returnvalue=false;return false}else A.preventDefault();if($==116)if(window.event){A.keyCode=0;A.returnvalue=false;return false}else A.preventDefault()},copyURL:function(_,D){if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text",_)}else if(navigator.userAgent.indexOf("Opera")!=-1){window.open(_,"_blank");return false}else if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(G){if(D){alert("\u4e0d\u652f\u6301\u6b64\u529f\u80fd\uff0c\u8bf7\u5728\u65b0\u6253\u5f00\u7684\u6d4f\u89c8\u5668\u7a97\u53e3\u5730\u5740\u8f93\u5165\u6846\u4e2d\u590d\u5236\u3002");window.open(_,"_blank")}else alert("\u4e0d\u652f\u6301\u590d\u5236");return false}var B=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!B)return false;var E=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!E)return false;E.addDataFlavor("text/unicode");var F=new Object(),$=new Object(),F=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString),C=_;F.data=C;E.setTransferData("text/unicode",F,C.length*2);var A=Components.interfaces.nsIClipboard;if(!B)return false;B.setData(E,null,A.kGlobalClipboard)}return true}},Msg={YesNo:function($){return window.confirm($)},DelAsk:function(){return this.YesNo("\u5220\u9664\u6b64\u9879\u5c06\u4f1a\u5220\u9664\u76f8\u5173\u6570\u636e\uff0c\u786e\u5b9a\u5220\u9664\uff1f")},Alt:function($){alert($)}},SetClasses={init:function(A){var _=document.getElementsByClassName(A);for(var $=0;$<_.length;$++){Methods.setObjEvent(_[$],"focus",SetClasses.focus);Methods.setObjEvent(_[$],"mouseover",SetClasses.mouseover);Methods.setObjEvent(_[$],"mouseout",SetClasses.mouseout);Methods.setObjEvent(_[$],"blur",SetClasses.blur)}},focus:function(_){_=_||window.event;var $=_.srcElement||_.target;if(!$)return;if(!$.getAttribute("ncls"))if($.className)$.setAttribute("ncls",$.className);$.setAttribute("focused","1");if($.getAttribute("fcls"))$.className=$.getAttribute("fcls")},blur:function(_){_=_||window.event;var $=_.srcElement||_.target;if(!$)return;$.setAttribute("focused","");if($.getAttribute("ncls"))$.className=$.getAttribute("ncls")},mouseover:function(_){_=_||window.event;var $=_.srcElement||_.target;if(!$)return;if(!$.getAttribute("ncls"))$.setAttribute("ncls",$.className);if($.getAttribute("fcls"))$.className=$.getAttribute("fcls")},mouseout:function(_){_=_||window.event;var $=_.srcElement||_.target;if(!$)return;if($.getAttribute("focused")&&$.getAttribute("focused")=="1")return;if($.getAttribute("ncls"))$.className=$.getAttribute("ncls")}},windowInitScrip=new Array();function windowCoreInit(){var frmList=document.getElementsByTagName("form");for(var i=0;i<frmList.length;i++)Methods.setObjEvent(frmList[i],"keypress",function($){$=$||event;if($.keyCode==13)if(window.event){$.keyCode=0;$.returnvalue=false;return false}else $.preventDefault()});for(i=0;i<windowInitScrip.length;i++)eval(windowInitScrip[i]);try{window.setTimeout("googleAnalyze();",1000)}catch(e){}}function googleAnalyze(){try{var $=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");Methods.loadJS($+"google-analytics.com/ga.js","googleAnalyze",function(){try{var $=_gat._getTracker("UA-493842-5");$._initData();$._trackPageview()}catch(_){}})}catch(_){}}function addBookmark(){if(window.sidebar)window.sidebar.addPanel(document.getElementsByTagName("title")[0].innerHTML,window.location.href,"");else if(document.all)window.external.AddFavorite(window.location.href,document.getElementsByTagName("title")[0].innerHTML);else if(window.opera&&window.print)return true}function SetHome($,_){try{$.style.behavior="url(#default#homepage)";$.setHomePage(_)}catch(B){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(B){alert("\u62b1\u6b49\uff01\u60a8\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u76f4\u63a5\u8bbe\u4e3a\u9996\u9875\u3002\u8bf7\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165\u201cabout:config\u201d\u5e76\u56de\u8f66\u7136\u540e\u5c06[signed.applets.codebase_principal_support]\u8bbe\u7f6e\u4e3a\u201ctrue\u201d\uff0c\u70b9\u51fb\u201c\u52a0\u5165\u6536\u85cf\u201d\u540e\u5ffd\u7565\u5b89\u5168\u63d0\u793a\uff0c\u5373\u53ef\u8bbe\u7f6e\u6210\u529f\u3002")}var A=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);A.setCharPref("browser.startup.homepage",_)}}}Methods.setObjEvent(window,"load",windowCoreInit)
//jQuery.js
jQuery.extend({ImpromptuDefaults:{prefix:"jqi",url:"",message:"\u5f39\u51fa\u4f1a\u8bdd\u6846?",width:"300",height:"100",buttons:{},loaded:function(){},submit:function(){return true},callback:function(){},opacity:0.6,zIndex:999,overlayspeed:"slow",promptspeed:"fast",show:"show",focus:0,useiframe:false},SetImpromptuDefaults:function($){jQuery.ImpromptuDefaults=jQuery.extend({},jQuery.ImpromptuDefaults,$)},prompt:function(M,_){_=jQuery.extend({},jQuery.ImpromptuDefaults,_);var R=(jQuery.browser.msie&&jQuery.browser.version<7),I=jQuery(document.body),C=jQuery(window),K="<div class=\""+_.prefix+"box\" id=\""+_.prefix+"box\">";if(_.useiframe&&((jQuery.browser.msie&&jQuery("object, applet").length>0)||R))K+="<iframe src=\"javascript:;\" class=\""+_.prefix+"fade\" id=\""+_.prefix+"fade\"></iframe>";else{if(R)$("select").css("visibility","hidden");K+="<div class=\""+_.prefix+"fade\" id=\""+_.prefix+"fade\"></div>"}K+="<div class=\""+_.prefix+"\" id=\""+_.prefix+"\"><div id=\"jqititle\"><p class=\"pTitleMessage\">"+M+"</p><div class=\""+_.prefix+"close\"></div></div><div class=\""+_.prefix+"container\"><div class=\""+_.prefix+"message\"></div><div class=\""+_.prefix+"buttons\" id=\""+_.prefix+"buttons\">";jQuery.each(_.buttons,function($,A){K+="<button name=\""+_.prefix+"button"+$+"\" id=\""+_.prefix+"button"+$+"\" value=\""+A+"\">"+$+"</button>"});K+="</div></div></div></div>";var P=I.append(K).children("#"+_.prefix+"box"),L=P.children("#"+_.prefix),A=P.children("#"+_.prefix+"fade"),S=L.children("."+_.prefix+"container"),Q=S.children("#jqititle"),D=function(){return(document.documentElement.scrollTop||document.body.scrollTop)+"px"},B=function(){var $={width:window.innerWidth||(window.document.documentElement.clientWidth||window.document.body.clientWidth),height:window.innerHeight||(window.document.documentElement.clientHeight||window.document.body.clientHeight)};return $},O=function(){P.css({top:D()})},G=function(){var $=0;P.addClass(_.prefix+"warning");var A=setInterval(function(){P.toggleClass(_.prefix+"warning");if($++>1){clearInterval(A);P.removeClass(_.prefix+"warning")}},100)},N=function(A){var _=(window.event)?event.keyCode:A.keyCode,$=(window.event)?27:A.DOM_VK_ESCAPE;if(_==$)H()},J=function(){var $=B();P.css({position:(R)?"absolute":"fixed",height:$.height,width:"100%",top:(R)?D():0,left:0,right:0,bottom:0});A.css({position:"absolute",height:$.height,width:"100%",top:0,left:0,right:0,bottom:0});L.css({position:"absolute",width:_.width+"px",height:_.height+"px",left:($.width-_.width)/2+"px",top:($.height-_.height)/2+"px"});S.css({width:_.width-10+"px",height:_.height-40+"px"});Q.css({width:"100%",height:"20px",background:"red"})},F=function(){A.css({zIndex:_.zIndex,display:"none",opacity:_.opacity});L.css({zIndex:_.zIndex+1,display:"none"})},H=function(E,D,B){L.remove();if(R)I.unbind("scroll",O);C.unbind("resize",J);A.fadeOut(_.overlayspeed,function(){A.unbind("click",G);A.remove();if(E)_.callback(D,B);P.unbind("keypress",N);P.remove();if(R&&!_.useiframe)$("select").css("visibility","visible")})};J();F();if(_.url!=""){var E=L.children("."+_.prefix+"container").children("."+_.prefix+"message");E.html("\u6b63\u5728\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u5019.......");E.load(_.url)}else if(_.ele&&$("#"+_.ele)){E=L.children("."+_.prefix+"container").children("."+_.prefix+"message");if($("#"+_.ele).parentNode)$("#"+_.ele).removeChild($("#"+_.ele));E.empty();E.append($("#"+_.ele));$("#"+_.ele).css("display","")}else{E=L.children("."+_.prefix+"container").children("."+_.prefix+"message");E.append(_.message)}jQuery("#"+_.prefix+"buttons").children("button").click(function(){var $=L.children("."+_.prefix+"container").children("."+_.prefix+"message"),A=_.buttons[jQuery(this).text()];if(_.submit(A,$))H(true,A,$)});if(R)C.scroll(O);A.click(G);C.resize(J);P.keypress(N);L.find("."+_.prefix+"close").mouseover(function(){jQuery(this).addClass("jqiclose2")}).mouseout(function(){jQuery(this).removeClass("jqiclose2")}).click(H);A.fadeIn(_.overlayspeed);L[_.show](_.promptspeed,_.loaded);L.find("#"+_.prefix+"buttons button:eq("+_.focus+")").focus();return P}});jQuery.fn.extend({shadow:function($){DropShadow(this,$)}});function DropShadow(H,G){var _=8,A=4,L=80,B=20,J="black";if(G){if(G["cornerHeight"]!=null)_=parseInt(G["cornerHeight"]);if(G["width"]!=null)A=parseInt(G["width"]);if(G["startOpacity"]!=null)L=parseFloat(G["startOpacity"]);if(G["endOpacity"]!=null)B=parseFloat(G["endOpacity"]);if(G["color"]!=null)J=G["color"];if(L<1)L=Math.round(L*100);if(B<1)B=Math.round(B*100)}if($(H.id+"_shadow").length>0)$(H.id+"_shadow").remove();H=$(H);var F=H[0].id+"_shadow",C="<div id='"+F+"' style='";if(H.css("position")=="absolute"||H.css("position")=="relative"){C+="position: "+H.css("position")+"; ";H.css("position","")}if(H.css("top")){C+="top:"+H.css("top")+"; ";H.css("top","")}if(H.css("left")){C+="left:"+H.css("left")+"; ";H.css("left","")}C+="'><table style='float:left;' cellpadding='0px' cellspacing='0px'><tr class='shadowFirstRow'>"+"<td colspan='2' rowspan='2'></td></tr></table></div>";H.wrap(C);C="<td colspan='"+A+"' style='width:"+A+"px; height:"+_+"px;'><table cellpadding='0px' cellspacing='0px'>";var D=L;for(var I=0;I<_;I++){C+="<tr>";for(var K=0;K<A;K++){D=Math.round((I-K*(_/A))*10);if(D<0)D=0;else if(D<10)D="0"+D;C+="<td style='height:1px; width:1px; background-color: "+J+"; opacity:0."+D+"; filter:Alpha(opacity="+D+");'></td>"}C+="</tr>"}C+="</table></td>";$("#"+F).children().children().children(".shadowFirstRow").append(C);C="<tr>";for(I=L;I>=B;I-=(L-B)/(A-1)){D=Math.round(I);if(D<10)D="0"+D;C+="<td style='background-color:"+J+"; padding:0px; margin:0px; height:"+(H.height()-_+12)+"px; opacity:0."+D+"; filter:Alpha(opacity="+D+");'></td>"}C+="</tr>";C+="<tr><td rowspan='"+A+"' style='width:"+_+"px; height:"+A+"px;'><table cellpadding='0px' cellspacing='0px'>";for(I=0;I<A;I++){C+="<tr>";for(K=0;K<_;K++){D=Math.round((0-I*(_/A)+K)*10);if(D<0)D=0;else if(D<10)D="0"+D;C+="<td style='width:1px; height:1px; background-color:"+J+"; opacity:0."+D+"; filter:Alpha(opacity="+D+");'></td>"}C+="</tr>"}C+="</table></td>";var E=H.width()+4;if($.browser.msie)E-=_+4;for(I=L;I>=B;I-=(L-B)/(A-1)){if(I!=L)C+="<tr>";D=Math.round(I);if(D<10)D="0"+D;C+="<td style='height:1px; width:"+E+"px; background-color:"+J+"; opacity:0."+D+"; filter:Alpha(opacity="+D+");'></td>";for(K=L;K>=B;K-=(L-B)/(A-1)){D=Math.round(K);if(D>I)D=Math.round(I);if(D<10)D="0"+D;C+="<td style='width:1px; height:1px; background-color:"+J+"; opacity:0."+D+"; filter:Alpha(opacity="+D+");'></td>"}C+="</tr>"}$("#"+F).children("table").append(C)}(function($){$.fn.example=function(A,B){var C={};this.val("");C=$.extend({},$.fn.example.defaults,B,{example_text:A});var _=$.isFunction(C.example_text);if(!$.fn.example.bound_class_names[C.class_name]){$(window).unload(function(){$("."+C.class_name).val("")});$("form").submit(function(){$(this).find("."+C.class_name).val("")});$.fn.example.bound_class_names[C.class_name]=true}return this.each(function(){var D=$(this),A=$.metadata?$.extend({},C,D.metadata()):C;if($.browser.msie&&!D.attr("defaultValue")&&(_?D.val()!="":D.val()==A.example_text))D.val("");if(D.val()==""){D.addClass(C.class_name);D.val(_?A.example_text.call(this):A.example_text)}if(C.hide_label){var B=$("label[@for="+D.attr("id")+"]");B.next("br").hide();B.hide()}D.unbind("focus");D.unbind("blur");D.focus(function(){var B=_?A.example_text.call(this):A.example_text;if($(this).is("."+C.class_name)||$(this).val()==B){$(this).val("");$(this).removeClass(C.class_name)}});D.blur(function(){if($(this).val()==""){$(this).addClass(C.class_name);$(this).val(_?A.example_text.call(this):A.example_text)}})})};$.fn.example.defaults={example_text:"",class_name:"example",hide_label:false};$.fn.example.bound_class_names=[]})(jQuery);(function($){$.fn.extend({autocomplete:function(_,B){var A=typeof _=="string";B=$.extend({},$.Autocompleter.defaults,{url:A?_:null,data:A?null:_,delay:A?$.Autocompleter.defaults.delay:10,max:B&&!B.scroll?10:150},B);B.highlight=B.highlight||function($){return $};B.formatMatch=B.formatMatch||B.formatItem;return this.each(function(){new $.Autocompleter(this,B)})},searchAuto:function(A){var _="http://"+FCConfig.city+".kshot.net/building/dataoffer.aspx?way=josnsearchbuilding&encode="+encode+"&citydomain="+FCConfig.city+"&k=";options=$.extend({},$.Autocompleter.defaults,{url:_,data:null,delay:$.Autocompleter.defaults.delay,max:150},{minChars:1,width:400,scrollHeight:250,max:10,selectFirst:false,formatItem:function(_,$,A){return _.BuildingName+"\" ["+_.Addr+"]"},formatResult:function($){return $.BuildingName}});if(typeof(A)=="function")this.result(A);options.highlight=options.highlight||function($){return $};options.formatMatch=options.formatMatch||options.formatItem;return this.each(function(){new $.Autocompleter(this,options)})},result:function($){return this.bind("result",$)},search:function($){return this.trigger("search",[$])},flushCache:function(){return this.trigger("flushCache")},setOptions:function($){return this.trigger("setOptions",[$])},unautocomplete:function(){return this.trigger("unautocomplete")}});$.Autocompleter=function(_,I){var F={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8},V=$(_).attr("autocomplete","off").addClass(I.inputClass),B,M="",K=$.Autocompleter.Cache(I),A=0,L,N={mouseDownOnSelect:false},J=$.Autocompleter.Select(I,_,Q,N),C;$.browser.opera&&$(_.form).bind("submit.autocomplete",function(){if(C){C=false;return false}});V.bind("keyup.autocomplete",function(_){L=_.keyCode;switch(_.keyCode){case F.UP:_.preventDefault();if(J.visible())J.prev();else O(0,true);break;case F.DOWN:_.preventDefault();if(J.visible())J.next();else O(0,true);break;case F.PAGEUP:_.preventDefault();if(J.visible())J.pageUp();else O(0,true);break;case F.PAGEDOWN:_.preventDefault();if(J.visible())J.pageDown();else O(0,true);break;case I.multiple&&$.trim(I.multipleSeparator)==","&&F.COMMA:case F.TAB:case F.RETURN:if(Q()){_.preventDefault();C=true;return false}else{P();V.trigger("result");return true}break;case F.ESC:J.hide();break;default:clearTimeout(B);B=setTimeout(O,I.delay);break}}).focus(function(){A++}).blur(function(){A=0;if(!N.mouseDownOnSelect)H()}).click(function(){if(A++>1&&!J.visible())O(0,true)}).bind("search",function(){var A=(arguments.length>1)?arguments[1]:null;function _(C,B){var _;if(B&&B.length)for(var $=0;$<B.length;$++)if(B[$].result.toLowerCase()==C.toLowerCase()){_=B[$];break}if(typeof A=="function")A(_);else V.trigger("result",_&&[_.data,_.value])}$.each(T(V.val()),function($,A){R(A,_,_)})}).bind("flushCache",function(){K.flush()}).bind("setOptions",function(){$.extend(I,arguments[1]);if("data"in arguments[1])K.populate()}).bind("unautocomplete",function(){J.unbind();V.unbind();$(_.form).unbind(".autocomplete")});function Q(){var $=J.selected();if(!$)return false;var A=$.result;M=A;if(I.multiple){var _=T(V.val());if(_.length>1)A=_.slice(0,_.length-1).join(I.multipleSeparator)+I.multipleSeparator+A;A+=I.multipleSeparator}V.val(A);P();V.trigger("result",[$.data,$.value]);return true}function O(A,$){if(L==F.DEL){J.hide();return}var _=V.val();if(!$&&_==M)return;M=_;_=S(_);if(_.length>=I.minChars){V.addClass(I.loadingClass);if(!I.matchCase)_=_.toLowerCase();R(_,U,P)}else{D();J.hide()}}function T(_){if(!_)return[""];var B=_.split(I.multipleSeparator),A=[];$.each(B,function(_,B){if($.trim(B))A[_]=$.trim(B)});return A}function S($){if(!I.multiple)return $;var _=T($);return _[_.length-1]}function G(B,A){if(I.autoFill&&(S(V.val()).toLowerCase()==B.toLowerCase())&&L!=F.BACKSPACE){V.val(V.val()+A.substring(S(M).length));$.Autocompleter.Selection(_,M.length,M.length+A.length)}}function H(){clearTimeout(B);B=setTimeout(P,200)}function P(){var A=J.visible();J.hide();clearTimeout(B);D();if(I.mustMatch)V.search(function($){if(!$)if(I.multiple){var _=T(V.val()).slice(0,-1);V.val(_.join(I.multipleSeparator)+(_.length?I.multipleSeparator:""))}else V.val("")});if(A)$.Autocompleter.Selection(_,_.value.length,_.value.length)}function U(_,$){if($&&$.length&&A){D();J.display($,_);G(_,$[0].value);J.show()}else P()}function R(A,C,D){if(!I.matchCase)A=A.toLowerCase();var B=K.load(A);if((typeof I.url=="string")&&(I.url.length>0)){var _={timestamp:+new Date()};$.each(I.extraParams,function($,A){_[$]=typeof A=="function"?A():A});FtUtils.loadJS(I.url+encodeURIComponent(A),"testjs1",function(_){if(typeof(buildingsResult)=="undefined")return;if(buildingsResult["pager"]);var $=I.parse&&I.parse(buildingsResult.Items)||E(buildingsResult.Items);K.add(A,$);C(A,$)})}else{J.emptyList();D(A)}}function E(_){var $=[];for(i in _){if(i=="end")break;$[$.length]={data:_[i],value:_[i].BuildingName,result:I.formatResult&&I.formatResult(_[i],_[i].BuildingName)||datas[i].BuildingName}}return $}function D(){V.removeClass(I.loadingClass)}};$.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function($){return $[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function($,_){return $.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+_.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<b class=ac_keywordStyle>$1</b>")},scroll:true,scrollHeight:180};$.Autocompleter.Cache=function(F){var D={},C=0;function E(A,_){if(!F.matchCase)A=A.toLowerCase();var $=A.indexOf(_);if($==-1)return false;return $==0||F.matchContains}function A(_,$){if(C>F.cacheLength)B();if(!D[_])C++;D[_]=$}function _(){if(!F.data)return false;var H={},I=0;if(!F.url)F.cacheLength=1;H[""]=[];for(var B=0,G=F.data.length;B<G;B++){var E=F.data[B];E=(typeof E=="string")?[E]:E;var C=F.formatMatch(E,B+1,F.data.length);if(C===false)continue;var _=C.charAt(0).toLowerCase();if(!H[_])H[_]=[];var D={value:C,data:E,result:F.formatResult&&F.formatResult(E)||C};H[_].push(D);if(I++<F.max)H[""].push(D)}$.each(H,function($,_){F.cacheLength++;A($,_)})}setTimeout(_,25);function B(){D={};C=0}return{flush:B,add:A,populate:_,load:function(H){if(!F.cacheLength||!C)return null;if(!F.url&&F.matchContains){var G=[];for(var A in D)if(A.length>0){var B=D[A];$.each(B,function($,_){if(E(_.value,H))G.push(_)})}return G}else if(D[H])return D[H];else if(F.matchSubset)for(var _=H.length-1;_>=F.minChars;_--){B=D[H.substr(0,_)];if(B){G=[];$.each(B,function($,_){if(E(_.value,H))G[G.length]=_});return G}}return null}}};$.Autocompleter.Select=function(H,B,I,L){var M={ACTIVE:"ac_over"},E,_=-1,P,O="",F=true,J,A;function C(){if(!F)return;J=$("<div/>").hide().addClass(H.resultsClass).css("position","absolute").appendTo(document.body);A=$("<ul/>").appendTo(J).mouseover(function(B){if(G(B).nodeName&&G(B).nodeName.toUpperCase()=="LI"){_=$("li",A).removeClass(M.ACTIVE).index(G(B));$(G(B)).addClass(M.ACTIVE)}}).click(function(_){$(G(_)).addClass(M.ACTIVE);I();B.focus();return false}).mousedown(function(){L.mouseDownOnSelect=true}).mouseup(function(){L.mouseDownOnSelect=false});if(H.width>0)J.css("width",H.width);F=false}function G(_){var $=_.target;while($&&$.tagName!="LI")$=$.parentNode;if(!$)return[];return $}function K(B){E.slice(_,_+1).removeClass(M.ACTIVE);Q(B);var $=E.slice(_,_+1).addClass(M.ACTIVE);if(H.scroll){var C=0;E.slice(0,_).each(function(){C+=this.offsetHeight});if((C+$[0].offsetHeight-A.scrollTop())>A[0].clientHeight)A.scrollTop(C+$[0].offsetHeight-A.innerHeight());else if(C<A.scrollTop())A.scrollTop(C)}}function Q($){_+=$;if(_<0)_=E.size()-1;else if(_>=E.size())_=0}function D($){return H.max&&H.max<$?H.max:$}function N(){A.empty();var G=D(P.length);for(var B=0;B<G;B++){if(!P[B])continue;var C=H.formatItem(P[B].data,B+1,G,P[B].value,O);if(C===false)continue;var F=$("<li/>").html(H.highlight(C,O)).addClass(B%2==0?"ac_even":"ac_odd").appendTo(A)[0];$.data(F,"ac_data",P[B])}E=A.find("li");_=-1;if(H.selectFirst){E.slice(0,1).addClass(M.ACTIVE);_=0}if($.fn.bgiframe)A.bgiframe()}return{display:function($,_){C();P=$;O=_;N()},next:function(){K(1)},prev:function(){K(-1)},pageUp:function(){if(_!=0&&_-8<0)K(-_);else K(-8)},pageDown:function(){if(_!=E.size()-1&&_+8>E.size())K(E.size()-1-_);else K(8)},hide:function(){J&&J.hide();E&&E.removeClass(M.ACTIVE);_=-1},visible:function(){return J&&J.is(":visible")},current:function(){return this.visible()&&(E.filter("."+M.ACTIVE)[0]||H.selectFirst&&E[0])},show:function(){var D=$(B).offset();J.css({width:typeof H.width=="string"||H.width>0?H.width:$(B).width(),top:D.top+B.offsetHeight,left:D.left}).show();if(H.scroll){A.scrollTop(0);A.css({maxHeight:H.scrollHeight,overflow:"auto"});if($.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var C=0;E.each(function(){C+=this.offsetHeight});var _=C>H.scrollHeight;A.css("height",_?H.scrollHeight:C);if(!_)E.width(A.width()-parseInt(E.css("padding-left"))-parseInt(E.css("padding-right")))}}},selected:function(){var _=E&&E.filter("."+M.ACTIVE).removeClass(M.ACTIVE);return _&&_.length&&$.data(_[0],"ac_data")},emptyList:function(){A&&A.empty()},unbind:function(){J&&J.remove()}}};$.Autocompleter.Selection=function(A,$,_){if(A.createTextRange){var B=A.createTextRange();B.collapse(true);B.moveStart("character",$);B.moveEnd("character",_);B.select()}else if(A.setSelectionRange)A.setSelectionRange($,_);else if(A.selectionStart){A.selectionStart=$;A.selectionEnd=_}A.focus()}})(jQuery);var FtUtils={};FtUtils.login=function(C,_,A,B,D){$.prompt(C?C:"\u5feb\u901f\u767b\u5f55 ",{url:B?B:"/html/login.html",width:_?_:"280",height:A?A:"285",callback:D?D:function(){}})};FtUtils.loadJS=function(E,F,_,B){if(document.getElementsByTagName("head").length<0)return;var D=document.getElementsByTagName("head").item(0);if(!D)return;if(F){var A=$("#"+F)[0];if(A)D.removeChild(A)}var C=document.createElement("SCRIPT");C.src=E;C.defer=true;C.type="text/javascript";if(F)C.id=F;if(_){C.onload=function(){_(B)};C.onreadystatechange=function(){if(C.readyState=="complete"||C.readyState=="loaded")_(B)}}D.appendChild(C)}
