var fusionLib=new function(){var K=this;this.libPath="";var H=document.getElementsByTagName("script").item(0);while(H&&!this.libPath.length){if(H.src&&H.src.indexOf("js/fusionLib.js")!=-1){this.libPath=H.src.replace(/fusionLib.js$/,"")}H=H.nextSibling}document.write('<link type="text/css" href="'+this.libPath+'overlay.css" rel="stylesheet" media="all" />');var D=[];this._findHandler=function(N,M,L){for(i in D){if(D[i].target==N&&D[i].eventName==M&&D[i].fnHandler==L){return i}}return -1};this.observe=function(P,M,L){if(typeof P=="string"){P=document.getElementById(P)}if(K._findHandler(P,M,L)!=-1){return }var N=function(Q){Q=Q?Q:(window.event?window.event:null);if(Q){if(!Q.target){Q.target=Q.srcElement}if(!L(Q)){if(Q.stopPropagation){Q.stopPropagation();Q.preventDefault()}else{if(Q.cancelBubble){Q.cancelBubble=true;Q.returnValue=false}}return false}}};D.push({target:P,eventName:M,fnHandler:L,fn:N});if(P.addEventListener){P.addEventListener(M,N,false)}else{P.attachEvent("on"+M,N);if(!window._fusionLibEventUnload){window._fusionLibEventUnload=true;K._removeAllEvents=function(){for(i in D){D[i].target.detachEvent("on"+D[i].eventName,D[i].fn)}};var O=window.onunload;if(typeof window.onunload!="function"){window.onunload=K._removeAllEvents}else{window.onunload=function(){K._removeAllEvents();O()}}}}};this.stopObserving=function(O,N,M){if(typeof O=="string"){O=document.getElementById(O)}var L=K._findHandler(O,N,M);if(L==-1){return }if(O.removeEventListener){O.removeEventListener(N,D[L].fn,false)}else{O.detachEvent("on"+N,D[L].fn)}delete D[L]};var I,G;var J=false;var B;var C;var E;var F;var A=false;this._initOverlay=function(){if(J){return }J=true;B=document.createElement("div");B.id="fusionLibOverlay";B.style.filter="alpha(opacity=80)";document.getElementsByTagName("body")[0].appendChild(B);C=document.createElement("div");C.id="fusionLibOvBox";document.getElementsByTagName("body")[0].appendChild(C);E=document.createElement("div");E.id="fusionLibOvBdy";C.appendChild(E);F=document.createElement("div");F.id="fusionLibOvCap";C.appendChild(F)};this._doOverlay=function(M){if(!window.XMLHttpRequest){height=M?"100%":"auto";overflow=M?"hidden":"auto";if(M){I=document.documentElement.scrollLeft;G=document.documentElement.scrollTop;window.scrollTo(0,0)}bodyObj=document.getElementsByTagName("body")[0];bodyObj.style.height=height;bodyObj.style.overflow=overflow;htmlObj=document.getElementsByTagName("html")[0];htmlObj.style.height=height;htmlObj.style.overflow=overflow;if(!M){window.scrollTo(I,G)}}var L=M?"hidden":"visible";selects=document.getElementsByTagName("select");for(i=0;i<selects.length;i++){selects[i].style.visibility=L}};this.overlayActivate=function(O,L,N,M){A=O;K._initOverlay();K._doOverlay(true);if(E.firstChild){E.removeChild(E.firstChild)}if(F.firstChild){F.removeChild(F.firstChild)}C.style.backgroundImage="url("+K.libPath+"loading.gif)";F.style.display="none";F.style.backgroundImage="none";if(O){K.observe(B,"click",K.overlayDeactivate);K.observe(F,"click",K.overlayDeactivate);F.style.display="block";F.style.backgroundImage="url("+K.libPath+"close.gif)"}if(M){A=true;F.style.display="block";F.innerHTML=M}this.overlaySize(L||250,N||150);B.style.display="block";C.style.display="block"};this.overlayDeactivate=function(){K._initOverlay();K._doOverlay(false);B.style.display="none";C.style.display="none";K.stopObserving(B,"click",K.overlayDeactivate);K.stopObserving(C,"click",K.overlayDeactivate)};this.overlaySize=function(L,M){E.style.height=M.toString()+"px";if(A){M+=26}C.style.width=L.toString()+"px";C.style.marginLeft=(-Math.floor(L*0.5)).toString()+"px";C.style.height=M.toString()+"px";C.style.marginTop=(-Math.floor(M*0.5)).toString()+"px"};this.overlayContent=function(L){E.innerHTML=L};this.overlayObject=function(){return E};this.overlayRemoveLoading=function(){C.style.backgroundImage="none"}};function flAjaxEngine(D,C){var G;this._getTransport=function(){var J=null;if(window.XMLHttpRequest){J=new XMLHttpRequest()}else{if(window.ActiveXObject){var H=["Msxml2.XMLHTTP","Microsoft.XMLHTTP"];for(var I=0;I<H.length&&J==null;I++){try{J=new ActiveXObject(H[I])}catch(K){J=null}}}}return J};var F=C.method||"POST";F=F.toUpperCase();this.onSuccess=C.onSuccess||null;this.onFailure=C.onFailure||function(){alert("An error has occurred during an AJAX transaction.\n\nCode: "+this.req.status+"\nDescription: "+this.req.statusText)};this.onDone=C.onDone||null;this.update=C.update||null;this.onTimeout=C.onTimeout||null;var B=this;this.req=this._getTransport();if(!this.req){return false}this.req.onreadystatechange=function(){if(B.req.readyState==4){if(G){clearTimeout(G)}if(B.onDone){B.onDone()}if(B.req.status>=200&&B.req.status<=299){var H=B.req.responseText.parseJSON();if(B.update){document.getElementById(B.update).innerHTML=H}else{if(B.onSuccess){B.onSuccess(H)}}}else{B.onFailure()}}};this.req.open(F,D,true);this.req.setRequestHeader("X-Requested-With","XMLHttpRequest");var E="";if(F=="POST"){this.req.setRequestHeader("Content-type","application/x-www-form-urlencoded");if(this.req.overrideMimeType){this.req.setRequestHeader("Connection","close")}if(typeof C.postData=="object"){var A;for(key in C.postData){A=C.postData[key];switch(typeof A){case"object":if(A){if(typeof A.toJSONString==="function"){E=E+"&"+key+"="+escape(A.toJSONString())}else{E=E+"&"+key+"="+escape(objectToJSONString(A))}}break;case"string":case"number":case"boolean":E=E+"&"+key+"="+escape(A.toString());break}}E=E.slice(1)}else{E=C.postData}}if(C.timeout){G=setTimeout(function(){B.abort();if(B.onTimeout){B.onTimeout()}},C.timeout)}if(C.onStart){C.onStart()}this.req.send(E);this.abort=function(){if(B.req){if(G){clearTimeout(G)}B.req.onreadystatechange=function(){};B.req.abort();B.req=null}};return true}if(!Object.prototype.toJSONString){Array.prototype.toJSONString=function(){var B=[],C,A=this.length;for(var D=0;D<A;D++){C=this[D];switch(typeof C){case"object":if(C){if(typeof C.toJSONString==="function"){B.push(C.toJSONString())}}else{B.push("null")}break;case"string":case"number":case"boolean":B.push(C.toJSONString());break}}return"["+B.join(",")+"]"};Boolean.prototype.toJSONString=function(){return String(this)};Number.prototype.toJSONString=function(){return isFinite(this)?String(this):"null"};function objectToJSONString(D){var A=[],C;for(var B in D){if(D.hasOwnProperty(B)){C=D[B];switch(typeof C){case"object":if(C){if(typeof C.toJSONString==="function"){A.push(B.toJSONString()+":"+C.toJSONString())}else{A.push(B.toJSONString()+":"+objectToJSONString(C))}}else{A.push(B.toJSONString()+":null")}break;case"string":case"number":case"boolean":A.push(B.toJSONString()+":"+C.toJSONString());break}}}return"{"+A.join(",")+"}"}Date.prototype.toJSONString=function(){function A(B){return B<10?"0"+B:B}return'"'+this.getFullYear()+"-"+A(this.getMonth()+1)+"-"+A(this.getDate())+"T"+A(this.getHours())+":"+A(this.getMinutes())+":"+A(this.getSeconds())+'"'};(function(s){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};s.parseJSON=function(){if(/^\s*|[,:{}\[\]0-9\.\-+Ee \n\r\t]+$/.test(this.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return eval("("+this+")")}throw new SyntaxError("parseJSON")};s.toJSONString=function(){if(/["\\\x00-\x1f]/.test(this)){return'"'+this.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];return c?c:b})+'"'}return'"'+this+'"'}})(String.prototype)};
