var AjaxLoader_version=1.2;function ajaxquery(){var _=new Array();for(var A=0;A<arguments.length;A++){var $=arguments[A];if(typeof $=="string")$=document.getElementById($);if(arguments.length==1)return $;_.push($)}return _}var AjaxLoader=new Object();AjaxLoader.height=0;AjaxLoader.width=0;AjaxLoader.shouldWaitForFlash=function(){};AjaxLoader.isFlashInstalled=function(){var $;if(typeof(this.isFlashInstalledMemo)!="undefined")return this.isFlashInstalledMemo;if(typeof(ActiveXObject)!="undefined"){try{var _=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(A){}$=(_!=null)}else{var B=navigator.mimeTypes["application/x-shockwave-flash"];$=(B!=null)&&(B.enabledPlugin!=null)}this.isFlashInstalledMemo=$;return $};AjaxLoader.getFlash=function(){return ajaxquery("ndajaxloader")};AjaxLoader.checkFlash=function(){try{return(this.getFlash().ping()=="pong")}catch($){return false}};AjaxLoader.writeFlash=function(){var $="/Public/Js/Common/ajaxloader.swf";if(window.ActiveXObject&&!AjaxLoader.isFlashInstalled())document.write(['<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',' codebase="http://download.macromedia.com','/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"',' height="'+this.height+'" width="'+this.width+'" id="ndajaxloader">',' <param name="movie" value="'+$+'">',' <param name="quality" value="high">',' <param name="swliveconnect" value="true">',"</object>"].join(""));else{document.write('<object id="ndajaxloader" data="'+$+'"');document.write(' type="application/x-shockwave-flash"');document.write(' height="'+this.height+'" width="'+this.width+'">');document.write('<param name="movie" value="'+$+'">');document.write('<param name="quality" value="high">');document.write('<param name="swliveconnect" value="true">');document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');document.write('<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer">');document.write("</object>")}};AjaxLoader.addLoadEvent=function($){var _=window.onload;if(typeof window.onload!="function")window.onload=$;else window.onload=function(){_();$()}};AjaxLoader.load=function(){if(typeof(AjaxLoader.onload)!="function")return;if(AjaxLoader.isFlashInstalled()){var _=this.flashLoaded&&this.documentLoaded;if(!_)return}var A=AjaxLoader.getFlash();if((!AjaxLoader.isFlashInstalled()||this.flashLoaded)&&A){if(AjaxLoader.checkFlash())$(A);else $(null)}else $(null);function $($){if(AjaxLoader.onloadCalled)return;AjaxLoader.onloadCalled=true;AjaxLoader.onload($)}};function storageOnLoad(){AjaxLoader.flashLoaded=true;AjaxLoader.load()}function storageOnError(){AjaxLoader.flashLoaded=true;AjaxLoader.load()}AjaxLoader.init=function(){this.flashLoaded=false;this.documentLoaded=false;this.addLoadEvent($);function $(){if(AjaxLoader.isFlashInstalled());AjaxLoader.documentLoaded=true;AjaxLoader.load()}};var CallbackManager=new Object();CallbackManager.callbacks=new Array();CallbackManager.registerCallback=function(B){var A=this.callbacks.push(_),$=A-1;return"CallbackManager.callbacks["+$+"]";function _(_){delete CallbackManager.callbacks[$];setTimeout(function(){B(_)},0);return}};var FlashXMLHttpRequest=function(){var B=this,C,_,A=null,$=new Array();this.open=function($,E,D,B,A){C=$;_=E};this.send=function(D){var F=AjaxLoader.getFlash();function E(_){var $=AjaxLoader.getFlash().GetVariable(_);B.responseText=$;if(B.onload)B.onload()}F.XmlHttp(_,CallbackManager.registerCallback(E),C,D,A,$)};this.setRequestHeader=function(B,_){if(B.toLowerCase()=="Content-Type".toLowerCase()){A=_;return}$.push(B);$.push(_)};this.getRequestHeader=function(){};this.getResponseHeader=function($){alert("not supported")};this.getAllResponseHeaders=function(){alert("not supported")};this.abort=function(){alert("not supported")};this.addEventListener=function(A,$,_){alert("not supported")};this.dispatchEvent=function($){alert("not supported")};this.openRequest=function(C,A,B,$,_){this.open(C,A,B,$,_)};this.overrideMimeType=function($){alert("not supported")};this.removeEventListener=function(A,$,_){alert("not supported")}};function js_substr(A,$,_){A+="";if($<0)$+=A.length;if(_==undefined)_=A.length;else if(_<0)_+=A.length;else _+=$;if(_<$)_=$;return A.substring($,_)}function js_strpos(_,$,A){var B=(_+"").indexOf($,A);return B===-1?false:B}function js_strtoupper($){return($+"").toUpperCase()}AjaxLoader.onload=startApp;function startApp(_){if(!_){try{showprompt("\u8bf7\u4e0b\u8f7dFlash\u63d2\u4ef6")}catch($){}window.open("http://get.adobe.com/flashplayer/","getflash");return}}function getCrossDomainData(callback){var data=AjaxLoader.getFlash().GetVariable("retText");if(callback){try{eval(callback)}catch(e){}}}function AjaxCrossDomainGet(C,_){var B=AjaxLoader.getFlash(),A="text/xml",$=10;while(!AjaxLoader.checkFlash()&&($--)>0);if($>0){B.XmlHttp(C,"getCrossDomainData('"+_+"')","GET","",A);return true}else return false}function AjaxCrossDomainPost(D,$,A){var C=AjaxLoader.getFlash(),B="application/x-www-form-urlencoded",_=200;while(!AjaxLoader.checkFlash()&&(_--)>0);if(_>0){C.XmlHttp(D,"getCrossDomainData('"+A+"')","POST",$,B);return true}else return false}function AjaxCrossDomainRequest(G,E,B,D){E=js_strtoupper(E);var F="application/x-www-form-urlencoded",_="";if(jQuery)_=jQuery(B).serialize();else for(var H=0;H<B.length;H++)if(B.elements[H].type=="radio"||B.elements[H].type=="checkbox"||B.elements[H].type=="select"){if(B.elements[H].checked&&B.elements[H].name!="")_+=encodeURI(B.elements[H].name)+"="+encodeURI(B.elements[H].value)+"&"}else if(B.elements[H].type=="select-multiple"&&B.elements[H].name!="")for(var A=0;A<B.elements[H].length;A++)if(B.elements[H][A].selected)_+=encodeURI(B.elements[H].name)+"="+encodeURI(B.elements[H][A].value)+"&";else if(B.elements[H].name!="")_+=encodeURI(B.elements[H].name)+"="+encodeURI(B.elements[H].value)+"&";var C=AjaxLoader.getFlash();if(js_substr(_,-1,1)=="&")_=js_substr(_,0,-1);if(E=="GET"){var $="";if(js_substr(G,-1,1)=="?")$=G+_;else if(js_strpos(G,"?")>0&&js_strpos(G,"=")>0)$=G+"&"+_;else $=G+"?"+_;C.XmlHttp($,D,E,"",F)}else C.XmlHttp(G,D,E,_,F)}AjaxLoader.writeFlash();AjaxLoader.init()