﻿function mX_rowLite(f,e){var d,a,b,c;if(document.getElementById){d=document.getElementsByTagName("TABLE");for(b=0;b<d.length;b++)if(d[b].className&&d[b].className==f){c=d[b].getElementsByTagName("TR");if(c)for(a=0;a<c.length;a++)if(a>0){c[a].onmouseover=function(){this.className=e};c[a].onmouseout=function(){this.className=""}}}}}function mX_infopop(a){document.mXtutpop=window.open(a,"theInfo","toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,top=0,left=0,height=590,width=800");document.mXtutpop.focus()}var mXtbma=[],mXtbmt=[];function mX_initTBM(){var n="_f2",m="_f3",b,f,k,p,l,i,j,g,h,d,a,c,o,e=[];document.mXtbmsw=[];mXtbma=arguments;if(!document.getElementById||document.mXtbmf)return;j=document.getElementById("mXTBM");i=document.getElementById("mXTBMroot");if(!i||!j)return;j.onmouseout=mX_TBMclose;c=i.getElementsByTagName("A");f=0;for(b=0;b<c.length;b++){mXtbmt[f]=c[b].id;f++;l="mXTBMsub"+c[b].id.replace("mXTBMt","");g=document.getElementById(l);if(g)g.onmouseover=function(){mX_TBMsub(this)};mXtbmt[f]=g?g.id:false;c[b].hasSub=mXtbmt[f];f++;c[b].isRoot=true;c[b].onclick=function(){return mX_TBMtrig(this)};c[b].onmouseover=function(){mX_TBMovr(this)};c[b].mXstate=0;c[b].hasIm=false;h=c[b].getElementsByTagName("IMG");if(h&&h[0]){d=h[0];a=d.getAttribute("src");k=a.lastIndexOf(".");e[0]=a.substring(0,k);e[1]="."+a.substring(k+1);d.mXmimg=[];d.mXmimg[0]=a;if(mXtbma[1]>1){a=e[0]+n+e[1];mX_TBMpl(a)}d.mXmimg[1]=a;if(mXtbma[1]==3)d.mXmimg[2]=a;if(mXtbma[1]==1||mXtbma[1]==2){a=e[0]+m+e[1];mX_TBMpl(a);if(mXtbma[1]==1)d.mXmimg[1]=a}d.mXmimg[2]=a;d.mXstate=0;c[b].hasIm=true}}document.mXtbmf=true;mX_TBMopen()}function mX_TBMpl(b){var a=document.mXtbmsw.length;document.mXtbmsw[a]=new Image;document.mXtbmsw[a].src=b}function mX_TBMovr(a){if(!document.mXtbmf)return;if(document.mXTBMtm)clearTimeout(document.mXTBMtm);mX_TBMswp(a);if(mXtbma[0]==1)document.mXTBMtm=setTimeout("mX_TBMshow('"+a.id+"')",mXtbma[4]);else mX_TBMshow(a.id)}function mX_TBMswp(d){var c,b,a;for(c=0;c<mXtbmt.length;c+=2){a=document.getElementById(mXtbmt[c]);b=a.className;if(mXtbmt[c]!=d.id){if(a.mXstate<2){if(b.indexOf("mXTBMon")>-1)a.className=b.replace("mXTBMon","");if(a.hasIm){im=a.getElementsByTagName("IMG")[0];if(im.mXstate<2)im.src=im.mXmimg[0]}}}else if(a.mXstate!=2){if(b.indexOf("mXTBMon")==-1)a.className=b&&b.length>0?b+" mXTBMon":"mXTBMon";if(a.hasIm){im=a.getElementsByTagName("IMG")[0];if(im.mXstate<2)im.src=im.mXmimg[1]}}}}function mX_TBMshow(d){var a,e,c,b;a=document.getElementById(d);if(a.hasIm){c=a.getElementsByTagName("IMG")[0];if(c.mXstate==0){c.src=c.mXmimg[1];c.mXstate=1}}if(a.hasSub){if(a.mXstate!=2){a.mXstate=1;b=a.className;if(b.indexOf("mXTBMon")==-1)a.className=b&&b.length>0?b+" mXTBMon":"mXTBMon"}document.getElementById(a.hasSub).style.visibility="visible"}mX_TBMtg(a)}function mX_TBMtg(f){var a,b,c,e,d;for(b=0;b<mXtbmt.length;b+=2)if(!f||mXtbmt[b]!=f.id){a=document.getElementById(mXtbmt[b]);if(a.hasIm){c=a.getElementsByTagName("IMG")[0];if(c.mXstate<2){c.src=c.mXmimg[0];c.mXstate=0}}if(a.mXstate!=2){a.mXstate=0;d=a.className;if(d.indexOf("mXTBMon")>-1)a.className=d.replace("mXTBMon","")}e=document.getElementById(mXtbmt[b+1]);if(e)e.style.visibility="hidden"}}function mX_TBMtrig(d){var a,c,b=false;mX_TBMdown(d);a=d.href;c="javascript:; javascript:void(0)";if(mXtbma[3]==1)if(a.charAt(a.length-1)=="#"||document.location.href==a)b=false;else b=c.indexOf(a)>-1?false:true;else b=false;return b}function mX_TBMdown(c){var e,a,b,d;for(e=0;e<mXtbmt.length;e+=2){a=document.getElementById(mXtbmt[e]);a.mXstate=0;a.className=mX_trim(a.className.replace("mXTBMdown",""));if(a.hasIm){b=a.getElementsByTagName("IMG")[0];b.mXstate=0}}c.mXstate=2;if(c.hasIm){b=c.getElementsByTagName("IMG")[0];b.mXstate=2;b.src=b.mXmimg[2]}else{d=c.className;c.className=d&&d.length>0?d+" mXTBMdown":"mXTBMdown"}mX_TBMshow(c.id)}function mX_trim(a){a=a.replace(/^\s/,"");a=a.replace(/\s$/,"");return a}function mX_TBMclose(evt){var i,pp,tS,d,p,f,m=true;evt=evt?evt:event?event:null;if(evt){tS=evt.relatedTarget?evt.relatedTarget:evt.toElement;if(tS){pp=tS;while(pp){if(pp.id){d=pp.id;if(pp.id.indexOf("mXTBM")>-1){m=false;break}}pp=pp.parentNode}if(m){f="mX_TBMtg()";if(mXtbma[2]==1)for(i=0;i<mXtbmt.length;i+=2){p=document.getElementById(mXtbmt[i]);if(p.mXstate==2)f="mX_TBMshow('"+p.id+"')"}if(mXtbma[0]==1)eval('document.mXTBMtm=setTimeout("'+f+'",'+parseInt(mXtbma[4]+50)+")");else eval(f)}}}}function mX_TBMsub(c){if(document.mXTBMtm)clearTimeout(document.mXTBMtm);var b=c.id.replace("mXTBMsub","mXTBMt"),a=document.getElementById(b);mX_TBMswp(a)}function mX_TBMmark(){document.mXTBMop=arguments}function mX_TBMopen(){var i,p,b,c,e,k,o,a,d,j,h,m,g,n,l;k=window.location.href;var f=[1,"",""];if(document.mXTBMop)f=document.mXTBMop;g=f[0];if(g<1)return;n=/index\.[\S]*/i;c=-1,e=-1;o=document.getElementById("mXTBM");a=o.getElementsByTagName("A");for(b=0;b<a.length;b++){l=a[b].href.replace(n,"");if(g>0)if(a[b].href==k||l==k){c=b;e=-1}if(g==2)if(a[b].firstChild)if(a[b].firstChild.nodeValue==f[1])e=b;if(g==3&&a[b].href.indexOf(f[1])>-1)e=b;if(g==4)for(i=1;i<f.length;i+=2)if(k.indexOf(f[i])>-1)if(a[b].firstChild&&a[b].firstChild.nodeValue)if(a[b].firstChild.nodeValue==f[i+1])e=b}c=e>c?e:c;if(c>-1){h=false;if(!a[c].hasIm&&!a[c].isRoot){j=a[c].className;a[c].className=j&&j.length>0?j+" mXTBMmark":"mXTBMmark"}d=a[c].parentNode;while(d){if(d.id&&d.id=="mXTBMroot"){h=a[c];break}if(d.id&&d.id.indexOf("mXTBMsub")>-1){m="mXTBMt"+d.id.replace("mXTBMsub","");h=document.getElementById(m);break}d=d.parentNode}if(h)mX_TBMdown(h)}}function mX_LH(){mX_TBMmark(4,"csslab","Tutorials","mm2","Products","products","Products","extensions","Extensions","tutorials","Tutorials","support","Support","updatepages","Product Updates","search","Support","zoomlearn","Tutorials");mX_initTBM(1,2,1,1,200,2);mX_rowLite("prodtbl","rowLite")}function mX_LoadHandler(a){if(a==1||a==3)window.onload=mX_LH;if(a>1)onresize=mX_RH}mX_LoadHandler(1);if(window.addEventListener)window.addEventListener("unload",mX_FFfix,false);function mX_FFfix(){return}
