Function.prototype.method=function(c,d){if(!this.prototype[c]){this.prototype[c]=d;return this}};function RegisterNamespace(namespacePath){var rootObject=window;var namespaceParts=namespacePath.split(".");for(var i=0;i<namespaceParts.length;i++){var currentPart=namespaceParts[i];var ns=rootObject[currentPart];if(!ns){ns=rootObject[currentPart]={};ns.__namespace=true;ns.__typeName=namespaceParts.slice(0,i+1).join(".");var parsedName;try{parsedName=eval(ns.__typeName)}catch(e){parsedName=null}if(parsedName!==ns){delete rootObject[currentPart]}}rootObject=ns}}RegisterNamespace("FreshLogicStudios.Scripts");RegisterNamespace("System");FreshLogicStudios.Scripts=System;System.Command=function(f){var c=f;var d=true;var e=this;this.Events=new System.EventCollection();this.Disable=function(){e.SetEnabled(false)};this.Enable=function(){e.SetEnabled(true)};this.Execute=function(){if(d){c()}};this.IsEnabled=function(){return d};this.SetEnabled=function(g){if(d!=g){d=g;e.Events.Fire("EnabledChanged",e)}}};System.Console=function(){};System.Console.In=null;System.Console.Out=null;System.Console.Clear=function(){if(System.Console.Out){System.Console.Out.innerHTML=""}};System.Console.ReadLine=function(){if(System.Console.In){try{System.Console.WriteLine(eval(System.Console.In.value))}catch(ex){System.Console.WriteLine(System.String.Format('<span style="color:Red;">{0}: {1}</span>',ex.name,ex.message))}}};System.Console.SetIn=function(c){System.Console.In=c};System.Console.SetOut=function(c){System.Console.Out=c};System.Console.Write=function(c){if(System.Console.Out&&c&&(c!=undefined)){System.Console.Out.innerHTML=System.String.Format("<span>{0}</span>{1}",c.toString(),System.Console.Out.innerHTML)}};System.Console.WriteLine=function(c){if(System.Console.Out&&c&&(c!=undefined)){System.Console.Out.innerHTML=System.String.Format("<span>{0}</span><br />{1}",c.toString(),System.Console.Out.innerHTML)}};System.Convert=function(){};System.Convert.FromBase64String=function(m){var f="";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var o,g,k;var e,l,d,h;var c=0;m=m.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<m.length){e=n.indexOf(m.charAt(c++));l=n.indexOf(m.charAt(c++));d=n.indexOf(m.charAt(c++));h=n.indexOf(m.charAt(c++));o=(e<<2)|(l>>4);g=((l&15)<<4)|(d>>2);k=((d&3)<<6)|h;f=f+String.fromCharCode(o);if(d!=64){f=f+String.fromCharCode(g)}if(h!=64){f=f+String.fromCharCode(k)}}return System.Text.UTF8Encoding.Decode(f)};System.Convert.ToBase64String=function(g){var f="";var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var o,h,l,e,m,d,k;var c=0;g=System.Text.UTF8Encoding.Encode(g);while(c<g.length){o=g.charCodeAt(c++);h=g.charCodeAt(c++);l=g.charCodeAt(c++);e=o>>2;m=((o&3)<<4)|(h>>4);d=((h&15)<<2)|(l>>6);k=l&63;if(isNaN(h)){d=k=64}else{if(isNaN(l)){k=64}}f=f+n.charAt(e)+n.charAt(m)+n.charAt(d)+n.charAt(k)}return f};System.DateTime=function(r,e,k,s,c,l,g){var d=this;var o=new Date(r,e-1,k,s||0,c||0,l||0,g||0);function q(t){return new System.DateTime(t.getFullYear(),t.getMonth()+1,t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function f(t){var u=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");return u[t]}function h(){return(o.getHours()<=10)?"AM":"PM"}function p(){if(o.getHours()%12==0){return 12}return o.getHours()%12}function n(t){var u=new Array("January","February","March","April","May","June","July","August","September","October","November","December");return u[t-1]}function m(t,u,v){v=v||" ";while(t.length<u){t=v+t}return t.substr(t.length-u)}this.AddDays=function(t){var u=new Date(o);u.setDate(u.getDate()+t);return q(u)};this.AddHours=function(t){var u=new Date(o);u.setHours(u.getHours()+t);return q(u)};this.AddMilliseconds=function(t){var u=new Date(o);u.setMilliseconds(u.getMilliseconds()+t);return q(u)};this.AddMinutes=function(t){var u=new Date(o);u.setMinutes(u.getMinutes()+t);return q(u)};this.AddMonths=function(t){var u=new Date(o);u.setMonth(u.getMonth()+t);return q(u)};this.AddSeconds=function(t){var u=new Date(o);u.setSeconds(u.getSeconds()+t);return q(u)};this.AddYears=function(t){var u=new Date(o);u.setYear(u.getYear()+t);return q(u)};this.GetDate=function(){return new System.DateTime(d.GetYear(),d.GetMonth(),d.GetDay())};this.GetDay=function(){return o.getDate()};this.GetDayOfWeek=function(){return o.getDay()};this.GetHour=function(){return o.getHours()};this.GetMillisecond=function(){return o.getMilliseconds()};this.GetMinute=function(){return o.getMinutes()};this.GetMonth=function(){return o.getMonth()+1};this.GetSecond=function(){return o.getSeconds()};this.GetYear=function(){return o.getFullYear()};this.ToLongDateString=function(){return d.ToString("D")};this.ToLongTimeString=function(){return d.ToString("T")};this.ToShortDateString=function(){return d.ToString("d")};this.ToShortTimeString=function(){return d.ToString("t")};this.toString=function(){return d.ToString("G")};this.ToString=function(t){t=t||"G";switch(t){case"d":return System.String.Format("{0}/{1}/{2}",d.GetMonth(),d.GetDay(),m(d.GetYear().toString(),4,"0"));break;case"D":return System.String.Format("{0}, {1} {2}, {3}",f(d.GetDayOfWeek()),n(d.GetMonth()),m(d.GetDay().toString(),2,"0"),m(d.GetYear().toString(),4,"0"));break;case"t":return System.String.Format("{0}:{1} {2}",p(),m(d.GetMinute().toString(),2,"0"),h());break;case"T":return System.String.Format("{0}:{1}:{2} {3}",p(),m(d.GetMinute().toString(),2,"0"),m(d.GetSecond().toString(),2,"0"),h());break;case"f":return System.String.Format("{0}, {1} {2}, {3} {4}:{5} {6}",f(d.GetDayOfWeek()),n(d.GetMonth()),m(d.GetDay().toString(),2,"0"),m(d.GetYear().toString(),4,"0"),p(),m(d.GetMinute().toString(),2,"0"),h());break;case"F":return System.String.Format("{0}, {1} {2}, {3} {4}:{5}:{6} {7}",f(d.GetDayOfWeek()),n(d.GetMonth()),m(d.GetDay().toString(),2,"0"),m(d.GetYear().toString(),4,"0"),p(),m(d.GetMinute().toString(),2,"0"),m(d.GetSecond().toString(),2,"0"),h());break;case"g":return System.String.Format("{0}/{1}/{2} {3}:{4} {5}",d.GetMonth(),d.GetDay(),m(d.GetYear().toString(),4,"0"),p(),m(d.GetMinute().toString(),2,"0"),h());break;case"G":return System.String.Format("{0}/{1}/{2} {3}:{4}:{5} {6}",d.GetMonth(),d.GetDay(),m(d.GetYear().toString(),4,"0"),p(),m(d.GetMinute().toString(),2,"0"),m(d.GetSecond().toString(),2,"0"),h());break;case"M":return System.String.Format("{0} {1}",n(d.GetMonth()),m(d.GetDay().toString(),2,"0"));break;case"s":return System.String.Format("{0}-{1}-{2}T{3}:{4}:{5}",m(d.GetYear().toString(),4,"0"),m(d.GetMonth().toString(),2,"0"),m(d.GetDay().toString(),2,"0"),m(d.GetHour().toString(),2,"0"),m(d.GetMinute().toString(),2,"0"),m(d.GetSecond().toString(),2,"0"));break;case"Y":return System.String.Format("{0}, {1}",n(d.GetMonth()),m(d.GetYear().toString(),4,"0"));break;default:return d.ToString("G");break}}};System.DateTime.DaysInMonth=function(e,d){var c=new Array(31,28,31,30,31,30,31,31,30,31,30,31);if(System.DateTime.IsLeapYear(e)&&d==2){return 29}return c[d-1]};System.DateTime.IsLeapYear=function(c){if((c%4)!=0){return false}if((c%100)==0){return((c%400)==0)}return true};System.DateTime.MaxValue=new System.DateTime(9999,12,31,23,59,59,999);System.DateTime.MinValue=new System.DateTime(1970,1,1,0,0,0,0);System.DateTime.Now=function(){var c=new Date();return new System.DateTime(c.getFullYear(),c.getMonth()+1,c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds())};System.DateTime.Today=function(){var c=new Date();return new System.DateTime(c.getFullYear(),c.getMonth()+1,c.getDate())};System.EventCollection=function(){this.Events=[]};System.EventCollection.prototype.Add=function(c){this.Events[this.Events.length]=c};System.EventCollection.prototype.Clear=function(){for(var c=this.Events.length-1;c>=0;c--){delete this.Events[c]}};System.EventCollection.prototype.Remove=function(d){for(var c=this.Events.length-1;c>=0;c--){if(this.Events[c].Equals(d)){delete this.Events[c]}}};System.EventCollection.prototype.Fire=function(e,c){for(var d=0;d<this.Events.length;d++){if(this.Events[d].Name==e){this.Events[d].Fire(c)}}};var Events=new System.EventCollection();System.Event=function(c,d){this.Name=c;this.Handler=d};System.Event.prototype.Equals=function(c){return(this.Name==c.Name&&this.Handler==c.Handler)};System.Event.prototype.Fire=function(c){this.Handler(c)};function AddEvent(e,d,f){if(e.addEventListener){e.addEventListener(d,f,true);return true}else{if(e.attachEvent){var c=e.attachEvent("on"+d,f);return c}else{return false}}}System.Guid=function(e){var d=this;var c=e||"00000000-0000-0000-0000-000000000000";this.CompareTo=function(f){if(c<f.ToString()){return -1}else{if(c>f.ToString()){return 1}}return 0};this.Equals=function(f){return(c==f.ToString())};this.toString=function(){return c};this.ToString=function(){return c}};System.Guid.Empty=new System.Guid("00000000-0000-0000-0000-000000000000");System.Guid.NewGuid=function(){var e="";var c="0123456789abcdef";var f=[8,4,4,4,12];for(var d=0;d<f.length;++d){for(var g=0;g<f[d];++g){var h=Math.round(Math.random()*16);e+=c.charAt(h)}if(d!=f.length-1){e+="-"}}return new System.Guid(e)};Function.prototype.method=function(c,d){if(!this.prototype[c]){this.prototype[c]=d;return this}};function RegisterNamespace(namespacePath){var rootObject=window;var namespaceParts=namespacePath.split(".");for(var i=0;i<namespaceParts.length;i++){var currentPart=namespaceParts[i];var ns=rootObject[currentPart];if(!ns){ns=rootObject[currentPart]={};ns.__namespace=true;ns.__typeName=namespaceParts.slice(0,i+1).join(".");var parsedName;try{parsedName=eval(ns.__typeName)}catch(e){parsedName=null}if(parsedName!==ns){delete rootObject[currentPart]}}rootObject=ns}}RegisterNamespace("FreshLogicStudios.Scripts");RegisterNamespace("System");FreshLogicStudios.Scripts=System;System.String=function(){};System.String.Empty="";System.String.Format=function(){var c=System.String.Format.arguments;var d=c[0];for(var f=1;f<c.length;f++){var e=new RegExp("\\{"+(f-1)+"\\}","g");d=d.replace(e,c[f].toString())}return d};System.String.IsNullOrEmpty=function(c){return(c==null||c=="")};System.String.Join=function(d,c){var e="";d=d||"";for(var f=0;f<c.length;f++){e+=c[f];if(f!=c.length-1){e+=d}}return e};String.method("Trim",function(){return this.replace(/^\s+|\s+$/g,"")});String.method("TrimEnd",function(){return this.replace(/\s+$/,"")});String.method("TrimStart",function(){return this.replace(/^\s+/,"")});System.TimeSpan=function(e,t,l,o,r){e=e?parseInt(e):0;t=t?parseInt(t):0;l=l?parseInt(l):0;o=o?parseInt(o):0;r=r?parseInt(r):0;var v=this;var m=10000;var s=1/m;var k=m*1000;var f=1/k;var q=k*60;var g=1/q;var n=q*60;var h=1/n;var p=n*24;var x=1/p;var y=1000;var u=y*60;var d=u*60;var c=d*24;var w=((e*3600*24+t*3600+l*60+o)*1000+r)*m;this.Add=function(z){return new System.TimeSpan(0,0,0,0,(w+z.GetTicks())/m)};this.Duration=function(){return new System.TimeSpan(0,0,0,0,Math.abs(w)/m)};this.Equals=function(z){return w==z.GetTicks()};this.GetDays=function(){return parseInt(w/p)};this.GetHours=function(){return parseInt((w/n)%24)};this.GetMilliseconds=function(){return parseInt((w/m)%1000)};this.GetMinutes=function(){return parseInt((w/q)%60)};this.GetSeconds=function(){return parseInt((w/k)%60)};this.GetTicks=function(){return w};this.GetTotalDays=function(){return w*x};this.GetTotalHours=function(){return w*h};this.GetTotalMilliseconds=function(){return w*s};this.GetTotalMinutes=function(){return w*g};this.GetTotalSeconds=function(){return w*f};this.Negate=function(){return new System.TimeSpan(0,0,0,0,-1*(w/m))};this.Subtract=function(z){return new System.TimeSpan(0,0,0,0,(w-z.GetTicks())/m)};this.toString=function(){return v.ToString()};this.ToString=function(){var A=new System.Text.StringBuilder();var C=this.GetDays();var B=w%p;if(w<0){A.Append("-");C=-C;B=-B}if(C!=0){A.Append(C);A.Append(".")}A.Append(this.GetHours());A.Append(":");A.Append(this.GetMinutes());A.Append(":");A.Append(this.GetSeconds());var z=this.GetMilliseconds();if(z!=0){A.Append(".");A.Append(z)}return A.ToString()}};System.TimeSpan.Compare=function(c,d){if(c.GetTicks()>d.GetTicks()){return 1}if(c.GetTicks()<d.GetTicks()){return -1}return 0};System.TimeSpan.FromTicks=function(c){return new TimeSpan(0,0,0,0,c/10000)};System.Uri=function(g){var f=this;var e=g;var d=/(\w+):\/\/([\w:.]+)\/(\S*)/;function c(h){switch(h){case"file":return"";case"ftp":return 21;case"gopher":return 70;case"http":return 80;case"https":return 443;case"mailto":return 25;case"news":return 119;case"nntp":return 119;default:return""}}this.GetAbsolutePath=function(){var h="/"+e.match(d)[3];h=h.indexOf("?")!=-1?h.substring(0,h.indexOf("?")):h;return h};this.GetAbsoluteUri=function(){return e};this.GetAuthority=function(){var h=f.GetHost();if(!f.IsDefaultPort()){h+=":"+f.GetPort()}return h};this.GetFragment=function(){return e.substring(e.indexOf("#"))};this.GetHost=function(){return e.match(d)[2].split(":")[0]};this.GetPathAndQuery=function(){return f.GetAbsolutePath()+f.GetQuery()};this.GetPort=function(){if(e.match(d)[2].split(":")[1]){return parseInt(e.match(d)[2].split(":")[1])}else{return c(f.GetScheme())}};this.GetQuery=function(){return e.substring(e.indexOf("?"))};this.GetQueryParameters=function(){var m={};var n=e;var o=n.indexOf("?");if(o==-1){return m}n=n.substring(o+1);var h=n.split("&");for(var l=0;l<h.length;l++){var k=h[l].split("=");m[k[0]]=decodeURIComponent(k[1])}return m};this.GetScheme=function(){return e.match(d)[1].toLowerCase()};this.IsDefaultPort=function(){return(f.GetPort()==c(f.GetScheme()))};this.IsFile=function(){return(f.GetScheme()=="file")};this.IsLoopback=function(){var h=f.GetHost();if(h=="127.0.0.1"||h=="loopback"||h=="localhost"){return true}return false}};RegisterNamespace("System.Windows");System.Windows.Clipboard=function(){};System.Windows.Clipboard.Clear=function(){if(window.clipboardData){window.clipboardData.clearData()}};System.Windows.Clipboard.GetText=function(){if(window.clipboardData){try{return window.clipboardData.getData("Text")}catch(c){}}return""};System.Windows.Clipboard.SetText=function(c){if(window.clipboardData){window.clipboardData.setData("Text",c)}};RegisterNamespace("System.Text");System.Text.StringBuilder=function(c){var e=this;var d=c?new Array(c):new Array();this.Append=function(f){d.push(f.toString())};this.AppendFormat=function(){this.Append(System.String.Format.apply(this,arguments))};this.GetLength=function(){return d.join("").length};this.toString=function(){return e.ToString()};this.ToString=function(){return d.join("").toString()}};RegisterNamespace("System.Text");System.Text.UTF8Encoding=function(){};System.Text.UTF8Encoding.Decode=function(d){var g="";var f=0;var e=c1=c2=0;while(f<d.length){e=d.charCodeAt(f);if(e<128){g+=String.fromCharCode(e);f++}else{if((e>191)&&(e<224)){c2=d.charCodeAt(f+1);g+=String.fromCharCode(((e&31)<<6)|(c2&63));f+=2}else{c2=d.charCodeAt(f+1);c3=d.charCodeAt(f+2);g+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));f+=3}}}return g};System.Text.UTF8Encoding.Encode=function(d){d=d.replace(/\r\n/g,"\n");var g="";for(var f=0;f<d.length;f++){var e=d.charCodeAt(f);if(e<128){g+=String.fromCharCode(e)}else{if((e>127)&&(e<2048)){g+=String.fromCharCode((e>>6)|192);g+=String.fromCharCode((e&63)|128)}else{g+=String.fromCharCode((e>>12)|224);g+=String.fromCharCode(((e>>6)&63)|128);g+=String.fromCharCode((e&63)|128)}}}return g};RegisterNamespace("System.ServiceModel.Syndication");System.ServiceModel.Syndication.SyndicationContent=function(){};System.ServiceModel.Syndication.SyndicationContent.CreateHtmlContent=function(c){return new System.ServiceModel.Syndication.TextSyndicationContent(c,System.ServiceModel.Syndication.TextSyndicationContent.Html)};System.ServiceModel.Syndication.SyndicationContent.CreatePlaintextContent=function(c){return new System.ServiceModel.Syndication.TextSyndicationContent(c)};System.ServiceModel.Syndication.SyndicationContent.CreateXhtmlContent=function(c){return new System.ServiceModel.Syndication.TextSyndicationContent(c,System.ServiceModel.Syndication.TextSyndicationContent.XHtml)};RegisterNamespace("System.ServiceModel.Syndication");System.ServiceModel.Syndication.SyndicationElementExtension=function(d){var e=d;var c=this;this.GetElement=function(){return e};this.GetOuterName=function(){var f=e.nodeName;if(f.indexOf(":")!=-1){f=f.split(":")[1]}return f};this.GetOuterNamespace=function(){return e.namespaceURI}};RegisterNamespace("System.ServiceModel.Syndication");System.ServiceModel.Syndication.TextSyndicationContent=function(f,d){var e=this;var g=f||"";var c=d||"text";this.GetText=function(){return g};this.GetType=function(){return c}};RegisterNamespace("System.ServiceModel.Syndication");System.ServiceModel.Syndication.TextSyndicationContentKind=function(){};System.ServiceModel.Syndication.TextSyndicationContentKind.Plaintext="text";System.ServiceModel.Syndication.TextSyndicationContentKind.Html="html";System.ServiceModel.Syndication.TextSyndicationContentKind.XHtml="xml";RegisterNamespace("System.Media");System.Media.SoundPlayer=function(c){var g=null;var f=this;this.SoundLocation=c;function e(){var k=document.createElement("bgsound");k.autostart=true;k.src=f.SoundLocation;return k}function h(){var k=document.createElement("embed");k.autostart=true;k.hidden=true;k.src=f.SoundLocation;k.style.height=0;return k}function d(){var k=document.createElement("object");k.autostart=true;k.data=f.SoundLocation;k.style.height=0;k.style.width=0;return k}this.Play=function(){f.Stop();if(navigator.userAgent.indexOf("MSIE")>0){g=e()}else{if(navigator.userAgent.indexOf("Gecko")>0&&navigator.userAgent.indexOf("Win")>0){var l=false;if(navigator.plugins){for(var k=0;k<navigator.plugins.length;k++){if(navigator.plugins[k].name.indexOf("QuickTime")>=0){l=true;break}}}if(l){g=d()}}else{g=d()}}if(g){document.body.appendChild(g)}};this.Stop=function(){if(g){if(g.Stop){g.Stop()}g.parentNode.removeChild(g)}g=null}};RegisterNamespace("System.Html");System.Html.HtmlElement=function(){};System.Html.HtmlElement.Show=function(c){c.style.display="block"};System.Html.HtmlElement.Hide=function(c){c.style.display="none"};System.Html.HtmlElement.Toggle=function(c){if(c.style.display!="none"){System.Html.HtmlElement.Hide(c)}else{System.Html.HtmlElement.Show(c)}};System.Html.HtmlElement.HideChildren=function(d){for(var c=0;c<d.childNodes.length;c++){if(d==d.childNodes[c].parentNode&&d.childNodes[c].tagName){System.Html.HtmlElement.Hide(d.childNodes[c])}}};System.Html.HtmlElement.ShowSingleChild=function(c){System.Html.HtmlElement.HideChildren(c.parentNode);System.Html.HtmlElement.Show(c)};System.Html.HtmlElement.SetBackgroundImage=function(d,c){if(c.indexOf(".png")!=-1&&document.body.style.filter!=undefined){d.style.backgroundImage="none";d.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+c+'", sizingMethod="scale")'}else{d.style.backgroundImage='url("'+c+'")'}};RegisterNamespace("System.Drawing.Image");System.Drawing.Image=function(){};System.Drawing.Image.FixBackgroundImages=function(){if(document.body.style.filter!=undefined&&navigator.appName=="Microsoft Internet Explorer"&&parseFloat(navigator.appVersion)<=6){for(i=0;i<document.styleSheets.length;i++){try{for(j=0;j<document.styleSheets[i].rules.length;j++){if(document.styleSheets[i].rules.item(j).style.backgroundImage.indexOf(".png")!=-1){var c=document.styleSheets[i].rules.item(j).style.backgroundImage;c=c.substring(c.indexOf("(")+1,c.lastIndexOf(")"));document.styleSheets[i].rules.item(j).style.backgroundImage="none";document.styleSheets[i].rules.item(j).style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+c+'", sizingMethod="scale")'}}}catch(d){}}}};RegisterNamespace("System.Drawing");System.Drawing.Point=function(c,d){var e=this;this.X=c||0;this.Y=d||0;this.Clone=function(){return new System.Drawing.Point(e.X,e.Y)};this.Equals=function(f){return((f.X==e.X)&&(f.Y==e.Y))};this.IsEmpty=function(){return(e.X==0&&e.Y==0)};this.Offset=function(g,f){e.X+=g;e.Y+=f};this.toString=function(){return e.ToString()};this.ToString=function(){return System.String.Format("{X={0},Y={1}}",e.X,e.Y)}};System.Drawing.Point.Empty=new System.Drawing.Point(0,0);System.Drawing.Point.Add=function(c,d){return new System.Drawing.Point(c.X+d.Width,c.Y+d.Height)};System.Drawing.Point.Subtract=function(c,d){return new System.Drawing.Point(c.X-d.Width,c.Y-d.Height)};RegisterNamespace("System.Drawing");System.Drawing.Rectangle=function(d,c){var e=this;this.Location=d||new System.Drawing.Point(0,0);this.Size=c||new System.Drawing.Size(0,0);this.Clone=function(){return new System.Drawing.Rectangle(e.Location.Clone(),e.Size.Clone())};this.Contains=function(f){if(((e.GetX()<=f.X)&&(f.X<(e.GetX()+e.GetWidth())))&&(e.GetY()<=f.Y)){return(f.Y<(e.GetY()+e.GetHeight()))}return false};this.Equals=function(f){return((((f.GetX()==e.GetX())&&(f.GetY()==e.GetY()))&&(f.GetWidth()==e.GetWidth()))&&(f.GetHeight()==e.GetHeight()))};this.GetBottom=function(){return e.Location.Y+e.Size.Height};this.GetHeight=function(){return e.Size.Height};this.GetLeft=function(){return e.Location.X};this.GetRight=function(){return e.Location.X+e.Size.Width};this.GetTop=function(){return e.Location.Y};this.GetWidth=function(){return e.Size.Width};this.GetX=function(){return e.Location.X};this.GetY=function(){return e.Location.Y};this.Inflate=function(f){this.SetX(this.GetX()-f.Width);this.SetY(this.GetY()-f.Height);this.SetWidth(this.GetWidth()+(2*f.Width));this.SetHeight(this.GetHeight()+(2*f.Height))};this.Intersect=function(f){var k=Math.max(a.GetX(),b.GetX());var g=Math.min(a.GetX()+a.GetWidth(),b.GetX()+b.GetWidth());var l=Math.max(a.GetY(),b.GetY());var h=Math.min(a.GetY()+a.GetHeight(),b.GetY()+b.GetHeight());if((g>=k)&&(h>=l)){this.Location=new System.Drawing.Point(k,l);this.Size=new System.Drawing.Size(g-k,h-l)}else{this.Location=new System.Drawing.Point(0,0);this.Size=new System.Drawing.Size(0,0)}};this.IntersectsWith=function(f){if(((f.GetX()<(e.GetX()+e.GetWidth()))&&(e.GetX()<(f.GetX()+f.GetWidth())))&&(f.GetY()<(e.GetY()+e.GetHeight()))){return(e.GetY()<(f.GetY()+f.GetHeight()))}return false};this.IsEmpty=function(){return(e.Location.IsEmpty()&&e.Size.IsEmpty())};this.Offset=function(f){e.Location.Offset(f.X,f.Y)};this.SetHeight=function(f){e.Size.Height=f};this.SetWidth=function(f){e.Size.Width=f};this.SetX=function(f){e.Location.X=f};this.SetY=function(f){e.Location.Y=f};this.toString=function(){return e.ToString()};this.ToString=function(){return System.String.Format("{X={0},Y={1},Width={2},Height={3}}",e.GetX(),e.GetY(),e.GetWidth(),e.GetHeight())}};System.Drawing.Rectangle.FromLTRB=function(g,e,h,d){var f=new System.Drawing.Point(g,e);var c=new System.Drawing.Size(h-g,d-e);return new System.Drawing.Rectangle(f,c)};System.Drawing.Rectangle.Union=function(f,g){var c=Math.min(f.GetX(),g.GetX());var d=Math.max(f.GetX()+f.GetWidth(),g.GetX()+g.GetWidth());var h=Math.min(f.GetY(),g.GetY());var e=Math.max(f.GetY()+f.GetHeight(),g.GetY()+g.GetHeight());return new System.Drawing.Rectangle(new System.Drawing.Point(c,h),new System.Drawing.Size(d-c,e-h))};RegisterNamespace("System.Drawing");System.Drawing.Size=function(d,c){var e=this;this.Height=c||0;this.Width=d||0;this.Clone=function(){return new System.Drawing.Size(e.Width,e.Height)};this.Equals=function(f){return((f.Width==e.Width)&&(f.Height==e.Height))};this.IsEmpty=function(){return(e.Width==0&&e.Height==0)};this.toString=function(){return e.ToString()};this.ToString=function(){return System.String.Format("{Width={0}, Height={1}}",e.Width,e.Height)}};System.Drawing.Size.Empty=new System.Drawing.Size(0,0);System.Drawing.Size.Add=function(d,c){return new System.Drawing.Size(d.Width+c.Width,d.Height+c.Height)};System.Drawing.Size.Subtract=function(d,c){return new System.Drawing.Size(d.Width-c.Width,d.Height-c.Height)};RegisterNamespace("System.Diagnostics");System.Diagnostics.Stopwatch=function(){var f=this;var e=new Date();var c=0;var d=false;this.GetEllapsedMilliseconds=function(){if(d){return c+(new Date().getTime()-e.getTime())}else{return c}};this.IsRunning=function(){return d};this.Reset=function(){this.Stop();c=0};this.Start=function(){e=new Date();d=true};this.Stop=function(){if(d){c=this.GetEllapsedMilliseconds();d=false}}};System.Diagnostics.Stopwatch.StartNew=function(){var c=new System.Diagnostics.Stopwatch();c.Start();return c};RegisterNamespace("System.Configuration.Settings");System.Configuration.Settings=function(){};System.Configuration.Settings.Defaults=[];System.Configuration.Settings.Load=function(){System.Configuration.Settings.LoadDefaults();for(var c in System.Configuration.Settings.Defaults){System.Configuration.Settings[c]=System.Configuration.Settings.ReadCookie(c)||System.Configuration.Settings.Defaults[c]}};System.Configuration.Settings.LoadDefaults=function(){};System.Configuration.Settings.Reset=function(){for(var c in Settings){if(typeof Settings[c]!="function"&&Settings.Defaults[c]){System.Configuration.Settings[c]=System.Configuration.Settings.Defaults[c]}}};System.Configuration.Settings.Save=function(){for(var c in System.Configuration.Settings){if(typeof System.Configuration.Settings[c]!="function"){System.Configuration.Settings.CreateCookie(c,System.Configuration.Settings[c],365)}}};System.Configuration.Settings.CreateCookie=function(c,g,f){if(f){var d=new Date();d.setTime(d.getTime()+(f*24*60*60*1000));var e="; expires="+d.toGMTString()}else{e=""}document.cookie=c+"="+g+e+"; path=/"};System.Configuration.Settings.DeleteCookie=function(c){System.Configuration.Settings.CreateCookie(c,"",-1)};System.Configuration.Settings.ReadCookie=function(d){var h=d+"=";var e=document.cookie.split(";");for(var g=0;g<e.length;g++){var f=e[g];while(f.charAt(0)==" "){f=f.substring(1,f.length)}if(f.indexOf(h)==0){return f.substring(h.length,f.length)}}return null};RegisterNamespace("System.Collections");System.Collections.ArrayList=function(){var f=this;var e=new Array();this.Events=new System.EventCollection();function c(h){return e.push(h)}function d(m,h){if(m>-1&&m<=e.length){switch(m){case 0:e.unshift(h);break;case e.length:e.push(h);break;default:var k=e.slice(0,m-1);var l=e.slice(m);e=e.concat(l.unshift(h));break}}}function g(l){if(e.length>0&&l>-1&&l<e.length){switch(l){case 0:e.shift();break;case e.length-1:e.pop();break;default:var h=e.slice(0,l);var k=e.slice(l+1);e=h.concat(k);break}}}this.Add=function(h){f.Events.Fire("AddingNew");var k=c(h);f.Events.Fire("ListChanged");return k};this.AddRange=function(h){f.Events.Fire("AddingNew");for(var k=0;k<h.length;k++){c(h[k])}f.Events.Fire("ListChanged")};this.Clear=function(){e=new Array();f.Events.Fire("ListChanged")};this.Clone=function(){var h=new System.Collections.ArrayList();for(var k=0;k<e.length;k++){h.Add(e[k])}return h};this.Contains=function(h){return(f.IndexOf(h)!=-1)};this.CopyTo=function(k){for(var h=0;h<e.length;h++){if(h<k.length){k[h]=e[h]}else{k.push(e[h])}}};this.GetCount=function(){return e.length};this.GetItem=function(h){if(h>-1&&h<e.length){return e[h]}else{return undefined}};this.GetRange=function(m,h){var k=new System.Collections.ArrayList();for(var l=m;l<e.length;l++){if(k.GetCount()==h){break}k.Add(e[l])}return k};this.IndexOf=function(h){var l=-1;for(var k=0;k<e.length;k++){if(e[k]==h){l=k;break}}return l};this.Insert=function(k,h){d(k,h);f.Events.Fire("ListChanged")};this.InsertRange=function(l,h){for(var k=h.length-1;k>=0;k--){d(l,h[k])}f.Events.Fire("ListChanged")};this.LastIndexOf=function(h){var l=-1;for(var k=e.length-1;k>=0;k--){if(e[k]==object){l=k;break}}return l};this.Remove=function(k){var h=f.IndexOf(k);if(h>=0){g(h);f.Events.Fire("ListChanged")}};this.RemoveAt=function(h){g(h);f.Events.Fire("ListChanged")};this.RemoveRange=function(l,h){for(var k=0;k<h;k++){g(l)}f.Events.Fire("ListChanged")};this.Reverse=function(){e.reverse();f.Events.Fire("ListChanged")};this.SetItem=function(k,h){if(k>-1&&k<e.length){e[k]=h;f.Events.Fire("ListChanged")}};this.SetRange=function(m,h){for(var l=0;l<h.length;l++){var k=m+l;if(k<e.length){e[k]=h[l]}else{c(h[l])}}f.Events.Fire("ListChanged")};this.Sort=function(h){if(h){e.sort(h)}else{e.sort()}f.Events.Fire("ListChanged")};this.ToArray=function(){var k=new Array();for(var h=0;h<e.length;h++){k.push(e[h])}return k};this.toString=function(){return f.ToString()};this.ToString=function(h){return f.ToArray().join(h)}};