;function imenus_expandani_init(obj,dto){var tid=obj.getElementsByTagName("UL")[0].id.substring(6);if(!ulm_mglobal.expani_t)ulm_mglobal.expani_t=new Object();if(!(ulm_navigator&&ulm_mac)&&!(ulm_safari&&!window.XMLHttpRequest)&&!ulm_iemac&&!dto.expand_arrow_animation_disabled){ulm_boxa["expani_go"+tid]=true;ulm_boxa.expani_go=true;ulm_boxa.eall=new Object();}else return;};function imenus_expandani_animateit(hobj){var tid=parseInt(hobj.id.substring(6));if(!ulm_boxa["expani_go"+tid])return;imenus_expandani_hideall(hobj);var lev=hobj.level;var mo=document.getElementById("ea"+hobj.id);if(!mo)return;if((hobj.className.indexOf("ishow")+1)||(mo.getAttribute("running")))return;if(hobj.className.indexOf("imctitleli")+1)return;if(!mo.getAttribute("mframe")||ulm_mglobal.design_mode){tx=mo.offsetLeft;ty=mo.offsetTop;var txy=tx+","+ty;if(!tx)tx=0;if(!ty)ty=0;mo.setAttribute("startxy",tx+","+ty);mo.setAttribute("initxy",tx+","+ty);var last_xy=new Array(tx,ty);var vid=hobj.id.substring(6);while(vid.indexOf("z")+1)vid=vid.replace("z","_");var ismain=false;if((vid.split("_")).length==2)ismain=true;var j=1;while(xy=imenus_expandani_gparam("expand_arrow_animation_movexy",j,ismain,vid,tid)){if((xy.split(",")).length<2){j++;continue;}xy=eval("new Array("+xy+")");var frames=parseInt(imenus_expandani_gparam("expand_arrow_animation_frames",j,ismain,vid,tid));if(!frames)frames=1;xy[0]+=tx;xy[1]+=ty;mo.setAttribute("xy"+j,xy[0]+","+xy[1]);var dx=(xy[0]-last_xy[0])/frames;var dy=(xy[1]-last_xy[1])/frames;mo.setAttribute("distxy"+j,dx+","+dy);last_xy=xy;mo.setAttribute("msequences",j);mo.setAttribute("mframes"+j,frames);j++;}if(j==1)return;mo.setAttribute("mframe",1);mo.setAttribute("msequence",1);}clearTimeout(ulm_mglobal.expani_t[mo.id]);ulm_mglobal.expani_t[mo.id]=null;mo.setAttribute("startxy",mo.getAttribute("initxy"));mo.setAttribute("mframe",1);mo.setAttribute("msequence",1);ulm_boxa.eall[hobj.id]=mo;imenus_expandani_run(mo,lev);return;};function imenus_expandani_hideall(hobj){var i;for(i in ulm_mglobal.expani_t){if(hobj&&(hobj.id.indexOf(i.substring(2))+1))continue;x17=document.getElementById(i.substring(2));if(!x17)continue;if(x17&&x17.className.indexOf("ishow")+1)continue;if(ulm_mglobal.expani_t[i]){clearTimeout(ulm_mglobal.expani_t[i]);ulm_mglobal.expani_t[i]=null;}var mo=document.getElementById(i);if(mo){mo.style.top="";mo.style.left="";mo.removeAttribute("running");}}};function imenus_expandani_gparam(name,seq,ismain,id,index){if(rv=ulm_boxa["dto"+index]["s"+id+"_"+name+seq])return rv;else  if(ismain&&(rv=ulm_boxa["dto"+index]["main_"+name+seq]))return rv;return ulm_boxa["dto"+index][name+seq];};function imenus_expandani_hideit(hobj){if(hobj.className.indexOf("ishow")+1)return;var mo=document.getElementById("ea"+hobj.id);if(!mo)return;if(ulm_mglobal.expani_t[mo.id]){clearTimeout(ulm_mglobal.expani_t[mo.id]);ulm_mglobal.expani_t[mo.id]=null;}mo.style.top="";mo.style.left="";};function imenus_expandani_run(mo,lev){mo.setAttribute("running",1);sxy=eval("new Array("+mo.getAttribute("startxy")+")");msequence=parseInt(mo.getAttribute("msequence"));msequences=parseInt(mo.getAttribute("msequences"));mframe=parseInt(mo.getAttribute("mframe"));mframes=parseInt(mo.getAttribute("mframes"+msequence));dxy=eval("new Array("+mo.getAttribute("distxy"+msequence)+")");mo.style.left=sxy[0]+parseInt(mframe*dxy[0])+"px";mo.style.top=sxy[1]+parseInt(mframe*dxy[1])+"px";if(mframe<mframes){mframe++;mo.setAttribute("mframe",mframe);}else  if(msequence<msequences){txy=eval("new Array("+mo.getAttribute("xy"+msequence)+")");mo.style.left=txy[0]+"px";mo.style.top=txy[1]+"px";mo.setAttribute("startxy",txy[0]+","+txy[1]);mo.setAttribute("mframe",1);msequence++;mo.setAttribute("msequence",msequence++);ulm_boxa.eall[mo.id.substring(2)]=null;}else {mo.removeAttribute("running");return;}ulm_mglobal.expani_t[mo.id]=setTimeout("imenus_expandani_run(document.getElementById('"+mo.id+"'),"+lev+")",8);}
