/* Use jool_0.6.8.009 All Rights Reserved This code ©2010 Giovanni Di Gregorio All Rights Reserved · www.giovannidigregorio.com Every intellectual property reserved. Please refer to http://jool.giovannidigregorio.com */ openList = j.set({ successfully: j.fx({ duration:20, easing:'circularOut', successfully: j.set({ successfully: j.set({ }) }) }) }); var obj; //////////////////////////////////////////////////////////// j.event ({ dom: '.arg', event:'click', action:function(e){ if(j.sniff('IE') == true) { obj = window.event.srcElement; } else { obj = e.target; } openList.$.object = ['#m-'+obj.parentNode.id]; if($$('m-'+obj.parentNode.id).offsetHeight == 0) { openList.object = ['#m-'+obj.parentNode.id]; openList.style = 'overflow:hidden'; openList.$.height = ['auto']; openList.$.marginBottom = [10]; openList.$.$.object = ['#m-'+obj.parentNode.id]; openList.$.$.style = 'overflow:visible;height:100%'; openList.$.$.$.object = [obj.parentNode.id]; openList.$.$.$.style = 'background:url(images/sidebar_arrow_primi_mesi_open.png) 0 4px no-repeat'; } else { openList.object = ['#m-'+obj.parentNode.id]; openList.style = 'overflow:hidden'; openList.$.height = [0]; openList.$.marginBottom = [0]; openList.$.$.object = ['#m-'+obj.parentNode.id]; openList.$.$.style = 'overflow:hidden;height:0'; openList.$.$.$.object = [obj.parentNode.id]; openList.$.$.$.style = 'background:url(images/sidebar_arrow_primi_mesi_close.png) 0 4px no-repeat'; } openList.play(); } }); function querySt(ji) { hu = window.location.search.substring(1); gy = hu.split("&"); for (i = 0; i < gy.length; i++) { ft = gy[i].split("="); if (ft[0] == ji) { return ft[1]; }; }; }; openStart = j.set({ style: 'overflow:visible;height:100%' }); window.onload = function() { var id = querySt('id'); var idNode = $$(id); while (idNode.id != 'treeview') { openStart.object = [idNode]; openStart.play(); idNode = idNode.parentNode; }; };