document.write('<table id="vista-buttons.com:id1w21i" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-right:0px" title ="Home"><a href="http://www.smartlearn.com.au/" onmouseover=\'xpe("1w21io");\' onmouseout=\'xpe("1w21in");\' onmousedown=\'xpe("1w21ic");\'><img id="xpi_1w21i" src="'+vbImgPath+'/bt1w21i_0.gif" name="vb1w21i" width="81" height="36" border="0" alt="Home"/></a></td><td style="padding-right:0px" title ="Computer Training"><a href="http://www.smartlearn.com.au/page/1/default.asp" onmouseover=\'xpe("cw21io");xpshow("cw21i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("cw21ic");\'><img id="xpi_cw21i" src="'+vbImgPath+'/btcw21i_0.gif" name="vbcw21i" width="175" height="36" border="0" alt="Computer Training"/></a></td><td style="padding-right:0px" title ="Certificate Training"><a href="http://www.smartlearn.com.au/page/10/default.asp" onmouseover=\'xpe("dw21io");xpshow("dw21i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("dw21ic");\'><img id="xpi_dw21i" src="'+vbImgPath+'/btdw21i_0.gif" name="vbdw21i" width="175" height="36" border="0" alt="Certificate Training"/></a></td><td style="padding-right:0px" title ="Training Calendar"><a href="http://www.smartlearn.com.au/page/upcomingtraining/default.asp" onmouseover=\'xpe("7w21io");\' onmouseout=\'xpe("7w21in");\' onmousedown=\'xpe("7w21ic");\'><img id="xpi_7w21i" src="'+vbImgPath+'/bt7w21i_0.gif" name="vb7w21i" width="154" height="36" border="0" alt="Training Calendar"/></a></td><td style="padding-right:0px" title ="Software & Websites"><a onmouseover=\'xpe("qw21io");xpshow("qw21i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("qw21ic");\'><img id="xpi_qw21i" src="'+vbImgPath+'/btqw21i_0.gif" name="vbqw21i" width="190" height="36" border="0" alt="Software & Websites"/></a></td><td style="padding-right:0px" title ="Other Services"><a onmouseover=\'xpe("mw21io");xpshow("mw21i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("mw21ic");\'><img id="xpi_mw21i" src="'+vbImgPath+'/btmw21i_0.gif" name="vbmw21i" width="141" height="36" border="0" alt="Other Services"/></a></td><td style="padding-right:0px" title ="Contact"><a href="http://www.smartlearn.com.au/contact_us.asp" onmouseover=\'xpe("5w21io");xpshow("5w21i",0,this);xpsmover(this);\' onmouseout=\'xpsmout(this);\' onmousedown=\'xpe("5w21ic");\'><img id="xpi_5w21i" src="'+vbImgPath+'/bt5w21i_0.gif" name="vb5w21i" width="110" height="36" border="0" alt="Contact"/></a></td></tr></table>');
document.write('<ul id="vbUL_cw21i" class="vbUL1w21i" style="visibility:hidden;"><li><img src="'+vbImgPath+'/smxw21i.gif"/><a href="http://www.smartlearn.com.au/page/11/default.asp" title="Specials">Specials</a></li><li><img src="'+vbImgPath+'/sm3w21i.gif"/><a href="http://www.smartlearn.com.au/page/1/default.asp" title="About Our Training">About&nbsp;Our&nbsp;Training</a></li><li><img src="'+vbImgPath+'/smrw21i.gif"/><a href="http://www.smartlearn.com.au/page/5/default.asp" title="List Of Our Courses">List&nbsp;Of&nbsp;Our&nbsp;Courses</a></li><li><img src="'+vbImgPath+'/smmw21i.gif"/><a href="http://www.smartlearn.com.au/page/59774/default.asp" title="Introduction To Computers">Introduction&nbsp;To&nbsp;Computers</a></li><li><img src="'+vbImgPath+'/smmw21i.gif"/><a href="http://www.smartlearn.com.au/page/5/default.asp#Internet" title="Internet & Email">Internet&nbsp;&&nbsp;Email</a></li><li><img src="'+vbImgPath+'/smmw21i.gif"/><a href="http://www.smartlearn.com.au/page/5/default.asp#myob" title="MYOB">MYOB</a></li><li><img src="'+vbImgPath+'/smmw21i.gif"/><a title="Adobe Photo Shop">Adobe&nbsp;Photo&nbsp;Shop</a></li><li><img src="'+vbImgPath+'/smqw21i.gif"/><a href="http://www.smartlearn.com.au/page/5/default.asp#Word" title="Microsoft Word">Microsoft&nbsp;Word</a></li><li><img src="'+vbImgPath+'/smqw21i.gif"/><a href="http://www.smartlearn.com.au/page/5/default.asp#Excel" title="Microsoft Excel">Microsoft&nbsp;Excel</a></li><li><img src="'+vbImgPath+'/smqw21i.gif"/><a href="http://www.smartlearn.com.au/page/5/default.asp#PowerPoint" title="Microsoft Power Point">Microsoft&nbsp;Power&nbsp;Point</a></li><li><img src="'+vbImgPath+'/smqw21i.gif"/><a href="http://www.smartlearn.com.au/page/5/default.asp#Publisher" title="Microsoft Publisher">Microsoft&nbsp;Publisher</a></li><li><img src="'+vbImgPath+'/smqw21i.gif"/><a href="http://www.smartlearn.com.au/page/5/default.asp#Access" title="Microsoft Access">Microsoft&nbsp;Access</a></li></ul><ul id="vbUL_dw21i" class="vbUL1w21i" style="visibility:hidden;"><li><img src="'+vbImgPath+'/smxw21i.gif"/><a href="http://www.smartlearn.com.au/page/11/default.asp" title="Specials">Specials</a></li><li><img src="'+vbImgPath+'/smzw21i.gif"/><a>Certificate&nbsp;II&nbsp;Courses</a><img src="'+vbImgPath+'/arcw21i.gif"/><ul id="vbUL_aw21i" class="vbUL1w21i"><li><img src="'+vbImgPath+'/smuw21i.gif"/><a href="http://www.smartlearn.com.au/page/50682/default.asp" title="BSB20107 - Cert II in Business">BSB20107&nbsp;-&nbsp;Cert&nbsp;II&nbsp;in&nbsp;Business</a></li><li><img src="'+vbImgPath+'/smuw21i.gif"/><a href="http://www.smartlearn.com.au/page/14415/default.asp" title="BSB20207 - Cert II in Customer Contact">BSB20207&nbsp;-&nbsp;Cert&nbsp;II&nbsp;in&nbsp;Customer&nbsp;Contact</a></li><li><img src="'+vbImgPath+'/smuw21i.gif"/><a href="http://www.smartlearn.com.au/page/59685/default.asp" title="SIR20207 - Cert II in Retail">SIR20207&nbsp;-&nbsp;Cert&nbsp;II&nbsp;in&nbsp;Retail</a></li></ul></li><li><img src="'+vbImgPath+'/sm4w21i.gif"/><a title="Certificate III Courses">Certificate&nbsp;III&nbsp;Courses</a><img src="'+vbImgPath+'/arcw21i.gif"/><ul id="vbUL_sw21i" class="vbUL1w21i"><li><img src="'+vbImgPath+'/smtw21i.gif"/><a href="http://www.smartlearn.com.au/page/68235/default.asp" title="BSB30107 - Cert III in Business">BSB30107&nbsp;-&nbsp;Cert&nbsp;III&nbsp;in&nbsp;Business</a></li><li><img src="'+vbImgPath+'/smtw21i.gif"/><a href="http://www.smartlearn.com.au/page/23235/default.asp" title="BSB30207 - Cert III in Customer Contact">BSB30207&nbsp;-&nbsp;Cert&nbsp;III&nbsp;in&nbsp;Customer&nbsp;Contact</a></li><li><img src="'+vbImgPath+'/smtw21i.gif"/><a href="http://www.smartlearn.com.au/page/59686/default.asp" title="SIR30207 - Cert III in Retail">SIR30207&nbsp;-&nbsp;Cert&nbsp;III&nbsp;in&nbsp;Retail</a></li></ul></li><li><img src="'+vbImgPath+'/smww21i.gif"/><a title="Certificate IV Courses">Certificate&nbsp;IV&nbsp;Courses</a><img src="'+vbImgPath+'/arcw21i.gif"/><ul id="vbUL_3w21i" class="vbUL1w21i"><li><img src="'+vbImgPath+'/smow21i.gif"/><a href="http://www.smartlearn.com.au/page/86231/default.asp" title="TAA40104 - Cert IV in Training and Assessment">TAA40104&nbsp;-&nbsp;Cert&nbsp;IV&nbsp;in&nbsp;Training&nbsp;and&nbsp;Assessment</a></li><li><img src="'+vbImgPath+'/smow21i.gif"/><a href="http://www.smartlearn.com.au/page/23145/default.asp" title="BSB40107 - Cert IV in Business">BSB40107&nbsp;-&nbsp;Cert&nbsp;IV&nbsp;in&nbsp;Business</a></li><li><img src="'+vbImgPath+'/smow21i.gif"/><a href="http://www.smartlearn.com.au/page/68501/default.asp" title="BSB41507 - Cert IV in Project Management">BSB41507&nbsp;-&nbsp;Cert&nbsp;IV&nbsp;in&nbsp;Project&nbsp;Management</a></li><li><img src="'+vbImgPath+'/smow21i.gif"/><a href="http://www.smartlearn.com.au/page/23774/default.asp" title="BSB41007 - Cert IV Human Resources">BSB41007&nbsp;-&nbsp;Cert&nbsp;IV&nbsp;Human&nbsp;Resources</a></li><li><img src="'+vbImgPath+'/smow21i.gif"/><a href="http://www.smartlearn.com.au/page/23772/default.asp" title="BSB40807 - Cert IV Frontline Management">BSB40807&nbsp;-&nbsp;Cert&nbsp;IV&nbsp;Frontline&nbsp;Management</a></li><li><img src="'+vbImgPath+'/smow21i.gif"/><a href="http://www.smartlearn.com.au/page/68326/default.asp" title="BSB40507 - Cert IV in Business Administration">BSB40507&nbsp;-&nbsp;Cert&nbsp;IV&nbsp;in&nbsp;Business&nbsp;Administration</a></li><li><img src="'+vbImgPath+'/smow21i.gif"/><a href="http://www.smartlearn.com.au/page/50414/default.asp" title="BSB40307 - Cert IV Customer Contact">BSB40307&nbsp;-&nbsp;Cert&nbsp;IV&nbsp;Customer&nbsp;Contact</a></li><li><img src="'+vbImgPath+'/smow21i.gif"/><a href="http://www.smartlearn.com.au/page/41328/default.asp" title="BSB40407 - Cert IV in Small Business Management">BSB40407&nbsp;-&nbsp;Cert&nbsp;IV&nbsp;in&nbsp;Small&nbsp;Business&nbsp;Management</a></li></ul></li><li><img src="'+vbImgPath+'/smpw21i.gif"/><a title="Diplomas">Diplomas</a><img src="'+vbImgPath+'/arcw21i.gif"/><ul id="vbUL_rw21i" class="vbUL1w21i"><li><img src="'+vbImgPath+'/smvw21i.gif"/><a href="http://www.smartlearn.com.au/page/14326/default.asp" title="BSB50207 - Diploma of Business">BSB50207&nbsp;-&nbsp;Diploma&nbsp;of&nbsp;Business</a></li><li><img src="'+vbImgPath+'/smvw21i.gif"/><a href="http://www.smartlearn.com.au/page/86773/default.asp" title="BSB50307 - Diploma of Customer Contact">BSB50307&nbsp;-&nbsp;Diploma&nbsp;of&nbsp;Customer&nbsp;Contact</a></li><li><img src="'+vbImgPath+'/smvw21i.gif"/><a href="http://www.smartlearn.com.au/page/14412/default.asp" title="BSB50607 - Diploma of Human Resources Management">BSB50607&nbsp;-&nbsp;Diploma&nbsp;of&nbsp;Human&nbsp;Resources&nbsp;Management</a></li><li><img src="'+vbImgPath+'/smvw21i.gif"/><a href="http://www.smartlearn.com.au/page/41502/default.asp" title="BSB51107 - Diploma of Management">BSB51107&nbsp;-&nbsp;Diploma&nbsp;of&nbsp;Management</a></li><li><img src="'+vbImgPath+'/smvw21i.gif"/><a href="http://www.smartlearn.com.au/page/68598/default.asp" title="BSB60407 - Advanced Diploma of Management">BSB60407&nbsp;-&nbsp;Advanced&nbsp;Diploma&nbsp;of&nbsp;Management</a></li></ul></li></ul><ul id="vbUL_qw21i" class="vbUL1w21i" style="visibility:hidden;"><li><img src="'+vbImgPath+'/smfw21i.gif"/><a href="http://www.smartlearn.com.au/page/software/default.asp" title="Software">Software</a></li><li><img src="'+vbImgPath+'/smjw21i.gif"/><a href="http://www.smartlearn.com.au/page/3/default.asp" title="Websites">Websites</a></li><li><img src="'+vbImgPath+'/smxw21i.gif"/><a href="http://www.smartlearn.com.au/page/11/default.asp" title="Specials">Specials</a></li></ul><ul id="vbUL_mw21i" class="vbUL1w21i" style="visibility:hidden;"><li><img src="'+vbImgPath+'/smaw21i.gif"/><a href="http://www.smartlearn.com.au/page/41414/default.asp" title="Government Incentives">Government&nbsp;Incentives</a></li><li><img src="'+vbImgPath+'/sm5w21i.gif"/><a href="http://www.smartlearn.com.au/page/50143/default.asp" title="Government Funding">Government&nbsp;Funding</a></li><li><img src="'+vbImgPath+'/smsw21i.gif"/><a href="http://www.smartlearn.com.au/page/68411/default.asp" title="Rooms For Hire">Rooms&nbsp;For&nbsp;Hire</a></li></ul><ul id="vbUL_5w21i" class="vbUL1w21i" style="visibility:hidden;"><li><img src="'+vbImgPath+'/smlw21i.gif"/><a href="http://www.smartlearn.com.au/about_us.asp" title="About Us">About&nbsp;Us</a></li><li><img src="'+vbImgPath+'/smnw21i.gif"/><a href="http://www.smartlearn.com.au/contact_us.asp" title="Contact Us">Contact&nbsp;Us</a></li></ul>');
vb1w21in=xppr('1w21i_0.gif');vb1w21io=xppr('1w21i_1.gif');vb1w21ic=xppr('1w21i_2.gif');vbcw21in=xppr('cw21i_0.gif');vbcw21io=xppr('cw21i_1.gif');vbcw21ic=xppr('cw21i_2.gif');vbdw21in=xppr('dw21i_0.gif');vbdw21io=xppr('dw21i_1.gif');vbdw21ic=xppr('dw21i_2.gif');vb7w21in=xppr('7w21i_0.gif');vb7w21io=xppr('7w21i_1.gif');vb7w21ic=xppr('7w21i_2.gif');vbqw21in=xppr('qw21i_0.gif');vbqw21io=xppr('qw21i_1.gif');vbqw21ic=xppr('qw21i_2.gif');vbmw21in=xppr('mw21i_0.gif');vbmw21io=xppr('mw21i_1.gif');vbmw21ic=xppr('mw21i_2.gif');vb5w21in=xppr('5w21i_0.gif');vb5w21io=xppr('5w21i_1.gif');vb5w21ic=xppr('5w21i_2.gif');var btIdPref="vb";function xppr(im){var i=new Image;i.src=vbImgPath+"bt"+im;return i;}function xpe(id){x=id.substring(0,id.length-1);if(document[btIdPref+x]){document[btIdPref+x].src=eval(btIdPref+id+".src");}}var hideTimeout=300;var menuContId="xpMenuCont";var ulIdPref="vbUL_";var imgIdPref="xpi_";function xpinit(){I=document.getElementById;jj=lll=window.ji&&I;j1=jj&&document.readyState;jI=document.all&&document.all.item&&!jj;ll1=document.layers;lli=I&&navigator.appName=="Netscape";document.write("<div id=\""+menuContId+"\" ></div>");var ULs=document.getElementsByTagName("UL");for(var i=0,cnt=ULs.length;i<cnt;i++){if(ULs[i].id&&ULs[i].id.substring(0,ulIdPref.length)==ulIdPref&&!(ULs[i].parentNode&&ULs[i].parentNode.parentNode&&ULs[i].parentNode.parentNode.id.substring(0,ulIdPref.length)==ulIdPref)){var A=document.getElementById(ULs[i].id+"a");if(A){A.style.display="none";}l11(ULs[i],0,0);}}}xpinit();function llj(o){var w=jj&&!j1?o.style.pixelWidth:ll1?o.clip.width:o.offsetWidth;var h=jj&&!j1?o.style.pixelHeight:ll1?o.clip.height:o.offsetHeight;return{x:w,y:h};}function xpClientSize(){var x=0,y=0,w=0,h=0,doc=document,win=window;var cond=(!doc.compatMode||doc.compatMode=="CSS1Compat")&&doc.documentElement;if(cond&&doc.documentElement.clientHeight){h=doc.documentElement.clientHeight;}else if(doc.body&&doc.body.clientHeight){h=doc.body.clientHeight;}else if(xpDef(win.innerWidth,win.innerHeight,doc.width)){h=win.innerHeight;if(doc.width>win.innerWidth){h-=16;}}if(cond&&doc.documentElement.clientWidth){w=doc.documentElement.clientWidth;}else if(doc.body&&doc.body.clientWidth){w=doc.body.clientWidth;}else if(xDef(win.innerWidth,win.innerHeight,doc.height)){w=win.innerWidth;if(doc.height>win.innerHeight){w-=16;}}if(win.document.documentElement&&win.document.documentElement.scrollLeft){x=win.document.documentElement.scrollLeft;}else if(win.document.body&&xpDef(win.document.body.scrollLeft)){x=win.document.body.scrollLeft;}if(win.document.documentElement&&win.document.documentElement.scrollTop){y=win.document.documentElement.scrollTop;}else if(win.document.body&&xpDef(win.document.body.scrollTop)){y=win.document.body.scrollTop;}return{x:x,y:y,w:w,h:h};}function xpDef(){for(var i=0;i<arguments.length;++i){if(typeof arguments[i]=="undefined"){return false;}}return true;}function xppos(obj){var l=0,t=0;while(obj){l+=obj.offsetLeft;t+=obj.offsetTop;obj=obj.offsetParent;}if(document.body){with(document){if(body.leftMargin){l-=body.leftMargin;}if(body.topMargin){t-=body.topMargin;}}}return{x:l,y:t};}function l11(ulParent,iParent,level){var menuCont=document.getElementById(menuContId);var l1i=document.createElement("div");menuCont.appendChild(l1i);var l1j=document.createElement("table");l1i.appendChild(l1j);l1i.id=ulParent.id+"tbl";l1i.className=ulParent.className;l1i.style.position="absolute";l1i.iParent=iParent;l1i.level=level;l1i.style.zIndex=9+l1i.level;l1j.cellSpacing=0;l1i.onmouseover=function(){xpsmover(this);};l1i.onmouseout=function(){xpsmout(this);};l1i.l1I=function(){for(var j=0;j<this.childNodes[0].rows.length;j++){p=this.childNodes[0].rows[j];if(p.tagName=="TR"){p.className=p.className.replace("over","");if(p.className.indexOf("popup")<0){p.clrOverImg();}}}};l1i.smShown=0;for(var i=0,cntLI=ulParent.childNodes.length;i<cntLI;i++){var l1l=ulParent.childNodes[i];if(l1l.tagName=="LI"){var jl=l1j.insertRow(-1);jl.menu=l1i;jl.setPopup=function(){this.className+=" popup";};jl.clrPopup=function(){this.className=this.className.replace("popup","");if(this.className.indexOf("over")<0){this.clrOverImg();}};jl.clrOverImg=function(){if(this.Img){this.Img.style.display="inline";}if(this.ImgOver){this.ImgOver.style.display="none";}if(this.ImgArrow){this.ImgArrow.style.display="inline";}if(this.ImgArrowOver){this.ImgArrowOver.style.display="none";}};jl.className=l1l.className;var InnerAnchor=0;jl.Img=null;jl.ImgOver=null;var InnerUl=0;jl.ImgArrow=null;jl.ImgArrowOver=null;for(var j=0;j<l1l.childNodes.length;j++){if(l1l.childNodes[j].tagName=="A"){InnerAnchor=l1l.childNodes[j];}else if(l1l.childNodes[j].tagName=="IMG"){if(!InnerAnchor){if(!jl.Img){jl.Img=l1l.childNodes[j];}else{jl.ImgOver=l1l.childNodes[j];}}else{if(!jl.ImgArrow){jl.ImgArrow=l1l.childNodes[j];}else{jl.ImgArrowOver=l1l.childNodes[j];}}}else if(l1l.childNodes[j].tagName=="UL"){InnerUl=l1l.childNodes[j];}}if(InnerAnchor||InnerUl||jl.ImgArrow){var llI=jl.insertCell(-1);var ij=jl.insertCell(-1);var iI=jl.insertCell(-1);llI.style.borderRightWidth="0px";ij.style.borderRightWidth="0px";ij.style.borderLeftWidth="0px";iI.style.borderLeftWidth="0px";llI.style.paddingRight="4px";ij.style.paddingRight="4px";ij.style.paddingLeft="4px";iI.style.paddingLeft="4px";if(jl.Img){llI.appendChild(jl.Img);}else{llI.innerHTML="&nbsp;";}if(jl.ImgOver){jl.ImgOver.style.display="none";llI.appendChild(jl.ImgOver);}if(InnerAnchor){var newText=document.createElement("SPAN");newText.innerHTML=InnerAnchor.innerHTML;if(InnerAnchor.href.indexOf(".pdf")>=0&&document.all){ij.appendChild(newText);}else{ij.appendChild(InnerAnchor);InnerAnchor.onclick=function(){return false;};}jl.linkHref=InnerAnchor.href;jl.linkTarget=InnerAnchor.target;jl.onclick=function(){if(this.linkHref){open(this.linkHref,this.linkTarget?this.linkTarget:"_self");}};}else{ij.innerHTML="&nbsp;";}jl.onmouseover=function(){this.menu.l1I();this.className+=" over";if(this.ImgOver){this.Img.style.display="none";this.ImgOver.style.display="inline";}if(this.ImgArrowOver){this.ImgArrow.style.display="none";this.ImgArrowOver.style.display="inline";}if(this.smPopupId){lj(this.smPopupId,1,this);}else if(this.menu.smShown){l1(this.menu.smShown);}};jl.onmouseout=function(){this.menu.l1I();};if(InnerUl){iI.className="arrow";if(jl.ImgArrow){iI.appendChild(jl.ImgArrow);if(jl.ImgArrowOver){jl.ImgArrowOver.style.display="none";iI.appendChild(jl.ImgArrowOver);}}else{if(typeof arrowChar!="undefined"&&arrowChar){iI.appendChild(document.createElement("a"));iI.lastChild.innerHTML=arrowChar;}else{iI.innerHTML="&nbsp;";}}jl.smPopupId=l11(InnerUl,jl,level+1);}else{iI.innerHTML="&nbsp;";}}else{var oTD=jl.insertCell(-1);oTD.colSpan=3;oTD.innerHTML="<div></div>";}}}return l1i.id;}function xpshow(ind,isVertical,iParent){lj(ulIdPref+ind+"tbl",isVertical,iParent);}function lj(lI,isVertical,iParent){var menu=document.getElementById(lI);if(!menu){return;}if(menu.style.visibility=="visible"){xpStopTimeOut(menu);return;}if(iParent&&iParent.menu&&iParent.menu.smShown){xphide(iParent.menu.smShown.id);}if(!menu.level&&ll!=menu){xphide(ll.id);}if(!menu.level){xobtn=lI.replace(ulIdPref,"").replace("tbl","");}var parentObj;if(iParent.tagName=="A"){parentObj=iParent.parentNode;}else{parentObj=iParent;}var pos=xppos(parentObj);var size=llj(parentObj);menu.goMenuX=1;menu.goMenuDx=1;if(menu.level>0){menu.goMenuX=menu.iParent.menu.goMenuX;menu.goMenuDx=menu.iParent.menu.goMenuDx;}menu.style.overflow="visible";menu.style.height="auto";menu.style.width="auto";menu.style.left="0px";menu.style.top="0px";var parentAbs=xppos(menu);var i=xpClientSize();var j=llj(menu);var li=Il(i.y,i.h,pos.y,size.y,j.y,menu.goMenuDx,isVertical);menu.goMenuDx=li.align;if(jj&&!menu.OrigWidth){menu.OrigWidth=menu.clientWidth;}if(li.size<j.y){menu.style.overflow="auto";if(jI){menu.style.overflowX="visible";}if(jI){menu.style.width=menu.offsetWidth+17+"px";}else if(lli){menu.style.magrinRight=20;}menu.style.height=li.size+"px";menu.scrollTop=0;menu.scrollLeft=0;if(jj){menu.style.width=menu.OrigWidth+"px";}}else{}menu.style.top=li.xy-parentAbs.y+"px";j=llj(menu);li=Il(i.x,i.w,pos.x,size.x,j.x,menu.goMenuX,!isVertical);menu.goMenuX=li.align;if(li.size<j.x){if(menu.goMenuX>0){li.xy-=(j.x-li.size);}}menu.style.left=li.xy-parentAbs.x+"px";menu.style.visibility="visible";if(!menu.level){ll=menu;}else{iParent.menu.smShown=menu;iParent.setPopup();}}function Il(Ii,I1,il,i1,size,align,Ij){var xy=il;var II=size;var ii=align;var lIl=5;if(align==0&&!Ij){align=1;}if(!Ij){if(ii>=0&&il+i1+size>I1+Ii-lIl||ii<0&&il-size<lIl){if(il-Ii>I1+Ii-(il+i1)){ii=-1;}else{ii=1;}}if(ii>=0){xy=il+i1;if(I1+Ii-lIl-xy<II){II=I1+Ii-lIl-xy;}}else{xy=il-II;if(xy-Ii<lIl){xy=lIl+Ii;II=il-lIl-Ii;}}}else{if(II>I1-2*lIl){xy=lIl+Ii;II=I1-2*lIl;}else{xy=il+i1/2-II/2+ii*(II/2-i1/2);if(xy<lIl+Ii){ii=1;xy=lIl+Ii;}if(xy+size>I1+Ii-lIl){ii=-1;xy-=xy+II-(I1+Ii-lIl);}}}return{xy:xy,size:II,align:ii};}function xphide(menuId){var menu=document.getElementById(menuId);if(!menu){return;}if(menu.style.visibility=="visible"){if(menu.smShown){xphide(menu.smShown.id);}menu.l1I();menu.style.visibility="hidden";if(menu.level==0){xpe(xobtn+"n");}menu.smShown=0;if(menu.iParent){menu.iParent.clrPopup();}if(menu.hideTimer){clearTimeout(menu.hideTimer);menu.hideTimer=null;}}}function xpsmout(sender){if(!sender){return;}l1(ll);}function xpsmover(menu){if(!menu){return;}xpStopTimeOut(menu);}function xpStopTimeOut(menu){for(var o=menu;o;o=o.iParent?o.iParent.menu:0){if(o.hideTimer){o.hideTimer=clearTimeout(o.hideTimer);}}}function l1(menu){for(var o=menu;o;o=o.smShown){var code="xphide(\""+o.id+"\");";if(!o.hideTimer&&o.id){o.hideTimer=setTimeout(code,hideTimeout);}}}var ll=0;var xobtn=null;
