var fDesc=new Array(); fDesc[0] = "Cocos Creator is a complete game development solution, which includes the JavaScript implementation of Cocos2d-x, and various UI tools that help you develop games quickly. It provides two kinds of workflows: one design-oriented and one develop-oriented, and a simple and smooth cooperative method (with an appropriate division of labor). Cocos Creator is a game development environment focused on content creation, which has features like scripting, componentization and uses a data driven model with the power of Cocos2d-x under the hood."; 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 = ''; } }