function StringList(){this.Content=[]}StringList.prototype.Add=function(a){if(mapCommon.NotEmpty(a)==true)this.Content.push(a);return this};StringList.prototype.Load=function(c){var a=mapCommon.ToArray(c),b=a.length;for(x=0;x<b;x++)this.Add(a[x]);return this};StringList.prototype.ToString=function(){return this.Content.join("")};StringList.prototype.ToCSV=function(){return this.Content.join(", ")};StringList.prototype.Count=function(){return this.Content.length};StringList.prototype.Item=function(a){return this.Content[a]};StringList.prototype.IndexOf=function(c){var a=-1,b=this.Content.length;for(x=0;x<b;x++)if(mapCommon.Compare(c,this.Content[x])==true){a=x;break}return a};StringList.prototype.Clear=function(){this.Content=[]};StringList.prototype.SetList=function(a,b){this.Clear();for(x=0;x<a;x++)this.Add(b)};StringList.prototype.Set=function(a,b){this.Content[a]=b};StringList.prototype.Get=function(a){return this.Content[a]};StringList.prototype.Count=function(){return this.Content.length};function CacheList(){this.Keys=new StringList;this.Items=[]}CacheList.prototype.Add=function(d,c){var a=this,b=a.IndexOf(d+"");if(b===-1){a.Items.push(c);a.Keys.Add(d+"")}else a.Items[b]=c};CacheList.prototype.Clear=function(){this.Items=[];this.Keys=new StringList};CacheList.prototype.Item=function(c){var a=null,b=this.IndexOf(c+"");if(b!=-1)a=this.Items[b];return a};CacheList.prototype.IndexOf=function(a){return this.Keys.IndexOf(a+"")};CacheList.prototype.Count=function(){return this.Items.length};function MapCommon(){}MapCommon.prototype.Dispose=function(){};MapCommon.prototype.Format=function(a){for(i=1;i<arguments.length;i++)a=a.replace("{"+(i-1)+"}",arguments[i]);return a};MapCommon.prototype.Compare=function(a,b){var c="";if(a!=null)c=(new String(a)).trim().toUpperCase();var d="";if(b!=null)d=(new String(b)).trim().toUpperCase();return c==d};MapCommon.prototype.NotEmpty=function(a){return a!=null&&a.length>0};MapCommon.prototype.IsEmpty=function(a){return this.NotEmpty(a)==false};MapCommon.prototype.ToArray=function(a){if(!a)return [];if(!a.length)return new Array(a);return a};MapCommon.prototype.Shorten=function(d,c){var a=d,b="...";if(this.NotEmpty(a)==true&&a.length>c-b.length)a=a.substring(0,c-b.length)+b;return a};MapCommon.prototype.GetSelectedText=function(){var a="";if(window.getSelection)a=window.getSelection();else{var b=document.selection.createRange();b.expand("word");a=b.text}return a};MapCommon.prototype.WriteCookie=function(f,e,b,c){var d="undefined",a=null;if(typeof b==d||b==null||b==""){a=new Date;a.setYear(a.getFullYear()+5)}else a=b;if(typeof c==d||c==null)c="/";if(typeof document!=d){document.cookie=f+"="+e+";expires="+a.toGMTString()+";path="+c+";";return true}return false};MapCommon.prototype.GetCurrentUrl=function(){return document.URL.replace(location.hash,"")};MapCommon.prototype.GetCleanUrl=function(a){return a.replace(location.hash,"")};