var fDesc=new Array(); fDesc[0] = "The purpose of the Simple MVVM Toolkit is to provide what you need to build Silverlight applications using the Model-View-ViewModel design pattern, which separates the visual representation (the View) from the data (the Model) using an intermediate class (the View-Model). The View binds directly to the View-Model, which presents the data model in a way that the View can use, for example, by translating a property from one type to another (e.g., Boolean to Visibility) and which provides behavior via public methods that the View can invoke, either from XAML or code-behind."; function tShowHide(id, show) { var s = document.getElementById("desc"); if ((s.innerHTML.length<=212 || show==1) && show!=2) { s.innerHTML = fDesc[id]; if (document.getElementById('m1')) document.getElementById('m1').style.display='none'; if (document.getElementById('m2')) document.getElementById('m2').style.display='none'; if (document.getElementById('more_txt')) document.getElementById('more_txt').style.display='inline'; } else { s.innerHTML = ''; } }