                  (function(){var global=this;var Append,Async,Attr,BackgroundColor,BackgroundColor_1,BorderColor,BorderColor_1,Bottom,Bottom_1,Button,Button_1,Button_2,Calendar,Call,CartEvents,CenterButton,Checkbox,Class,Client,Client2,Client_1,Client_10,Client_11,Client_12,Client_13,Client_14,Client_15,Client_2,Client_3,Client_4,Client_5,Client_6,Client_7,Client_8,Client_9,CommonControls,Compare,Concat,Control,Core,CssClass,CssClass_1,Do,Do_1,Enhance,Enhance_1,Events,FSharpList_1,FSharpMap_2,Filenames,Filter,Fold,FormWithResponse,Formlet,Forms,GetItemsInCart,GroupBy,Header,Input,Internals,Internals_1,JQueryUI,LatestNewsArticles,LeftButton,Length,List,Map,MapIndexed,MapModule,New2,NewUnion,News,NextCounter,NormalMiddleTable,NormalTable,Of,OfArray,OfElement,OfSeq,OfSeq_1,OnAfterRender,Padding,Padding_1,Padding_2,Padding_3,PaypalPayment,ProductSpecification,RadioButtonGroup,Render,Return,RoundCorner,RoundCornerList,Run,Runtime,Select,SeqModule,SetItemsInCart,Slider,SliderConfiguration,Slider_1,SortInPlaceWith,StandardConfiguration,Style,Style_1,SubmitNewsLetterForm,Table,Tabs,Tags,TextArea,TogglePanel,Top,Top_1,Tupled,Ui,Utils,Validator,WSPSlideshowInternal,WebControls,WebControls_1,Widgets,WithCustomFormContainer,WithLabelAndInfo,WithLegend,WithTextLabel,Zip,__126,__127,__128,__129,__130,__131,__132,__133,__134,__135,__136,__137,__138,__139,__140,__141,__142,__184,__186,__187,__188,__189,__190,__191,__192,__193,__194,__195,__196,__197,__198,__199,__200,__201,__202,__203,__204,__205,__206,__207,__208,__209,__210,__211,__212,__213,__214,__215,__216,__217,__218,__219,__220,__221,__222,__223,__224,__225,__226,__227,__228,__229,__230,__231,__232,__233,__234,__235,__236,__237,__238,__239,__240,__241,__242,__243,__244,__245,__246,__247,__248,__249,__250,__251,__252,__253,__254,__255,__256,__257,__258,__259,__260,__261,__262,__263,__264,__265,__266,__267,__268,__269,__270,__271,__272,__273,__274,__275,__276,__277,__278,__279,__280,__281,__282,__283,__284,__285,__286,__287,__288,__289,__290,__291,__292,__293,__294,__295,__296,__297,alert,cb_100_1,countries,countryVls_126_1,event,fromSeq,get_Default,get_Default_1,get_Default_2,inputRecord_73_3,inputRecord_85_2,licensePan_96_1,loop,offices_128_1,op_LessMultiplyGreater,op_MinusLess,parse,personF_138_2,store,stringify,toBugInfo_129_5,toQInfo_88_2,topicVls_127_1,topics;IntelliFactory.WebSharper.Runtime.Declare({IntelliFactory:{WebSharper:{CommonControls:{Login:{},Enhance:{LoginInternals:{Client:{Forms:{}}}}}},PaymentProcessor:{PaypalPayment:{Payment:{},Currency:{}}},Home:{ProductSpecification:{},FSharp:{WebControls:{Widgets:{},WSPSlideshowInternal:{},WSPSlideshow:{},UpcomingCourses:{},UnsubscribeNewsletter:{},Trainings:{Client2:{},Client:{}},TrainingVideos:{Client:{}},TrainingMaterial:{},TrainingBookingInternals:{Client:{}},TogglePanel:{},TheIntelliFactoryAdvantageWidget:{},TestForm:{},SliderControl:{},Slider:{SliderConfiguration:{}},ShoppingCartInternals:{WebControls:{},Internals:{},Client:{},CartEvents:{}},ShoppingCart:{},ScheduledTrainingBooking:{},RpcViewer:{},ResarchAndDevWidget:{},ProductsToBuyMatrix:{},ProductsToBuy:{Client:{}},ProductSignupInternals:{Client:{}},ProductSignup:{},PartnerProgramSignupInternals:{Client:{}},PartnerProgramSignupForm:{},OnSiteTrainingBooking:{},NewsLetterInternals:{Client:{}},NewsLetterForm:{},LicenseAgreementSignupInternals:{Client:{}},LicenseAgreementSignup:{},LargeShoppingCart:{},ItemsToBuy:{},FancyBoxControl:{},ExtensionMatrix:{},DownloadsForProduct:{},DownloadsForInfoPage:{},Downloads:{},CourseSummaries:{},CourseListing:{},CourseInfo:{},ContactUsInternals:{Client:{}},ContactUsForm:{},ContactInfoWidget:{},Client:{Table:{},Button:{}},ClearCart:{},Button:{},BugSubmitInternals:{Client:{}},BugSubmit:{},BugListInternals:{Client:{}},BugList:{},AskQuestionInternals:{Client:{}},AskQuestion:{}},Utils:{},Ui:{Render:{}},News:{News:{},LatestWebSharperNewsArticles:{},LatestNewsArticles:{},LatestArticles:{},Internals:{FeedCategory:{},Client:{List:{}}}}},Downloads:{Filenames:{},Client:{}}}}});PaypalPayment=function(){return IntelliFactory.PaymentProcessor.PaypalPayment;};(function(){return IntelliFactory.PaymentProcessor;});Class=function(){return IntelliFactory.WebSharper.Runtime.Class;};Runtime=function(){return IntelliFactory.WebSharper.Runtime;};(function(){return IntelliFactory.WebSharper;});OfSeq=function(){return IntelliFactory.WebSharper.Core.ListModule.OfSeq;};(function(){return IntelliFactory.WebSharper.Core.ListModule;});Core=function(){return IntelliFactory.WebSharper.Core;};MapIndexed=function(){return IntelliFactory.WebSharper.Core.SeqModule.MapIndexed;};SeqModule=function(){return IntelliFactory.WebSharper.Core.SeqModule;};OfArray=function(){return IntelliFactory.WebSharper.Core.ListModule.OfArray;};Attr=function(){return IntelliFactory.WebSharper.Html.Implementation.Attr;};(function(){return IntelliFactory.WebSharper.Html.Implementation;});(function(){return IntelliFactory.WebSharper.Html;});Tags=function(){return IntelliFactory.WebSharper.Html.Implementation.Tags;};NewUnion=function(){return IntelliFactory.WebSharper.Runtime.NewUnion;};FSharpList_1=function(){return IntelliFactory.WebSharper.Core["FSharpList`1"];};Append=function(){return IntelliFactory.WebSharper.Core.SeqModule.Append;};Concat=function(){return IntelliFactory.WebSharper.Core.SeqModule.Concat;};op_MinusLess=function(){return IntelliFactory.WebSharper.Html.Operators.op_MinusLess;};(function(){return IntelliFactory.WebSharper.Html.Operators;});WebControls=function(){return IntelliFactory.Home.FSharp.WebControls;};(function(){return IntelliFactory.Home.FSharp;});(function(){return IntelliFactory.Home;});Client=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals;});ProductSpecification=function(){return IntelliFactory.Home.ProductSpecification;};Map=function(){return IntelliFactory.WebSharper.Core.SeqModule.Map;};Tupled=function(){return IntelliFactory.WebSharper.Runtime.Tupled;};__126=function(trs){return IntelliFactory.Home.FSharp.WebControls.Client.Table.AlternatingColor(trs);};(function(){return IntelliFactory.Home.FSharp.WebControls.Client.Table.AlternatingColor;});Table=function(){return IntelliFactory.Home.FSharp.WebControls.Client.Table;};(function(){return IntelliFactory.Home.FSharp.WebControls.Client;});NormalMiddleTable=function(){return IntelliFactory.Home.FSharp.WebControls.Client.Table.NormalMiddleTable;};__127=function(arg0){return{$:1,$0:arg0};};Client_1=function(){return IntelliFactory.Home.FSharp.WebControls.ProductsToBuy.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.ProductsToBuy;});Client_2=function(){return IntelliFactory.Home.FSharp.WebControls.TrainingVideos.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.TrainingVideos;});Client_3=function(){return IntelliFactory.Home.FSharp.WebControls.BugListInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.BugListInternals;});Client_4=function(){return IntelliFactory.Home.FSharp.WebControls.PartnerProgramSignupInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.PartnerProgramSignupInternals;});Client2=function(){return IntelliFactory.Home.FSharp.WebControls.Trainings.Client2;};(function(){return IntelliFactory.Home.FSharp.WebControls.Trainings;});__128=function(a){return IntelliFactory.Home.FSharp.Ui.LoadingPane(a);};(function(){return IntelliFactory.Home.FSharp.Ui.LoadingPane;});Ui=function(){return IntelliFactory.Home.FSharp.Ui;};Client_5=function(){return IntelliFactory.Home.FSharp.WebControls.Trainings.Client;};__129=function(value){return Number(value);};CommonControls=function(){return IntelliFactory.WebSharper.CommonControls;};StandardConfiguration=function(){return IntelliFactory.Home.FSharp.Ui.Render.StandardConfiguration;};Render=function(){return IntelliFactory.Home.FSharp.Ui.Render;};Enhance=function(){return IntelliFactory.WebSharper.CommonControls.Enhance;};Client_6=function(){return IntelliFactory.Home.FSharp.WebControls.LicenseAgreementSignupInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.LicenseAgreementSignupInternals;});Client_7=function(){return IntelliFactory.Home.FSharp.WebControls.TrainingBookingInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.TrainingBookingInternals;});Client_8=function(){return IntelliFactory.Home.FSharp.WebControls.NewsLetterInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.NewsLetterInternals;});Client_9=function(){return IntelliFactory.Home.FSharp.WebControls.AskQuestionInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.AskQuestionInternals;});Client_10=function(){return IntelliFactory.Home.FSharp.WebControls.BugSubmitInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.BugSubmitInternals;});Client_11=function(){return IntelliFactory.Home.FSharp.WebControls.ContactUsInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.ContactUsInternals;});Client_12=function(){return IntelliFactory.Home.FSharp.WebControls.ProductSignupInternals.Client;};(function(){return IntelliFactory.Home.FSharp.WebControls.ProductSignupInternals;});Client_13=function(){return IntelliFactory.Home.Downloads.Client;};(function(){return IntelliFactory.Home.Downloads;});Button=function(){return IntelliFactory.Home.FSharp.WebControls.Client.Button.Button;};Button_1=function(){return IntelliFactory.Home.FSharp.WebControls.Client.Button;};WSPSlideshowInternal=function(){return IntelliFactory.Home.FSharp.WebControls.WSPSlideshowInternal;};get_Default=function(){return IntelliFactory.Home.FSharp.WebControls.Slider.SliderConfiguration.get_Default;};SliderConfiguration=function(){return IntelliFactory.Home.FSharp.WebControls.Slider.SliderConfiguration;};Slider_1=function(){return IntelliFactory.Home.FSharp.WebControls.Slider;};Slider=function(){return IntelliFactory.Home.FSharp.WebControls.Slider.Slider;};Widgets=function(){return IntelliFactory.Home.FSharp.WebControls.Widgets;};Call=function(){return IntelliFactory.WebSharper.Remoting.Client.Call;};Client_15=function(){return IntelliFactory.WebSharper.Remoting.Client;};(function(){return IntelliFactory.WebSharper.Remoting;});News=function(){return IntelliFactory.Home.FSharp.News;};LatestNewsArticles=function(){return IntelliFactory.Home.FSharp.News.Internals.Client.LatestNewsArticles;};Client_14=function(){return IntelliFactory.Home.FSharp.News.Internals.Client;};Internals=function(){return IntelliFactory.Home.FSharp.News.Internals;};WithCustomFormContainer=function(){return IntelliFactory.WebSharper.Formlet.Enhance.WithCustomFormContainer;};Enhance_1=function(){return IntelliFactory.WebSharper.Formlet.Enhance;};(function(){return IntelliFactory.WebSharper.Formlet;});__130=function(formlet){return IntelliFactory.WebSharper.Formlet.Formlet.Run(function(value){return void value;},formlet);};Run=function(){return IntelliFactory.WebSharper.Formlet.Formlet.Run;};Formlet=function(){return IntelliFactory.WebSharper.Formlet.Formlet;};__138=function(value){return void value;};Do=function(){return IntelliFactory.WebSharper.Formlet.Formlet.Do;};__131=function(x){var _;_=IntelliFactory.WebSharper.Html.Implementation.Tags;return _.NewTag("ul",x);};OfElement=function(){return IntelliFactory.WebSharper.Formlet.Formlet.OfElement;};get_Default_1=function(){return IntelliFactory.WebSharper.Formlet.Enhance.FormContainerConfiguration.get_Default;};(function(){return IntelliFactory.WebSharper.Formlet.Enhance.FormContainerConfiguration;});OnAfterRender=function(){return IntelliFactory.WebSharper.Html.Operators.OnAfterRender;};Do_1=function(){return IntelliFactory.WebSharper.Control.ExtraTopLevelOperators.Do;};(function(){return IntelliFactory.WebSharper.Control.ExtraTopLevelOperators;});Control=function(){return IntelliFactory.WebSharper.Control;};__132=function(arg00){({$:0});return IntelliFactory.WebSharper.Control.Concurrent.Start(arg00);};(function(){return IntelliFactory.WebSharper.Control.Concurrent.Start;});(function(){return IntelliFactory.WebSharper.Control.Concurrent;});Utils=function(){return IntelliFactory.Home.FSharp.Utils;};__133=function(x){var _;_=IntelliFactory.WebSharper.Html.Implementation.Tags;return _.NewTag("tbody",x);};List=function(){return IntelliFactory.Home.FSharp.News.Internals.Client.List;};loop=function(){return IntelliFactory.Home.FSharp.News.Internals.Client.List.loop;};__134=function(list){var a;a=IntelliFactory.WebSharper.Core.ArrayModule.OfSeq(list);a.reverse();return IntelliFactory.WebSharper.Core.ListModule.OfArray(a);};OfSeq_1=function(){return IntelliFactory.WebSharper.Core.ArrayModule.OfSeq;};(function(){return IntelliFactory.WebSharper.Core.ArrayModule;});Async=function(){return IntelliFactory.WebSharper.Remoting.Client.Async;};__135=function(list){return IntelliFactory.WebSharper.Core.SeqModule.Length(list);};Length=function(){return IntelliFactory.WebSharper.Core.SeqModule.Length;};__136=function(x){var _;_=IntelliFactory.WebSharper.Html.Implementation.Tags;return _.Div(x);};RoundCornerList=function(){return IntelliFactory.Home.FSharp.WebControls.Widgets.RoundCornerList;};RoundCorner=function(){return IntelliFactory.Home.FSharp.WebControls.Widgets.RoundCorner;};__137=function(list){return IntelliFactory.WebSharper.Core.ListModule.OfSeq(IntelliFactory.WebSharper.Core.SeqModule.Map(function(e){var _,__1;__1=IntelliFactory.WebSharper.Core.ListModule.OfArray([e]);_=IntelliFactory.WebSharper.Html.Implementation.Tags;return _.NewTag("li",__1);},list));};(function(e){var _,__1;__1=IntelliFactory.WebSharper.Core.ListModule.OfArray([e]);_=IntelliFactory.WebSharper.Html.Implementation.Tags;return _.NewTag("li",__1);});Events=function(){return IntelliFactory.WebSharper.Html.EventsPervasives.Events;};(function(){return IntelliFactory.WebSharper.Html.EventsPervasives;});Fold=function(){return IntelliFactory.WebSharper.Core.SeqModule.Fold;};__139=function(value){return!value;};Filenames=function(){return IntelliFactory.Home.Downloads.Filenames;};NormalTable=function(){return IntelliFactory.Home.FSharp.WebControls.Client.Table.NormalTable;};LeftButton=function(){return IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton;};__140=function(list){return IntelliFactory.WebSharper.Core.ListModule.OfSeq(IntelliFactory.WebSharper.Core.SeqModule.Map(function(cfile){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__5,__6,__7,__8,__9,cboundVersion,cversion;if(cfile.FileInformation.$==0){_="N/A";}else{_=cfile.FileInformation.$0.Version;}cversion=_;if(cfile.FileInformation.$==0){__1={$:0};}else{__1=cfile.FileInformation.$0.BoundVersion;}cboundVersion=__1;__2=IntelliFactory.WebSharper.Html.Implementation.Attr;__4=IntelliFactory.WebSharper.Core.ListModule.OfArray([__2.NewAttr("valign","middle")]);__3=IntelliFactory.WebSharper.Html.Implementation.Tags;__5=IntelliFactory.WebSharper.Html.Implementation.Attr;__7=IntelliFactory.WebSharper.Core.ListModule.OfArray([__5.NewAttr("class","col1")]);__6=IntelliFactory.WebSharper.Html.Implementation.Tags;__9=cfile.Title;__8=IntelliFactory.WebSharper.Html.Implementation.Tags;__11=IntelliFactory.WebSharper.Core.ListModule.OfArray([__8.text(__9)]);__10=IntelliFactory.WebSharper.Html.Implementation.Tags;__12=IntelliFactory.WebSharper.Html.Implementation.Attr;__14=IntelliFactory.WebSharper.Core.ListModule.OfArray([__12.NewAttr("class","col2")]);__13=IntelliFactory.WebSharper.Html.Implementation.Tags;__15=IntelliFactory.WebSharper.Html.Implementation.Tags;__16=IntelliFactory.WebSharper.Html.Implementation.Attr;__18=IntelliFactory.WebSharper.Core.ListModule.OfArray([__16.NewAttr("class","col3")]);__17=IntelliFactory.WebSharper.Html.Implementation.Tags;if(cboundVersion.$==1){__19=cboundVersion.$0;}else{__19="N/A";}__21=__19;__20=IntelliFactory.WebSharper.Html.Implementation.Tags;__22=IntelliFactory.WebSharper.Html.Implementation.Attr;__24=IntelliFactory.WebSharper.Core.ListModule.OfArray([__22.NewAttr("class","col4")]);__23=IntelliFactory.WebSharper.Html.Implementation.Tags;if(cfile.FileInformation.$==1){__25=cfile.FileInformation.$0.ReleaseDate;}else{__25="N/A";}__27=__25;__26=IntelliFactory.WebSharper.Html.Implementation.Tags;__28=IntelliFactory.WebSharper.Html.Implementation.Attr;__30=IntelliFactory.WebSharper.Core.ListModule.OfArray([__28.NewAttr("class","col5")]);__29=IntelliFactory.WebSharper.Html.Implementation.Tags;if(cfile.FileInformation.$==0){__31=IntelliFactory.WebSharper.Html.Implementation.Tags;__33=IntelliFactory.WebSharper.Core.ListModule.OfArray([__31.text("Not available")]);__32=IntelliFactory.WebSharper.Html.Implementation.Tags;__40=__32.NewTag("i",__33);}else{__35=cfile.FileInformation.$0.HasChangedSinceOfficialRelease;__34=function(value){return!value;};if(__34(__35)){__36=IntelliFactory.WebSharper.Html.Implementation.Tags;__38=IntelliFactory.WebSharper.Core.ListModule.OfArray([__36.text("This component has no changes")]);__37=IntelliFactory.WebSharper.Html.Implementation.Tags;__39=__37.NewTag("i",__38);}else{__39=IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton("Download",cfile.FileInformation.$0.DownloadPage);}__40=__39;}return IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__3.NewTag("tr",__4),IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__6.NewTag("td",__7),IntelliFactory.WebSharper.Core.ListModule.OfArray([__10.NewTag("h5",__11)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__13.NewTag("td",__14),IntelliFactory.WebSharper.Core.ListModule.OfArray([__15.text(cversion)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__17.NewTag("td",__18),IntelliFactory.WebSharper.Core.ListModule.OfArray([__20.text(__21)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__23.NewTag("td",__24),IntelliFactory.WebSharper.Core.ListModule.OfArray([__26.text(__27)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__29.NewTag("td",__30),IntelliFactory.WebSharper.Core.ListModule.OfArray([__40]))]));},list));};(function(cfile){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__5,__6,__7,__8,__9,cboundVersion,cversion;if(cfile.FileInformation.$==0){_="N/A";}else{_=cfile.FileInformation.$0.Version;}cversion=_;if(cfile.FileInformation.$==0){__1={$:0};}else{__1=cfile.FileInformation.$0.BoundVersion;}cboundVersion=__1;__2=IntelliFactory.WebSharper.Html.Implementation.Attr;__4=IntelliFactory.WebSharper.Core.ListModule.OfArray([__2.NewAttr("valign","middle")]);__3=IntelliFactory.WebSharper.Html.Implementation.Tags;__5=IntelliFactory.WebSharper.Html.Implementation.Attr;__7=IntelliFactory.WebSharper.Core.ListModule.OfArray([__5.NewAttr("class","col1")]);__6=IntelliFactory.WebSharper.Html.Implementation.Tags;__9=cfile.Title;__8=IntelliFactory.WebSharper.Html.Implementation.Tags;__11=IntelliFactory.WebSharper.Core.ListModule.OfArray([__8.text(__9)]);__10=IntelliFactory.WebSharper.Html.Implementation.Tags;__12=IntelliFactory.WebSharper.Html.Implementation.Attr;__14=IntelliFactory.WebSharper.Core.ListModule.OfArray([__12.NewAttr("class","col2")]);__13=IntelliFactory.WebSharper.Html.Implementation.Tags;__15=IntelliFactory.WebSharper.Html.Implementation.Tags;__16=IntelliFactory.WebSharper.Html.Implementation.Attr;__18=IntelliFactory.WebSharper.Core.ListModule.OfArray([__16.NewAttr("class","col3")]);__17=IntelliFactory.WebSharper.Html.Implementation.Tags;if(cboundVersion.$==1){__19=cboundVersion.$0;}else{__19="N/A";}__21=__19;__20=IntelliFactory.WebSharper.Html.Implementation.Tags;__22=IntelliFactory.WebSharper.Html.Implementation.Attr;__24=IntelliFactory.WebSharper.Core.ListModule.OfArray([__22.NewAttr("class","col4")]);__23=IntelliFactory.WebSharper.Html.Implementation.Tags;if(cfile.FileInformation.$==1){__25=cfile.FileInformation.$0.ReleaseDate;}else{__25="N/A";}__27=__25;__26=IntelliFactory.WebSharper.Html.Implementation.Tags;__28=IntelliFactory.WebSharper.Html.Implementation.Attr;__30=IntelliFactory.WebSharper.Core.ListModule.OfArray([__28.NewAttr("class","col5")]);__29=IntelliFactory.WebSharper.Html.Implementation.Tags;if(cfile.FileInformation.$==0){__31=IntelliFactory.WebSharper.Html.Implementation.Tags;__33=IntelliFactory.WebSharper.Core.ListModule.OfArray([__31.text("Not available")]);__32=IntelliFactory.WebSharper.Html.Implementation.Tags;__40=__32.NewTag("i",__33);}else{__35=cfile.FileInformation.$0.HasChangedSinceOfficialRelease;__34=function(value){return!value;};if(__34(__35)){__36=IntelliFactory.WebSharper.Html.Implementation.Tags;__38=IntelliFactory.WebSharper.Core.ListModule.OfArray([__36.text("This component has no changes")]);__37=IntelliFactory.WebSharper.Html.Implementation.Tags;__39=__37.NewTag("i",__38);}else{__39=IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton("Download",cfile.FileInformation.$0.DownloadPage);}__40=__39;}return IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__3.NewTag("tr",__4),IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__6.NewTag("td",__7),IntelliFactory.WebSharper.Core.ListModule.OfArray([__10.NewTag("h5",__11)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__13.NewTag("td",__14),IntelliFactory.WebSharper.Core.ListModule.OfArray([__15.text(cversion)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__17.NewTag("td",__18),IntelliFactory.WebSharper.Core.ListModule.OfArray([__20.text(__21)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__23.NewTag("td",__24),IntelliFactory.WebSharper.Core.ListModule.OfArray([__26.text(__27)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__29.NewTag("td",__30),IntelliFactory.WebSharper.Core.ListModule.OfArray([__40]))]));});__141=function(list_1){return IntelliFactory.WebSharper.Core.ListModule.OfSeq(IntelliFactory.WebSharper.Core.SeqModule.MapIndexed(function(i){return function(ext){var _,__1,__10,__11,__12,__13,__14,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__61,__7,__8,__9,attr;if(i%2===1){_=IntelliFactory.WebSharper.Html.Implementation.Attr;__1=IntelliFactory.WebSharper.Core.ListModule.OfArray([_.NewAttr("class","alt")]);}else{__1=IntelliFactory.WebSharper.Runtime.NewUnion(IntelliFactory.WebSharper.Core["FSharpList`1"],0);}attr=__1;__2=IntelliFactory.WebSharper.Html.Implementation.Tags;__3=IntelliFactory.WebSharper.Html.Implementation.Attr;__5=IntelliFactory.WebSharper.Core.ListModule.OfArray([__3.NewAttr("class","col1")]);__4=IntelliFactory.WebSharper.Html.Implementation.Tags;__7=ext.Title;__6=IntelliFactory.WebSharper.Html.Implementation.Tags;__9=IntelliFactory.WebSharper.Core.ListModule.OfArray([__6.text(__7)]);__8=IntelliFactory.WebSharper.Html.Implementation.Tags;__10=IntelliFactory.WebSharper.Html.Implementation.Tags;__12=IntelliFactory.WebSharper.Core.ListModule.OfArray([__10.text("Requires:")]);__11=IntelliFactory.WebSharper.Html.Implementation.Tags;__14=IntelliFactory.WebSharper.Runtime.NewUnion(IntelliFactory.WebSharper.Core["FSharpList`1"],0);__13=IntelliFactory.WebSharper.Html.Implementation.Tags;__19=ext.Requires;__18=function(list){return IntelliFactory.WebSharper.Core.ListModule.OfSeq(IntelliFactory.WebSharper.Core.SeqModule.Map(IntelliFactory.WebSharper.Runtime.Tupled(function(tupledArg){var __15,__16,__17,reqTitle;reqTitle=tupledArg[0];__15=IntelliFactory.WebSharper.Html.Implementation.Tags;__17=IntelliFactory.WebSharper.Core.ListModule.OfArray([__15.text(reqTitle)]);__16=IntelliFactory.WebSharper.Html.Implementation.Tags;return __16.NewTag("li",__17);}),list));};if(ext.InfoPage.$==0){__21=IntelliFactory.WebSharper.Runtime.NewUnion(IntelliFactory.WebSharper.Core["FSharpList`1"],0);__20=IntelliFactory.WebSharper.Html.Implementation.Tags;__22=__20.Div(__21);}else{__22=IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton("More info",ext.InfoPage.$0);}__23=IntelliFactory.WebSharper.Html.Implementation.Attr;__25=IntelliFactory.WebSharper.Core.ListModule.OfArray([__23.NewAttr("class","col2")]);__24=IntelliFactory.WebSharper.Html.Implementation.Tags;if(ext.FileInformation.$==0){__26="N/A";}else{__26=ext.FileInformation.$0.Version;}__28=__26;__27=IntelliFactory.WebSharper.Html.Implementation.Tags;__29=IntelliFactory.WebSharper.Html.Implementation.Attr;__31=IntelliFactory.WebSharper.Core.ListModule.OfArray([__29.NewAttr("class","col3")]);__30=IntelliFactory.WebSharper.Html.Implementation.Tags;if(ext.FileInformation.$==0){__33="N/A";}else{if(ext.FileInformation.$0.BoundVersion.$==0){__32="N/A";}else{__32=ext.FileInformation.$0.BoundVersion.$0;}__33=__32;}__35=__33;__34=IntelliFactory.WebSharper.Html.Implementation.Tags;__36=IntelliFactory.WebSharper.Html.Implementation.Attr;__38=IntelliFactory.WebSharper.Core.ListModule.OfArray([__36.NewAttr("class","col4")]);__37=IntelliFactory.WebSharper.Html.Implementation.Tags;if(ext.FileInformation.$==0){__39="N/A";}else{__39=ext.FileInformation.$0.ReleaseDate;}__41=__39;__40=IntelliFactory.WebSharper.Html.Implementation.Tags;__42=IntelliFactory.WebSharper.Html.Implementation.Attr;__44=IntelliFactory.WebSharper.Core.ListModule.OfArray([__42.NewAttr("class","col5")]);__43=IntelliFactory.WebSharper.Html.Implementation.Tags;if(ext.FileInformation.$==0){__45=IntelliFactory.WebSharper.Html.Implementation.Attr;__47=IntelliFactory.WebSharper.Core.ListModule.OfArray([__45.NewAttr("colspan","2")]);__46=IntelliFactory.WebSharper.Html.Implementation.Tags;__48=IntelliFactory.WebSharper.Html.Implementation.Tags;__50=IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__46.NewTag("td",__47),IntelliFactory.WebSharper.Core.ListModule.OfArray([__48.text("N/A")]))]);__49=IntelliFactory.WebSharper.Html.Implementation.Tags;__57=__49.NewTag("tr",__50);}else{__52=IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton("Buy","/products/wsp/Buy.aspx")]);__51=IntelliFactory.WebSharper.Html.Implementation.Tags;__54=IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton("Trial",ext.FileInformation.$0.DownloadPage)]);__53=IntelliFactory.WebSharper.Html.Implementation.Tags;__56=IntelliFactory.WebSharper.Core.ListModule.OfArray([__51.NewTag("td",__52),__53.NewTag("td",__54)]);__55=IntelliFactory.WebSharper.Html.Implementation.Tags;__57=__55.NewTag("tr",__56);}__59=IntelliFactory.WebSharper.Core.ListModule.OfArray([__57]);__58=IntelliFactory.WebSharper.Html.Implementation.Tags;__61=IntelliFactory.WebSharper.Core.ListModule.OfArray([__58.NewTag("tbody",__59)]);__60=IntelliFactory.WebSharper.Html.Implementation.Tags;return IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__2.NewTag("tr",attr),IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__4.NewTag("td",__5),IntelliFactory.WebSharper.Core.ListModule.OfArray([__8.NewTag("h5",__9),__11.NewTag("i",__12),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__13.NewTag("ol",__14),__18(__19)),__22])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__24.NewTag("td",__25),IntelliFactory.WebSharper.Core.ListModule.OfArray([__27.text(__28)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__30.NewTag("td",__31),IntelliFactory.WebSharper.Core.ListModule.OfArray([__34.text(__35)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__37.NewTag("td",__38),IntelliFactory.WebSharper.Core.ListModule.OfArray([__40.text(__41)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__43.NewTag("td",__44),IntelliFactory.WebSharper.Core.ListModule.OfArray([__60.NewTag("table",__61)]))]));};},list_1));};(function(i){return function(ext){var _,__1,__10,__11,__12,__13,__14,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__61,__7,__8,__9,attr;if(i%2===1){_=IntelliFactory.WebSharper.Html.Implementation.Attr;__1=IntelliFactory.WebSharper.Core.ListModule.OfArray([_.NewAttr("class","alt")]);}else{__1=IntelliFactory.WebSharper.Runtime.NewUnion(IntelliFactory.WebSharper.Core["FSharpList`1"],0);}attr=__1;__2=IntelliFactory.WebSharper.Html.Implementation.Tags;__3=IntelliFactory.WebSharper.Html.Implementation.Attr;__5=IntelliFactory.WebSharper.Core.ListModule.OfArray([__3.NewAttr("class","col1")]);__4=IntelliFactory.WebSharper.Html.Implementation.Tags;__7=ext.Title;__6=IntelliFactory.WebSharper.Html.Implementation.Tags;__9=IntelliFactory.WebSharper.Core.ListModule.OfArray([__6.text(__7)]);__8=IntelliFactory.WebSharper.Html.Implementation.Tags;__10=IntelliFactory.WebSharper.Html.Implementation.Tags;__12=IntelliFactory.WebSharper.Core.ListModule.OfArray([__10.text("Requires:")]);__11=IntelliFactory.WebSharper.Html.Implementation.Tags;__14=IntelliFactory.WebSharper.Runtime.NewUnion(IntelliFactory.WebSharper.Core["FSharpList`1"],0);__13=IntelliFactory.WebSharper.Html.Implementation.Tags;__19=ext.Requires;__18=function(list){return IntelliFactory.WebSharper.Core.ListModule.OfSeq(IntelliFactory.WebSharper.Core.SeqModule.Map(IntelliFactory.WebSharper.Runtime.Tupled(function(tupledArg){var __15,__16,__17,reqTitle;reqTitle=tupledArg[0];__15=IntelliFactory.WebSharper.Html.Implementation.Tags;__17=IntelliFactory.WebSharper.Core.ListModule.OfArray([__15.text(reqTitle)]);__16=IntelliFactory.WebSharper.Html.Implementation.Tags;return __16.NewTag("li",__17);}),list));};if(ext.InfoPage.$==0){__21=IntelliFactory.WebSharper.Runtime.NewUnion(IntelliFactory.WebSharper.Core["FSharpList`1"],0);__20=IntelliFactory.WebSharper.Html.Implementation.Tags;__22=__20.Div(__21);}else{__22=IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton("More info",ext.InfoPage.$0);}__23=IntelliFactory.WebSharper.Html.Implementation.Attr;__25=IntelliFactory.WebSharper.Core.ListModule.OfArray([__23.NewAttr("class","col2")]);__24=IntelliFactory.WebSharper.Html.Implementation.Tags;if(ext.FileInformation.$==0){__26="N/A";}else{__26=ext.FileInformation.$0.Version;}__28=__26;__27=IntelliFactory.WebSharper.Html.Implementation.Tags;__29=IntelliFactory.WebSharper.Html.Implementation.Attr;__31=IntelliFactory.WebSharper.Core.ListModule.OfArray([__29.NewAttr("class","col3")]);__30=IntelliFactory.WebSharper.Html.Implementation.Tags;if(ext.FileInformation.$==0){__33="N/A";}else{if(ext.FileInformation.$0.BoundVersion.$==0){__32="N/A";}else{__32=ext.FileInformation.$0.BoundVersion.$0;}__33=__32;}__35=__33;__34=IntelliFactory.WebSharper.Html.Implementation.Tags;__36=IntelliFactory.WebSharper.Html.Implementation.Attr;__38=IntelliFactory.WebSharper.Core.ListModule.OfArray([__36.NewAttr("class","col4")]);__37=IntelliFactory.WebSharper.Html.Implementation.Tags;if(ext.FileInformation.$==0){__39="N/A";}else{__39=ext.FileInformation.$0.ReleaseDate;}__41=__39;__40=IntelliFactory.WebSharper.Html.Implementation.Tags;__42=IntelliFactory.WebSharper.Html.Implementation.Attr;__44=IntelliFactory.WebSharper.Core.ListModule.OfArray([__42.NewAttr("class","col5")]);__43=IntelliFactory.WebSharper.Html.Implementation.Tags;if(ext.FileInformation.$==0){__45=IntelliFactory.WebSharper.Html.Implementation.Attr;__47=IntelliFactory.WebSharper.Core.ListModule.OfArray([__45.NewAttr("colspan","2")]);__46=IntelliFactory.WebSharper.Html.Implementation.Tags;__48=IntelliFactory.WebSharper.Html.Implementation.Tags;__50=IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__46.NewTag("td",__47),IntelliFactory.WebSharper.Core.ListModule.OfArray([__48.text("N/A")]))]);__49=IntelliFactory.WebSharper.Html.Implementation.Tags;__57=__49.NewTag("tr",__50);}else{__52=IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton("Buy","/products/wsp/Buy.aspx")]);__51=IntelliFactory.WebSharper.Html.Implementation.Tags;__54=IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.Home.FSharp.WebControls.Client.Button.LeftButton("Trial",ext.FileInformation.$0.DownloadPage)]);__53=IntelliFactory.WebSharper.Html.Implementation.Tags;__56=IntelliFactory.WebSharper.Core.ListModule.OfArray([__51.NewTag("td",__52),__53.NewTag("td",__54)]);__55=IntelliFactory.WebSharper.Html.Implementation.Tags;__57=__55.NewTag("tr",__56);}__59=IntelliFactory.WebSharper.Core.ListModule.OfArray([__57]);__58=IntelliFactory.WebSharper.Html.Implementation.Tags;__61=IntelliFactory.WebSharper.Core.ListModule.OfArray([__58.NewTag("tbody",__59)]);__60=IntelliFactory.WebSharper.Html.Implementation.Tags;return IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__2.NewTag("tr",attr),IntelliFactory.WebSharper.Core.ListModule.OfArray([IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__4.NewTag("td",__5),IntelliFactory.WebSharper.Core.ListModule.OfArray([__8.NewTag("h5",__9),__11.NewTag("i",__12),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__13.NewTag("ol",__14),__18(__19)),__22])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__24.NewTag("td",__25),IntelliFactory.WebSharper.Core.ListModule.OfArray([__27.text(__28)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__30.NewTag("td",__31),IntelliFactory.WebSharper.Core.ListModule.OfArray([__34.text(__35)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__37.NewTag("td",__38),IntelliFactory.WebSharper.Core.ListModule.OfArray([__40.text(__41)])),IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__43.NewTag("td",__44),IntelliFactory.WebSharper.Core.ListModule.OfArray([__60.NewTag("table",__61)]))]));};});(function(list){return IntelliFactory.WebSharper.Core.ListModule.OfSeq(IntelliFactory.WebSharper.Core.SeqModule.Map(IntelliFactory.WebSharper.Runtime.Tupled(function(tupledArg){var _,__1,__2,reqTitle;reqTitle=tupledArg[0];_=IntelliFactory.WebSharper.Html.Implementation.Tags;__2=IntelliFactory.WebSharper.Core.ListModule.OfArray([_.text(reqTitle)]);__1=IntelliFactory.WebSharper.Html.Implementation.Tags;return __1.NewTag("li",__2);}),list));});(function(tupledArg){var _,__1,__2,reqTitle;reqTitle=tupledArg[0];_=IntelliFactory.WebSharper.Html.Implementation.Tags;__2=IntelliFactory.WebSharper.Core.ListModule.OfArray([_.text(reqTitle)]);__1=IntelliFactory.WebSharper.Html.Implementation.Tags;return __1.NewTag("li",__2);});__142=function(trs){return IntelliFactory.Home.FSharp.WebControls.Client.Table.NormalTable({$:0},trs);};New2=function(){return IntelliFactory.WebSharper.JQueryUI.Tabs.New2;};Tabs=function(){return IntelliFactory.WebSharper.JQueryUI.Tabs;};JQueryUI=function(){return IntelliFactory.WebSharper.JQueryUI;};__184=function(divs){var _,__1;__1=IntelliFactory.WebSharper.Runtime.NewUnion(IntelliFactory.WebSharper.Core["FSharpList`1"],0);_=IntelliFactory.WebSharper.Html.Implementation.Tags;return IntelliFactory.WebSharper.Html.Operators.op_MinusLess(_.Div(__1),divs);};Filter=function(){return IntelliFactory.WebSharper.Core.SeqModule.Filter;};__186=function(url){var _;_=window;return _.location=url;};__187=function(arg0){return{$:0,$0:arg0};};Padding_2=function(){return IntelliFactory.Home.FSharp.Ui.Render.StandardConfiguration.Padding;};BackgroundColor=function(){return IntelliFactory.Home.FSharp.Ui.Render.StandardConfiguration.BackgroundColor;};BorderColor=function(){return IntelliFactory.Home.FSharp.Ui.Render.StandardConfiguration.BorderColor;};CssClass=function(){return IntelliFactory.Home.FSharp.Ui.Render.StandardConfiguration.CssClass;};Style=function(){return IntelliFactory.Home.FSharp.Ui.Render.StandardConfiguration.Style;};__188=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithSubmitAndResetButtons(formlet);};(function(){return IntelliFactory.WebSharper.Formlet.Enhance.WithSubmitAndResetButtons;});FormWithResponse=function(){return IntelliFactory.Home.FSharp.Ui.Render.FormWithResponse;};op_LessMultiplyGreater=function(){return IntelliFactory.WebSharper.Formlet.Data.op_LessMultiplyGreater;};(function(){return IntelliFactory.WebSharper.Formlet.Data;});Return=function(){return IntelliFactory.WebSharper.Formlet.Formlet.Return;};Input=function(){return IntelliFactory.WebSharper.Formlet.Controls.Input;};(function(){return IntelliFactory.WebSharper.Formlet.Controls;});__189=function(arg10){var _;_=IntelliFactory.WebSharper.Formlet.Data.Validator;return _.IsNotEmpty("",arg10);};Validator=function(){return IntelliFactory.WebSharper.Formlet.Data.Validator;};__190=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithValidationIcon(formlet);};(function(){return IntelliFactory.WebSharper.Formlet.Enhance.WithValidationIcon;});__191=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Name","Add your name",formlet);};WithLabelAndInfo=function(){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo;};Select=function(){return IntelliFactory.WebSharper.Formlet.Controls.Select;};__192=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Email","Add valid email address",formlet);};TextArea=function(){return IntelliFactory.WebSharper.Formlet.Controls.TextArea;};__193=function(_arg1){var _,__1,__2,__3,__4,__5,__6,msgs;if(_arg1.$==1){msgs=_arg1.$0;_=function(arg0){return{$:1,$0:arg0};};__6=_(msgs);}else{__1=IntelliFactory.WebSharper.Html.Implementation.Tags;__3=IntelliFactory.WebSharper.Core.ListModule.OfArray([__1.text("Thanks, you are now signed up!")]);__2=IntelliFactory.WebSharper.Html.Implementation.Tags;__5=__2.Div(__3);__4=function(arg0){return{$:0,$0:arg0};};__6=__4(__5);}return __6;};countries=function(){return IntelliFactory.Home.FSharp.WebControls.ContactUsInternals.Client.countries;};Zip=function(){return IntelliFactory.WebSharper.Core.ArrayModule.Zip;};topics=function(){return IntelliFactory.Home.FSharp.WebControls.ContactUsInternals.Client.topics;};WithTextLabel=function(){return IntelliFactory.WebSharper.Formlet.Enhance.WithTextLabel;};__198=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithTextLabel("Email",formlet);};__199=function(formlet){var inputRecord;inputRecord=IntelliFactory.WebSharper.Formlet.Layout.LabelConfiguration.get_Default();return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelConfiguration({Align:{$:1},VerticalAlign:inputRecord.VerticalAlign,Placement:inputRecord.Placement},formlet);};(function(){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelConfiguration;});(function(){return IntelliFactory.WebSharper.Formlet.Layout.LabelConfiguration.get_Default;});(function(){return IntelliFactory.WebSharper.Formlet.Layout.LabelConfiguration;});(function(){return IntelliFactory.WebSharper.Formlet.Layout;});WithLegend=function(){return IntelliFactory.WebSharper.Formlet.Enhance.WithLegend;};Header=function(){return IntelliFactory.Home.FSharp.Ui.Render.SignupConfiguration.Header;};(function(){return IntelliFactory.Home.FSharp.Ui.Render.SignupConfiguration;});Padding_3=function(){return IntelliFactory.Home.FSharp.Ui.Render.SignupConfiguration.Padding;};BackgroundColor_1=function(){return IntelliFactory.Home.FSharp.Ui.Render.SignupConfiguration.BackgroundColor;};BorderColor_1=function(){return IntelliFactory.Home.FSharp.Ui.Render.SignupConfiguration.BorderColor;};CssClass_1=function(){return IntelliFactory.Home.FSharp.Ui.Render.SignupConfiguration.CssClass;};Style_1=function(){return IntelliFactory.Home.FSharp.Ui.Render.SignupConfiguration.Style;};SubmitNewsLetterForm=function(){return IntelliFactory.Home.FSharp.WebControls.NewsLetterInternals.Client.SubmitNewsLetterForm;};__237=function(x){return x;};__243=function(list){return IntelliFactory.WebSharper.Core.ListModule.OfSeq(IntelliFactory.WebSharper.Core.SeqModule.Map(function(course){return[course.CourseTitle,[course.CourseId,course.CourseTitle]];},list));};(function(course){return[course.CourseTitle,[course.CourseId,course.CourseTitle]];});__244=function(x){return IntelliFactory.WebSharper.Runtime.NewUnion(IntelliFactory.WebSharper.Core["FSharpList`1"],1,["Select",[-1,"N/A"]],x);};__245=function(arg20){var _;_=IntelliFactory.WebSharper.Formlet.Data.Validator;return _.Is(IntelliFactory.WebSharper.Runtime.Tupled(function(tupledArg){return tupledArg[0]>0;}),"Select the IntelliFactory course you are interested in",arg20);};(function(tupledArg){return tupledArg[0]>0;});__246=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("IntelliFactory Course","Add your desired course",formlet);};__247=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Full Name","Add your full name",formlet);};__248=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Email Address","Add a valid email address",formlet);};__249=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Telephone","Add your phone number",formlet);};__250=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Company Name","Add the name of your company or organization",formlet);};__251=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Number of Attendees","Add the number of attendees you wish to make a booking for",formlet);};__252=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Street","Add street",formlet);};__253=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("City","Add city",formlet);};__254=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Country","Add country",formlet);};__255=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Zip Code","Add zip code",formlet);};Calendar=function(){return IntelliFactory.WebSharper.Formlet.Yui.Controls.Calendar;};(function(){return IntelliFactory.WebSharper.Formlet.Yui.Controls;});(function(){return IntelliFactory.WebSharper.Formlet.Yui;});__256=function(formlet){return IntelliFactory.WebSharper.Formlet.Formlet.MapElement(function(el){var _,__1,__2;_=IntelliFactory.WebSharper.Html.Implementation.Attr;__2=IntelliFactory.WebSharper.Core.ListModule.OfArray([_.NewAttr("style","padding:5px")]);__1=IntelliFactory.WebSharper.Html.Implementation.Tags;return IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__1.Div(__2),IntelliFactory.WebSharper.Core.ListModule.OfArray([el]));},formlet);};(function(){return IntelliFactory.WebSharper.Formlet.Formlet.MapElement;});(function(el){var _,__1,__2;_=IntelliFactory.WebSharper.Html.Implementation.Attr;__2=IntelliFactory.WebSharper.Core.ListModule.OfArray([_.NewAttr("style","padding:5px")]);__1=IntelliFactory.WebSharper.Html.Implementation.Tags;return IntelliFactory.WebSharper.Html.Operators.op_MinusLess(__1.Div(__2),IntelliFactory.WebSharper.Core.ListModule.OfArray([el]));});__257=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("Date","Select your desired training date (dates are not guaranteed until confirmed)",formlet);};Checkbox=function(){return IntelliFactory.WebSharper.Formlet.Controls.Checkbox;};__258=function(arg10){var _;_=IntelliFactory.WebSharper.Formlet.Data.Validator;return _.IsTrue("You must accept the terms of the onsite training booking below",arg10);};__259=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithLabelAndInfo("I agree to the terms","Check box if you have read, understood, and accepted the terms of the booking as detailed below.",formlet);};__260=function(){};__261=function(inp){var __7,__8;__8=IntelliFactory.WebSharper.Remoting.Client.Call(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingBookingInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"SubmitOnSiteTB\",\"methodSignature\":[1,[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingBookingInternals+Server+OnSiteTBInfo\"],[0]]},\"methodArguments\":[0]}]",[inp]);__7=function(_arg1){var _,__1,__2,__3,__4,__5,__6,msgs;if(_arg1.$==1){msgs=_arg1.$0;_=function(arg0){return{$:1,$0:arg0};};__6=_(msgs);}else{__1=IntelliFactory.WebSharper.Html.Implementation.Tags;__3=IntelliFactory.WebSharper.Core.ListModule.OfArray([__1.text("Thanks, we will contact you soon!")]);__2=IntelliFactory.WebSharper.Html.Implementation.Tags;__5=__2.Div(__3);__4=function(arg0){return{$:0,$0:arg0};};__6=__4(__5);}return __6;};return __7(__8);};(function(_arg1){var _,__1,__2,__3,__4,__5,__6,msgs;if(_arg1.$==1){msgs=_arg1.$0;_=function(arg0){return{$:1,$0:arg0};};__6=_(msgs);}else{__1=IntelliFactory.WebSharper.Html.Implementation.Tags;__3=IntelliFactory.WebSharper.Core.ListModule.OfArray([__1.text("Thanks, we will contact you soon!")]);__2=IntelliFactory.WebSharper.Html.Implementation.Tags;__5=__2.Div(__3);__4=function(arg0){return{$:0,$0:arg0};};__6=__4(__5);}return __6;});get_Default_2=function(){return IntelliFactory.WebSharper.Formlet.Enhance.FormButtonConfiguration.get_Default;};(function(){return IntelliFactory.WebSharper.Formlet.Enhance.FormButtonConfiguration;});__262=function(x){var _;_=IntelliFactory.WebSharper.Html.Implementation.Tags;return _.text(x);};Forms=function(){return IntelliFactory.WebSharper.CommonControls.Enhance.LoginInternals.Client.Forms;};(function(){return IntelliFactory.WebSharper.CommonControls.Enhance.LoginInternals.Client;});(function(){return IntelliFactory.WebSharper.CommonControls.Enhance.LoginInternals;});__283=function(value){return value.toString();};RadioButtonGroup=function(){return IntelliFactory.WebSharper.Formlet.Controls.RadioButtonGroup;};__284=function(arg10){var _;_=IntelliFactory.WebSharper.Formlet.Data.Validator;return _.IsNotEmpty("Please enter a valid name",arg10);};__285=function(formlet){return IntelliFactory.WebSharper.Formlet.Enhance.WithFormContainer(formlet);};(function(){return IntelliFactory.WebSharper.Formlet.Enhance.WithFormContainer;});TogglePanel=function(){return IntelliFactory.Home.FSharp.WebControls.TogglePanel;};GroupBy=function(){return IntelliFactory.WebSharper.Core.SeqModule.GroupBy;};__286=function(source){return IntelliFactory.WebSharper.Core.ListModule.OfSeq(source);};Compare=function(){return IntelliFactory.WebSharper.Core.Comparison.Compare;};(function(){return IntelliFactory.WebSharper.Core.Comparison;});SortInPlaceWith=function(){return IntelliFactory.WebSharper.Core.ArrayModule.SortInPlaceWith;};CenterButton=function(){return IntelliFactory.Home.FSharp.WebControls.Client.Button.CenterButton;};Internals_1=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Internals;};store=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Internals.store;};__287=function(arg00){var _,__1;__1=IntelliFactory.WebSharper.Control.Concurrent.FromContinuations(function(x){return function(y){return arg00([x,y,function(value){return void value;}]);};});_=function(x){return x;};return _(__1);};(function(){return IntelliFactory.WebSharper.Control.Concurrent.FromContinuations;});parse=function(){return JSON.parse;};SetItemsInCart=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Internals.SetItemsInCart;};MapModule=function(){return IntelliFactory.WebSharper.Collections.MapModule;};(function(){return IntelliFactory.WebSharper.Collections;});stringify=function(){return JSON.stringify;};CartEvents=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.CartEvents;};WebControls_1=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.WebControls;};GetItemsInCart=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Internals.GetItemsInCart;};__288=function(table){var _;_=IntelliFactory.WebSharper.Collections.MapModule.ToSeq(table);return IntelliFactory.WebSharper.Core.ListModule.OfSeq(_);};(function(){return IntelliFactory.WebSharper.Collections.MapModule.ToSeq;});__289=function(source){return IntelliFactory.WebSharper.Core.SeqModule.GroupBy(IntelliFactory.WebSharper.Runtime.Tupled(function(tupledArg){var _arg4,c,co,pm;_arg4=tupledArg[2];pm=_arg4[1];co=_arg4[2];c=_arg4[0];return[co,c,pm];}),source);};(function(tupledArg){var _arg4,c,co,pm;_arg4=tupledArg[2];pm=_arg4[1];co=_arg4[2];c=_arg4[0];return[co,c,pm];});__290=function(tupledArg){return tupledArg[5];};__291=function(x){var _;_=IntelliFactory.WebSharper.Html.Implementation.Attr;return _.NewAttr("class",x);};__292=function(arg00){var _,__1;_=IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.CartEvents.ShoppingCartEvents;__1=_.event;return __1.Trigger(arg00);};(function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.CartEvents.ShoppingCartEvents;});Button_2=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.WebControls.Button;};__293=function(arg0){return{$:2,$0:arg0};};__294=function(arg0){return{$:3,$0:arg0};};alert=function(){return window.alert;};__295=function(items){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Client.SendPaymentOnClient(items);};(function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Client.SendPaymentOnClient;});__296=function(arg10){var _;_=IntelliFactory.WebSharper.Html.EventsPervasives.Events;return _.OnClick(function(){return function(){var __3,__4;__4={$:5};__3=function(arg00){var __1,__2;__1=IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.CartEvents.ShoppingCartEvents;__2=__1.event;return __2.Trigger(arg00);};return __3(__4);};},arg10);};(function(){return function(){var __2,__3;__3={$:5};__2=function(arg00){var _,__1;_=IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.CartEvents.ShoppingCartEvents;__1=_.event;return __1.Trigger(arg00);};return __2(__3);};});(function(){var __2,__3;__3={$:5};__2=function(arg00){var _,__1;_=IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.CartEvents.ShoppingCartEvents;__1=_.event;return __1.Trigger(arg00);};return __2(__3);});event=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.CartEvents.ShoppingCartEvents.event;};NextCounter=function(){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Internals.NextCounter;};__297=function(items){var _,__1,__2;_=function(table){return IntelliFactory.WebSharper.Core.SeqModule.ToArray(IntelliFactory.WebSharper.Collections.MapModule.ToSeq(table));};__2=_(items);__1=function(items_1){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Internals.SetItemsInCart(items_1);};return __1(__2);};(function(table){return IntelliFactory.WebSharper.Core.SeqModule.ToArray(IntelliFactory.WebSharper.Collections.MapModule.ToSeq(table));});(function(){return IntelliFactory.WebSharper.Core.SeqModule.ToArray;});(function(items){return IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals.Internals.SetItemsInCart(items);});FSharpMap_2=function(){return IntelliFactory.WebSharper.Collections["FSharpMap`2"];};fromSeq=function(){return IntelliFactory.WebSharper.Collections["FSharpMap`2"].fromSeq;};Of=function(){return IntelliFactory.WebSharper.Control.Observer.Of;};(function(){return IntelliFactory.WebSharper.Control.Observer;});(PaypalPayment()).Payment=(Class())(null,null,{ToHtmlElement:function(){var _this=this;var __103,__104,__105,__106,__107,__108,__109,__110,__111,__112,__113,__114,__115,__116,__117,__118,__119,__120,__121,__122,__123,__124,__125,header,items;__104=_this.Items;__103=function(list){return(OfSeq())((MapIndexed())(function(izero){return function(item){var _,__1,__10,__100,__101,__102,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__61,__62,__63,__64,__65,__66,__67,__68,__69,__7,__70,__71,__72,__73,__74,__75,__76,__77,__78,__79,__8,__80,__81,__82,__83,__84,__85,__86,__87,__88,__89,__9,__90,__91,__92,__93,__94,__95,__96,__97,__98,__99,i;i=izero+1;_=Attr();__1=Attr();__2=Attr();__4=(OfArray())([_.NewAttr("type","hidden"),__1.NewAttr("name","cmd"),__2.NewAttr("value","_cart")]);__3=Tags();__5=Attr();__6=Attr();__7=Attr();__9=(OfArray())([__5.NewAttr("type","hidden"),__6.NewAttr("name","upload"),__7.NewAttr("value","1")]);__8=Tags();__10=Attr();__12="item_name_"+i.toString();__11=Attr();__14=item.ItemName;__13=Attr();__16=(OfArray())([__10.NewAttr("type","hidden"),__11.NewAttr("name",__12),__13.NewAttr("value",__14)]);__15=Tags();__17=Attr();__19="item_number_"+i.toString();__18=Attr();__21=item.ItemNumber;__20=Attr();__23=(OfArray())([__17.NewAttr("type","hidden"),__18.NewAttr("name",__19),__20.NewAttr("value",__21)]);__22=Tags();__24=Attr();__26="amount_"+i.toString();__25=Attr();__27=item.PricePerItem;__29=__27.toString();__28=Attr();__31=(OfArray())([__24.NewAttr("type","hidden"),__25.NewAttr("name",__26),__28.NewAttr("value",__29)]);__30=Tags();__32=Attr();__34="quantity_"+i.toString();__33=Attr();__35=item.Quantity;__37=__35.toString();__36=Attr();__39=(OfArray())([__32.NewAttr("type","hidden"),__33.NewAttr("name",__34),__36.NewAttr("value",__37)]);__38=Tags();__40=Attr();__42="shipping_"+i.toString();__41=Attr();if(item.ShippingPerItemFirst.$==0){__44="0";}else{__43=item.ShippingPerItemFirst.$0;__44=__43.toString();}__46=__44;__45=Attr();__48=(OfArray())([__40.NewAttr("type","hidden"),__41.NewAttr("name",__42),__45.NewAttr("value",__46)]);__47=Tags();__49=Attr();__51="shipping2_"+i.toString();__50=Attr();if(item.ShippingPerItemRest.$==0){__53="0";}else{__52=item.ShippingPerItemRest.$0;__53=__52.toString();}__55=__53;__54=Attr();__57=(OfArray())([__49.NewAttr("type","hidden"),__50.NewAttr("name",__51),__54.NewAttr("value",__55)]);__56=Tags();__101=(OfArray())([__3.NewTag("input",__4),__8.NewTag("input",__9),__15.NewTag("input",__16),__22.NewTag("input",__23),__30.NewTag("input",__31),__38.NewTag("input",__39),__47.NewTag("input",__48),__56.NewTag("input",__57)]);if(item.Handling.$==0){__66=(NewUnion())(FSharpList_1(),0);}else{__58=Attr();__60="handling_"+i.toString();__59=Attr();__61=item.Handling.$0;__63=__61.toString();__62=Attr();__65=(OfArray())([__58.NewAttr("type","hidden"),__59.NewAttr("name",__60),__62.NewAttr("value",__63)]);__64=Tags();__66=(OfArray())([__64.NewTag("input",__65)]);}__99=__66;if(item.Option1.$==0){__81=(NewUnion())(FSharpList_1(),0);}else{__67=Attr();__69="on0_"+i.toString();__68=Attr();__71=item.Option1.$0[0];__70=Attr();__73=(OfArray())([__67.NewAttr("type","hidden"),__68.NewAttr("name",__69),__70.NewAttr("value",__71)]);__72=Tags();__74=Attr();__76="os0_"+i.toString();__75=Attr();__78=item.Option1.$0[1];__77=Attr();__80=(OfArray())([__74.NewAttr("type","hidden"),__75.NewAttr("name",__76),__77.NewAttr("value",__78)]);__79=Tags();__81=(OfArray())([__72.NewTag("input",__73),__79.NewTag("input",__80)]);}__97=__81;if(item.Option2.$==0){__96=(NewUnion())(FSharpList_1(),0);}else{__82=Attr();__84="on1_"+i.toString();__83=Attr();__86=item.Option2.$0[0];__85=Attr();__88=(OfArray())([__82.NewAttr("type","hidden"),__83.NewAttr("name",__84),__85.NewAttr("value",__86)]);__87=Tags();__89=Attr();__91="os1_"+i.toString();__90=Attr();__93=item.Option2.$0[1];__92=Attr();__95=(OfArray())([__89.NewAttr("type","hidden"),__90.NewAttr("name",__91),__92.NewAttr("value",__93)]);__94=Tags();__96=(OfArray())([__87.NewTag("input",__88),__94.NewTag("input",__95)]);}__98=__96;__100=(OfSeq())((Append())(__97,__98));__102=(OfSeq())((Append())(__99,__100));return(OfSeq())((Append())(__101,__102));};},list));};__106=__103(__104);__105=function(lists){return(OfSeq())((Concat())(lists));};items=__105(__106);__107=Attr();__108=Attr();__110=_this.RecipientEmail;__109=Attr();__112=(OfArray())([__107.NewAttr("type","hidden"),__108.NewAttr("name","business"),__109.NewAttr("value",__110)]);__111=Tags();__113=Attr();__114=Attr();__115=_this.CurrencyCode;__117=__115.toString();__116=Attr();__119=(OfArray())([__113.NewAttr("type","hidden"),__114.NewAttr("name","currency_code"),__116.NewAttr("value",__117)]);__118=Tags();header=(OfArray())([__111.NewTag("input",__112),__118.NewTag("input",__119)]);__120=Attr();__121=Attr();__122=Attr();__123=Attr();__125=(OfArray())([__120.NewAttr("id","PaypalSubmitForm"),__121.NewAttr("name","PaypalSubmitForm"),__122.NewAttr("action","https://www.paypal.com/cgi-bin/webscr"),__123.NewAttr("method","POST")]);__124=Tags();return(op_MinusLess())(__124.NewTag("form",__125),(OfSeq())((Append())(header,items)));}});(PaypalPayment()).Currency=(Class())(null,null,{ToString:function(){var _this=this;var _,__1,__2;if(_this.$==1){__2="EUR";}else{if(_this.$==2){__1="GBP";}else{if(_this.$==3){_="CAD";}else{_=_this.$==4?"JPY":"USD";}__1=_;}__2=__1;}return __2;}});(WebControls()).LargeShoppingCart=(Class())(null,null,{get_Body:function(){return(Client()).LargeShoppingCart();}});(WebControls()).ClearCart=(Class())(null,null,{get_Body:function(){return(Client()).ClearCart();}});(WebControls()).ItemsToBuy=(Class())(null,null,{get_Body:function(){return(Client()).ItemsToBuy();}});(WebControls()).ShoppingCart=(Class())(null,null,{get_Body:function(){return(Client()).ShoppingCart();}});(WebControls()).ExtensionMatrix=(Class())(null,null,{get_Body:function(){var __10,__11,__12,__18,__19,elementOfSupport;elementOfSupport=function(_arg1){var _,__1,__2,__3,__4,__5,__6,__7,__8,__9;if(_arg1.$==1){_=Tags();__2=(OfArray())([_.text("Partial")]);__1=Tags();__9=__1.NewTag("td",__2);}else{if(_arg1.$==2){__3=Tags();__5=(OfArray())([__3.text("X")]);__4=Tags();__8=__4.NewTag("td",__5);}else{__7=(NewUnion())(FSharpList_1(),0);__6=Tags();__8=__6.NewTag("td",__7);}__9=__8;}return __9;};__11=(ProductSpecification()).WebSharperExtensionsMatrix;__10=function(list){return(OfSeq())((Map())((Tupled())(function(tupledArg){var _,__1,__2,__3,__4,__5,comm,name,prof,std;name=tupledArg[0];std=tupledArg[1];comm=tupledArg[2];prof=tupledArg[3];_=Attr();__2=(OfArray())([_.NewAttr("class","left")]);__1=Tags();__3=Tags();__5=(OfArray())([(op_MinusLess())(__1.NewTag("td",__2),(OfArray())([__3.text(name)])),elementOfSupport(std),elementOfSupport(comm),elementOfSupport(prof)]);__4=Tags();return __4.NewTag("tr",__5);}),list));};__12=__10(__11);__19=__126(__12);__18=function(trs){var _,__1,__13,__14,__15,__16,__17,__2,__3,__4,__5,__6,__7,__8,__9;_=Tags();__2=(OfArray())([_.text("Extension")]);__1=Tags();__3=Tags();__5=(OfArray())([__3.text("Standard")]);__4=Tags();__6=Tags();__8=(OfArray())([__6.text("Community")]);__7=Tags();__9=Tags();__14=(OfArray())([__9.text("Professional")]);__13=Tags();__16=(OfArray())([__1.NewTag("td",__2),__4.NewTag("td",__5),__7.NewTag("td",__8),__13.NewTag("td",__14)]);__15=Tags();__17=__15.NewTag("tr",__16);return(NormalMiddleTable())(__127(__17),trs);};return __18(__19);}});(WebControls()).ProductsToBuyMatrix=(Class())(null,null,{get_Body:function(){return(Client_1()).Main();}});(WebControls()).TrainingMaterial=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1;__1=_this.CourseNumber;_=function(courseNumber){return(Client_2()).VideosForCourseNumber(courseNumber);};return _(__1);}});(WebControls()).BugList=(Class())(null,null,{get_Body:function(){return(Client_3()).Main();}});(WebControls()).PartnerProgramSignupForm=(Class())(null,null,{get_Body:function(){return(Client_4()).Main();}});(WebControls()).CourseInfo=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2;__1=_this.CourseId;_=function(courseId){return(Client2()).TrainingCourseInfo(courseId);};__2=_(__1);return __128(__2);}});(WebControls()).CourseListing=(Class())(null,null,{get_Body:function(){var _;_=(Client_5()).CourseListing();return __128(_);}});(WebControls()).CourseSummaries=(Class())(null,null,{get_Body:function(){var _;_=(Client_5()).CoursesSummaries();return __128(_);}});(WebControls()).UpcomingCourses=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2,__3,__4,__5,__6,__7,country,matchValue,matchValue_1,matchValue_2,onlyOnline;matchValue=_this.Country;if(matchValue===null){_={$:0};}else{_={$:1,$0:matchValue};}country=_;matchValue_1=_this.OnlyOnline;if(matchValue_1===null){__3=false;}else{__1=matchValue_1.toLowerCase();__2=__1.replace(/^\s+/,"");__3=__2.replace(/\s+$/,"")==="true";}onlyOnline=__3;matchValue_2=_this.Months;if(matchValue_2===null){__4=2;}else{__4=__129(matchValue_2);}__6=__4;__5=function(x){return(Client_5()).UpcomingCoursesWithinXMonths(country,onlyOnline,x);};__7=__5(__6);return __128(__7);}});(CommonControls()).Login=(Class())(null,null,{get_Body:function(){var conf;conf=StandardConfiguration();return(Enhance()).WithLoginForm(conf);}});(WebControls()).LicenseAgreementSignup=(Class())(null,null,{get_Body:function(){return(Client_6()).Main();}});(WebControls()).TestForm=(Class())(null,null,{get_Body:function(){return(Client_7()).TestForm();}});(WebControls()).OnSiteTrainingBooking=(Class())(null,null,{get_Body:function(){return(Client_7()).RenderOnSiteTBForm();}});(WebControls()).ScheduledTrainingBooking=(Class())(null,null,{get_Body:function(){var _this=this;return(Client_7()).RenderScheduledTBForm(_this.EventId);}});(WebControls()).UnsubscribeNewsletter=(Class())(null,null,{get_Body:function(){return(Client_8()).NewsletterUnsubscribe();}});(WebControls()).NewsLetterForm=(Class())(null,null,{get_Body:function(){return(Client_8()).NewsletterSignup();}});(WebControls()).AskQuestion=(Class())(null,null,{get_Body:function(){return(Client_9()).Main();}});(WebControls()).BugSubmit=(Class())(null,null,{get_Body:function(){return(Client_10()).Main();}});(WebControls()).ContactUsForm=(Class())(null,null,{get_Body:function(){return(Client_11()).Main();}});(WebControls()).ProductSignup=(Class())(null,null,{get_Body:function(){return(Client_12()).Main();}});(WebControls()).DownloadsForInfoPage=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2,matchValue;matchValue=_this.InfoPage;if(matchValue===null){_={$:0};}else{_={$:1,$0:matchValue};}__2=_;__1=function(ipOpt){return(Client_13()).DownloadsForInfoPage(ipOpt,{$:0});};return __1(__2);}});(WebControls()).DownloadsForProduct=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2,matchValue;matchValue=_this.Family;if(matchValue===null){_={$:0};}else{_={$:1,$0:matchValue};}__2=_;__1=function(fam){return(Client_13()).DownloadsForProduct(fam,{$:0});};return __1(__2);}});(WebControls()).Downloads=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2,matchValue;matchValue=_this.Family;if(matchValue===null){_={$:0};}else{_={$:1,$0:matchValue};}__2=_;__1=function(fam){return(Client_13()).AllDownloadsSimplePanel(fam,{$:0});};return __1(__2);}});(WebControls()).Button=(Class())(null,null,{get_Align:function(){var _this=this;return _this.align;},set_Align:function(x){var _this=this;return _this.align=x;},get_HRef:function(){var _this=this;return _this.href;},set_HRef:function(x){var _this=this;return _this.href=x;},get_Label:function(){var _this=this;return _this.label;},set_Label:function(x){var _this=this;return _this.label=x;},get_Target:function(){var _this=this;return _this.target;},set_Target:function(x){var _this=this;return _this.target=x;},get_Class:function(){var _this=this;return _this.cssclass;},set_Class:function(x){var _this=this;return _this.cssclass=x;},get_ClientOnClick:function(){var _this=this;return _this.onclick;},set_ClientOnClick:function(x){var _this=this;return _this.onclick=x;},get_Body:function(){var _this=this;var _;_=_this.get_HRef();return(Button())(_this.get_Align(),_this.get_Label(),(Core()).StringUtil.Replace(_,"~",""),_this.cssclass,_this.target,_this.onclick);}});(WebControls()).WSPSlideshow=(Class())(null,null,{get_Body:function(){return(WSPSlideshowInternal()).Main();}});(WebControls()).SliderControl=(Class())(null,null,{get_Body:function(){var NextButton,PrevButton,_,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__3,__4,__5,__6,__7,__8,__9,inputRecord,sc;inputRecord=(get_Default())();_=Tags();__2=(OfArray())([_.text("P")]);__1=Tags();__3=__1.NewTag("button",__2);PrevButton=__127(__3);__4=Tags();__6=(OfArray())([__4.text("N")]);__5=Tags();__7=__5.NewTag("button",__6);NextButton=__127(__7);sc={Width:500,Height:inputRecord.Height,NextButton:NextButton,PrevButton:PrevButton,ShowLinks:false};__8=Tags();__10=(OfArray())([__8.text("First page")]);__9=Tags();__11=Tags();__13=(OfArray())([__11.text("First page")]);__12=Tags();__14=Tags();__16=(OfArray())([__14.text("First page")]);__15=Tags();__17=Tags();__19=(OfArray())([__17.text("First page")]);__18=Tags();__21=(OfArray())([["P1",__9.NewTag("h1",__10)],["P2",__12.NewTag("h1",__13)],["P3",__15.NewTag("h1",__16)],["P4",__18.NewTag("h1",__19)]]);__20=function(pages){return(Slider())(sc,pages);};return __20(__21);}});(WebControls()).TheIntelliFactoryAdvantageWidget=(Class())(null,null,{get_Body:function(){return(Widgets()).TheIntelliFactoryAdvantage();}});(WebControls()).ResarchAndDevWidget=(Class())(null,null,{get_Body:function(){return(Widgets()).ResearchAndDev();}});(WebControls()).ContactInfoWidget=(Class())(null,null,{get_Body:function(){return(Widgets()).ContactInfo();}});(WebControls()).FancyBoxControl=(Class())(null,null,{get_ImageUrl:function(){var _this=this;return _this.imageUrl;},set_ImageUrl:function(x){var _this=this;return _this.imageUrl=x;},get_ThumbUrl:function(){var _this=this;return _this.thumbUrl;},set_ThumbUrl:function(x){var _this=this;return _this.thumbUrl=x;},get_LinkClass:function(){var _this=this;return _this.linkClass;},set_LinkClass:function(x){var _this=this;return _this.linkClass=x;},get_ImageWidth:function(){var _this=this;return _this.imageWidth;},set_ImageWidth:function(x){var _this=this;return _this.imageWidth=x;},get_ImageHeight:function(){var _this=this;return _this.imageHeight;},set_ImageHeight:function(x){var _this=this;return _this.imageHeight=x;},get_Caption:function(){var _this=this;return _this.caption;},set_Caption:function(x){var _this=this;return _this.caption=x;},get_Body:function(){var _this=this;var _,__1,__10,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__3,__4,__5,__6,__7,__8,__9,h,img,link,objectArg,w;if(_this.get_ImageWidth()>0){_=_this.get_ImageWidth();__2=_.toString();__1=Attr();__3=(OfArray())([__1.NewAttr("width",__2)]);}else{__3=(NewUnion())(FSharpList_1(),0);}w=__3;if(_this.get_ImageHeight()>0){__4=_this.get_ImageHeight();__6=__4.toString();__5=Attr();__7=(OfArray())([__5.NewAttr("height",__6)]);}else{__7=(NewUnion())(FSharpList_1(),0);}h=__7;__9=_this.get_ImageUrl();__8=Attr();__10=(OfArray())([(OfArray())([__8.NewAttr("src",__9)]),h,w]);__13=(OfSeq())((Concat())(__10));__12=function(x){var __11;__11=Tags();return __11.NewTag("img",x);};img=__12(__13);__15=_this.get_ImageUrl();__14=Attr();__16=Attr();__18=(OfArray())([__14.NewAttr("href",__15),__16.NewAttr("class","simple")]);__17=Tags();link=(op_MinusLess())(__17.NewTag("a",__18),(OfArray())([img]));if(_this.get_LinkClass()!==null){__19=_this.get_LinkClass();objectArg=link["HtmlProvider@22"];__20=(function(arg00){return function(arg10){return objectArg.AddClass(arg00,arg10);};}(link.Body))(__19);}__20;if(_this.get_Caption()!==null){__21=_this.get_Caption();__22=link.set_Item("title",__21.toString());}__22;__23=link.Body;__24=jQuery(__23);__24.fancybox();return link;}});(WebControls()).RpcViewer=(Class())(null,null,{get_Body:function(){var _,__1,__2,__3,__4;_=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.RpcModule\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"Incr\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.Int32\"],[0]]},\"methodArguments\":[0]}]",[1]);__2=_.toString();__1=Tags();__4=(OfArray())([__1.text(__2)]);__3=Tags();return __3.Div(__4);}});(News()).LatestWebSharperNewsArticles=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2,__3,matchValue,matchValue_1,number,withinDays;matchValue=_this.Number;if(matchValue===null){_=5;}else{_=__129(matchValue);}number=_;matchValue_1=_this.WithinDays;if(matchValue_1===null){__2={$:0};}else{__1=__129(matchValue_1);__2=__127(__1);}withinDays=__2;__3=(LatestNewsArticles())(false,number,withinDays);return __128(__3);}});(News()).LatestNewsArticles=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2,__3,matchValue,matchValue_1,number,withinDays;matchValue=_this.Number;if(matchValue===null){_=5;}else{_=__129(matchValue);}number=_;matchValue_1=_this.WithinDays;if(matchValue_1===null){__2={$:0};}else{__1=__129(matchValue_1);__2=__127(__1);}withinDays=__2;__3=(LatestNewsArticles())(true,number,withinDays);return __128(__3);}});(News()).LatestArticles=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2,__3,matchValue;matchValue=_this.Number;if(matchValue===null){_=5;}else{_=__129(matchValue);}__2=_;__1=function(n){return(Client_14()).LatestBlogArticles(n);};__3=__1(__2);return __128(__3);}});(News()).News=(Class())(null,null,{get_Body:function(){var _this=this;var _,__1,__2,__3,matchValue;matchValue=_this.Label;if(matchValue===null){_={$:0};}else{_={$:1,$0:matchValue};}__2=_;__1=function(label){return(Client_14()).CompanyNewsByLabel(_this.Category,label);};__3=__1(__2);return __128(__3);}});(SliderConfiguration()).get_Default=function(){return{Width:1000,Height:600,NextButton:{$:0},PrevButton:{$:0},ShowLinks:true};};(Table()).AlternatingColor=function(trs){var __1;__1=function(list){return(OfSeq())((MapIndexed())(function(i){return function(tr){var _,objectArg;if(i%2===1){objectArg=tr["HtmlProvider@22"];_=(function(arg00){return function(arg10){return objectArg.AddClass(arg00,arg10);};}(tr.Body))("alt");}_;return tr;};},list));};return __1(trs);};(Table()).NormalMiddleTable=function(headtr,trs){var _,__1,__2,__3,__4,__5,__6,__7;_=Attr();__2=(OfArray())([_.NewAttr("class","normal middle")]);__1=Tags();if(headtr.$==1){__4=(OfArray())([headtr.$0]);__3=Tags();__5=Tags();__7=(OfArray())([__3.NewTag("thead",__4),__5.NewTag("tbody",trs)]);}else{__6=Tags();__7=(OfArray())([__6.NewTag("tbody",trs)]);}return(op_MinusLess())(__1.NewTag("table",__2),__7);};(Table()).NormalTable=function(headtr,trs){var _,__1,__2,__3,__4,__5,__6,__7;_=Attr();__2=(OfArray())([_.NewAttr("class","normal")]);__1=Tags();if(headtr.$==1){__4=(OfArray())([headtr.$0]);__3=Tags();__5=Tags();__7=(OfArray())([__3.NewTag("thead",__4),__5.NewTag("tbody",trs)]);}else{__6=Tags();__7=(OfArray())([__6.NewTag("tbody",trs)]);}return(op_MinusLess())(__1.NewTag("table",__2),__7);};(Render()).FormWithResponse=function(conf,respFun,form){var _,__1,__2,__3;_=function(formlet){return(WithCustomFormContainer())(conf,formlet);};__2=_(form);__1=function(formlet){return(Render()).FormWithResponseElement(respFun,formlet);};__3=__1(__2);return __130(__3);};(Render()).FormWithResponseElement=function(f,formlet_1){var builder_;builder_=Do();return builder_.Delay(function(){var _,__1,__2;_=function(formlet){return(Render()).GetElement(formlet);};__2=_(formlet_1);__1=function(formlet){return(Formlet()).WithNotificationChannel(formlet);};return builder_.Bind(__1(__2),(Tupled())(function(_arg207){var imgBox,input,panel,procRes,reset;reset=_arg207[1];panel=_arg207[0][1];input=_arg207[0][0];imgBox=(Render()).ImageBox(panel);panel.AppendI(imgBox);procRes=function(res){var __3,elem_1;__3=imgBox["HtmlProvider@22"];__3.Remove(imgBox.Body);elem_1=function(){var __7,__8,__9,elem,msgs;if(res.$==1){msgs=res.$0;__7=function(list){return(OfSeq())((Map())(function(m){var __4,__5,__6;__4=Tags();__6=(OfArray())([__4.text(m)]);__5=Tags();return __5.NewTag("li",__6);},list));};__8=__7(msgs);__9=__131(__8);}else{elem=res.$0;reset(undefined);__9=elem;}return __9;};return(OfElement())(elem_1);};return builder_.Bind(procRes(f(input)),function(_arg206){return builder_.Return(_arg206);});}));});};(Render()).GetElement=function(formlet_1){var _,__1,__2,__3,__4,el;__1=(NewUnion())(FSharpList_1(),0);_=Tags();el=_.Div(__1);__2=function(formlet){return(Formlet()).MapBody(function(body){el.AppendI(body.Element);return{Element:el,Label:body.Label};},formlet);};__4=__2(formlet_1);__3=function(formlet){return(Formlet()).Map(function(v){return[v,el];},formlet);};return __3(__4);};(Render()).ImageBox=function(){var _,__1,__2,__3,__4,__5,__6;_=Attr();__2=(OfArray())([_.NewAttr("style","padding:10px;border:none")]);__1=Tags();__3=Attr();__4=Attr();__6=(OfArray())([__3.NewAttr("src","http://us.i1.yimg.com/us.yimg.com/i/us/per/gr/gp/rel_interstitial_loading.gif"),__4.NewAttr("alt","Loading...")]);__5=Tags();return(op_MinusLess())(__1.Div(__2),(OfArray())([__5.NewTag("img",__6)]));};inputRecord_73_3=(get_Default_1())();Top={$:1,$0:10};Bottom={$:1,$0:10};Padding={Left:{$:1,$0:20},Right:{$:1,$0:20},Top:Top,Bottom:Bottom};(Render()).SignupConfiguration={Header:inputRecord_73_3.Header,Padding:Padding,Description:inputRecord_73_3.Description,BackgroundColor:inputRecord_73_3.BackgroundColor,BorderColor:inputRecord_73_3.BorderColor,CssClass:inputRecord_73_3.CssClass,Style:inputRecord_73_3.Style};inputRecord_85_2=(get_Default_1())();Top_1={$:1,$0:20};Bottom_1={$:1,$0:20};Padding_1={Left:{$:1,$0:40},Right:{$:1,$0:80},Top:Top_1,Bottom:Bottom_1};(Render()).StandardConfiguration={Header:inputRecord_85_2.Header,Padding:Padding_1,Description:inputRecord_85_2.Description,BackgroundColor:inputRecord_85_2.BackgroundColor,BorderColor:inputRecord_85_2.BorderColor,CssClass:inputRecord_85_2.CssClass,Style:inputRecord_85_2.Style};(Ui()).LoadingPane=function(a){var _,__1,__3,__4;__1=(NewUnion())(FSharpList_1(),0);_=Tags();__4=_.Div(__1);__3=function(w){return(OnAfterRender())(function(e){var __2,builder_;builder_=Do_1();__2=builder_.Delay(function(){return builder_.Bind(a,function(_arg205){e.AppendI(_arg205);_arg205.Render();return builder_.Return(undefined);});});return __132(__2);},w);};__3(__4);return __4;};(Utils()).InTable=function(rows){var __5,__6,__7,__8;__5=function(list_1){return(OfSeq())((Map())(function(cols){var __2,__3,__4;__2=function(list){return(OfSeq())((Map())(function(c){var _,__1;__1=(OfArray())([c]);_=Tags();return _.NewTag("td",__1);},list));};__4=__2(cols);__3=Tags();return __3.NewTag("tr",__4);},list_1));};__6=__5(rows);__8=__133(__6);__7=function(tb){var _,__1;__1=(OfArray())([tb]);_=Tags();return _.NewTag("table",__1);};return __7(__8);};(Internals()).FeedCategory.CompanyNews="News";(List()).take=function(n,a){return(loop())((NewUnion())(FSharpList_1(),0),n,a);};(List()).loop=function(acc,n,_arg1){var _,__1,head,tail;if(_arg1.$==1){tail=_arg1.$1;head=_arg1.$0;if(n>0){_=(loop())((NewUnion())(FSharpList_1(),1,head,acc),n-1,tail);}else{_=__134(acc);}__1=_;}else{__1=__134(acc);}return __1;};(Client_14()).LatestNewsArticles=function(isCompany,n,days){var builder_,formatArticle;formatArticle=(Tupled())(function(tupledArg){var _,__1,__10,__11,__12,__13,__14,__15,__2,__3,__4,__5,__6,__7,__8,__9,body,content,date,title;date=tupledArg[0];title=tupledArg[1];content=tupledArg[2];_=Attr();__2=(OfArray())([_.NewAttr("class","newsContent")]);__1=Tags();body=__1.Div(__2);body.set_Html(content);__3=Attr();__5=(OfArray())([__3.NewAttr("class","newsPanel")]);__4=Tags();__6=Attr();__8=(OfArray())([__6.NewAttr("class","metaPanel")]);__7=Tags();__9=Tags();__11=(OfArray())([__9.text(title)]);__10=Tags();__12=Attr();__14=(OfArray())([__12.NewAttr("class","date")]);__13=Tags();__15=Tags();return(op_MinusLess())(__4.Div(__5),(OfArray())([(op_MinusLess())(__7.Div(__8),(OfArray())([__10.NewTag("label",__11),(op_MinusLess())(__13.Div(__14),(OfArray())([__15.text(date)]))])),body]));});builder_=Do_1();return builder_.Delay(function(){var _;if(isCompany){_=(Async())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.News.Internals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"LatestNewsArticles\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.Int32\"],[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.Int32\"],[0]]],[0]]]},\"methodArguments\":[0]}]",[n,days]);}else{_=(Async())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.News.Internals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"LatestWebSharperNewsArticles\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.Int32\"],[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.Int32\"],[0]]],[0]]]},\"methodArguments\":[0]}]",[n,days]);}return builder_.Bind(_,function(_arg213){var __1,__2,__3,__4,__5,__6,res;if(__135(_arg213)>0){__1=function(list){return(OfSeq())((Map())(formatArticle,list));};__2=__1(_arg213);__6=__136(__2);}else{__3=Tags();__5=(OfArray())([__3.text("No recent news")]);__4=Tags();__6=__4.Div(__5);}res=__6;return builder_.Return(res);});});};(Client_14()).LatestBlogArticles=function(n){var builder_,formatArticle;formatArticle=(Tupled())(function(tupledArg){var _,__1,__10,__11,__2,__3,__4,__5,__6,__7,__8,__9,d,link,title;d=tupledArg[0];title=tupledArg[1];link=tupledArg[3];_=Attr();__2=(OfArray())([_.NewAttr("class","article")]);__1=Tags();__3=Attr();__5=(OfArray())([__3.NewAttr("class","date")]);__4=Tags();__6=Tags();__7=Attr();__8=Attr();__10=(OfArray())([__7.NewAttr("href",link),__8.NewAttr("alt",title)]);__9=Tags();__11=Tags();return(op_MinusLess())(__1.Div(__2),(OfArray())([(op_MinusLess())(__4.Div(__5),(OfArray())([__6.text(d)])),(op_MinusLess())(__9.NewTag("a",__10),(OfArray())([__11.text(title)]))]));});builder_=Do_1();return builder_.Delay(function(){return builder_.Bind((Async())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.News.Internals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"LatestBlogArticles\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.Int32\"],[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.Int32\"],[0]]],[0]]]},\"methodArguments\":[0]}]",[n,{$:0}]),function(_arg211){var _,__1;_=function(list){return(OfSeq())((Map())(formatArticle,list));};__1=_(_arg211);return builder_.Return(__136(__1));});});};(Client_14()).CompanyNewsByLabel=function(catLabel,label){var builder_;builder_=Do_1();return builder_.Delay(function(){return builder_.Bind((Async())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.News.Internals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"RenderedNews\",\"methodSignature\":[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.String\"],[0]]],[1,[0,\"mscorlib\",\"System.String\"],[0]]]},\"methodArguments\":[0]}]",[label,catLabel]),function(_arg209){var __1,__2;__1=function(list){var _;_=function(n){return(Client_14()).newsPan(n);};return(OfSeq())((Map())(_,list));};__2=__1(_arg209);return builder_.Return(__136(__2));});});};(Client_14()).newsPan=function(n){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__2,__3,__4,__5,__6,__7,__8,__9,body;_=Attr();__2=(OfArray())([_.NewAttr("class","newsContent")]);__1=Tags();body=__1.Div(__2);body.set_Html(n.Body);__3=Attr();__5=(OfArray())([__3.NewAttr("class","newsPanel")]);__4=Tags();__6=Attr();__8=(OfArray())([__6.NewAttr("class","metaPanel")]);__7=Tags();__10=n.Title;__9=Tags();__12=(OfArray())([__9.text(__10)]);__11=Tags();__13=Attr();__15=(OfArray())([__13.NewAttr("class","date")]);__14=Tags();__17=n.Date;__16=Tags();return(op_MinusLess())(__4.Div(__5),(OfArray())([(op_MinusLess())(__7.Div(__8),(OfArray())([__11.NewTag("label",__12),(op_MinusLess())(__14.Div(__15),(OfArray())([__16.text(__17)]))])),body]));};(Widgets()).TheIntelliFactoryAdvantage=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("href","/images/intellifactory-banner.png")]);__1=Tags();__3=Tags();__5=(OfArray())([__3.text("Overview Poster")]);__4=Tags();__6=Tags();__8=(OfArray())([__6.text("Global Consulting")]);__7=Tags();__9=Tags();__11=(OfArray())([__9.text("Development Methodology")]);__10=Tags();__12=Tags();__14=(OfArray())([__12.text("Agile Project Management")]);__13=Tags();__15=Tags();__17=(OfArray())([__15.text("People")]);__16=Tags();__19=(OfArray())([(op_MinusLess())(__1.NewTag("a",__2),(OfArray())([__4.NewTag("span",__5)])),__7.NewTag("span",__8),__10.NewTag("span",__11),__13.NewTag("span",__14),__16.NewTag("span",__17)]);__18=function(content){return(RoundCornerList())("The IntelliFactory Advantage",content);};return __18(__19);};(Widgets()).ResearchAndDev=function(){var _,__1,__10,__11,__12,__13,__14,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("href","~/Publications.aspx")]);__1=Tags();__3=Tags();__4=Tags();__6=(OfArray())([__4.text("Academic Collaborations")]);__5=Tags();__7=Tags();__9=(OfArray())([__7.text("Scholarships")]);__8=Tags();__10=Tags();__12=(OfArray())([__10.text("Internships")]);__11=Tags();__14=(OfArray())([(op_MinusLess())(__1.NewTag("a",__2),(OfArray())([__3.text("Academic Publications")])),__5.NewTag("span",__6),__8.NewTag("span",__9),__11.NewTag("span",__12)]);__13=function(content){return(RoundCornerList())("Research and Development",content);};return __13(__14);};(Widgets()).ContactInfo=function(){var _,__1,__10,__106,__107,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__61,__62,__63,__64,__65,__66,__67,__68,__69,__7,__70,__71,__72,__73,__74,__75,__76,__77,__78,__79,__8,__80,__81,__82,__83,__84,__85,__86,__87,__88,__89,__9,__90,__91,__92,__93,__94,__95;_=Tags();__2=(OfArray())([_.text("Mailing Address:")]);__1=Tags();__3=Tags();__5=(OfArray())([__3.text("IntelliFactory Kft.")]);__4=Tags();__7=(NewUnion())(FSharpList_1(),0);__6=Tags();__8=Tags();__10=(OfArray())([__8.text("Jozsef A. u. 26.")]);__9=Tags();__12=(NewUnion())(FSharpList_1(),0);__11=Tags();__13=Tags();__15=(OfArray())([__13.text("Kiskunlachaza")]);__14=Tags();__17=(NewUnion())(FSharpList_1(),0);__16=Tags();__18=Tags();__20=(OfArray())([__18.text("2340 Hungary")]);__19=Tags();__22=(NewUnion())(FSharpList_1(),0);__21=Tags();__24=(OfArray())([__4.NewTag("b",__5),__6.NewTag("br",__7),__9.NewTag("span",__10),__11.NewTag("br",__12),__14.NewTag("span",__15),__16.NewTag("br",__17),__19.NewTag("span",__20),__21.NewTag("br",__22)]);__23=Tags();__26=(OfArray())([__1.NewTag("span",__2),__23.NewTag("p",__24)]);__25=Tags();__27=Tags();__29=(OfArray())([__27.text("Development Office 1:")]);__28=Tags();__30=Tags();__32=(OfArray())([__30.text("IntelliFactory Kft.")]);__31=Tags();__34=(NewUnion())(FSharpList_1(),0);__33=Tags();__35=Tags();__37=(OfArray())([__35.text("Szentendrei ut 89-93")]);__36=Tags();__39=(NewUnion())(FSharpList_1(),0);__38=Tags();__40=Tags();__42=(OfArray())([__40.text("Building 8, Floor 2")]);__41=Tags();__44=(NewUnion())(FSharpList_1(),0);__43=Tags();__45=Tags();__47=(OfArray())([__45.text("Budapest")]);__46=Tags();__49=(NewUnion())(FSharpList_1(),0);__48=Tags();__50=Tags();__52=(OfArray())([__50.text("1033 Hungary")]);__51=Tags();__54=(NewUnion())(FSharpList_1(),0);__53=Tags();__56=(OfArray())([__31.NewTag("b",__32),__33.NewTag("br",__34),__36.NewTag("span",__37),__38.NewTag("br",__39),__41.NewTag("span",__42),__43.NewTag("br",__44),__46.NewTag("span",__47),__48.NewTag("br",__49),__51.NewTag("span",__52),__53.NewTag("br",__54)]);__55=Tags();__58=(OfArray())([__28.NewTag("span",__29),__55.NewTag("p",__56)]);__57=Tags();__59=Tags();__61=(OfArray())([__59.text("Sales Lines:")]);__60=Tags();__62=Tags();__64=(OfArray())([__62.text("IntelliFactory Kft.")]);__63=Tags();__66=(NewUnion())(FSharpList_1(),0);__65=Tags();__67=Tags();__69=(OfArray())([__67.text("HUN Phone: +36 207-761-175")]);__68=Tags();__71=(NewUnion())(FSharpList_1(),0);__70=Tags();__72=Tags();__74=(OfArray())([__72.text("USA Phone: +1 650-488-4955")]);__73=Tags();__76=(NewUnion())(FSharpList_1(),0);__75=Tags();__77=Tags();__79=(OfArray())([__77.text("USA Fax: +1 650-204-6205")]);__78=Tags();__81=(NewUnion())(FSharpList_1(),0);__80=Tags();__83=(OfArray())([__63.NewTag("b",__64),__65.NewTag("br",__66),__68.NewTag("span",__69),__70.NewTag("br",__71),__73.NewTag("span",__74),__75.NewTag("br",__76),__78.NewTag("span",__79),__80.NewTag("br",__81)]);__82=Tags();__85=(OfArray())([__60.NewTag("span",__61),__82.NewTag("p",__83)]);__84=Tags();__86=Tags();__88=(OfArray())([__86.text("Sales: sales at intellifactory.com")]);__87=Tags();__90=(OfArray())([__87.NewTag("span",__88)]);__89=Tags();__91=Tags();__93=(OfArray())([__91.text("Jobs: hr at intellifactory.com")]);__92=Tags();__95=(OfArray())([__92.NewTag("span",__93)]);__94=Tags();__107=(OfArray())([__25.NewTag("li",__26),__57.NewTag("li",__58),__84.NewTag("li",__85),__89.NewTag("li",__90),__94.NewTag("li",__95)]);__106=function(content){var __100,__101,__102,__103,__104,__105,__96,__97,__98,__99;__96=Attr();__97=Attr();__99=(OfArray())([__96.NewAttr("alt","IntelliFactory"),__97.NewAttr("src","/images/logo200.gif")]);__98=Tags();__101=(NewUnion())(FSharpList_1(),0);__100=Tags();__102=Attr();__103=Attr();__105=(OfArray())([__102.NewAttr("alt","Offices"),__103.NewAttr("src","/images/IF-Offices-NoLabel-small.png")]);__104=Tags();return(RoundCorner())((OfArray())([__98.NewTag("img",__99),__100.NewTag("br",__101),__104.NewTag("img",__105)]),content);};return __106(__107);};(Widgets()).FeaturedDemo=function(title,desrc,url){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","QuickLinkPanel")]);__1=Tags();__3=Tags();__5=(OfArray())([__3.text(title)]);__4=Tags();__6=Attr();__8=(OfArray())([__6.NewAttr("href","#")]);__7=Tags();__9=Attr();__11=(OfArray())([__9.NewAttr("class","QuickLinkDescription")]);__10=Tags();__12=Tags();__14=(OfArray())([__4.NewTag("h3",__5),(op_MinusLess())(__7.NewTag("a",__8),(OfArray())([(op_MinusLess())(__10.NewTag("p",__11),(OfArray())([__12.text(desrc)]))]))]);__13=Tags();__15=Attr();__17=(OfArray())([__15.NewAttr("href","#")]);__16=Tags();__18=Attr();__20=(OfArray())([__18.NewAttr("src",url)]);__19=Tags();return(op_MinusLess())(__1.NewTag("span",__2),(OfArray())([(Utils()).InTable((OfArray())([(OfArray())([__13.NewTag("span",__14),(op_MinusLess())(__16.NewTag("a",__17),(OfArray())([__19.NewTag("img",__20)]))])]))]));};(Widgets()).RoundCornerList=function(hdr,content){var _,__4,__5;_=__137(content);__5=__131(_);__4=function(x){var __1,__2,__3;__1=Tags();__3=(OfArray())([__1.text(hdr)]);__2=Tags();return(RoundCorner())((OfArray())([__2.Div(__3)]),(OfArray())([x]));};return __4(__5);};(Widgets()).RoundCorner=function(hdrs,content){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__3,__4,__5,__6,__7,__8,__9;_=Tags();_.NewTag("h3",hdrs);__1=Attr();__2=Attr();__4=(OfArray())([__1.NewAttr("class","db3"),__2.NewAttr("style","margin-top: 0px")]);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","bd3_top")]);__6=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","bd3_top_content")]);__9=Tags();__11=Tags();__12=Attr();__14=(OfArray())([__12.NewAttr("class","db3_content")]);__13=Tags();__15=Tags();__16=(OfArray())([__15.NewTag("h3",hdrs)]);__17=Attr();__19=(OfArray())([__17.NewAttr("class","bd3_bot")]);__18=Tags();__20=Attr();__22=(OfArray())([__20.NewAttr("class","bd3_bot_content")]);__21=Tags();__23=Tags();__24=Attr();__26=(OfArray())([__24.NewAttr("class","box_end")]);__25=Tags();__28=(OfArray())([(op_MinusLess())(__3.Div(__4),(OfArray())([(op_MinusLess())(__6.Div(__7),(OfArray())([(op_MinusLess())(__9.Div(__10),(OfArray())([__11.text(" ")]))])),(op_MinusLess())(__13.Div(__14),(OfSeq())((Append())(__16,content))),(op_MinusLess())(__18.Div(__19),(OfArray())([(op_MinusLess())(__21.Div(__22),(OfArray())([__23.text(" ")]))]))])),__25.Div(__26)]);__27=Tags();return __27.Div(__28);};(Slider_1()).Slider=function(sc,pages){var _,__10,__11,__12,__13,__14,__15,__16,__17,__18,__23,__24,__25,__26,__27,__28,__29,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__8,__9,b,b_1,links,links_1,matchValue_2,matchValue_3,nextCell,pan,panels,prevCell,style_1,toolPan;_=function(list){return(OfSeq())((Map())((Tupled())(function(tuple){return tuple[1];}),list));};panels=_(pages);__5=function(list){return(OfSeq())((Map())((Tupled())(function(tupledArg){var __1,__2,__3,__4,title;title=tupledArg[0];__1=Attr();__3=(OfArray())([__1.NewAttr("href","javascript:void(0)")]);__2=Tags();__4=Tags();return(op_MinusLess())(__2.NewTag("a",__3),(OfArray())([__4.text(title)]));}),list));};links=__5(pages);toolPan=function(el){var __1,__2,__3,__4,__6,__7,style;__1=sc.Width;__2="float:left;width:"+__1.toString()+"px;height:";__3=sc.Height;style=__2+__3.toString()+"px;";__4=Attr();__7=(OfArray())([__4.NewAttr("style",style)]);__6=Tags();return(op_MinusLess())(__6.Div(__7),(OfArray())([el]));};__8=sc.Width;__9="position:relative;overflow:hidden;width:"+__8.toString()+"px;height:";__10=sc.Height;style_1=__9+__10.toString()+"px;";__11=Attr();__12=Attr();__14=(OfArray())([__11.NewAttr("class","scrollable"),__12.NewAttr("style",style_1)]);__13=Tags();__15=Attr();__16=Attr();__18=(OfArray())([__15.NewAttr("class","items"),__16.NewAttr("style","width:20000em;position:absolute;clear:both;")]);__17=Tags();__24=(op_MinusLess())(__13.Div(__14),(OfArray())([(op_MinusLess())(__17.Div(__18),(OfSeq())((Map())(toolPan,panels)))]));__23=function(w){return(OnAfterRender())(function(){var __19,__2,__22,__3,__4,__6,__7,matchValue,matchValue_1,next,prev,tc;tc={};tc.size=1;tc.vertical=false;matchValue=sc.PrevButton;if(matchValue.$==0);else{prev=matchValue.$0;__2=function(arg10){var __1;__1=Events();return __1.OnClick(function(){return function(){return undefined.PrevPage();};},arg10);};__2(prev);__3=prev;__4=__138(__3);}__4;matchValue_1=sc.NextButton;if(matchValue_1.$==0);else{next=matchValue_1.$0;__6=function(arg10){var __1;__1=Events();return __1.OnClick(function(){return function(){return undefined.NextPage();};},arg10);};__6(next);__7=next;__19=__138(__7);}__19;__22=function(list){return(SeqModule()).IterateIndexed(function(ix){return function(link){var __20,__21;__20=function(arg10){var __1;__1=Events();return __1.OnClick(function(){return function(){return undefined.SetPage(ix);};},arg10);};__20(link);__21=link;return __138(__21);};},list);};return __22(links);},w);};__23(__24);pan=__24;matchValue_2=sc.NextButton;if(matchValue_2.$==0){__29=(NewUnion())(FSharpList_1(),0);}else{b=matchValue_2.$0;__25=Attr();__26=Attr();__28=(OfArray())([__25.NewAttr("style","vertical-align:middle;"),__26.NewAttr("valign","middle")]);__27=Tags();__29=(OfArray())([(op_MinusLess())(__27.NewTag("td",__28),(OfArray())([b]))]);}nextCell=__29;matchValue_3=sc.PrevButton;if(matchValue_3.$==0){__34=(NewUnion())(FSharpList_1(),0);}else{b_1=matchValue_3.$0;__30=Attr();__31=Attr();__33=(OfArray())([__30.NewAttr("style","vertical-align:middle;"),__31.NewAttr("valign","middle")]);__32=Tags();__34=(OfArray())([(op_MinusLess())(__32.NewTag("td",__33),(OfArray())([b_1]))]);}prevCell=__34;if(sc.ShowLinks){__35=__137(links);__36=(OfArray())([__131(__35)]);}else{__36=(NewUnion())(FSharpList_1(),0);}links_1=__36;__38=(OfArray())([pan]);__37=Tags();__39=(OfArray())([__37.NewTag("td",__38)]);__40=(OfSeq())((Append())(__39,nextCell));__42=(OfSeq())((Append())(prevCell,__40));__41=Tags();__43=Tags();__45=(OfArray())([__43.NewTag("td",links_1)]);__44=Tags();__47=(OfArray())([__41.NewTag("tr",__42),__44.NewTag("tr",__45)]);__46=Tags();__49=(OfArray())([__46.NewTag("tbody",__47)]);__48=Tags();return __48.NewTag("table",__49);};(WSPSlideshowInternal()).Main=function(){var PrevButton,__7,__8,btn,conf;btn=function(url){var _,__1,__2,__3,__4,__5,__6;_=Attr();__2=(OfArray())([_.NewAttr("style","Cursor: pointer;padding:5px;")]);__1=Tags();__3=Attr();__5=(OfArray())([__3.NewAttr("src",url)]);__4=Tags();__6=(op_MinusLess())(__1.Div(__2),(OfArray())([__4.NewTag("img",__5)]));return __127(__6);};(get_Default())();PrevButton=btn("/images/icons/prev.png");conf={Width:516,Height:350,NextButton:btn("/images/icons/next.png"),PrevButton:PrevButton,ShowLinks:false};__8=(OfArray())([["Introduction",(WSPSlideshowInternal()).Page1()],["Integrated Development",(WSPSlideshowInternal()).Page2()],["Abstractions",(WSPSlideshowInternal()).Page3()],["Extensibility",(WSPSlideshowInternal()).Page4()],["Tooling",(WSPSlideshowInternal()).Page5()],["Composability",(WSPSlideshowInternal()).Page6()],["Contact",(WSPSlideshowInternal()).Page7()]]);__7=function(pages){return(Slider())(conf,pages);};return __7(__8);};(WSPSlideshowInternal()).Page1=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","slideshow")]);__1=Tags();__4=(NewUnion())(FSharpList_1(),0);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","slideshow-col-full")]);__6=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","slideshow-full-image-1")]);__9=Tags();__12=(OfArray())([(op_MinusLess())(__6.NewTag("td",__7),(OfArray())([__9.Div(__10)]))]);__11=Tags();__14=(OfArray())([__11.NewTag("tr",__12)]);__13=Tags();__16=(OfArray())([(op_MinusLess())(__1.NewTag("table",__2),(OfArray())([__3.NewTag("thead",__4),__13.NewTag("tbody",__14)]))]);__15=Tags();return __15.Div(__16);};(WSPSlideshowInternal()).Page2=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","slideshow")]);__1=Tags();__4=(NewUnion())(FSharpList_1(),0);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","slideshow-col-full")]);__6=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","slideshow-full-image-2")]);__9=Tags();__12=(OfArray())([(op_MinusLess())(__6.NewTag("td",__7),(OfArray())([__9.Div(__10)]))]);__11=Tags();__14=(OfArray())([__11.NewTag("tr",__12)]);__13=Tags();__16=(OfArray())([(op_MinusLess())(__1.NewTag("table",__2),(OfArray())([__3.NewTag("thead",__4),__13.NewTag("tbody",__14)]))]);__15=Tags();return __15.Div(__16);};(WSPSlideshowInternal()).Page3=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","slideshow")]);__1=Tags();__4=(NewUnion())(FSharpList_1(),0);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","slideshow-col-full")]);__6=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","slideshow-full-image-3")]);__9=Tags();__12=(OfArray())([(op_MinusLess())(__6.NewTag("td",__7),(OfArray())([__9.Div(__10)]))]);__11=Tags();__14=(OfArray())([__11.NewTag("tr",__12)]);__13=Tags();__16=(OfArray())([(op_MinusLess())(__1.NewTag("table",__2),(OfArray())([__3.NewTag("thead",__4),__13.NewTag("tbody",__14)]))]);__15=Tags();return __15.Div(__16);};(WSPSlideshowInternal()).Page4=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","slideshow")]);__1=Tags();__4=(NewUnion())(FSharpList_1(),0);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","slideshow-col-full")]);__6=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","slideshow-full-image-4")]);__9=Tags();__12=(OfArray())([(op_MinusLess())(__6.NewTag("td",__7),(OfArray())([__9.Div(__10)]))]);__11=Tags();__14=(OfArray())([__11.NewTag("tr",__12)]);__13=Tags();__16=(OfArray())([(op_MinusLess())(__1.NewTag("table",__2),(OfArray())([__3.NewTag("thead",__4),__13.NewTag("tbody",__14)]))]);__15=Tags();return __15.Div(__16);};(WSPSlideshowInternal()).Page5=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","slideshow")]);__1=Tags();__4=(NewUnion())(FSharpList_1(),0);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","slideshow-col-full")]);__6=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","slideshow-full-image-5")]);__9=Tags();__12=(OfArray())([(op_MinusLess())(__6.NewTag("td",__7),(OfArray())([__9.Div(__10)]))]);__11=Tags();__14=(OfArray())([__11.NewTag("tr",__12)]);__13=Tags();__16=(OfArray())([(op_MinusLess())(__1.NewTag("table",__2),(OfArray())([__3.NewTag("thead",__4),__13.NewTag("tbody",__14)]))]);__15=Tags();return __15.Div(__16);};(WSPSlideshowInternal()).Page6=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","slideshow")]);__1=Tags();__4=(NewUnion())(FSharpList_1(),0);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","slideshow-col-full")]);__6=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","slideshow-full-image-6")]);__9=Tags();__12=(OfArray())([(op_MinusLess())(__6.NewTag("td",__7),(OfArray())([__9.Div(__10)]))]);__11=Tags();__14=(OfArray())([__11.NewTag("tr",__12)]);__13=Tags();__16=(OfArray())([(op_MinusLess())(__1.NewTag("table",__2),(OfArray())([__3.NewTag("thead",__4),__13.NewTag("tbody",__14)]))]);__15=Tags();return __15.Div(__16);};(WSPSlideshowInternal()).Page7=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__2,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","slideshow")]);__1=Tags();__4=(NewUnion())(FSharpList_1(),0);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","slideshow-col-full")]);__6=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","slideshow-full-image-7")]);__9=Tags();__12=(OfArray())([(op_MinusLess())(__6.NewTag("td",__7),(OfArray())([__9.Div(__10)]))]);__11=Tags();__14=(OfArray())([__11.NewTag("tr",__12)]);__13=Tags();__16=(OfArray())([(op_MinusLess())(__1.NewTag("table",__2),(OfArray())([__3.NewTag("thead",__4),__13.NewTag("tbody",__14)]))]);__15=Tags();return __15.Div(__16);};(Button_1()).LeftButton=function(label,href){return(Button())("left",label,href,"","","");};(Button_1()).CenterButton=function(label,href){return(Button())("center",label,href,"","","");};(Button_1()).Button=function(align,label,href,cssclass,target,onclick){var _,__1,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,attrs,button,center,left,right;_=align.toLowerCase();__1=_.replace(/^\s+/,"");left=__1.replace(/\s+$/,"")==="left"?true:false;__2=align.toLowerCase();__3=__2.replace(/^\s+/,"");right=__3.replace(/\s+$/,"")==="right"?true:false;__4=align.toLowerCase();__5=__4.replace(/^\s+/,"");center=__5.replace(/\s+$/,"")==="center"?true:false;__12=(OfArray())([["class","button simple "+cssclass],["href",href],["target",target],["onclick",onclick]]);__11=function(list){return(Fold())(function(accum){return(Tupled())(function(tupledArg){var __10,__6,__7,__8,__9,s,v;s=tupledArg[0];v=tupledArg[1];__6=v==null;if(__6){__7=__6;}else{__7=v=="";}__8=__7;if(__139(__8)){__9=Attr();__10=(NewUnion())(FSharpList_1(),1,__9.NewAttr(s,v),accum);}else{__10=accum;}return __10;});},(NewUnion())(FSharpList_1(),0),list);};__13=__11(__12);attrs=__134(__13);__14=Attr();__16=(OfArray())([__14.NewAttr("class","button")]);__15=Tags();__17=Tags();__18=Tags();__20=(OfArray())([__18.text(label)]);__19=Tags();__22=(OfArray())([__19.NewTag("strong",__20)]);__21=Tags();__24=(OfArray())([__21.NewTag("strong",__22)]);__23=Tags();button=(op_MinusLess())(__15.NewTag("span",__16),(OfArray())([(op_MinusLess())(__17.NewTag("a",attrs),(OfArray())([__23.NewTag("strong",__24)]))]));__25=Attr();__27=(OfArray())([__25.NewAttr("class","button")]);__26=Tags();if(left){__28=Attr();__30=(OfArray())([__28.NewAttr("class","button-left")]);__29=Tags();__34=(op_MinusLess())(__29.NewTag("td",__30),(OfArray())([button]));}else{__31=Attr();__33=(OfArray())([__31.NewAttr("class","button-left")]);__32=Tags();__34=__32.NewTag("td",__33);}if(center){__35=Attr();__37=(OfArray())([__35.NewAttr("class","button-center")]);__36=Tags();__41=(op_MinusLess())(__36.NewTag("td",__37),(OfArray())([button]));}else{__38=Attr();__40=(OfArray())([__38.NewAttr("class","button-center")]);__39=Tags();__41=__39.NewTag("td",__40);}if(right){__42=Attr();__44=(OfArray())([__42.NewAttr("class","button-right")]);__43=Tags();__48=(op_MinusLess())(__43.NewTag("td",__44),(OfArray())([button]));}else{__45=Attr();__47=(OfArray())([__45.NewAttr("class","button-right")]);__46=Tags();__48=__46.NewTag("td",__47);}__50=(OfArray())([__34,__41,__48]);__49=Tags();__52=(OfArray())([__49.NewTag("tr",__50)]);__51=Tags();return(op_MinusLess())(__26.NewTag("table",__27),(OfArray())([__51.NewTag("tbody",__52)]));};(Button_1()).RightButton=function(label,href){return(Button())("right",label,href,"","","");};(Filenames()).BinaryDownloadUrl=function(file){var DownloadAssetUrl;DownloadAssetUrl=function(assetName){return function(cntType){var _;if(cntType.$==0){_="";}else{_="&ContentType="+cntType.$0;}return"/AssetDownload.aspx?AssetName="+assetName+_;};};return(DownloadAssetUrl(file))({$:0});};(Client_13()).DownloadsForInfoPage=function(infoPage,usernameOpt){var _,__1,__10,__11,__115,__116,__117,__118,__119,__12,__120,__121,__122,__123,__124,__125,__13,__14,__143,__144,__145,__146,__147,__148,__149,__15,__150,__151,__152,__153,__154,__155,__156,__157,__158,__159,__16,__160,__161,__162,__163,__164,__165,__166,__167,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__61,__62,__63,__64,__65,__66,__67,__68,__69,__7,__70,__71,__72,__73,__74,__75,__76,__77,__78,__79,__8,__9,contains,extensions,info,ips,patternInput,pro,proTab,requires,std,stdTab,tabBody,tabs,tbody,top;if(infoPage.$==1){ips=infoPage.$0;patternInput=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.Downloads+Client+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"FetchDataForInfoPage\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.String\"],[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.String\"],[0]]],[0]]]},\"methodArguments\":[0]}]",[ips,usernameOpt]);std=patternInput[1];pro=patternInput[2];info=patternInput[0];_=Attr();__1=Attr();__3=(OfArray())([_.NewAttr("class","prodLogo"),__1.NewAttr("rowspan","1")]);__2=Tags();__4=Attr();__6=(OfArray())([__4.NewAttr("class","middle")]);__5=Tags();__7=Tags();__8=Attr();__10=(OfArray())([__8.NewAttr("class","middle")]);__9=Tags();__11=Tags();__13=(OfArray())([(op_MinusLess())(__5.NewTag("td",__6),(OfArray())([__7.text("Standard")])),(op_MinusLess())(__9.NewTag("td",__10),(OfArray())([__11.text("Professional")]))]);__12=Tags();__15=(OfArray())([__12.NewTag("tr",__13)]);__14=Tags();__16=Attr();__18=(OfArray())([__16.NewAttr("style","height: 64px;")]);__17=Tags();if(std.$==1){__19=std.$0.FileInformation.$==1;}else{__19=false;}if(__19){__20=Attr();__22=(OfArray())([__20.NewAttr("style","width:80px")]);__21=Tags();__23=Attr();__25=(OfArray())([__23.NewAttr("style","width:100px")]);__24=Tags();__27=(OfArray())([(NormalTable())({$:0},(OfArray())([(op_MinusLess())(__21.NewTag("td",__22),(OfArray())([(LeftButton())("Buy","/products/wsp/BuyExtensions.aspx")])),(op_MinusLess())(__24.NewTag("td",__25),(OfArray())([(LeftButton())("Download",std.$0.FileInformation.$0.DownloadPage)]))]))]);__26=Tags();__43=__26.NewTag("td",__27);}else{if(std.$==1){__28=Attr();__29=Attr();__31=(OfArray())([__28.NewAttr("class","middle"),__29.NewAttr("style","Width:180px")]);__30=Tags();__32=Tags();__34=(OfArray())([__32.text("Coming soon")]);__33=Tags();__42=(op_MinusLess())(__30.NewTag("td",__31),(OfArray())([__33.NewTag("b",__34)]));}else{__35=Attr();__36=Attr();__38=(OfArray())([__35.NewAttr("class","middle"),__36.NewAttr("style","Width:180px")]);__37=Tags();__39=Tags();__41=(OfArray())([__39.text("Not available")]);__40=Tags();__42=(op_MinusLess())(__37.NewTag("td",__38),(OfArray())([__40.NewTag("b",__41)]));}__43=__42;}if(pro.$==1){__44=pro.$0.FileInformation.$==1;}else{__44=false;}if(__44){__45=Attr();__47=(OfArray())([__45.NewAttr("style","width:80px")]);__46=Tags();__48=Attr();__50=(OfArray())([__48.NewAttr("style","width:100px")]);__49=Tags();__52=(OfArray())([(NormalTable())({$:0},(OfArray())([(op_MinusLess())(__46.NewTag("td",__47),(OfArray())([(LeftButton())("Buy","/products/wsp/BuyExtensions.aspx")])),(op_MinusLess())(__49.NewTag("td",__50),(OfArray())([(LeftButton())("Download",pro.$0.FileInformation.$0.DownloadPage)]))]))]);__51=Tags();__68=__51.NewTag("td",__52);}else{if(pro.$==1){__53=Attr();__54=Attr();__56=(OfArray())([__53.NewAttr("class","middle"),__54.NewAttr("style","Width:180px")]);__55=Tags();__57=Tags();__59=(OfArray())([__57.text("Coming soon")]);__58=Tags();__67=(op_MinusLess())(__55.NewTag("td",__56),(OfArray())([__58.NewTag("b",__59)]));}else{__60=Attr();__61=Attr();__63=(OfArray())([__60.NewAttr("class","middle"),__61.NewAttr("style","Width:180px")]);__62=Tags();__64=Tags();__66=(OfArray())([__64.text("Not available")]);__65=Tags();__67=(op_MinusLess())(__62.NewTag("td",__63),(OfArray())([__65.NewTag("b",__66)]));}__68=__67;}__70=(OfArray())([(op_MinusLess())(__17.NewTag("tr",__18),(OfArray())([__43,__68]))]);__69=Tags();__72=(OfArray())([__14.NewTag("thead",__15),__69.NewTag("tbody",__70)]);__71=Tags();__74=(OfArray())([__71.NewTag("table",__72)]);__73=Tags();__75=Attr();__77=(OfArray())([__75.NewAttr("class","col3")]);__76=Tags();__79=(OfArray())([__2.NewTag("td",__3),__73.NewTag("td",__74),__76.NewTag("td",__77)]);__78=Tags();top=__78.NewTag("tr",__79);contains=function(ipd){var __100,__101,__102,__103,__104,__105,__106,__107,__108,__109,__110,__111,__112,__113,__80,__81,__82,__83,__84,__85,__86,__87,__88,__89,__90,__91,__92,__93,__94,__95,__96,__97,__98,__99;__80=Attr();__82=(OfArray())([__80.NewAttr("colspan","3")]);__81=Tags();__83=Tags();__85=(OfArray())([__83.text("Contains")]);__84=Tags();__86=Attr();__88=(OfArray())([__86.NewAttr("class","contains")]);__87=Tags();__90=(NewUnion())(FSharpList_1(),0);__89=Tags();__91=ipd.Contains;if((Length())(__91)>0){__93=(NewUnion())(FSharpList_1(),0);__92=Tags();__94=Tags();__96=(OfArray())([__94.text("Version")]);__95=Tags();__97=Tags();__99=(OfArray())([__97.text("Against")]);__98=Tags();__100=Tags();__102=(OfArray())([__100.text("Date")]);__101=Tags();__103=Tags();__105=(OfArray())([__103.text("Status")]);__104=Tags();__107=(OfArray())([__92.NewTag("td",__93),__95.NewTag("td",__96),__98.NewTag("td",__99),__101.NewTag("td",__102),__104.NewTag("td",__105)]);__106=Tags();__108=(OfArray())([__106.NewTag("tr",__107)]);}else{__108=(NewUnion())(FSharpList_1(),0);}__110=(NewUnion())(FSharpList_1(),0);__109=Tags();__111=ipd.Contains;__113=(OfArray())([(op_MinusLess())(__81.NewTag("td",__82),(OfArray())([__84.NewTag("h4",__85),(op_MinusLess())(__87.NewTag("table",__88),(OfArray())([(op_MinusLess())(__89.NewTag("thead",__90),__108),(op_MinusLess())(__109.NewTag("tbody",__110),__140(__111))]))]))]);__112=Tags();return __112.NewTag("tr",__113);};requires=function(ipd){var __109,__110,__111,__112,__80,__81,__82,__83,__84,__85,__86,__87,__88,__89,__90;__80=Attr();__82=(OfArray())([__80.NewAttr("colspan","2")]);__81=Tags();__83=Tags();__85=(OfArray())([__83.text("Requires")]);__84=Tags();__86=Attr();__88=(OfArray())([__86.NewAttr("class","requires")]);__87=Tags();__90=(NewUnion())(FSharpList_1(),0);__89=Tags();__110=ipd.Requires;__109=function(list){return(OfSeq())((Map())((Tupled())(function(tupledArg){var __100,__101,__102,__103,__104,__105,__106,__107,__108,__91,__92,__93,__94,__95,__96,__97,__98,__99,reqTitle,reqVersionOpt,reqv;reqTitle=tupledArg[0];reqVersionOpt=tupledArg[1];if(reqVersionOpt.$==1){__91=reqVersionOpt.$0;}else{__91="N/A";}reqv=__91;__93=(NewUnion())(FSharpList_1(),0);__92=Tags();__94=Attr();__96=(OfArray())([__94.NewAttr("class","col1")]);__95=Tags();__97=Tags();__99=(OfArray())([__97.text(reqTitle)]);__98=Tags();__100=Attr();__102=(OfArray())([__100.NewAttr("class","col2")]);__101=Tags();__103=Attr();__105=(OfArray())([__103.NewAttr("class","col2")]);__104=Tags();__106=Tags();__108=(OfArray())([__106.text(reqv)]);__107=Tags();return(op_MinusLess())(__92.NewTag("tr",__93),(OfArray())([(op_MinusLess())(__95.NewTag("td",__96),(OfArray())([__98.NewTag("h5",__99)])),__101.NewTag("td",__102),(op_MinusLess())(__104.NewTag("td",__105),(OfArray())([__107.NewTag("h5",__108)]))]));}),list));};__112=(OfArray())([(op_MinusLess())(__81.NewTag("td",__82),(OfArray())([__84.NewTag("h4",__85),(op_MinusLess())(__87.NewTag("table",__88),(OfArray())([(op_MinusLess())(__89.NewTag("tbody",__90),__109(__110))]))]))]);__111=Tags();return __111.NewTag("tr",__112);};extensions=function(ipd){var __100,__101,__102,__103,__104,__105,__106,__107,__108,__109,__110,__111,__112,__113,__114,__80,__81,__82,__83,__84,__85,__86,__87,__88,__89,__90,__91,__92,__93,__94,__95,__96,__97,__98,__99;__80=Attr();__82=(OfArray())([__80.NewAttr("colspan","3")]);__81=Tags();__83=Attr();__84=Attr();__86=(OfArray())([__83.NewAttr("id","5"),__84.NewAttr("class","extensions")]);__85=Tags();__87=Tags();__89=(OfArray())([__87.text("Extensions")]);__88=Tags();__90=Attr();__92=(OfArray())([__90.NewAttr("class","contains")]);__91=Tags();__94=(NewUnion())(FSharpList_1(),0);__93=Tags();__95=Tags();__97=(OfArray())([__95.text("Version")]);__96=Tags();__98=Tags();__100=(OfArray())([__98.text("Against")]);__99=Tags();__101=Tags();__103=(OfArray())([__101.text("Date")]);__102=Tags();__105=(NewUnion())(FSharpList_1(),0);__104=Tags();__107=(OfArray())([__93.NewTag("td",__94),__96.NewTag("td",__97),__99.NewTag("td",__100),__102.NewTag("td",__103),__104.NewTag("td",__105)]);__106=Tags();__109=(OfArray())([__106.NewTag("tr",__107)]);__108=Tags();__111=(NewUnion())(FSharpList_1(),0);__110=Tags();__112=ipd.Extensions;__114=(OfArray())([(op_MinusLess())(__81.NewTag("td",__82),(OfArray())([(op_MinusLess())(__85.Div(__86),(OfArray())([__88.NewTag("h4",__89),(op_MinusLess())(__91.NewTag("table",__92),(OfArray())([__108.NewTag("thead",__109),(op_MinusLess())(__110.NewTag("tbody",__111),__141(__112))]))]))]))]);__113=Tags();return __113.NewTag("tr",__114);};tabBody=function(prod){var __80,__81,__82,__83,__84,__85,__86,__87,__88,__89,__90,__91;__90=(NewUnion())(FSharpList_1(),0);__80=prod.Contains;if((Length())(__80)>0){__81=(OfArray())([contains(prod)]);}else{__81=(NewUnion())(FSharpList_1(),0);}__88=__81;__82=prod.Requires;if((Length())(__82)>0){__83=(OfArray())([requires(prod)]);}else{__83=(NewUnion())(FSharpList_1(),0);}__86=__83;__84=prod.Extensions;if((Length())(__84)>0){__85=(OfArray())([extensions(prod)]);}else{__85=(NewUnion())(FSharpList_1(),0);}__87=__85;__89=(OfSeq())((Append())(__86,__87));__91=(OfSeq())((Append())(__88,__89));return(OfSeq())((Append())(__90,__91));};if(std.$==0){__115=pro.$==0;}else{__115=false;}if(__115){__150=(NewUnion())(FSharpList_1(),0);}else{if(std.$==1){__116=tabBody(std.$0);__117=(OfArray())([["Standard",__142(__116)]]);}else{__117=(NewUnion())(FSharpList_1(),0);}stdTab=__117;if(pro.$==1){__118=tabBody(pro.$0);__119=(OfArray())([["Professional",__142(__118)]]);}else{__119=(NewUnion())(FSharpList_1(),0);}proTab=__119;__120=Attr();__122=(OfArray())([__120.NewAttr("colspan","3")]);__121=Tags();__123=Tags();__125=(OfArray())([__123.text("This extension is available for the following versions of the Platform:")]);__124=Tags();__144=(OfArray())([(op_MinusLess())(__121.NewTag("td",__122),(OfArray())([__124.NewTag("p",__125)]))]);__143=Tags();__145=Attr();__147=(OfArray())([__145.NewAttr("colspan","3")]);__146=Tags();__149=(OfArray())([(op_MinusLess())(__146.NewTag("td",__147),(OfArray())([(New2())((OfSeq())((Append())(stdTab,proTab)))]))]);__148=Tags();__150=(OfArray())([__143.NewTag("tr",__144),__148.NewTag("tr",__149)]);}tabs=__150;__151=(OfArray())([top]);tbody=(OfSeq())((Append())(__151,tabs));__152=Attr();__154=(OfArray())([__152.NewAttr("class","download")]);__153=Tags();__156=info.$0.Description;__155=Tags();__158=(OfArray())([__155.text(__156)]);__157=Tags();__159=Attr();__161=(OfArray())([__159.NewAttr("class","zip")]);__160=Tags();__163=(NewUnion())(FSharpList_1(),0);__162=Tags();__167=(op_MinusLess())(__153.Div(__154),(OfArray())([__157.NewTag("h3",__158),(op_MinusLess())(__160.NewTag("table",__161),(OfArray())([(op_MinusLess())(__162.NewTag("tbody",__163),tbody)]))]));}else{__164=Tags();__166=(OfArray())([__164.text("Can not find any information to show")]);__165=Tags();__167=__165.Div(__166);}return __167;};(Client_13()).DownloadsForProduct=function(familyOpt,usernameOpt){var __182,__183,__185;__183=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.Downloads+Client+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"FilesToDownload\",\"methodSignature\":[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.String\"],[0]]],[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.String\"],[0]]],[0]]]},\"methodArguments\":[0]}]",[familyOpt,usernameOpt]);__182=function(list_1){return(OfSeq())((Map())(function(file){var _,__1,__10,__102,__103,__104,__105,__106,__107,__108,__109,__11,__110,__111,__112,__113,__114,__115,__116,__117,__118,__119,__12,__120,__121,__122,__123,__124,__125,__13,__14,__143,__144,__145,__146,__147,__148,__149,__15,__150,__151,__152,__153,__154,__155,__156,__157,__158,__159,__16,__160,__161,__162,__163,__164,__165,__166,__167,__168,__169,__17,__170,__171,__172,__173,__174,__175,__176,__177,__178,__179,__18,__180,__181,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__61,__62,__63,__64,__65,__66,__67,__68,__69,__7,__70,__71,__72,__73,__74,__75,__76,__77,__78,__79,__8,__80,__81,__82,__83,__84,__85,__9,contains,extensions,releaseDate,requires,tbody,top,topButtons,version;if(file.FileInformation.$==0){_="N/A";}else{_=file.FileInformation.$0.Version;}version=_;if(file.FileInformation.$==0){__1="N/A";}else{__1=file.FileInformation.$0.ReleaseDate;}releaseDate=__1;__2=Attr();__3=Attr();__5=(OfArray())([__2.NewAttr("class","prodLogo"),__3.NewAttr("rowspan","2")]);__4=Tags();__6=Attr();__8=(OfArray())([__6.NewAttr("class","prodName")]);__7=Tags();__10=file.Title+" "+version+" for Visual Studio 2008/2010.";__9=Tags();__11=Attr();__13=(OfArray())([__11.NewAttr("class","description")]);__12=Tags();__15=file.Description;__14=Tags();__17=(OfArray())([__14.text(__15)]);__16=Tags();__18=Attr();__20=(OfArray())([__18.NewAttr("class","date")]);__19=Tags();__22="Released on "+releaseDate;__21=Tags();__24=(OfArray())([(op_MinusLess())(__7.Div(__8),(OfArray())([__9.text(__10)])),(op_MinusLess())(__12.Div(__13),(OfArray())([__16.NewTag("p",__17),(op_MinusLess())(__19.Div(__20),(OfArray())([__21.text(__22)]))]))]);__23=Tags();__25=Attr();__27=(OfArray())([__25.NewAttr("class","prodTail")]);__26=Tags();__29=(OfArray())([__4.NewTag("td",__5),__23.NewTag("td",__24),__26.NewTag("td",__27)]);__28=Tags();top=__28.NewTag("tr",__29);if(file.FileInformation.$==0){__30=Tags();__32=(OfArray())([__30.text("Product not available for download")]);__31=Tags();__33=__31.NewTag("p",__32);}else{__33=(LeftButton())("Download",file.FileInformation.$0.DownloadPage);}__35=(OfArray())([__33]);__34=Tags();__36=Attr();__38=(OfArray())([__36.NewAttr("class","prodTail")]);__37=Tags();__40=(OfArray())([__34.NewTag("td",__35),__37.NewTag("td",__38)]);__39=Tags();topButtons=__39.NewTag("tr",__40);__41=Attr();__43=(OfArray())([__41.NewAttr("colspan","3")]);__42=Tags();__44=Tags();__46=(OfArray())([__44.text("Contains")]);__45=Tags();__47=Attr();__49=(OfArray())([__47.NewAttr("class","contains")]);__48=Tags();__51=(NewUnion())(FSharpList_1(),0);__50=Tags();__52=file.Contains;if((Length())(__52)>0){__54=(NewUnion())(FSharpList_1(),0);__53=Tags();__55=Tags();__57=(OfArray())([__55.text("Version")]);__56=Tags();__58=Tags();__60=(OfArray())([__58.text("Against")]);__59=Tags();__61=Tags();__63=(OfArray())([__61.text("Date")]);__62=Tags();__64=Tags();__66=(OfArray())([__64.text("Status")]);__65=Tags();__68=(OfArray())([__53.NewTag("td",__54),__56.NewTag("td",__57),__59.NewTag("td",__60),__62.NewTag("td",__63),__65.NewTag("td",__66)]);__67=Tags();__69=(OfArray())([__67.NewTag("tr",__68)]);}else{__69=(NewUnion())(FSharpList_1(),0);}__71=(NewUnion())(FSharpList_1(),0);__70=Tags();__72=file.Contains;__74=(OfArray())([(op_MinusLess())(__42.NewTag("td",__43),(OfArray())([__45.NewTag("h4",__46),(op_MinusLess())(__48.NewTag("table",__49),(OfArray())([(op_MinusLess())(__50.NewTag("thead",__51),__69),(op_MinusLess())(__70.NewTag("tbody",__71),__140(__72))]))]))]);__73=Tags();contains=__73.NewTag("tr",__74);__75=Attr();__77=(OfArray())([__75.NewAttr("colspan","2")]);__76=Tags();__78=Tags();__80=(OfArray())([__78.text("Requires")]);__79=Tags();__81=Attr();__83=(OfArray())([__81.NewAttr("class","requires")]);__82=Tags();__85=(NewUnion())(FSharpList_1(),0);__84=Tags();__103=file.Requires;__102=function(list){return(OfSeq())((Map())((Tupled())(function(tupledArg){var __100,__101,__86,__87,__88,__89,__90,__91,__92,__93,__94,__95,__96,__97,__98,__99,reqTitle,reqVersion,reqv;reqTitle=tupledArg[0];reqVersion=tupledArg[1];if(reqVersion.$==1){__86=reqVersion.$0;}else{__86="N/A";}reqv=__86;__88=(NewUnion())(FSharpList_1(),0);__87=Tags();__89=Attr();__91=(OfArray())([__89.NewAttr("class","col1")]);__90=Tags();__92=Tags();__94=(OfArray())([__92.text(reqTitle)]);__93=Tags();__95=Attr();__97=(OfArray())([__95.NewAttr("class","col2")]);__96=Tags();__98=Attr();__100=(OfArray())([__98.NewAttr("class","col3")]);__99=Tags();__101=Tags();return(op_MinusLess())(__87.NewTag("tr",__88),(OfArray())([(op_MinusLess())(__90.NewTag("td",__91),(OfArray())([__93.NewTag("h5",__94)])),__96.NewTag("td",__97),(op_MinusLess())(__99.NewTag("td",__100),(OfArray())([__101.text(reqv)]))]));}),list));};__105=(OfArray())([(op_MinusLess())(__76.NewTag("td",__77),(OfArray())([__79.NewTag("h4",__80),(op_MinusLess())(__82.NewTag("table",__83),(OfArray())([(op_MinusLess())(__84.NewTag("tbody",__85),__102(__103))]))]))]);__104=Tags();requires=__104.NewTag("tr",__105);__106=Attr();__108=(OfArray())([__106.NewAttr("colspan","3")]);__107=Tags();__109=Attr();__111=(OfArray())([__109.NewAttr("class","extensions")]);__110=Tags();__112=Tags();__114=(OfArray())([__112.text("Extensions")]);__113=Tags();__115=Attr();__117=(OfArray())([__115.NewAttr("class","contains")]);__116=Tags();__119=(NewUnion())(FSharpList_1(),0);__118=Tags();__120=Tags();__122=(OfArray())([__120.text("Version")]);__121=Tags();__123=Tags();__125=(OfArray())([__123.text("Against")]);__124=Tags();__143=Tags();__145=(OfArray())([__143.text("Date")]);__144=Tags();__147=(NewUnion())(FSharpList_1(),0);__146=Tags();__149=(OfArray())([__118.NewTag("td",__119),__121.NewTag("td",__122),__124.NewTag("td",__125),__144.NewTag("td",__145),__146.NewTag("td",__147)]);__148=Tags();__151=(OfArray())([__148.NewTag("tr",__149)]);__150=Tags();__153=(NewUnion())(FSharpList_1(),0);__152=Tags();__154=file.Extensions;__156=(OfArray())([(op_MinusLess())(__107.NewTag("td",__108),(OfArray())([(op_MinusLess())(__110.Div(__111),(OfArray())([__113.NewTag("h4",__114),(op_MinusLess())(__116.NewTag("table",__117),(OfArray())([__150.NewTag("thead",__151),(op_MinusLess())(__152.NewTag("tbody",__153),__141(__154))]))]))]))]);__155=Tags();extensions=__155.NewTag("tr",__156);__167=(OfArray())([top,topButtons]);__157=file.Contains;if((Length())(__157)>0){__158=(OfArray())([contains]);}else{__158=(NewUnion())(FSharpList_1(),0);}__165=__158;__159=file.Requires;if((Length())(__159)>0){__160=(OfArray())([requires]);}else{__160=(NewUnion())(FSharpList_1(),0);}__163=__160;__161=file.Extensions;if((Length())(__161)>0){__162=(OfArray())([extensions]);}else{__162=(NewUnion())(FSharpList_1(),0);}__164=__162;__166=(OfSeq())((Append())(__163,__164));__168=(OfSeq())((Append())(__165,__166));tbody=(OfSeq())((Append())(__167,__168));__169=Attr();__171=(OfArray())([__169.NewAttr("class","download")]);__170=Tags();__173=file.Title;__172=Tags();__175=(OfArray())([__172.text(__173)]);__174=Tags();__177=file.Type;__176=Attr();__179=(OfArray())([__176.NewAttr("class",__177)]);__178=Tags();__181=(NewUnion())(FSharpList_1(),0);__180=Tags();return(op_MinusLess())(__170.Div(__171),(OfArray())([__174.NewTag("h3",__175),(op_MinusLess())(__178.NewTag("table",__179),(OfArray())([(op_MinusLess())(__180.NewTag("tbody",__181),tbody)]))]));},list_1));};__185=__182(__183);return __184(__185);};(Client_13()).AllDownloadsSimplePanel=function(familyOpt,usernameOpt){var _,__1,__59,__60,__61;__1=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.Downloads+Client+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"FilesToDownload\",\"methodSignature\":[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.String\"],[0]]],[1,[2,[0,\"FSharp.Core\",\"Microsoft.FSharp.Core.FSharpOption`1\",1],[1,[0,\"mscorlib\",\"System.String\"],[0]]],[0]]]},\"methodArguments\":[0]}]",[familyOpt,usernameOpt]);_=function(list){return(OfSeq())((Filter())(function(product){return product.FileInformation.$==1;},list));};__60=_(__1);__59=function(list){return(OfSeq())((Map())(function(file){var __10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__6,__7,__8,__9;__2=Attr();__4=(OfArray())([__2.NewAttr("class","download")]);__3=Tags();__5=Attr();__7=(OfArray())([__5.NewAttr("class","prodHeader")]);__6=Tags();__9=file.Title+" - Version "+file.FileInformation.$0.Version+(file.FileInformation.$0.PrivateDownload?" - Support Release":" - Public Release");__8=Tags();__11=file.Type;__10=Attr();__13=(OfArray())([__10.NewAttr("class",__11)]);__12=Tags();__14=Attr();__15=Attr();__17=(OfArray())([__14.NewAttr("class","prodLogo"),__15.NewAttr("rowspan","2")]);__16=Tags();__18=Tags();__19=Attr();__21=(OfArray())([__19.NewAttr("class","prodName")]);__20=Tags();__23=file.Title+" "+file.FileInformation.$0.Version+" for Visual Studio 2008/2010.";__22=Tags();__24=Attr();__26=(OfArray())([__24.NewAttr("class","description")]);__25=Tags();__28=file.Description;__27=Tags();__30=(OfArray())([__27.text(__28)]);__29=Tags();__31=Attr();__33=(OfArray())([__31.NewAttr("class","date")]);__32=Tags();__35="Released on "+file.FileInformation.$0.ReleaseDate;__34=Tags();__37=(OfArray())([(op_MinusLess())(__20.Div(__21),(OfArray())([__22.text(__23)])),(op_MinusLess())(__25.Div(__26),(OfArray())([__29.NewTag("p",__30),(op_MinusLess())(__32.Div(__33),(OfArray())([__34.text(__35)]))]))]);__36=Tags();__38=Attr();__40=(OfArray())([__38.NewAttr("class","prodTail")]);__39=Tags();__41=Tags();__43=(OfArray())([(op_MinusLess())(__16.NewTag("td",__17),(OfArray())([__18.text("")])),__36.NewTag("td",__37),(op_MinusLess())(__39.NewTag("td",__40),(OfArray())([__41.text("")]))]);__42=Tags();__47=(LeftButton())("Download",file.FileInformation.$0.DownloadPage);__46=function(arg10){var __44;__44=Events();return __44.OnClick(function(){return function(){var __45;__45=file.FileInformation.$0.DownloadPage;return __186(__45);};},arg10);};__46(__47);__49=(OfArray())([__47]);__48=Tags();__50=Attr();__51=Attr();__53=(OfArray())([__50.NewAttr("class","prodTail"),__51.NewAttr("rowspan","2")]);__52=Tags();__54=Tags();__56=(OfArray())([__48.NewTag("td",__49),(op_MinusLess())(__52.NewTag("td",__53),(OfArray())([__54.text("")]))]);__55=Tags();__58=(OfArray())([__42.NewTag("tr",__43),__55.NewTag("tr",__56)]);__57=Tags();return(op_MinusLess())(__3.Div(__4),(OfArray())([(op_MinusLess())(__6.Div(__7),(OfArray())([__8.text(__9)])),(op_MinusLess())(__12.NewTag("table",__13),(OfArray())([__57.NewTag("tbody",__58)]))]));},list));};__61=__59(__60);return __184(__61);};(Client_12()).Main=function(){var _,__1,__2,__3,conf;_=__187("Sign Up");conf={Header:__127(_),Padding:Padding_2(),Description:(StandardConfiguration()).Description,BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};__1=(Client_12()).SubmitProductSignupForm();__3=__188(__1);__2=function(form){return(FormWithResponse())(conf,function(psi){return(Client_12()).ProcessSubmitProductSignup(psi);},form);};return __2(__3);};(Client_12()).SubmitProductSignupForm=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__2,__4,__5,__6,__7,__8,__9,ps,toBugInfo;toBugInfo=function(n){return function(pi){return function(e){return function(c){return function(p){return{ProductId:pi,Name:n,Email:e,Company:c,Purpose:p};};};};};};ps=(NewUnion())(FSharpList_1(),1,["Select",-1],(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.Internals\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"Products\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]));_=(Input())("");__1=__189(_);__2=__190(__1);__5=(Select())(0,ps);__4=function(arg20){var __3;__3=Validator();return __3.IsGreaterThan(0,"",arg20);};__6=__4(__5);__8=__190(__6);__7=function(formlet){return(WithLabelAndInfo())("Product","Select the product",formlet);};__11=(Input())("");__9=Validator();__10=__9.IsEmail("");__12=__10(__11);__13=__190(__12);__15=(Input())("");__14=function(formlet){return(WithLabelAndInfo())("Company","Add your company or organization (optional)",formlet);};__17=(TextArea())("");__16=function(formlet){return(WithLabelAndInfo())("Usage","How are you planning to use the product (optional)",formlet);};return(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(toBugInfo),__191(__2)),__7(__8)),__192(__13)),__14(__15)),__16(__17));};(Client_12()).ProcessSubmitProductSignup=function(psi){var _;_=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.ProductSignupInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"SubmitProductSignup\",\"methodSignature\":[1,[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.ProductSignupInternals+Server+ProductSignupInfo\"],[0]]},\"methodArguments\":[0]}]",[psi]);return __193(_);};(Client_11()).Main=function(){var Description,_,__1,__2,__3,__4,conf;_=__187("Note to job and internship applicants: Please send your application, including your latest CV, to the email address on the Jobs page instead of submitting it here.");Description=__127(_);__1=__187("Contact Us");conf={Header:__127(__1),Padding:Padding_2(),Description:Description,BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};__2=(Client_11()).SubmitContactUsForm;__4=__188(__2);__3=function(form){return(FormWithResponse())(conf,function(cui){return(Client_11()).ProcessSubmitContactUs(cui);},form);};return __3(__4);};(Client_11()).ProcessSubmitContactUs=function(cui){var __5,__6;__6=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.ContactUsInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"SubmitContactUs\",\"methodSignature\":[1,[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.ContactUsInternals+Server+ContactUsInfo\"],[0]]},\"methodArguments\":[0]}]",[cui]);__5=function(_arg1){var _,__1,__2,__3,__4,msgs;if(_arg1.$==1){msgs=_arg1.$0;__4=__127(msgs);}else{_=Tags();__2=(OfArray())([_.text("Thanks, we will get back to you as soon as possible!")]);__1=Tags();__3=__1.Div(__2);__4=__187(__3);}return __4;};return __5(__6);};(Client_11()).countries=(OfArray())(["Africa","Argentina","Australia","Austria","Belgium","Brazil","Bulgaria","Canada","Caribbean","Central America","Chile","China","Colombia","Costa Rica","Croatia","Czech Republic","Denmark","Dominican Republic","Estonia","Finland","France","Georgia","Germany","Greece","Guatemala","Hong Kong","Hungary","India","Indonesia","Ireland","Israel","Italy","Japan","Korea","Latvia","Lithuania","Malaysia","Mexico","Middle East","Morocco","Netherlands","New Zealand","Norway","Panama","Peru","Philippines","Poland","Portugal","Puerto Rico","Romania","Russian Federation","Singapore","Slovakia","Slovenia","South Africa","Spain","Sweden","Switzerland","Taiwan","Thailand","Turkey","Ukraine","United Kingdom","United States","Venezuela","Vietnam"]);(Client_11()).topics=(OfArray())(["Software development","Consulting","Articles","Jobs","Internships","Requesting a quote","Requesting a sales receipt","WebSharper(TM) Partner Program","Investing","Other"]);__194=countries();__195=countries();countryVls_126_1=(NewUnion())(FSharpList_1(),1,["Select",""],(OfArray())((Zip())((OfSeq_1())(__194),(OfSeq_1())(__195))));__196=topics();__197=topics();topicVls_127_1=(NewUnion())(FSharpList_1(),1,["Select",""],(OfArray())((Zip())((OfSeq_1())(__196),(OfSeq_1())(__197))));offices_128_1=(OfArray())([["Select",""],["United States","United States"],["United Kingdom","United Kingdom"],["Hungary","Hungary"]]);toBugInfo_129_5=(Tupled())(function(tupledArg){return function(o){return function(t){return function(m){return{Name:tupledArg[0],Email:tupledArg[1],Country:tupledArg[2],Topic:t,Message:m,IFOffice:o};};};};});personF_138_2=function(){var _,__1,__10,__11,__12,__13,__14,__15,__16,__2,__3,__4,__5,__6,__7,__8,__9;_=function(name){return function(email){return function(country){return[name,email,country];};};};__1=(Input())("");__2=__189(__1);__4=__190(__2);__3=function(formlet){return(WithTextLabel())("Name",formlet);};__7=(Input())("");__5=Validator();__6=__5.IsEmail("");__8=__6(__7);__9=__190(__8);__10=(Select())(-1,countryVls_126_1);__11=__189(__10);__13=__190(__11);__12=function(formlet){return(WithTextLabel())("Country",formlet);};__14=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(_),__3(__4)),__198(__9)),__12(__13));__16=__199(__14);__15=function(formlet){return(WithLegend())("Tell us about Yourself",formlet);};return __15(__16);};__200=(Select())(-1,offices_128_1);__201=__189(__200);__203=__190(__201);__202=function(formlet){return(WithTextLabel())("IntelliFactory Office",formlet);};__205=__202(__203);__204=function(formlet){return(WithLegend())("Tell us where you would like to submit your message",formlet);};__206=(Select())(-1,topicVls_127_1);__207=__189(__206);__209=__190(__207);__208=function(formlet){return(WithTextLabel())("Topic",formlet);};__211=__208(__209);__210=function(formlet){return(WithLegend())("Tell us the nature of your enquiry",formlet);};__212=(TextArea())("");__213=__189(__212);__215=__190(__213);__214=function(formlet){return(WithLegend())("Comments",formlet);};(Client_11()).SubmitContactUsForm=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(toBugInfo_129_5),personF_138_2(undefined)),__204(__205)),__210(__211)),__214(__215));(Client_10()).Main=function(){var Description,_,__1,__2,__3,__4,conf;_=__187("All fields are required.");Description=__127(_);__1=__187("Submit a Bug");conf={Header:__127(__1),Padding:Padding_2(),Description:Description,BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};__2=(Client_10()).SubmitBugForm();__4=__188(__2);__3=function(form){return(FormWithResponse())(conf,function(bi){return(Client_10()).ProcessSubmitBug(bi);},form);};return __3(__4);};(Client_10()).SubmitBugForm=function(){var __1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__3,__4,__5,__6,__7,__8,__9,ps,toBugInfo;toBugInfo=function(n){return function(pi){return function(rn){return function(re){return function(d){return{Title:n,ProductId:pi,ReporterName:rn,ReporterEmail:re,Description:d};};};};};};ps=(NewUnion())(FSharpList_1(),1,["Select",-1],(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.Internals\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"Products\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]));__2=(Input())("");__1=function(arg10){var _;_=Validator();return _.IsNotEmpty("Enter a title",arg10);};__3=__1(__2);__5=__190(__3);__4=function(formlet){return(WithTextLabel())("Title",formlet);};__7=(Select())(0,ps);__6=function(arg20){var _;_=Validator();return _.IsGreaterThan(0,"Select a product",arg20);};__8=__6(__7);__10=__190(__8);__9=function(formlet){return(WithTextLabel())("Product",formlet);};__12=(Input())("");__11=function(arg10){var _;_=Validator();return _.IsNotEmpty("Add your name",arg10);};__13=__11(__12);__15=__190(__13);__14=function(formlet){return(WithTextLabel())("Reported By",formlet);};__18=(Input())("");__16=Validator();__17=__16.IsEmail("Add your email address");__19=__17(__18);__20=__190(__19);__22=(TextArea())("");__21=function(arg10){var _;_=Validator();return _.IsNotEmpty("Add the description of the problem",arg10);};__23=__21(__22);__25=__190(__23);__24=function(formlet){return(WithTextLabel())("Description",formlet);};return(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(toBugInfo),__4(__5)),__9(__10)),__14(__15)),__198(__20)),__24(__25));};(Client_10()).ProcessSubmitBug=function(bi){var __5,__6;__6=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.BugSubmitInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"SubmitBug\",\"methodSignature\":[1,[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.BugSubmitInternals+Server+BugInfo\"],[0]]},\"methodArguments\":[0]}]",[bi]);__5=function(_arg1){var _,__1,__2,__3,__4,msgs;if(_arg1.$==1){msgs=_arg1.$0;__4=__127(msgs);}else{_=Tags();__2=(OfArray())([_.text("Thanks, your bug is submitted!")]);__1=Tags();__3=__1.Div(__2);__4=__187(__3);}return __4;};return __5(__6);};(Client_9()).Main=function(){var Description,_,__1,__2,__3,__4,conf;_=__187("All fields are required.");Description=__127(_);__1=__187("Ask a Question");conf={Header:__127(__1),Padding:Padding_2(),Description:Description,BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};__2=(Client_9()).QuestionFormlet;__4=__188(__2);__3=function(form){return(FormWithResponse())(conf,function(qi){return(Client_9()).ProcessSaveQuestion(qi);},form);};return __3(__4);};(Client_9()).ProcessSaveQuestion=function(qi){var __5,__6;__6=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.AskQuestionInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"SaveQuestion\",\"methodSignature\":[1,[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.AskQuestionInternals+Server+QuestionInfo\"],[0]]},\"methodArguments\":[0]}]",[qi]);__5=function(_arg1){var _,__1,__2,__3,__4,msgs;if(_arg1.$==1){msgs=_arg1.$0;__4=__127(msgs);}else{_=Tags();__2=(OfArray())([_.text("Thanks, your question is submitted!")]);__1=Tags();__3=__1.Div(__2);__4=__187(__3);}return __4;};return __5(__6);};toQInfo_88_2=function(n){return function(rn){return function(re){return function(t){return{Title:n,ReporterName:rn,ReporterEmail:re,Text:t};};};};};__217=(Input())("");__216=function(arg10){var _;_=Validator();return _.IsNotEmpty("Enter a question",arg10);};__218=__216(__217);__220=__190(__218);__219=function(formlet){return(WithLabelAndInfo())("Question","Your question",formlet);};__222=(Input())("");__221=function(arg10){var _;_=Validator();return _.IsNotEmpty("Enter your name",arg10);};__223=__221(__222);__225=__190(__223);__224=function(formlet){return(WithLabelAndInfo())("From","Add your name",formlet);};__228=(Input())("");__226=Validator();__227=__226.IsEmail("Enter a valid email address");__229=__227(__228);__231=__190(__229);__230=function(formlet){return(WithLabelAndInfo())("Email","Add a valid email address",formlet);};__233=(TextArea())("");__232=function(arg10){var _;_=Validator();return _.IsNotEmpty("Enter more details",arg10);};__234=__232(__233);__236=__190(__234);__235=function(formlet){return(WithLabelAndInfo())("Details","More information about your question",formlet);};(Client_9()).QuestionFormlet=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(toQInfo_88_2),__219(__220)),__224(__225)),__230(__231)),__235(__236));(Client_8()).NewsletterUnsubscribe=function(){var Description,_,__1,__2,__3,conf;_=__187("You can opt out from our newsletter emails using the form below.  You will no longer receive notifications about our upcoming webcasts, papers, training courses, and development conferences.");Description=__127(_);conf={Header:Header(),Padding:Padding_3(),Description:Description,BackgroundColor:BackgroundColor_1(),BorderColor:BorderColor_1(),CssClass:CssClass_1(),Style:Style_1()};__1=SubmitNewsLetterForm();__3=__188(__1);__2=function(form){return(FormWithResponse())(conf,function(email){return(Client_8()).ProcessUnsubscribe(email);},form);};return __2(__3);};(Client_8()).NewsletterSignup=function(){var Description,_,__1,__2,__3,conf;_=__187("Sign up for our development newsletter and receive information about our upcoming webcasts, papers, training courses, and development conferences. We will not spam you nor will we give your email address to anyone.");Description=__127(_);conf={Header:Header(),Padding:Padding_3(),Description:Description,BackgroundColor:BackgroundColor_1(),BorderColor:BorderColor_1(),CssClass:CssClass_1(),Style:Style_1()};__1=SubmitNewsLetterForm();__3=__188(__1);__2=function(form){return(FormWithResponse())(conf,function(email){return(Client_8()).ProcessSubmitNewsLetterForm(email);},form);};return __2(__3);};(Client_8()).ProcessUnsubscribe=function(email){var __5,__6;__6=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.NewsLetterInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"Unsubscribe\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.String\"],[0]]},\"methodArguments\":[0]}]",[email]);__5=function(_arg1){var _,__1,__2,__3,__4,msgs;if(_arg1.$==1){msgs=_arg1.$0;__4=__127(msgs);}else{_=Tags();__2=(OfArray())([_.text("You are removed from our future newsletters!")]);__1=Tags();__3=__1.Div(__2);__4=__187(__3);}return __4;};return __5(__6);};(Client_8()).ProcessSubmitNewsLetterForm=function(email){var _;_=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.NewsLetterInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"SubmitNewsLetter\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.String\"],[0]]},\"methodArguments\":[0]}]",[email]);return __193(_);};__240=(Input())("");__238=Validator();__239=__238.IsEmail("");__241=__239(__240);__242=__190(__241);(Client_8()).SubmitNewsLetterForm=(op_LessMultiplyGreater())((Return())(__237),__192(__242));(Client_7()).BookCourseForOnsite=function(courseId){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__5,__6,__7,__8,__9,events,index,toBookingInfo;_=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingsServer\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"AllCourses\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]);__1=__243(_);events=__244(__1);index=(SeqModule()).FindIndex((Tupled())(function(tupledArg){return tupledArg[1][0]===courseId;}),events);toBookingInfo=(Tupled())(function(tupledArg){return function(name){return function(email){return function(phone){return function(companyName){return function(noAttendees){return function(street){return function(city){return function(country){return function(zip){return function(date){return function(){return{Name:name,Email:email,Tel:phone,Company:companyName,NumAttendees:__129(noAttendees),Street:street,City:city,ZipCode:zip,Country:country,Date:date.toUTCString(),Type:{$:0,$0:tupledArg[1],$1:tupledArg[0]}};};};};};};};};};};};};});__2=(Select())(index,events);__3=__245(__2);__4=__190(__3);__5=(Input())("");__6=__189(__5);__7=__190(__6);__10=(Input())("");__8=Validator();__9=__8.IsEmail("");__11=__9(__10);__12=__190(__11);__13=(Input())("");__14=__189(__13);__15=__190(__14);__16=(Input())("");__17=__189(__16);__18=__190(__17);__21=(Input())("");__19=Validator();__20=__19.IsInt("");__22=__20(__21);__23=__190(__22);__24=(Input())("");__25=__189(__24);__26=__190(__25);__27=(Input())("");__28=__189(__27);__29=__190(__28);__30=(Input())("");__31=__189(__30);__32=__190(__31);__33=(Input())("");__34=__189(__33);__35=__190(__34);__36=(Calendar())({$:0});__37=__256(__36);__38=(Checkbox())(false);__39=__258(__38);__40=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(toBookingInfo),__246(__4)),__247(__7)),__248(__12)),__249(__15)),__250(__18)),__251(__23)),__252(__26)),__253(__29)),__254(__32)),__255(__35)),__257(__37)),__259(__39));return __199(__40);};(Client_7()).TestForm=function(){var Description,_,__1,__10,__2,__9,conf,form;_=__187("Test FormWithResponse");Description=__127(_);__1=__187("Test Form");conf={Header:__127(__1),Padding:Padding_2(),Description:Description,BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};__2=function(){return __260;};form=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__2),(Input())("")),(Input())(""));__10=__188(form);__9=function(form_1){return(FormWithResponse())(conf,function(){var __3,__4,__5,__6,__7,__8;__3=window;if(window.confirm.call(__3,"?")){__4=Tags();__6=(OfArray())([__4.text("Result.Success")]);__5=Tags();__7=__5.Div(__6);__8=__187(__7);}else{__8={$:1,$0:(OfArray())(["Failed"])};}return __8;},form_1);};return __9(__10);};(Client_7()).RenderOnSiteTBForm=function(){var Description,_,__1,__2,__3,__4,conf;_=__187("Request an onsite training session");Description=__127(_);__1=__187("Onsite Training Booking");conf={Header:__127(__1),Padding:Padding_2(),Description:Description,BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};__2=(Client_7()).OnSiteTBForm();__4=__188(__2);__3=function(form){return(FormWithResponse())(conf,__261,form);};return __3(__4);};(Client_7()).RenderScheduledTBForm=function(eventId){var Description,ProcessScheduledTBForm,__10,__11,__7,__8,__9,conf;ProcessScheduledTBForm=function(stbi){var __5,__6;__6=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingBookingInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"SubmitScheduledTB\",\"methodSignature\":[1,[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingBookingInternals+Server+ScheduledTBInfo\"],[0]]},\"methodArguments\":[0]}]",[stbi]);__5=function(_arg1){var _,__1,__2,__3,__4,msgs;if(_arg1.$==1){msgs=_arg1.$0;__4=__127(msgs);}else{_=Tags();__2=(OfArray())([_.text("Thanks, we will contact you soon to confirm your booking.")]);__1=Tags();__3=__1.Div(__2);__4=__187(__3);}return __4;};return __5(__6);};__7=__187("Sign up for one of the prescheduled training sessions.");Description=__127(__7);__8=__187("Scheduled Training Booking");conf={Header:__127(__8),Padding:Padding_2(),Description:Description,BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};__9=(Client_7()).ScheduledTBForm(eventId);__11=__188(__9);__10=function(form){return(FormWithResponse())(conf,ProcessScheduledTBForm,form);};return __10(__11);};(Client_7()).OnSiteTBForm=function(){var _,__1,__2,__3,__37,__38,__39,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__60,__61,__62,__63,__64,__65,__66,__67,__68,__69,__70,__71,__72,events,toBookingInfo,tyF;__1=(OfArray())([1,2,3,4,5]);_=function(list){return(OfSeq())((Map())(function(x){return[x.toString(),x];},list));};(NewUnion())(FSharpList_1(),1,["Select",0],_(__1));__2=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingsServer\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"AllCourses\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]);__3=__243(__2);events=__244(__3);toBookingInfo=function(name){return function(email){return function(phone){return function(companyName){return function(noAttendees){return function(street){return function(city){return function(country){return function(zip){return function(date){return function(tbTy){return function(){return{Name:name,Email:email,Tel:phone,Company:companyName,NumAttendees:__129(noAttendees),Street:street,City:city,ZipCode:zip,Country:country,Date:date.toUTCString(),Type:tbTy};};};};};};};};};};};};};tyF=function(){var builder_;builder_=Do();return builder_.Delay(function(){var __4,__5;__5=(Select())(0,(OfArray())([["Training Course",{$:0}],["Custom Course",{$:1}],["Consultation",{$:2}]]));__4=function(formlet){return(WithLabelAndInfo())("Type of Onsite Work","Select what type of work you would like us to do",formlet);};return builder_.Bind(__4(__5),function(_arg217){var __10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__30,__31,__32,__33,__34,__35,__36,__6,__8,__9;if(_arg217.$==1){__6=function(description){return function(days){return{$:1,$0:description,$1:Number(days)};};};__9=(TextArea())("");__8=function(arg10){var __7;__7=Validator();return __7.IsNotEmpty("Enter your desired topics",arg10);};__10=__8(__9);__12=__190(__10);__11=function(formlet){return(WithLabelAndInfo())("Desired Topics","Add a brief description of your desired onsite training topics",formlet);};__15=(Input())("");__13=Validator();__14=__13.IsInt("Add the number of days of your desired onsite course");__16=__14(__15);__18=__190(__16);__17=function(formlet){return(WithLabelAndInfo())("Duration (in days)","Add the length of your desired onsite training",formlet);};__36=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__6),__11(__12)),__17(__18));}else{if(_arg217.$==2){__19=function(description){return function(days){return{$:2,$0:description,$1:Number(days)};};};__21=(TextArea())("");__20=function(arg10){var __7;__7=Validator();return __7.IsNotEmpty("Enter a brief description of the problems you are facing",arg10);};__22=__20(__21);__24=__190(__22);__23=function(formlet){return(WithLabelAndInfo())("Desired Topics","Add a brief description of your desired onsite consultation topics",formlet);};__27=(Input())("");__25=Validator();__26=__25.IsInt("Add the number of days of your desired onsite consultation");__28=__26(__27);__30=__190(__28);__29=function(formlet){return(WithLabelAndInfo())("Duration (in days)","Add the length of your desired onsite consultation",formlet);};__35=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__19),__23(__24)),__29(__30));}else{__31=(Tupled())(function(tupledArg){var courseId,courseTitle;courseId=tupledArg[0];courseTitle=tupledArg[1];return{$:0,$0:courseTitle,$1:courseId};});__32=(Select())(-1,events);__33=__245(__32);__34=__190(__33);__35=(op_LessMultiplyGreater())((Return())(__31),__246(__34));}__36=__35;}return builder_.Bind(__36,function(_arg216){return builder_.Return(_arg216);});});});};__37=(Input())("");__38=__189(__37);__39=__190(__38);__42=(Input())("");__40=Validator();__41=__40.IsEmail("");__43=__41(__42);__44=__190(__43);__45=(Input())("");__46=__189(__45);__47=__190(__46);__48=(Input())("");__49=__189(__48);__50=__190(__49);__53=(Input())("");__51=Validator();__52=__51.IsInt("");__54=__52(__53);__55=__190(__54);__56=(Input())("");__57=__189(__56);__58=__190(__57);__59=(Input())("");__60=__189(__59);__61=__190(__60);__62=(Input())("");__63=__189(__62);__64=__190(__63);__65=(Input())("");__66=__189(__65);__67=__190(__66);__68=(Calendar())({$:0});__69=__256(__68);__70=(Checkbox())(false);__71=__258(__70);__72=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(toBookingInfo),__247(__39)),__248(__44)),__249(__47)),__250(__50)),__251(__55)),__252(__58)),__253(__61)),__254(__64)),__255(__67)),__257(__69)),tyF(undefined)),__259(__71));return __199(__72);};(Client_7()).ScheduledTBForm=function(eventId){var __33,__34,__35,__36,__37,__38,__39,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__60,__61,__62,__63,__64,__65,attendeeF,defEvent,events,toAttendee,toBookingInfo;toAttendee=function(fn){return function(mn){return function(ln){return function(email){return function(phone){return function(job){return{FirstName:fn,MiddleName:mn,LastName:ln,Email:email,PhoneNumber:phone,JobTitle:job};};};};};};};attendeeF=function(){var __1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__4,__5,__6,__7,__8,__9;__2=(Input())("");__1=function(arg10){var _;_=Validator();return _.IsNotEmpty("Must specify non-empty first name",arg10);};__3=__1(__2);__5=__190(__3);__4=function(formlet){return(WithLabelAndInfo())("First Name","Add first name",formlet);};__7=(Input())("");__6=function(formlet){return(WithLabelAndInfo())("Middle Name","Add middle name",formlet);};__9=(Input())("");__8=function(arg10){var _;_=Validator();return _.IsNotEmpty("Must specify non-empty last name",arg10);};__10=__8(__9);__12=__190(__10);__11=function(formlet){return(WithLabelAndInfo())("Last Name","Add last name",formlet);};__15=(Input())("");__13=Validator();__14=__13.IsEmail("Must specify valid email");__16=__14(__15);__18=__190(__16);__17=function(formlet){return(WithLabelAndInfo())("Email","Add email address",formlet);};__20=(Input())("");__19=function(formlet){return(WithLabelAndInfo())("Phone Number","Add phone number",formlet);};__22=(Input())("");__21=function(formlet){return(WithLabelAndInfo())("Job Title","Add job title",formlet);};__23=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(toAttendee),__4(__5)),__6(__7)),__11(__12)),__17(__18)),__19(__20)),__21(__22));__25=__199(__23);__24=function(formlet){return(WithLegend())("Attendee",formlet);};__27=__24(__25);__26=function(formlet){return(Enhance_1()).Many(formlet);};__29=__26(__27);__28=function(formlet){return(WithLegend())("Attendees",formlet);};__31=__28(__29);__30=function(arg20){var _;_=Validator();return _.Is(function(lst){return(Length())(lst)>0;},"Must add at least one attendee",arg20);};__32=__30(__31);return __190(__32);};toBookingInfo=(Tupled())(function(tupledArg){var evDate,evId,evLoc,evTitle;evId=tupledArg[0];evTitle=tupledArg[1];evDate=tupledArg[2];evLoc=tupledArg[3];return(Tupled())(function(tupledArg_1){return function(attendees){return{Name:tupledArg_1[0],Email:tupledArg_1[1],PhoneNumber:tupledArg_1[2],Company:tupledArg_1[3],EventId:evId,Event:evTitle,Date:evDate,Location:evLoc,Attendees:attendees};};});});__34=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingBookingInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"ReadTrainingEvents\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]);__33=function(list){return(OfSeq())((Map())(function(te){return[te.Date+" ("+te.City+") "+te.Title,[te.EventId,te.Title,te.Date,te.City]];},list));};__36=__33(__34);__35=function(x){return(NewUnion())(FSharpList_1(),1,["Select",[-1,"","",""]],x);};events=__35(__36);__37=function(list){return(SeqModule()).TryFindIndex((Tupled())(function(tupledArg){return tupledArg[1][0]===eventId;}),list);};__39=__37(events);__38=function(_arg3){var _;if(_arg3.$==1){_=_arg3.$0;}else{_=-1;}return _;};defEvent=__38(__39);__41=(Select())(defEvent,events);__40=function(arg20){var _;_=Validator();return _.Is((Tupled())(function(tupledArg){return tupledArg[0]>-1;}),"Must select an event",arg20);};__42=__40(__41);__44=__190(__42);__43=function(formlet){return(WithLabelAndInfo())("Event","Select event to attend",formlet);};__46=__43(__44);__45=function(formlet){return(WithLegend())("Training Event",formlet);};__47=function(name){return function(comp){return function(email){return function(phone){return[name,comp,email,phone];};};};};__49=(Input())("");__48=function(arg10){var _;_=Validator();return _.IsNotEmpty("Must specify non-empty name",arg10);};__50=__48(__49);__51=__190(__50);__53=(Input())("");__52=function(formlet){return(WithLabelAndInfo())("Company Name","Add your company or organization",formlet);};__56=(Input())("");__54=Validator();__55=__54.IsEmail("Must specify valid email");__57=__55(__56);__58=__190(__57);__60=(Input())("");__59=function(arg10){var _;_=Validator();return _.IsNotEmpty("Must specify non-empty phone number",arg10);};__61=__59(__60);__62=__190(__61);__63=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__47),__191(__51)),__52(__53)),__192(__58)),__249(__62));__65=__199(__63);__64=function(formlet){return(WithLegend())("Person making the booking",formlet);};return(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(toBookingInfo),__45(__46)),__64(__65)),attendeeF(undefined));};(Client_6()).Main=function(){var Description,_,__1,__2,__3,__4,__5,conf,inputRecord,inputRecord_1,inputRecord_2,resConf,subConf;inputRecord=(get_Default_1())();_=__187("Please read the following license agreement carefully.  You can use\r\n                    WebSharper(TM) for non-commercial purposes free of charge.  Commercial\r\n                    use requires a developer license and allows you to redistribute WebSharper(TM)\r\n                    binaries with your applications.");Description=__127(_);__1=__187("License Agreement");conf={Header:__127(__1),Padding:inputRecord.Padding,Description:Description,BackgroundColor:inputRecord.BackgroundColor,BorderColor:inputRecord.BorderColor,CssClass:inputRecord.CssClass,Style:inputRecord.Style};inputRecord_1=(get_Default_2())();subConf={Label:{$:1,$0:"I agree"},Style:inputRecord_1.Style,Class:inputRecord_1.Class};inputRecord_2=(get_Default_2())();resConf={Label:{$:1,$0:"Cancel"},Style:inputRecord_2.Style,Class:inputRecord_2.Class};__3=(Client_6()).SubmitLicenseAgreementForm;__2=function(formlet){return(Enhance_1()).WithCustomSubmitAndResetButtons(subConf,resConf,formlet);};__5=__2(__3);__4=function(form){return(FormWithResponse())(conf,function(psi){return(Client_6()).ProcessSubmitLicenseAgreement(psi);},form);};return __4(__5);};(Client_6()).ProcessSubmitLicenseAgreement=function(psi){var __23,__24;__24=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.LicenseAgreementSignupInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"SubmitLicenseAgreementSignup\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.String\"],[0]]},\"methodArguments\":[0]}]",[psi]);__23=function(_arg3){var _,__1,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__3,__4,__5,__6,__7,__8,btn,msgs;if(_arg3.$==1){msgs=_arg3.$0;_=msgs.$0;__2=(OfArray())([__262(_)]);__1=Tags();__3=__1.Div(__2);__22=__187(__3);}else{__4=Attr();__5=Attr();__6=Attr();__8=(OfArray())([__4.NewAttr("class","button"),__5.NewAttr("type","button"),__6.NewAttr("value","Download")]);__7=Tags();__15=__7.NewTag("input",__8);__14=function(arg10){var __9;__9=Events();return __9.OnClick(function(){return function(){var __11,__12,__13;__12=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.Downloads+Filenames+WebSharper\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"LatestSlow\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]);__11=function(_arg1){var __10,file;if(_arg1.$==0){__10="error/NotFound.aspx";}else{file=_arg1.$0;__10=(Filenames()).BinaryDownloadUrl(file.FileName);}return __10;};__13=__11(__12);return __186(__13);};},arg10);};__14(__15);btn=__15;__16=Tags();__18=(OfArray())([__16.text("Thanks, press the Download button to start your download! ->")]);__17=Tags();__20=(OfArray())([__17.NewTag("label",__18),btn]);__19=Tags();__21=__19.Div(__20);__22=__187(__21);}return __22;};return __23(__24);};__263=Attr();__264=Attr();__265=Attr();__267=(OfArray())([__263.NewAttr("src","LicenseAgreementFile.aspx"),__264.NewAttr("width","470"),__265.NewAttr("height","300")]);__266=Tags();__269=(OfArray())([__266.NewTag("iframe",__267)]);__268=Tags();licensePan_96_1=__268.Div(__269);cb_100_1=(Checkbox())(false);__270=function(){return function(e){return function(){return e;};};};__272=(WithLabelAndInfo())("Accept","Check to accept the license agreement.",cb_100_1);__271=function(arg10){var _;_=Validator();return _.IsTrue("Accept the agreement to proceed",arg10);};(Client_6()).SubmitLicenseAgreementForm=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__270),(WithLabelAndInfo())("License","Please read carefully.",(OfElement())(function(){return licensePan_96_1;}))),(WithLabelAndInfo())("Email","Enter your email address to be notified of updates. (Optional)",(Input())(""))),__271(__272));__273=function(username){return function(password){return{Username:username,Password:password};};};__275=(Input())("");__274=function(arg10){var _;_=Validator();return _.IsNotEmpty("Must enter a valid username",arg10);};__276=__274(__275);__278=__190(__276);__277=function(formlet){return(WithLabelAndInfo())("Username","Enter a valid username",formlet);};__280=(Input())("");__279=function(formlet){return(WithLabelAndInfo())("Password","Enter password",formlet);};__282=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__273),__277(__278)),__279(__280));__281=function(formlet){return(Enhance_1()).WithErrorSummary("Error Summary",formlet);};(Forms()).LoginForm=__281(__282);(Enhance()).WithLoginForm=function(conf){var _,__1,__2,__3,__4;_=(Forms()).LoginForm;__2=__188(_);__1=function(formlet){return(WithCustomFormContainer())(conf,formlet);};__4=__1(__2);__3=function(formlet){return(Run())(function(login){return(Client_15()).Send(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.WebSharper.CommonControls.Enhance+LoginInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"LogInUser\",\"methodSignature\":[1,[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.WebSharper.CommonControls.Enhance+LoginInternals+LoginInformation\"],[0]]},\"methodArguments\":[0]}]",[login]);},formlet);};return __3(__4);};(Client_5()).CourseListing=function(){var builder_,formatCourse;formatCourse=function(course){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__5,__6,__7,__8,__9,desc,linkCourse;_=course.CourseId;linkCourse="/TrainingCourse.aspx?Id="+_.toString();__2=(NewUnion())(FSharpList_1(),0);__1=Tags();desc=__1.NewTag("p",__2);desc.set_Html(course.CourseAbstract);__3=Attr();__4=Attr();__5=course.CourseTitle;__7=(OfArray())([__3.NewAttr("href",linkCourse),__4.NewAttr("alt",__5)]);__6=Tags();__8=course.CourseTitle;if(course.IsInstructorLed){__9=Attr();__10=Attr();__11=Attr();__13=(OfArray())([__9.NewAttr("src","/images/button-1.png"),__10.NewAttr("alt","Scheduled"),__11.NewAttr("class","course-icon")]);__12=Tags();__17=__12.NewTag("img",__13);}else{__14=Attr();__16=(OfArray())([__14.NewAttr("class","course-icon-empty")]);__15=Tags();__17=__15.Div(__16);}if(course.IsOnsite){__18=Attr();__19=Attr();__20=Attr();__22=(OfArray())([__18.NewAttr("src","/images/button-2.png"),__19.NewAttr("alt","Onsite"),__20.NewAttr("class","course-icon")]);__21=Tags();__26=__21.NewTag("img",__22);}else{__23=Attr();__25=(OfArray())([__23.NewAttr("class","course-icon-empty")]);__24=Tags();__26=__24.Div(__25);}if(course.IsVirtual){__27=Attr();__28=Attr();__29=Attr();__31=(OfArray())([__27.NewAttr("src","/images/button-3.png"),__28.NewAttr("alt","Onsite"),__29.NewAttr("class","course-icon")]);__30=Tags();__35=__30.NewTag("img",__31);}else{__32=Attr();__34=(OfArray())([__32.NewAttr("class","course-icon-empty")]);__33=Tags();__35=__33.Div(__34);}__37=(OfArray())([(op_MinusLess())(__6.NewTag("a",__7),(OfArray())([__262(__8)])),__17,__26,__35]);__36=Tags();__39=(OfArray())([__36.NewTag("h3",__37),desc]);__38=Tags();return __38.NewTag("li",__39);};builder_=Do_1();return builder_.Delay(function(){return builder_.Bind((Async())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingsServer\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"AllCoursesAsync\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]),function(_arg218){var _,__4,__5;_=function(list){return(OfSeq())((Map())(formatCourse,list));};__5=_(_arg218);__4=function(courses){var __1,__2,__3;__1=Attr();__3=(OfArray())([__1.NewAttr("class","course-listing")]);__2=Tags();return(op_MinusLess())(__2.NewTag("ul",__3),courses);};return builder_.Return(__4(__5));});});};(Client_5()).CoursesSummaries=function(){var builder_,formatCourse;formatCourse=function(course){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__3,__4,__5,__6,__7,__8,__9,desc,linkCourse;_=course.CourseId;linkCourse="TrainingCourse.aspx?Id="+_.toString();__2=(NewUnion())(FSharpList_1(),0);__1=Tags();desc=__1.NewTag("p",__2);desc.set_Html(course.CourseAbstract);__3=Attr();__5=(OfArray())([__3.NewAttr("class","postborder")]);__4=Tags();__6=Attr();__7=Attr();__9=(OfArray())([__6.NewAttr("href",linkCourse),__7.NewAttr("alt","Course details")]);__8=Tags();__10=Attr();__11=Attr();__13=(OfArray())([__10.NewAttr("src","/images/button-details.png"),__11.NewAttr("alt","Details")]);__12=Tags();__14=Attr();__15=Attr();__16=course.CourseTitle;__18=(OfArray())([__14.NewAttr("href",linkCourse),__15.NewAttr("alt",__16)]);__17=Tags();__19=course.CourseTitle;__21=(OfArray())([(op_MinusLess())(__8.NewTag("a",__9),(OfArray())([__12.NewTag("img",__13)])),(op_MinusLess())(__17.NewTag("a",__18),(OfArray())([__262(__19)]))]);__20=Tags();return(op_MinusLess())(__4.Div(__5),(OfArray())([__20.NewTag("p",__21),desc]));};builder_=Do_1();return builder_.Delay(function(){return builder_.Bind((Async())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingsServer\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"AllCoursesAsync\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]),function(_arg219){var _,__1;_=function(list){return(OfSeq())((Map())(formatCourse,list));};__1=_(_arg219);return builder_.Return(__136(__1));});});};(Client_5()).UpcomingCoursesWithinXMonths=function(countryOpt,onlyOnline,x){var builder_,formatCourse;formatCourse=function(course){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__3,__4,__5,__6,__7,__8,__9,linkBooking,linkCourse;_=course.CourseId;linkCourse="/TrainingCourse.aspx?Id="+_.toString();__1=course.EventId;linkBooking="/TrainingBooking.aspx?Id="+__1.toString();__3=(OfArray())([(LeftButton())("Apply",linkBooking)]);__2=Tags();__4=Attr();__6=(OfArray())([__4.NewAttr("valign","middle")]);__5=Tags();__7=course.Date+" - "+course.LocationCity+" - ";__9=(OfArray())([__262(__7)]);__8=Tags();__10=Attr();__11=Attr();__12=course.CourseTitle;__14=(OfArray())([__10.NewAttr("href",linkCourse),__11.NewAttr("alt",__12)]);__13=Tags();__15=course.CourseTitle;__16=course.IsOnline?" (Online)":"";__18=(OfArray())([__262(__16)]);__17=Tags();__20=(OfArray())([__2.NewTag("td",__3),(op_MinusLess())(__5.NewTag("td",__6),(OfArray())([__8.NewTag("span",__9),(op_MinusLess())(__13.NewTag("a",__14),(OfArray())([__262(__15)])),__17.NewTag("span",__18)]))]);__19=Tags();__22=(OfArray())([__19.NewTag("tr",__20)]);__21=Tags();__24=(OfArray())([__21.NewTag("tbody",__22)]);__23=Tags();return __23.NewTag("table",__24);};builder_=Do_1();return builder_.Delay(function(){return builder_.Bind((Async())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingsServer\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"UpcomingCoursesWithinXMonths\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.Int32\"],[0]]},\"methodArguments\":[0]}]",[x]),function(_arg220){var _,__10,__11,__4,__5,__6,__7,__8,__9,coursesToDisplay,res;_=function(list){return(OfSeq())((Filter())(function(te){return te.IsOnline?true:!onlyOnline;},list));};__5=_(_arg220);__4=function(list){return(OfSeq())((Filter())(function(te){var __1,__2,__3;if(countryOpt.$==1){__1=te.LocationCountry;__2=countryOpt.$0;__3=__1.toLowerCase()===__2.toLowerCase();}else{__3=true;}return __3;},list));};coursesToDisplay=__4(__5);if(__135(coursesToDisplay)>0){__6=function(list){return(OfSeq())((Map())(formatCourse,list));};__7=__6(coursesToDisplay);__11=__136(__7);}else{__8=Tags();__10=(OfArray())([__8.text("No upcoming courses")]);__9=Tags();__11=__9.Div(__10);}res=__11;return builder_.Return(res);});});};(Client2()).TrainingCourseInfo=function(courseId){var Padding_4,Right,__18,__19,builder_,conf,formatEvent,inputRecord;formatEvent=function(courseTitle){return function(ce){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__2,__3,__4,__5,__6,__7,__8,__9,linkBooking;_=ce.EventId;linkBooking="/TrainingBooking.aspx?Id="+_.toString();__1=Attr();__3=(OfArray())([__1.NewAttr("class","course")]);__2=Tags();__4=Attr();__5=Attr();__7=(OfArray())([__4.NewAttr("href",linkBooking),__5.NewAttr("alt",courseTitle)]);__6=Tags();__8=Attr();__9=Attr();__10=Attr();__12=(OfArray())([__8.NewAttr("class","apply"),__9.NewAttr("alt","Apply"),__10.NewAttr("src","/images/button-apply.png")]);__11=Tags();__13=Attr();__14=Attr();__16=(OfArray())([__13.NewAttr("href",linkBooking),__14.NewAttr("alt",courseTitle)]);__15=Tags();__17=ce.Date+" - "+ce.LocationCity+" - "+courseTitle;return(op_MinusLess())(__2.NewTag("p",__3),(OfArray())([(op_MinusLess())(__6.NewTag("a",__7),(OfArray())([__11.NewTag("img",__12)])),(op_MinusLess())(__15.NewTag("a",__16),(OfArray())([__262(__17)]))]));};};inputRecord=Padding_2();Right={$:1,$0:40};Padding_4={Left:inputRecord.Left,Right:Right,Top:inputRecord.Top,Bottom:inputRecord.Bottom};__18=__187("Onsite Training Booking");__19=__187("Request an onsite training session");conf={Header:__127(__18),Padding:Padding_4,Description:__127(__19),BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};builder_=Do_1();return builder_.Delay(function(){return builder_.Bind((Async())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingsServer\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"TrainingCourseByCourseId\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.Int32\"],[0]]},\"methodArguments\":[0]}]",[courseId]),function(_arg221){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__7,__8,__9,conf_1,course,desc,events,outl,res,schedule;if(_arg221.$==1){course=_arg221.$0;__1=course.Events;_=function(list){return(OfSeq())((Map())(formatEvent(course.CourseTitle),list));};__2=_(__1);events=__136(__2);__3=Attr();__5=(OfArray())([__3.NewAttr("class","course-text")]);__4=Tags();desc=__4.Div(__5);desc.set_Html(course.CourseDescription);__6=Attr();__8=(OfArray())([__6.NewAttr("class","course-text")]);__7=Tags();outl=__7.Div(__8);outl.set_Html(course.CourseOutline);__9=Attr();__11=(OfArray())([__9.NewAttr("class","yui-skin-sam")]);__10=Tags();__12=(Client_7()).BookCourseForOnsite(course.CourseId);__14=__188(__12);__13=function(form){return(FormWithResponse())(conf,__261,form);};schedule=(op_MinusLess())(__10.Div(__11),(OfArray())([__13(__14)]));conf_1=new(JQueryUI()).TabsConfiguration();__15=Attr();__17=(OfArray())([__15.NewAttr("class","course-info")]);__16=Tags();__20=course.CourseTitle+" ("+course.CourseNumber+")";__22=(OfArray())([__262(__20)]);__21=Tags();__23=Tags();__25=(OfArray())([__23.text("Duration: ")]);__24=Tags();__26=course.StandardDuration;__27=__283(__26)+" days";__29=(OfArray())([__262(__27)]);__28=Tags();__31=(OfArray())([__24.NewTag("label",__25),__28.NewTag("span",__29)]);__30=Tags();__32=Tags();__34=(OfArray())([__32.text("Available formats: ")]);__33=Tags();__35=Tags();__37=(OfArray())([__35.text("Instructor-led, Onsite, Online")]);__36=Tags();__39=(OfArray())([__33.NewTag("label",__34),__36.NewTag("span",__37)]);__38=Tags();__40=Tags();__42=(OfArray())([__40.text("Price: ")]);__41=Tags();__43=course.StandardPrice;__44=__283(__43)+" "+course.StandardCurrency;__46=(OfArray())([__262(__44)]);__45=Tags();__48=(OfArray())([__41.NewTag("label",__42),__45.NewTag("span",__46)]);__47=Tags();__50=(OfArray())([__30.NewTag("li",__31),__38.NewTag("li",__39),__47.NewTag("li",__48)]);__49=Tags();__52=(OfArray())([(Tabs()).New1((OfArray())([["Course",desc],["Outline",outl],["Upcoming Events",events],["Book for Onsite",schedule]]),conf_1)]);__51=Tags();__54=(OfArray())([(op_MinusLess())(__16.Div(__17),(OfArray())([__21.NewTag("h3",__22),__49.NewTag("ul",__50)])),__51.Div(__52)]);__53=Tags();__60=__53.Div(__54);}else{__55=Tags();__57=(OfArray())([__55.text("Course not found")]);__56=Tags();__59=(OfArray())([(New2())((OfArray())([["Course",__56.Div(__57)]]))]);__58=Tags();__60=__58.Div(__59);}res=__60;return builder_.Return(res);});});};(Client_4()).Main=function(){var Description,Padding_4,_,__1,__2,__27,__28,__29,__3,__30,__31,builder_,conf1,inputRecord,inputRecord_1,inputRecord_2,output;_=(RadioButtonGroup())({$:1,$0:0},(OfArray())([["Individual",false],["Company",true]]));(op_LessMultiplyGreater())((Return())(__237),__192(_));inputRecord=Padding_2();Padding_4={Left:{$:1,$0:50},Right:{$:1,$0:50},Top:inputRecord.Top,Bottom:inputRecord.Bottom};__1=__187("Sign up for our development newsletter and receive information about our upcoming webcasts, papers, and development conferences. We will not spam you nor will we give your email address to anyone.");Description=__127(__1);conf1={Header:(StandardConfiguration()).Header,Padding:Padding_4,Description:Description,BackgroundColor:BackgroundColor(),BorderColor:BorderColor(),CssClass:CssClass(),Style:Style()};inputRecord_1=(get_Default_2())();({Label:{$:1,$0:"Continue"},Style:inputRecord_1.Style,Class:inputRecord_1.Class});inputRecord_2=(get_Default_2())();({Label:{$:1,$0:"Cancel"},Style:inputRecord_2.Style,Class:inputRecord_2.Class});__3=(NewUnion())(FSharpList_1(),0);__2=Tags();output=__2.Div(__3);builder_=Do();__28=builder_.Delay(function(){var __12,__13,__14,__15,__4;__4=function(){return __237;};__12=(RadioButtonGroup())({$:1,$0:0},(OfArray())([["Individual",false],["Company",true]]));__13=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__4),(OfElement())(function(){var __10,__11,__5,__6,__7,__8,__9;__5=Attr();__6=Attr();__8=(OfArray())([__5.NewAttr("width","700px"),__6.NewAttr("style","margin-left:auto; margin-right:auto")]);__7=Tags();__9=Attr();__11=(OfArray())([__9.NewAttr("src","http://www.intellifactory.com/images/logo200.gif")]);__10=Tags();return(op_MinusLess())(__7.Div(__8),(OfArray())([__10.NewTag("img",__11)]));})),__192(__12));__15=__188(__13);__14=function(formlet){return(WithCustomFormContainer())(conf1,formlet);};return builder_.Bind(__14(__15),function(_arg223){var __10,__11,__16,__17,__18,__19,__20,__21,__22,__23,__24,__25,__26,__6,__7,__8,__9;if(_arg223){__6=function(a){return function(){return function(){var __5;__5={CompanyName:a};return __127(__5);};};};__7=(Input())("");__8=__192(__7);__9=(Input())("");__10=__192(__9);__11=(Input())("");__16=__192(__11);__17=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__6),__284(__8)),__284(__10)),__284(__16));__18=__188(__17);__26=__285(__18);}else{__19=function(a){return function(b){var __5;__5={FirstName:a,LastName:b};return __187(__5);};};__20=(Input())("");__21=__192(__20);__22=(Input())("");__23=__192(__22);__24=(op_LessMultiplyGreater())((op_LessMultiplyGreater())((Return())(__19),__284(__21)),__284(__23));__25=__188(__24);__26=__285(__25);}return builder_.Bind(__26,function(_arg222){return builder_.Return(_arg222);});});});__27=function(formlet){return(Formlet()).Flowlet(formlet);};__29=__27(__28);__31=__130(__29);__30=function(flow){var __4,__5,__6,__7,__8;__4=Tags();__6=(OfArray())([__4.text("Sign up")]);__5=Tags();__8=(OfArray())([__5.NewTag("h3",__6),(op_MinusLess())(output,(OfArray())([flow]))]);__7=Tags();return __7.Div(__8);};return __30(__31);};(TogglePanel()).TogglePanel=function(label,showCaption,hideCaption,body){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__2,__3,__30,__31,__4,__5,__6,__7,__8,__9,content;__1=(OfArray())([body]);_=Tags();content=_.Div(__1);__3=(TogglePanel()).TogglePanelClass;__2=Attr();__5=(OfArray())([__2.NewAttr("class",__3)]);__4=Tags();__7=(TogglePanel()).MenuClass;__6=Attr();__9=(OfArray())([__6.NewAttr("class",__7)]);__8=Tags();__10=Tags();__12=(OfArray())([__10.text(label)]);__11=Tags();__14=(TogglePanel()).ToggleLinkClass;__13=Attr();__16=(OfArray())([__13.NewAttr("class",__14)]);__15=Tags();__17=Tags();__31=(op_MinusLess())(__15.Div(__16),(OfArray())([__17.text(hideCaption)]));__30=function(arg10){var __18;__18=Events();return __18.OnClick(function(alink){return function(){var __19,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29;__19=content.Body;__20=jQuery(__19);if(__20.is(":visible")){__21=content.Body;__22=jQuery(__21);__22.slideUp("fast",__138);__23=alink.Body;__24=jQuery(__23);__29=__24.text(showCaption);}else{__25=content.Body;__26=jQuery(__25);__26.slideDown("fast",__138);__27=alink.Body;__28=jQuery(__27);__29=__28.text(hideCaption);}return __29;};},arg10);};__30(__31);return(op_MinusLess())(__4.Div(__5),(OfArray())([(op_MinusLess())(__8.Div(__9),(OfArray())([__11.NewTag("span",__12),__31])),content]));};(TogglePanel()).TogglePanelClass="TogglePanel";(TogglePanel()).MenuClass="MenuClass";(TogglePanel()).ToggleLinkClass="ToggleLink";(Client_3()).Main=function(){var _,__1,__2,__29,__3,__30,__31,__4,__5;__1=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.BugListInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"FetchBugEntries\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]);_=function(source){return(GroupBy())(function(be){return be.ProductVersion;},source);};__3=_(__1);__2=function(source){return(SeqModule()).SortBy((Tupled())(function(tupledArg){return tupledArg[0];}),source);};__4=__2(__3);__5=__286(__4);__30=__134(__5);__29=function(list_1){return(OfSeq())((Map())((Tupled())(function(tupledArg){var __10,__11,__20,__21,__27,__28,__9,bugs,projection,version;version=tupledArg[0];bugs=tupledArg[1];__10=__286(bugs);projection=function(bug){return[bug.CreateDate,bug.Number];};__9=function(list){var __8,a;__8=function(x){return function(y){var __6,__7;__6=projection(x);__7=projection(y);return(Compare())(__6,__7);};};a=(OfSeq_1())(list);(SortInPlaceWith())(__8,a);return(OfArray())(a);};__11=__9(__10);__21=__134(__11);__20=function(list){return(OfSeq())((Map())(function(bug){var __12,__13,__14,__15,__16,__17,__18,__19,__6,__7,__8;__6=Attr();__8=(OfArray())([__6.NewAttr("class","bug-number")]);__7=Tags();__12=bug.Number;__13="#"+__283(__12);__14=Attr();__16=(OfArray())([__14.NewAttr("class","bug-title")]);__15=Tags();__17=bug.Title;__19=(OfArray())([(op_MinusLess())(__7.NewTag("td",__8),(OfArray())([__262(__13)])),(op_MinusLess())(__15.NewTag("td",__16),(OfArray())([__262(__17)]))]);__18=Tags();return __18.NewTag("tr",__19);},list));};__28=__20(__21);__27=function(body){var __12,__13,__14,__15,__16,__17,__18,__19,__22,__23,__24,__25,__26,__6,__7,__8;__6=Attr();__8=(OfArray())([__6.NewAttr("class","bug-table")]);__7=Tags();__12=Attr();__14=(OfArray())([__12.NewAttr("class","bug-number")]);__13=Tags();__15=Attr();__17=(OfArray())([__15.NewAttr("class","bug-title")]);__16=Tags();__19=(OfArray())([__13.NewTag("td",__14),__16.NewTag("td",__17)]);__18=Tags();__23=(OfArray())([__18.NewTag("tr",__19)]);__22=Tags();__24=Tags();__26=(op_MinusLess())(__7.NewTag("table",__8),(OfArray())([__22.NewTag("thead",__23),__24.NewTag("tbody",body)]));__25=function(body_1){return(TogglePanel()).TogglePanel(version,"Show","Hide",body_1);};return __25(__26);};return __27(__28);}),list_1));};__31=__29(__30);return __136(__31);};(Client_2()).VideosForCourseNumber=function(courseNumber){var __2,__3,__4,formatVideo;formatVideo=function(){var _,__1;__1=(NewUnion())(FSharpList_1(),0);_=Tags();return _.Div(__1);};__3=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.TrainingVideos+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"VideosForCourseNumber\",\"methodSignature\":[1,[0,\"mscorlib\",\"System.String\"],[0]]},\"methodArguments\":[0]}]",[courseNumber]);__2=function(list_1){return(OfSeq())((Map())((Tupled())(function(tupledArg){var _,__1,videosPerSegment;videosPerSegment=tupledArg[1];_=function(list){return(OfSeq())((Map())(formatVideo,list));};__1=_(videosPerSegment);return __136(__1);}),list_1));};__4=__2(__3);return __136(__4);};(Client_1()).Main=function(){var __100,__94,__95,__96,__97,__98,__99,priceString;priceString=function(_arg1){var _;if(_arg1.$==1){_=_arg1.$0+" euro";}else{_="free";}return _;};__95=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.ProductsToBuy+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"GetProductsToBuyData\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]);__94=function(list){return(OfSeq())((Map())((Tupled())(function(tupledArg){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__3,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__4,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__5,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__61,__62,__63,__64,__65,__66,__67,__68,__69,__7,__70,__71,__72,__73,__74,__75,__76,__77,__78,__79,__8,__80,__81,__82,__83,__84,__85,__86,__87,__88,__89,__9,__90,__91,__92,__93,_arg2,_arg3,comm,infop,link,link_1,link_2,name,price,price_1,price_2,pro,std;_arg2=tupledArg[0];_arg3=tupledArg[1];name=_arg2[0];infop=_arg2[1];std=_arg3[0];pro=_arg3[1];comm=_arg3[2];_=Attr();__2=(OfArray())([_.NewAttr("class","row")]);__1=Tags();__3=Attr();__5=(OfArray())([__3.NewAttr("class","middle")]);__4=Tags();__6=Tags();if(infop.$==1){__7=Attr();__9=(OfArray())([__7.NewAttr("class","middle")]);__8=Tags();__12=(op_MinusLess())(__8.NewTag("td",__9),(OfArray())([(LeftButton())("More Info",infop.$0)]));}else{__11=(NewUnion())(FSharpList_1(),0);__10=Tags();__12=__10.NewTag("td",__11);}if(std.$==2){__13=Attr();__15=(OfArray())([__13.NewAttr("class","middle")]);__14=Tags();__16=Tags();__18=(OfArray())([__16.text("Not yet available")]);__17=Tags();__39=(op_MinusLess())(__14.NewTag("td",__15),(OfArray())([__17.NewTag("p",__18)]));}else{if(std.$==0){__20=(NewUnion())(FSharpList_1(),0);__19=Tags();__38=__19.NewTag("td",__20);}else{price=std.$1;link=std.$0;__21=Attr();__23=(OfArray())([__21.NewAttr("class","middle")]);__22=Tags();__24=priceString(price);__26=(OfArray())([__262(__24)]);__25=Tags();__28=(OfArray())([__25.NewTag("b",__26)]);__27=Tags();__29=Attr();__31=(OfArray())([__29.NewAttr("style","margin-left:auto;margin-right:auto;")]);__30=Tags();__33=(OfArray())([(CenterButton())("Add",link)]);__32=Tags();__35=(OfArray())([__32.NewTag("td",__33)]);__34=Tags();__37=(OfArray())([__34.NewTag("tr",__35)]);__36=Tags();__38=(op_MinusLess())(__22.NewTag("td",__23),(OfArray())([__27.NewTag("span",__28),(op_MinusLess())(__30.NewTag("table",__31),(OfArray())([__36.NewTag("tbody",__37)]))]));}__39=__38;}if(comm.$==2){__40=Attr();__42=(OfArray())([__40.NewAttr("class","middle")]);__41=Tags();__43=Tags();__45=(OfArray())([__43.text("Not yet available")]);__44=Tags();__66=(op_MinusLess())(__41.NewTag("td",__42),(OfArray())([__44.NewTag("p",__45)]));}else{if(comm.$==0){__47=(NewUnion())(FSharpList_1(),0);__46=Tags();__65=__46.NewTag("td",__47);}else{price_1=comm.$1;link_1=comm.$0;__48=Attr();__50=(OfArray())([__48.NewAttr("class","middle")]);__49=Tags();__51=priceString(price_1);__53=(OfArray())([__262(__51)]);__52=Tags();__55=(OfArray())([__52.NewTag("b",__53)]);__54=Tags();__56=Attr();__58=(OfArray())([__56.NewAttr("style","margin-left:auto;margin-right:auto;")]);__57=Tags();__60=(OfArray())([(CenterButton())("Add",link_1)]);__59=Tags();__62=(OfArray())([__59.NewTag("td",__60)]);__61=Tags();__64=(OfArray())([__61.NewTag("tr",__62)]);__63=Tags();__65=(op_MinusLess())(__49.NewTag("td",__50),(OfArray())([__54.NewTag("span",__55),(op_MinusLess())(__57.NewTag("table",__58),(OfArray())([__63.NewTag("tbody",__64)]))]));}__66=__65;}if(pro.$==2){__67=Attr();__69=(OfArray())([__67.NewAttr("class","middle")]);__68=Tags();__70=Tags();__72=(OfArray())([__70.text("Not yet available")]);__71=Tags();__93=(op_MinusLess())(__68.NewTag("td",__69),(OfArray())([__71.NewTag("p",__72)]));}else{if(pro.$==0){__74=(NewUnion())(FSharpList_1(),0);__73=Tags();__92=__73.NewTag("td",__74);}else{price_2=pro.$1;link_2=pro.$0;__75=Attr();__77=(OfArray())([__75.NewAttr("class","middle")]);__76=Tags();__78=priceString(price_2);__80=(OfArray())([__262(__78)]);__79=Tags();__82=(OfArray())([__79.NewTag("b",__80)]);__81=Tags();__83=Attr();__85=(OfArray())([__83.NewAttr("style","margin-left:auto;margin-right:auto;")]);__84=Tags();__87=(OfArray())([(CenterButton())("Add",link_2)]);__86=Tags();__89=(OfArray())([__86.NewTag("td",__87)]);__88=Tags();__91=(OfArray())([__88.NewTag("tr",__89)]);__90=Tags();__92=(op_MinusLess())(__76.NewTag("td",__77),(OfArray())([__81.NewTag("span",__82),(op_MinusLess())(__84.NewTag("table",__85),(OfArray())([__90.NewTag("tbody",__91)]))]));}__93=__92;}return(op_MinusLess())(__1.NewTag("tr",__2),(OfArray())([(op_MinusLess())(__4.NewTag("td",__5),(OfArray())([__6.text(name)])),__12,__39,__66,__93]));}),list));};__96=__94(__95);__98=__126(__96);__97=function(trs){var _,__1,__10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__3,__4,__5,__6,__7,__8,__9;_=Attr();__2=(OfArray())([_.NewAttr("class","col1")]);__1=Tags();__3=Tags();__4=Attr();__6=(OfArray())([__4.NewAttr("class","col2")]);__5=Tags();__7=Attr();__9=(OfArray())([__7.NewAttr("class","col3")]);__8=Tags();__10=Tags();__11=Attr();__13=(OfArray())([__11.NewAttr("class","col4")]);__12=Tags();__14=Tags();__15=Attr();__17=(OfArray())([__15.NewAttr("class","col5")]);__16=Tags();__18=Tags();__20=(OfArray())([(op_MinusLess())(__1.NewTag("td",__2),(OfArray())([__3.text("Extension")])),(op_MinusLess())(__5.NewTag("td",__6),(NewUnion())(FSharpList_1(),0)),(op_MinusLess())(__8.NewTag("td",__9),(OfArray())([__10.text("Standard")])),(op_MinusLess())(__12.NewTag("td",__13),(OfArray())([__14.text("Community")])),(op_MinusLess())(__16.NewTag("td",__17),(OfArray())([__18.text("Professional")]))]);__19=Tags();__21=__19.NewTag("tr",__20);return(NormalMiddleTable())(__127(__21),trs);};__100=__97(__98);__99=function(el){var objectArg;objectArg=el["HtmlProvider@22"];((function(arg00){return function(arg10){return objectArg.AddClass(arg00,arg10);};}(el.Body))("products-to-buy"));return el;};return __99(__100);};(ProductSpecification()).WebSharperExtensionsMatrix=(OfArray())([["Bing Maps",{$:1},{$:2},{$:2}],["DOM",{$:1},{$:2},{$:2}],["EcmaScript",{$:1},{$:2},{$:2}],["Ext Js",{$:0},{$:0},{$:2}],["Google Maps",{$:2},{$:2},{$:2}],["Google Visualization",{$:2},{$:2},{$:2}],["HTML5",{$:1},{$:2},{$:2}],["InfoVis",{$:0},{$:0},{$:2}],["jQuery",{$:1},{$:2},{$:2}],["jQuery UI",{$:2},{$:2},{$:2}],["jQuery Tools",{$:2},{$:2},{$:2}],["Yahoo UI",{$:1},{$:0},{$:2}]]);(Internals_1()).GetItemsInCart=function(){var builder_,getCart;getCart=function(){var __3,__5;__3=(store())();__5=(Tupled())(function(tupledArg){var __4,onOk;onOk=tupledArg[0];__4=(Tupled())(function(tupledArg_1){var _,__1,__2,ok,str;ok=tupledArg_1[0];str=tupledArg_1[1];if(ok){_=str!==null;}else{_=false;}if(_){__1=JSON;__2=onOk({$:1,$0:(parse()).call(__1,str)});}else{__2=onOk({$:0});}return __2;});return __3.get("cart",__4);});return __287(__5);};builder_=Do_1();return builder_.Delay(function(){return builder_.Bind(getCart(undefined),function(_arg225){var _,__1,newres,res;if(_arg225.$==1){_=_arg225.$0;}else{(SetItemsInCart())([]);_=[];}newres=_;__1=function(elements){return(MapModule()).OfArray(elements);};res=__1(newres);return builder_.Return(res);});});};(Internals_1()).NextCounter=function(){var builder_,setCounterTo;setCounterTo=function(i){var _,__1;_=(store())();__1=JSON;return _.set("counter",(stringify()).call(__1,i));};builder_=Do_1();return builder_.Delay(function(){var __3,__5;__3=(store())();__5=(Tupled())(function(tupledArg){var __4,onOk;onOk=tupledArg[0];__4=(Tupled())(function(tupledArg_1){var _,__1,__2,ok,str;ok=tupledArg_1[0];str=tupledArg_1[1];if(ok){_=str!==null;}else{_=false;}if(_){__1=JSON;__2=onOk({$:1,$0:(parse()).call(__1,str)});}else{__2=onOk({$:0});}return __2;});return __3.get("counter",__4);});return builder_.Bind(__287(__5),function(_arg224){var _,current,res;if(_arg224.$==1){_=_arg224.$0;}else{_=0;}current=_;res=current+1;setCounterTo(res);return builder_.Return(res);});});};(Internals_1()).SetItemsInCart=function(items){var _,__1;_=(store())();__1=JSON;return _.set("cart",(stringify()).call(__1,items));};(Internals_1()).store=function(){return new Persist.Store("shopping-cart-4");};(CartEvents()).ShoppingCartEvents=new(Control())["FSharpEvent`1"]();(WebControls_1()).Button=function(label){return(LeftButton())(label,"");};(WebControls_1()).OldButton=function(label){var _,__1,__2,__3,__4,__5,__6;_=Attr();__1=Attr();__2=label.length*15;__4=__283(__2);__3=Attr();__6=(OfArray())([_.NewAttr("type","button"),__1.NewAttr("value",label),__3.NewAttr("width",__4)]);__5=Tags();return __5.NewTag("input",__6);};(Client()).LargeShoppingCart=function(){var _,__1,__84,__85,contents,updateCart;__1=(NewUnion())(FSharpList_1(),0);_=Tags();contents=_.Div(__1);updateCart=function(){var __83,builder_;builder_=Do_1();__83=builder_.Delay(function(){return builder_.Bind((GetItemsInCart())(),function(_arg230){var __10,__11,__2,__3,__4,__5,__6,__79,__80,__81,__82,projection;__2=contents["HtmlProvider@22"];__2.Clear(contents.Body);__4=__288(_arg230);__3=function(list){return(OfSeq())((Map())((Tupled())(function(tupledArg){var _arg1,c,chk,co,id,o,p,pm,q,t;id=tupledArg[0];_arg1=tupledArg[1];t=_arg1[0];q=_arg1[3];pm=_arg1[1][1];p=_arg1[2];o=_arg1[4];co=_arg1[1][2];chk=_arg1[5];c=_arg1[1][0];return[id,t,[c,pm,co],p,q,o,chk];}),list));};__5=__3(__4);__6=__289(__5);__11=__286(__6);projection=(Tupled())(function(tupledArg){return tupledArg[0][0];});__10=function(list){var __9,a;__9=(Tupled())(function(x){return(Tupled())(function(y){var __7,__8;__7=projection(x);__8=projection(y);return(Compare())(__7,__8);});});a=(OfSeq_1())(list);(SortInPlaceWith())(__9,a);return(OfArray())(a);};__80=__10(__11);__79=function(list_1){return(Fold())((Tupled())(function(tupledArg){var sections,sum_1;sections=tupledArg[0];sum_1=tupledArg[1];return(Tupled())(function(tupledArg_1){var __12,__13,__67,__68,__77,__78,_arg18,catT,pm,products,projection_1;_arg18=tupledArg_1[0];products=tupledArg_1[1];pm=_arg18[2];catT=_arg18[1];__13=__286(products);projection_1=(Tupled())(__290);__12=function(list){var __9,a;__9=(Tupled())(function(x){return(Tupled())(function(y){var __7,__8;__7=projection_1(x);__8=projection_1(y);return(Compare())(__7,__8);});});a=(OfSeq_1())(list);(SortInPlaceWith())(__9,a);return(OfArray())(a);};__68=__12(__13);__67=function(list){return(Fold())((Tupled())(function(tupledArg_2){var acc,i,sum;i=tupledArg_2[0];sum=tupledArg_2[1];acc=tupledArg_2[2];return(Tupled())(function(tupledArg_3){var __14,__15,__16,__17,__19,__20,__24,__25,__26,__27,__28,__29,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__60,__61,__62,__63,__64,__65,__66,__7,__8,__9,chk,chkCss,id,p,q,t;id=tupledArg_3[0];t=tupledArg_3[1];p=tupledArg_3[3];q=tupledArg_3[4];chk=tupledArg_3[6];chkCss=chk?" selected":" unselected";__7="col0"+chkCss;__9=(OfArray())([__291(__7)]);__8=Tags();if(chk){__14=Attr();__15=Attr();__17=(OfArray())([__14.NewAttr("type","checkbox"),__15.NewAttr("checked","yes")]);}else{__16=Attr();__17=(OfArray())([__16.NewAttr("type","checkbox")]);}__20=__17;__19=function(x){var __18;__18=Tags();return __18.NewTag("input",x);};__25=__19(__20);__24=function(arg10){var __18;__18=Events();return __18.OnClick(function(){return function(){var __21,__22,__23;__22=[id,!chk];__21=(Tupled())(function(tupledArg_4){var arg0,arg1;arg0=tupledArg_4[0];arg1=tupledArg_4[1];return{$:4,$0:arg0,$1:arg1};});__23=__21(__22);return __292(__23);};},arg10);};__24(__25);__26="col1"+chkCss;__28=(OfArray())([__291(__26)]);__27=Tags();__30=(Button_2())("-");__29=function(arg10){var __18;__18=Events();return __18.OnClick(function(){return function(){var __21;__21=__293(id);return __292(__21);};},arg10);};__29(__30);__31="col2"+chkCss;__33=(OfArray())([__291(__31)]);__32=Tags();__34=__283(q);__36=(OfArray())([__262(__34)]);__35=Tags();__37="col3"+chkCss;__39=(OfArray())([__291(__37)]);__38=Tags();__41=(Button_2())("+");__40=function(arg10){var __18;__18=Events();return __18.OnClick(function(){return function(){var __21;__21=__127(id);return __292(__21);};},arg10);};__40(__41);__42="col4"+chkCss;__44=(OfArray())([__291(__42)]);__43=Tags();__45=Tags();__46="col5"+chkCss;__48=(OfArray())([__291(__46)]);__47=Tags();__50=(Button_2())("Remove");__49=function(arg10){var __18;__18=Events();return __18.OnClick(function(){return function(){var __21;__21=__294(id);return __292(__21);};},arg10);};__49(__50);__51="col6"+chkCss;__53=(OfArray())([__291(__51)]);__52=Tags();__54=__283(p);__56=(OfArray())([__262(__54)]);__55=Tags();__57="col7"+chkCss;__59=(OfArray())([__291(__57)]);__58=Tags();__60=Number(q)*p;__61=__283(__60);__63=(OfArray())([__262(__61)]);__62=Tags();__65=(OfArray())([(op_MinusLess())(__8.NewTag("td",__9),(OfArray())([__25])),(op_MinusLess())(__27.NewTag("td",__28),(OfArray())([__30])),(op_MinusLess())(__32.NewTag("td",__33),(OfArray())([__35.Div(__36)])),(op_MinusLess())(__38.NewTag("td",__39),(OfArray())([__41])),(op_MinusLess())(__43.NewTag("td",__44),(OfArray())([__45.text(t)])),(op_MinusLess())(__47.NewTag("td",__48),(OfArray())([__50])),(op_MinusLess())(__52.NewTag("td",__53),(OfArray())([__55.Div(__56)])),(op_MinusLess())(__58.NewTag("td",__59),(OfArray())([__62.Div(__63)]))]);__64=Tags();__66=(OfArray())([__64.NewTag("tr",__65)]);return[i+1,sum+Number(q)*p,(OfSeq())((Append())(acc,__66))];});}),[1,0,(NewUnion())(FSharpList_1(),0)],list);};__78=__67(__68);__77=(Tupled())(function(tupledArg_2){var __14,__15,__16,__17,__18,__19,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__40,__41,__42,__43,__44,__45,__46,__47,__48,__49,__50,__51,__52,__53,__54,__55,__56,__57,__58,__59,__60,__61,__62,__63,__64,__65,__66,__69,__7,__70,__71,__72,__73,__74,__75,__76,__8,__9,rows,sumSub;sumSub=tupledArg_2[1];rows=tupledArg_2[2];__7=Attr();__9=(OfArray())([__7.NewAttr("class","family-header")]);__8=Tags();__14=Tags();__15=Attr();__17=(OfArray())([__15.NewAttr("class","family-header-description")]);__16=Tags();__18=Tags();__19=Attr();__21=(OfArray())([__19.NewAttr("class","col0")]);__20=Tags();__22=Attr();__24=(OfArray())([__22.NewAttr("class","col1")]);__23=Tags();__25=Attr();__27=(OfArray())([__25.NewAttr("class","col2")]);__26=Tags();__28=Tags();__29=Attr();__31=(OfArray())([__29.NewAttr("class","col3")]);__30=Tags();__32=Attr();__34=(OfArray())([__32.NewAttr("class","col4")]);__33=Tags();__35=Tags();__36=Attr();__38=(OfArray())([__36.NewAttr("class","col5")]);__37=Tags();__39=Attr();__41=(OfArray())([__39.NewAttr("class","col6")]);__40=Tags();__42=Tags();__43=Attr();__45=(OfArray())([__43.NewAttr("class","col7")]);__44=Tags();__46=Tags();__48=(OfArray())([__20.NewTag("td",__21),__23.NewTag("td",__24),(op_MinusLess())(__26.NewTag("td",__27),(OfArray())([__28.text("Qty")])),__30.NewTag("td",__31),(op_MinusLess())(__33.NewTag("td",__34),(OfArray())([__35.text("Item")])),__37.NewTag("td",__38),(op_MinusLess())(__40.NewTag("td",__41),(OfArray())([__42.text("Unit")])),(op_MinusLess())(__44.NewTag("td",__45),(OfArray())([__46.text("Total")]))]);__47=Tags();__50=(OfArray())([__47.NewTag("tr",__48)]);__49=Tags();__51=Attr();__52=Attr();__54=(OfArray())([__51.NewAttr("colspan","5"),__52.NewAttr("class","header")]);__53=Tags();__55=Attr();__56=Attr();__57=Attr();__59=(OfArray())([__55.NewAttr("style","text-align:right;"),__56.NewAttr("colspan","3"),__57.NewAttr("class","header")]);__58=Tags();__60="Sub-Total: "+sumSub.toString()+" euros";__62=(OfArray())([__262(__60)]);__61=Tags();__64=(OfArray())([__53.NewTag("td",__54),(op_MinusLess())(__58.NewTag("td",__59),(OfArray())([__61.Div(__62)]))]);__63=Tags();__65=(OfArray())([__63.NewTag("tr",__64)]);__66=(OfSeq())((Append())(rows,__65));__70=(OfArray())([__49.NewTag("thead",__50),__133(__66)]);__69=Tags();__71=Attr();__73=(OfArray())([__71.NewAttr("class","family-closer")]);__72=Tags();__75=(OfArray())([(op_MinusLess())((op_MinusLess())(__8.Div(__9),(OfArray())([__14.text(catT)])),(OfArray())([(op_MinusLess())(__16.Div(__17),(OfArray())([__18.text(pm)]))])),__69.NewTag("table",__70),__72.Div(__73)]);__74=Tags();__76=(OfArray())([__74.Div(__75)]);return[(OfSeq())((Append())(sections,__76)),sum_1+sumSub];});return __77(__78);});}),[(NewUnion())(FSharpList_1(),0),0],list_1);};__82=__79(__80);__81=(Tupled())(function(tupledArg){var __12,__13,__14,__15,__16,__17,__18,__19,__20,__21,__22,__27,__28,__29,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__7,__8,__9,sections,sum;sections=tupledArg[0];sum=tupledArg[1];__7=Attr();__8=Attr();__12=(OfArray())([__7.NewAttr("id","cart-contents"),__8.NewAttr("class","sidebox")]);__9=Tags();__13=Attr();__15=(OfArray())([__13.NewAttr("class","total")]);__14=Tags();__16="Total: "+sum.toString()+" euros";__17=Attr();__19=(OfArray())([__17.NewAttr("style","height:20px")]);__18=Tags();__20=Attr();__22=(OfArray())([__20.NewAttr("class","cart-buttons")]);__21=Tags();__28=(Button_2())("Checkout");__27=function(arg10){var __23;__23=Events();return __23.OnClick(function(){return function(){var __24,__25,__26;__24=window;(alert()).call(__24,"Checkout!");__25=__288(_arg230);__295(__25);__26={$:5};return __292(__26);};},arg10);};__27(__28);__30=(OfArray())([__28]);__29=Tags();__31=(Button_2())("Empty cart");__296(__31);__33=(OfArray())([__31]);__32=Tags();__35=(OfArray())([__29.NewTag("td",__30),__32.NewTag("td",__33)]);__34=Tags();__37=(OfArray())([__34.NewTag("tr",__35)]);__36=Tags();__39=(op_MinusLess())((op_MinusLess())(__9.Div(__12),sections),(OfArray())([(op_MinusLess())(__14.Div(__15),(OfArray())([__262(__16)])),(op_MinusLess())(__18.Div(__19),(NewUnion())(FSharpList_1(),0)),(op_MinusLess())(__21.NewTag("table",__22),(OfArray())([__36.NewTag("tbody",__37)]))]));__38=function(arg00){return contents.AppendI(arg00);};return __38(__39);});__81(__82);return builder_.Zero();});});return __132(__83);};__84=event();__85=function(ce){var __26,builder_;builder_=Do_1();__26=builder_.Delay(function(){return builder_.Bind((GetItemsInCart())(),function(_arg232){return builder_.Bind((NextCounter())(),function(_arg231){var __10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__3,__4,__5,__6,__7,__8,__9,c,c_1,c_2,category,chk,chk_1,chk_2,chk_3,chk_4,item,o,o_1,o_2,o_3,o_4,p,p_1,p_2,patternInput,patternInput_1,patternInput_2,patternInput_3,patternInput_4,productName,productName_1,productName_2,productName_3,q,qN,qO,q_1,q_2,qty,t,t_1,t_2;if(ce.$==2){productName=ce.$0;if(_arg232.ContainsKey(productName)){patternInput=_arg232.get_Item(productName);t=patternInput[0];q=patternInput[3];p=patternInput[2];o=patternInput[4];chk=patternInput[5];c=patternInput[1];if(q<=1){__2=function(table){return table.Remove(productName);};__4=__2(_arg232);}else{__3=function(table){return table.Add(productName,[t,c,p,q-1,o,chk]);};__4=__3(_arg232);}__5=__4;__6=__297(__5);}__25=__6;}else{if(ce.$==1){productName_1=ce.$0;if(_arg232.ContainsKey(productName_1)){patternInput_1=_arg232.get_Item(productName_1);t_1=patternInput_1[0];q_1=patternInput_1[3];p_1=patternInput_1[2];o_1=patternInput_1[4];chk_1=patternInput_1[5];c_1=patternInput_1[1];__7=function(table){return table.Add(productName_1,[t_1,c_1,p_1,q_1+1,o_1,chk_1]);};__8=__7(_arg232);__9=__297(__8);}__24=__9;}else{if(ce.$==3){productName_2=ce.$0;__10=function(table){return table.Remove(productName_2);};__11=__10(_arg232);__23=__297(__11);}else{if(ce.$==4){productName_3=ce.$0;chk_2=ce.$1;if(_arg232.ContainsKey(productName_3)){patternInput_2=_arg232.get_Item(productName_3);t_2=patternInput_2[0];q_2=patternInput_2[3];p_2=patternInput_2[2];o_2=patternInput_2[4];c_2=patternInput_2[1];__12=function(table){return table.Add(productName_3,[t_2,c_2,p_2,q_2,o_2,chk_2]);};__13=__12(_arg232);__14=__297(__13);}__22=__14;}else{if(ce.$==5){__15=[];__16=new(FSharpMap_2())((fromSeq())(__15));__21=__297(__16);}else{qty=ce.$2;item=ce.$0;category=ce.$1;__17=item.ProductName;if(_arg232.ContainsKey(__17)){patternInput_3=_arg232.get_Item(item.ProductName);qO=patternInput_3[3];o_3=patternInput_3[4];chk_3=patternInput_3[5];__18=[qO+qty,o_3,chk_3];}else{__18=[qty,_arg231,false];}patternInput_4=__18;qN=patternInput_4[0];o_4=patternInput_4[1];chk_4=patternInput_4[2];__19=function(table){return table.Add(item.ProductName,[item.Title,[category.Title,category.PriceMessage,category.Order],item.Price,qN,o_4,chk_4]);};__20=__19(_arg232);__21=__297(__20);}__22=__21;}__23=__22;}__24=__23;}__25=__24;}__25;updateCart(undefined);return builder_.Zero();});});});return __132(__26);};void __84.Subscribe((Of())(__85));updateCart(undefined);return contents;};(Client()).ClearCart=function(){var _,__1,__2,__3;_=[];__1=new(FSharpMap_2())((fromSeq())(_));__297(__1);__3=(NewUnion())(FSharpList_1(),0);__2=Tags();return __2.Div(__3);};(Client()).ItemsToBuy=function(){var _,__1,__2,__49,__50,families;families=(Call())(null,"[[0,\"IntelliFactory.Home.FSharp\",\"IntelliFactory.Home.FSharp.WebControls.ShoppingCartInternals+Server\"],{\"methodDefinition\":{\"isStaticMethod\":true,\"methodGenerics\":0,\"methodName\":\"ComputeFamiliesAndProducts\",\"methodSignature\":[0]},\"methodArguments\":[0]}]",[]);_=Attr();__2=(OfArray())([_.NewAttr("id","shopping-cart")]);__1=Tags();__49=function(list_1){return(OfSeq())((Map())(function(family){var __3,__4,__45,__46,__47,__48,__5,__6,__7,__8,__9;__3=Attr();__5=(OfArray())([__3.NewAttr("class","family")]);__4=Tags();__7=family.Title;__6=Tags();__9=(OfArray())([__6.text(__7)]);__8=Tags();__46=family.Products;__45=function(list){return(OfSeq())((Map())(function(product){var __10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__30,__31,__32,__33,__34,__35,__36,__37,__41,__42,__43,__44,input;__10=Attr();__11=Attr();__13=(OfArray())([__10.NewAttr("type","text"),__11.NewAttr("value","1")]);__12=Tags();input=__12.NewTag("input",__13);__14=Attr();__16=(OfArray())([__14.NewAttr("class","product")]);__15=Tags();__18=product.Title;__17=Attr();__20=product.ImageSrc;__19=Attr();__22=(OfArray())([__17.NewAttr("alt",__18),__19.NewAttr("src",__20)]);__21=Tags();__24=product.Title;__23=Tags();__26=(OfArray())([__23.text(__24)]);__25=Tags();__27=product.Price;__29="$"+__27.toString();__28=Tags();__31=(OfArray())([__28.text(__29)]);__30=Tags();__33=(OfArray())([__30.NewTag("code",__31)]);__32=Tags();__34=Tags();__35=Tags();__37=(OfArray())([__35.text("Quantity:")]);__36=Tags();__42=(Button_2())("Add to cart");__41=function(arg10){var __38;__38=Events();return __38.OnClick(function(){return function(){var __39,__40;__39={$:0,$0:{ProductName:product.ProductName,Title:product.Title,Price:product.Price,Checked:false},$1:{Title:family.Title,PriceMessage:family.PriceMessage,Order:family.Order},$2:Number(input.get_Value())};__292(__39);__40=window;return __40.location="/ShowCart.aspx";};},arg10);};__41(__42);__44=(OfArray())([__25.NewTag("h1",__26),(op_MinusLess())(__32.NewTag("p",__33),(OfArray())([__34.text(" / item")])),(op_MinusLess())(__36.NewTag("p",__37),(OfArray())([input])),__42]);__43=Tags();return(op_MinusLess())(__15.Div(__16),(OfArray())([__21.NewTag("img",__22),__43.Div(__44)]));},list));};__48=__45(__46);__47=function(products){var __10,__11,__12,__13,__14;__10=Attr();__12=(OfArray())([__10.NewAttr("style","clear:both;")]);__11=Tags();__13=(OfArray())([__11.Div(__12)]);__14=(OfSeq())((Append())(products,__13));return __136(__14);};return(op_MinusLess())(__4.Div(__5),(OfArray())([__8.NewTag("h1",__9),__47(__48)]));},list_1));};__50=__49(families);return(op_MinusLess())(__1.Div(__2),(OfArray())([__136(__50)]));};(Client()).ShoppingCart=function(){var _,__1,__67,__68,contents,updateCart;__1=(NewUnion())(FSharpList_1(),0);_=Tags();contents=_.Div(__1);updateCart=function(){var __66,builder_;builder_=Do_1();__66=builder_.Delay(function(){return builder_.Bind((GetItemsInCart())(),function(_arg226){var __10,__11,__12,__16,__17,__2,__3,__4,__5,__51,__52,__53,__54,__55,__56,__57,__58,__59,__6,__60,__61,__62,__63,__64,__65,__7,__8,__9,projection;__2=contents["HtmlProvider@22"];__2.Clear(contents.Body);__3=Attr();__5=(OfArray())([__3.NewAttr("id","shopping-cart-contents")]);__4=Tags();__6=Tags();__8=(OfArray())([__6.text("Shopping Cart")]);__7=Tags();__10=__288(_arg226);__9=function(list){return(OfSeq())((Map())((Tupled())(function(tupledArg){var _arg1,c,cat,id,o,p,q,t;id=tupledArg[0];_arg1=tupledArg[1];t=_arg1[0];q=_arg1[3];p=_arg1[2];o=_arg1[4];cat=_arg1[1];c=_arg1[5];return[id,t,cat,p,q,o,c];}),list));};__11=__9(__10);__12=__289(__11);__17=__286(__12);projection=(Tupled())(function(tupledArg){return-tupledArg[0][0];});__16=function(list){var __15,a;__15=(Tupled())(function(x){return(Tupled())(function(y){var __13,__14;__13=projection(x);__14=projection(y);return(Compare())(__13,__14);});});a=(OfSeq_1())(list);(SortInPlaceWith())(__15,a);return(OfArray())(a);};__52=__16(__17);__51=function(list_1){return(Fold())((Tupled())(function(tupledArg){var sum_1,tables;tables=tupledArg[0];sum_1=tupledArg[1];return(Tupled())(function(tupledArg_1){var __18,__19,__47,__48,__49,__50,_arg16,catT,products,projection_1;_arg16=tupledArg_1[0];products=tupledArg_1[1];catT=_arg16[1];__19=__286(products);projection_1=(Tupled())(__290);__18=function(list){var __15,a;__15=(Tupled())(function(x){return(Tupled())(function(y){var __13,__14;__13=projection_1(x);__14=projection_1(y);return(Compare())(__13,__14);});});a=(OfSeq_1())(list);(SortInPlaceWith())(__15,a);return(OfArray())(a);};__48=__18(__19);__47=function(list){return(Fold())((Tupled())(function(tupledArg_2){var acc,i,sum;i=tupledArg_2[0];acc=tupledArg_2[1];sum=tupledArg_2[2];return(Tupled())(function(tupledArg_3){var __13,__14,__15,__20,__21,__22,__25,__26,__27,__28,__29,__30,__31,__32,__33,__34,__35,__36,__37,__38,__39,__40,__41,__42,__43,__44,__45,__46,alt,id,p,q,t;id=tupledArg_3[0];t=tupledArg_3[1];p=tupledArg_3[3];q=tupledArg_3[4];alt=i%2===1?"alt ":"";__13=Attr();__15=(OfArray())([__13.NewAttr("class",alt)]);__14=Tags();__20=Attr();__22=(OfArray())([__20.NewAttr("class","col1")]);__21=Tags();__26=(Button_2())("-");__25=function(arg10){var __23;__23=Events();return __23.OnClick(function(){return function(){var __24;__24=__293(id);return __292(__24);};},arg10);};__25(__26);__27=Attr();__29=(OfArray())([__27.NewAttr("class","count")]);__28=Tags();__30=__283(q);__32=(Button_2())("+");__31=function(arg10){var __23;__23=Events();return __23.OnClick(function(){return function(){var __24;__24=__127(id);return __292(__24);};},arg10);};__31(__32);__34=(Button_2())("X");__33=function(arg10){var __23;__23=Events();return __23.OnClick(function(){return function(){var __24;__24=__294(id);return __292(__24);};},arg10);};__33(__34);__35=Attr();__37=(OfArray())([__35.NewAttr("class","title")]);__36=Tags();__38=Tags();__39=Attr();__41=(OfArray())([__39.NewAttr("class","col2")]);__40=Tags();__43=p.toString();__42=Tags();__45=(OfArray())([__42.text(__43)]);__44=Tags();__46=(OfArray())([(op_MinusLess())(__14.NewTag("tr",__15),(OfArray())([(op_MinusLess())(__21.NewTag("td",__22),(OfArray())([__26,(op_MinusLess())(__28.Div(__29),(OfArray())([__262(__30)])),__32,__34,(op_MinusLess())(__36.Div(__37),(OfArray())([__38.text(t)]))])),(op_MinusLess())(__40.NewTag("td",__41),(OfArray())([__44.NewTag("code",__45)]))]))]);return[i+1,(OfSeq())((Append())(acc,__46)),sum+Number(q)*p];});}),[0,(NewUnion())(FSharpList_1(),0),0],list);};__50=__47(__48);__49=(Tupled())(function(tupledArg_2){var __13,__14,__15,__20,__21,__22,__23,rows,sumSub;rows=tupledArg_2[1];sumSub=tupledArg_2[2];__13=Attr();__15=(OfArray())([__13.NewAttr("class","sidebox-inner")]);__14=Tags();__20=Tags();__22=(OfArray())([__20.text(catT)]);__21=Tags();__23=Tags();return[(NewUnion())(FSharpList_1(),1,(op_MinusLess())(__14.Div(__15),(OfArray())([__21.NewTag("h1",__22),__23.NewTag("table",rows)])),tables),sum_1+sumSub];});return __49(__50);});}),[(NewUnion())(FSharpList_1(),0),0],list_1);};__54=__51(__52);__53=(Tupled())(function(tupledArg){var __13,__14,__15,__18,__19,__20,__21,__22,__23,__24,__25,__26,__27,__28,__29,__30,__31,sum,tables;tables=tupledArg[0];sum=tupledArg[1];__14=(NewUnion())(FSharpList_1(),0);__13=Tags();__18=(OfArray())([__13.NewTag("hr",__14)]);__15=Tags();__19=Tags();__21=(OfArray())([__19.text("Total:")]);__20=Tags();__22=__283(sum);__24=(OfArray())([__262(__22)]);__23=Tags();__26=(OfArray())([__23.NewTag("code",__24)]);__25=Tags();__28=(OfArray())([__20.NewTag("td",__21),__25.NewTag("td",__26)]);__27=Tags();__30=(OfArray())([__15.NewTag("tr",__18),__27.NewTag("tr",__28)]);__29=Tags();__31=(OfArray())([__29.NewTag("table",__30)]);return(OfSeq())((Append())(tables,__31));});__55=__53(__54);__56=Attr();__58=(OfArray())([__56.NewAttr("style","height:20px")]);__57=Tags();__60=(Button_2())("Checkout");__59=function(arg10){var __13;__13=Events();return __13.OnClick(function(){return function(){var __14,__15,__18;__14=window;(alert()).call(__14,"Checkout!");__15=__288(_arg226);__295(__15);__18={$:5};return __292(__18);};},arg10);};__59(__60);__61=(Button_2())("Empty cart");__296(__61);__63=(OfArray())([__60,__61]);__62=Tags();__65=(op_MinusLess())(__4.Div(__5),(OfArray())([__7.NewTag("h1",__8),__184(__55),(op_MinusLess())(__57.Div(__58),(NewUnion())(FSharpList_1(),0)),__62.Div(__63)]));__64=function(arg00){return contents.AppendI(arg00);};__64(__65);return builder_.Zero();});});return __132(__66);};__67=event();__68=function(ce){var __26,builder_;builder_=Do_1();__26=builder_.Delay(function(){return builder_.Bind((GetItemsInCart())(),function(_arg228){return builder_.Bind((NextCounter())(),function(_arg227){var __10,__11,__12,__13,__14,__15,__16,__17,__18,__19,__2,__20,__21,__22,__23,__24,__25,__3,__4,__5,__6,__7,__8,__9,c,c_1,c_2,category,chk,chk_1,chk_2,chk_3,chk_4,item,o,o_1,o_2,o_3,o_4,p,p_1,p_2,patternInput,patternInput_1,patternInput_2,patternInput_3,patternInput_4,productName,productName_1,productName_2,productName_3,q,qN,qO,q_1,q_2,qty,t,t_1,t_2;if(ce.$==2){productName=ce.$0;if(_arg228.ContainsKey(productName)){patternInput=_arg228.get_Item(productName);t=patternInput[0];q=patternInput[3];p=patternInput[2];o=patternInput[4];chk=patternInput[5];c=patternInput[1];if(q<=1){__2=function(table){return table.Remove(productName);};__4=__2(_arg228);}else{__3=function(table){return table.Add(productName,[t,c,p,q-1,o,chk]);};__4=__3(_arg228);}__5=__4;__6=__297(__5);}__25=__6;}else{if(ce.$==1){productName_1=ce.$0;if(_arg228.ContainsKey(productName_1)){patternInput_1=_arg228.get_Item(productName_1);t_1=patternInput_1[0];q_1=patternInput_1[3];p_1=patternInput_1[2];o_1=patternInput_1[4];chk_1=patternInput_1[5];c_1=patternInput_1[1];__7=function(table){return table.Add(productName_1,[t_1,c_1,p_1,q_1+1,o_1,chk_1]);};__8=__7(_arg228);__9=__297(__8);}__24=__9;}else{if(ce.$==3){productName_2=ce.$0;__10=function(table){return table.Remove(productName_2);};__11=__10(_arg228);__23=__297(__11);}else{if(ce.$==4){productName_3=ce.$0;if(_arg228.ContainsKey(productName_3)){patternInput_2=_arg228.get_Item(productName_3);t_2=patternInput_2[0];q_2=patternInput_2[3];p_2=patternInput_2[2];o_2=patternInput_2[4];chk_2=patternInput_2[5];c_2=patternInput_2[1];__12=function(table){return table.Add(productName_3,[t_2,c_2,p_2,q_2+1,o_2,!chk_2]);};__13=__12(_arg228);__14=__297(__13);}__22=__14;}else{if(ce.$==5){__15=[];__16=new(FSharpMap_2())((fromSeq())(__15));__21=__297(__16);}else{qty=ce.$2;item=ce.$0;category=ce.$1;__17=item.ProductName;if(_arg228.ContainsKey(__17)){patternInput_3=_arg228.get_Item(item.ProductName);qO=patternInput_3[3];o_3=patternInput_3[4];chk_3=patternInput_3[5];__18=[qO+qty,o_3,chk_3];}else{__18=[qty,_arg227,false];}patternInput_4=__18;qN=patternInput_4[0];o_4=patternInput_4[1];chk_4=patternInput_4[2];__19=function(table){return table.Add(item.ProductName,[item.Title,[category.Title,category.PriceMessage,category.Order],item.Price,qN,o_4,chk_4]);};__20=__19(_arg228);__21=__297(__20);}__22=__21;}__23=__22;}__24=__23;}__25=__24;}__25;updateCart(undefined);return builder_.Zero();});});});return __132(__26);};void __67.Subscribe((Of())(__68));updateCart(undefined);return contents;};(Client()).SendPaymentOnClient=function(items){var _,__6,__7,a,iitems;_=function(list){return(OfSeq())((Map())((Tupled())(function(tupledArg){var _arg1,price,prodNumber,qty,title;prodNumber=tupledArg[0];_arg1=tupledArg[1];title=_arg1[0];qty=_arg1[3];price=_arg1[2];return{ItemName:title,ItemNumber:prodNumber,PricePerItem:Number(price),Quantity:qty,ShippingPerItemFirst:{$:0},ShippingPerItemRest:{$:0},Handling:{$:0},Option1:{$:0},Option2:{$:0}};}),list));};iitems=_(items);a=(Runtime()).NewRecord((PaypalPayment()).Payment,{Items:iitems,CurrencyCode:(NewUnion())((PaypalPayment()).Currency,1),RecipientEmail:"granicz.adam@intellifactory.com"});__7=a.ToHtmlElement();__6=function(el){var __1,__2,__3,__4,__5,body,form;form=el.Body;__1=document;__3=__1.getElementsByTagName("body");__2=function(bodies){return bodies.item(0);};body=__2(__3);__4=function(arg00){return body.appendChild(arg00);};__5=__4(form);__138(__5);return form.submit();};return __6(__7);};(Client()).OrderSummary=function(){var _,__1,__2,__3,__6,builder_;_=Attr();__1=Attr();__3=(OfArray())([_.NewAttr("class","sidebox"),__1.NewAttr("style","width:500px;")]);__2=Tags();__2.Div(__3);builder_=Do_1();__6=builder_.Delay(function(){return builder_.Bind((GetItemsInCart())(),function(_arg229){var __4,__5;__5=__288(_arg229);__4=function(list){return(SeqModule()).Iterate((Tupled())(__260),list);};__4(__5);return builder_.Zero();});});return __132(__6);};(Client()).CommaNumber=function(i){return __283(i);};}());

