//***********************************************
//  Javascript Menu (c) 2006, by Deluxe-Menu.com
//  version 2.0
//  E-mail:  cs@deluxe-menu.com
//***********************************************


function _dmn(){if(popupMode||dcm.ii>0)return;_dml();_dmmi(dcm.ii);if(!dcm.ii)_dmkk();_dmzu();var s='',ss='',dm=_dm[dcm.ii],ce=null,pos=dm.qp?'absolute':'static',vis=dm.qiv?'visible':'hide',dz=1000,sc=dm.m.length,dci=-1,dar=0;if(dm.m[0].dmw=='0')dm.m[0].dmw='1';for(var ci=0;ci<sc;ci++){ce=dm.m[ci];with(ce)s+='<LAYER ID="'+id+'" position='+pos+' bgcolor='+ct.qb+((pos=='absolute')?' left='+left+' top='+top:'')+' visibility='+vis+' z-index='+dz+'>';with(ce.ct)var yl='width='+(ci?(smW?smW:'1'):ce.dmw)+' background="'+dbi+'" border='+bw;s+=_dmzw(ce.id+'tbl',ce.ct.iti,0,'','',yl);dci=-1;dar=1;for(var din=0;din<ce.i.length;din++){ss='';var iv=ce.i[din];ss+=_dmzr(iv.id+'td','','');if(ce.ct.qy>1){dci++;if(dci==ce.ct.qy){dci=0;dar=1;};if(dci>0){dar=0;ss+=_dmlt()+_dmzr('col'+ci+'i'+din,'padding: 0px;','');};};if(dar)if((din&&!ce.dhz)||iv.nr)s+='</TR><TR>';ss+=_dmit(dm,ce,iv);s+=ss+_dmlt();};s+=_dmt()+'</LAYER>';pos='absolute';vis='hide';dz+=10;};document.write(s);s='';dcm.ii++;dcm.dcp=-1;};function _dmit(dm,ce,iv){var ss='',dve=' onMouseOver="_dmzy(event,\''+iv.id+'\')" '+' onMouseOut="_dmzt(event,\''+iv.id+'\')" ';with(iv.itt)var itw=(iw?iw:'100%');with(iv)ss+='<ILAYER ID="'+id+'" width='+itw+'><LAYER width='+itw+'><font style="font-size:1px">';for(var jj=0;jj<2;jj++){ss+='<LAYER ID="'+iv.id+'sub'+jj+'" height=1 width=100% visibility='+(jj?'hide':'show')+dve+'>';with(iv.itt){ss+="<TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR='"+bc[0]+"' height=1><TR><TD width=100%>";ss+="<TABLE WIDTH=100% BORDER=0 CELLSPACING="+(bw-2)+" CELLPADDING="+bw+" height=1><TR><TD width=100%>";var yl='width=100% height=1 bgcolor="'+qb[jj]+'" background="'+dbi[jj]+'" ';};ss+=_dmzw(iv.id+'tbl',0,ce.ct.ipd,'','',yl);if(iv.text=="-"){ss+=_dmzr(iv.id+'tdText','padding:0px; text-align:'+separatorAlignment,' height=1 valign=middle');ss+='<font style="font-size:1px">';if(iv.ci>0)ss+=_dmzq(separatorImage,separatorWidth,separatorHeight);else ss+=_dmzq(separatorVImage,separatorVWidth,separatorVHeight);ss+='</font>';ss+=_dmlt();}else{if(dm.sis>=2&&iv.dcd)ss+=_dmri(iv,0);if(jj&&!iv.dii[jj])iv.dii[jj]=iv.dii[0];if(iv.dii[jj])ss+=_dmzr(iv.id+'tdIcon','padding:0px;','align=center valign=middle')+_dmiz(iv.id+"icon",iv.dii[jj],iv.qii,iv.qiz,' align=left')+_dmlt();else ss+=_dmzr('','padding:0px;','')+_dmiz('',blankImage,1,1,'')+_dmlt();if(iv.text){with(iv.itt){var ye='text-align:'+iv.da;ss+=_dmzr(iv.id+'tdText',ye,(noWrap?' NOWRAP ':'')+'width=100%')+((jj&&iv.link)?'<a id="'+iv.id+'link" href="#" onClick="_dmlc(event,\''+iv.id+'\');">':'')+'<font style="font:'+fs+'; color:'+(iv.dss?dm.qfd:fc[jj])+'; text-decoration:'+fd[jj]+';">'+iv.text+'</font>'+((jj&&iv.link)?'</a>':'')+_dmlt();};};if(dm.sis<2&&iv.dcd)ss+=_dmri(iv,0);};ss+=_dmt()+'</td></tr></table> </td></tr></table>';ss+='</LAYER>';};ss+="</font></LAYER></ILAYER>";return ss;};function _dmri(iv){var s='',ce=_dm[iv.mi].m[iv.ci];with(iv){var dri=(ci?itt.drs[0]:itt.drm[0]);if(dri)var s=_dmzr(iv.id+'tdArrow','padding:0px;',' align=center')+_dmiz(id+"arrow",dri,qw,qh,'')+_dmlt();};return s;};function _dmio(id){var e=(id.indexOf("i")>0)?ex=_dvri.exec(id):_dvrm.exec(id),l=document.layers[id];if(!l&&e)l=document.layers[e[2]].document.layers[id];return l;};function _dmzx(id){if(!id)return;var ce=_dmvi(id),dm=_dm[ce.mi],co=_dmoi(id),cd=_dmsz(ce),it=_dmvi(ce.rid);with(co){left=cd[0];top=cd[1];};dm.m[it.ci].sh=id;it.dhi=dm.saveNavigation;with(co){left=cd[0];top=cd[1];if(visibility!="show")visibility="show";};};function _dmm4(id){if(!id)return;var co=_dmoi(id),ce=_dmvi(id),dm=_dm[ce.mi];if(ce.sh)_dmmh(ce.sh);ce.sh='';_dmhi(dm,ce);if(ce._dmlw){clearTimeout(ce._dmlw);ce._dmlw=null;};co.visibility='hide';if(dm.ssc&&dm._dmnl)dm.sl=0;};function _dmhh(it,ov){var io=_dmio(it.id);if(!it.dpr){io.document.layers[0].document.layers[1].visibility=(ov?'show':'hide');io.document.layers[0].document.layers[0].visibility=(ov?'hide':'show');};ov=(it.dhi?1:ov);var io=_dmoi(it.id);with(it.itt){var is=io;is.borderWidth=bw;if(qb[ov])is.backgroundColor=qb[ov];if(bc[ov])is.borderColor=bc[ov];if(bs[ov])is.borderStyle=bs[ov];if(dbi[ov])is.backgroundImage="url("+dbi[ov]+")";};};
