function $(a){return document.getElementById(a)}var MOHA={};MOHA.util={};MOHA.util.Dom={};MOHA.util.Dom={setStyle:function(a,b,c){$(a).style[b]=c},set:function(a,b,c){$(a)[b]=c}};MOHA.GeoInfo={};MOHA.GeoInfo.Location_Country={};
MOHA.GeoInfo.Location_Country={iUrl:"https://mymg.info/mohanjith.net/geoinfo/api/",sUrl:"https://mohanjith.net/geoinfo/api2/",handleSuccess:function(a){obj=a.responseText;if(obj!=null&&obj._items){image='<img src="'+this.iUrl+"images/flags/"+obj._items.Country._items.CountryCode.toLowerCase()+'.gif" alt="'+obj._items.Country._items.CountryName+'" />';city=obj._items.CityName!=""?obj._items.CityName+", ":"";MOHA.util.Dom.set(a.argument.id,"innerHTML",image+" "+city+obj._items.Country._items.CountryName);
MOHA.util.Dom.set(a.argument.id,"title","IP address "+a.ip)}else{image='<img src="'+this.iUrl+'images/16-message-warn.png" alt="Warning" />';MOHA.util.Dom.set(a.argument.id,"innerHTML",image+" We have no clue :(");a.ip?MOHA.util.Dom.set(a.argument.id,"title","IP address "+a.ip):MOHA.util.Dom.set(a.argument.id,"title","-N.A-")}},request:function(a,b,c,d){$(a).innerHTML="Please wait...";if(b==null)b="ip";if(c==null)c="";if(d==null)d="RSIFrame";url=this.sUrl+"?callback="+escape("MOHA.GeoInfo.Location_Country.handleSuccess")+
"&"+escape(b)+"="+escape(c)+"&argument="+escape('{id:"'+a+'"}');if($(d))$(d).src=url;else{tempIFrame=document.createElement("script");tempIFrame.setAttribute("id","RSIFrame");tempIFrame.setAttribute("src",url);document.body.appendChild(tempIFrame)}}};
if(window.location.protocol=="https:"){MOHA.GeoInfo.Location_Country.iUrl=window.location.protocol+"//mymg.info/mohanjith.net/geoinfo/api/";MOHA.GeoInfo.Location_Country.sUrl=window.location.protocol+"//mohanjith.net/geoinfo/api2/"}else{MOHA.GeoInfo.Location_Country.iUrl=window.location.protocol+"//mymg.info/mohanjith.net/geoinfo/api/";MOHA.GeoInfo.Location_Country.sUrl=window.location.protocol+"//geoinfo.mohanjith.net/api2/"};
