indigo.communication={};indigo.communication.GK=function(){function EU(url){EU.AK(this);function No(service,parameters,async,successFunction,errorFunction){No.AK(this);var AP=null;function Ki(){try{AP=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){}if(AP==null){try{AP=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}}if(AP==null&&typeof XMLHttpRequest!="undefined"){AP=new XMLHttpRequest;}}function TS(){switch(AP.readyState){case 0:break;case 1:break;case 2:break;case 3:break;case 4:if(AP.status==200){if(typeof successFunction!="undefined"&&successFunction){successFunction(AP);}}else{if(typeof errorFunction!="undefined"&&errorFunction){errorFunction(AP);}}delete AP;break;default:;}}No.AG(indigo.object);Ki();if(AP!=null){if(async){AP.onreadystatechange=TS;}AP.open("POST",url+"/"+service,async?true:false);AP.setRequestHeader("Content-Type","application/x-www-form-urlencoded");AP.send(parameters?parameters:"");if(!async){TS();}}else{throw"Browser not supported";}}function Zv(AP){var Af=null,Eh=null,I4=null,Dh=0,ES=0,F5=0,Lq=0,Lk=null;try{try{Af=new ActiveXObject("Microsoft.XMLDOM");Af.async=false;Af.loadXML(AP.responseXML.text);Lq=1;}catch(e){if(typeof DOMParser!="undefined"){Lk=new DOMParser;Af=Lk.parseFromString(AP.responseXML.documentElement.textContent,"text/xml");Lq=2;}}if(Lq>0&&Af!=null){var Nl=false,FQ=null,D$=null,EB=null,Gw=null;if(Af.firstChild.nodeType==7){Af.removeChild(Af.firstChild);}FQ=new indigo.data.dataSet;for(Dh=0;Dh<Af.childNodes.length;Dh++){if(Af.childNodes[Dh].nodeType==1){Nl=false;D$=new indigo.data.dataTable;FQ.tables.add(D$);for(ES=0;ES<Af.childNodes[Dh].childNodes.length;ES++){if(Af.childNodes[Dh].childNodes[ES].nodeType==1){EB=new indigo.data.dataRow;D$.rows.add(EB);for(F5=0;F5<Af.childNodes[Dh].childNodes[ES].childNodes.length;F5++){if(Af.childNodes[Dh].childNodes[ES].childNodes[F5].nodeType==1){if(Lq==1){if(!Nl){D$.columns.add(new indigo.data.dataColumn(Af.childNodes[Dh].childNodes[ES].childNodes[F5].baseName));}EB.columns.add(new indigo.data.dataColumn(Af.childNodes[Dh].childNodes[ES].childNodes[F5].baseName,Af.childNodes[Dh].childNodes[ES].childNodes[F5].text));}else if(Lq==2){if(!Nl){D$.columns.add(new indigo.data.dataColumn(Af.childNodes[Dh].childNodes[ES].childNodes[F5].tagName));}EB.columns.add(new indigo.data.dataColumn(Af.childNodes[Dh].childNodes[ES].childNodes[F5].tagName,Af.childNodes[Dh].childNodes[ES].childNodes[F5].textContent));}}}Nl=true;}}}}return FQ;}else{throw"Browser not supported";}}catch(AA){throw AA;}finally{Af=null;Eh=null;I4=null;Lk=null;FQ=null;D$=null;EB=null;Gw=null;}return null;}function Zs(AP){var Af=null,Eh=null,Lk=null,La=null;try{var LR=typeof AP.responseXML.text!="undefined"?AP.responseXML.text:AP.responseXML.documentElement.textContent;switch(LR){case"false":La=false;break;case"true":La=true;break;default:La=LR;}return La;}catch(AA){throw AA;}finally{Af=null;Eh=null;Lk=null;La=null;}return null;}function TV(AP){var Dg=AP.responseText.indexOf(":")>-1?AP.responseText.substr(AP.responseText.indexOf(":")+2):AP.responseText;Dg=Dg.indexOf("\r\n")>-1?Dg.substr(0,Dg.indexOf("\r\n")):Dg;return Dg;}function Z5(service,parameters,async,successFunction,errorFunction,userState){var H2=null;function success(AP){if(typeof successFunction!="undefined"&&successFunction){var RI=null;try{RI=Zs(AP);successFunction(RI,userState);}catch(AA){}finally{RI=null;H2=null;}}}function error(AP){if(typeof errorFunction!="undefined"&&errorFunction){var Dg=null;try{Dg=TV(AP);errorFunction(Dg,userState);}catch(AA){}finally{Dg=null;H2=null;}}}H2=new No(service,parameters,async,success,error);}this.getScalar=Z5;function Z9(service,parameters,async,successFunction,errorFunction,userState){var H2=null;function success(AP){if(typeof successFunction!="undefined"&&successFunction){var Le=null;try{Le=Zv(AP);successFunction(Le,userState);}catch(AA){}finally{if(Le){Le.dispose();}Le=null;H2=null;}}}function error(AP){if(typeof errorFunction!="undefined"&&errorFunction){var Dg=null;try{Dg=TV(AP);errorFunction(Dg,userState);}catch(AA){}finally{Dg=null;H2=null;}}}H2=new No(service,parameters,async,success,error);}this.getDataSet=Z9;}EU.AG(indigo.object);this.webService=EU;};indigo.communication.GK();