/*

----------------------------------------+

 SmartMenus v3.2 Plus                   |

 ©2001 VASIL DINKOV - PLOVDIV, BULGARIA |

 http://mp3-portal.hit.bg               |

----------------------------------------+

 For IE 4+, Netscape 4+ & Opera 5+      |

----------------------------------------+

*/

// ==1== Colors, Fonts & Extras

var menuBorderColor='#1B3897';

var menuBgColor='#ffcc00';

var menuOverBgColor='#fff5c6';

var menuFontColor='#1B3897';

var menuOverFontColor='#1B3897';

var font='verdana,arial,helvetica';

var fontSize='10px';

var NS4fontSize='11px';//11px=10px in NS4

var fontWeight='normal';//(bold or normal)

var cellPadding=2;

var frameBorderWidth=1;

var hideElementsIfOnWay=0;//1 or 0

   /*hides the elements that are shown over the menus by default

   like EMBED, IFRAME(not in Opera), OBJECT, SELECT

   if set to 0 performance is much better

   so if you don`t have these elements near the menus

   set this to 0

   view samples\hiding\hiding.html*/

var hideElementsInOpera=0;

   /*added separetely because Opera hides all FORMs not only

   those which are 'in the menus way', so you decide*/

var menuIE55filter='blendtrans(duration=0.5)';

   /*cool filter effects that are applied in IE4+

   if u don`t want leave [='']

   view samples\IE4(5.5)Filters for more*/

var hideTimeout=100;//1000=1 second

   /*time to wait before hiding the menu on mouseout*/

var subMenuOffset=4;//pixels (if no subs, leave as u like)

   /*the sub menus will be displaced from their normal

   position by the pixels specified here*/



// ==2== Default TARGET for all the links

var target='self'//(newWindow or self)



// ==3== The Menus Width

var menuWidth=140;



// ==4== Menus Placement

var menu1TopPixels=14;

var menu1LeftPixels=23;

var menu2TopPixels=14;

var menu2LeftPixels=114;

var menu3TopPixels=14;

var menu3LeftPixels=269;

var menu4TopPixels=14;

var menu4LeftPixels=341;

var menu5TopPixels=14;

var menu5LeftPixels=423;

var menu6TopPixels=14;

var menu6LeftPixels=500



// ==5== IMPORTANT: The Menus Count (how many do u want)

var menuCount=6;

var subMenuCount=0;//if no, set to 0




// ==Menu 1

href1=new Array('http://www.edutech.org.br','http://www.edutech.org.br/quem.htm','http://www.edutech.org.br/ambiente.php','http://www.edutech.org.br/pagina_inicial/info.php','http://www.edutech.org.br/pagina_inicial/estrutura.php?','http://web.baggio.com','http://www.baggio.com');

text1=new Array('Página Inicial','Quem Somos','Ambiente','TelEduc','Estrutura do Ambiente','Baggio WebHosting','Baggio.com');



// ==Menu 2

href2=new Array('http://www.edutech.org.br/elearning.htm','http://www.edutech.org.br/design.htm','http://www.edutech.org.br/tecnologia.htm','http://www.edutech.org.br/hosting.htm','http://www.edutech.org.br/networking.htm');

text2=new Array('E-Learning','Design Instrucional','Tecnologia','Hosting','Networking');



// ==Menu 3

href3=new Array('http://www.edutech.org.br/pagina_inicial/cursos_all.php?&tipo_curso=A','http://www.edutech.org.br/pagina_inicial/cursos_all.php?&tipo_curso=I','http://www.edutech.org.br/pagina_inicial/cursos_all.php?&tipo_curso=F','http://www.edutech.org.br/pagina_inicial/criar_curso.php?','http://www.edutech.org.br/administracao');

text3=new Array('Cursos em Andamento','Cursos com Inscrições Abertas','Cursos já Oferecidos','Como Criar um Curso','Administração do Ambiente');



// ==Menu 4

href4=new Array('http://www.edutech.org.br/pagina_inicial/contato.php');

text4=new Array('Fale Conosco');



// ==Menu 5

href5=new Array('http://www.edutech.org.br/pagina_inicial/estrutura.php','http://www.edutech.org.br/pagina_inicial/mostra_curso.php?&cod_curso=2','http://www.edutech.org.br/forum.htm');

text5=new Array('Estrutura','Treinamento do Ambiente EAD','Fórum');



// ==Menu 6

href6=new Array('http://www.edutech.org.br/administracao','http://www.edutech.org.br/share.htm','http://www.edutech.org.br/intra.htm');

text6=new Array('Administração do Ambiente','Share Portal','Intranet');





// THE SERIOUS SCRIPT PLEASE DO NOT TOUCH

iE=document.all&&!window.innerWidth?1:0;oP=navigator.userAgent.indexOf("Opera")!=-1&&document.getElementById?1:0;nS=document.getElementById&&!document.all&&navigator.userAgent.indexOf("Opera")==-1?1:0;nS4=document.layers&&!document.getElementById?1:0;cur=iE?'hand':'default';TIM=0;isHiden=0;acE=0;acE2=0;nSPad=nS?('padding:'+cellPadding+'px;'):'';if(!nS4){for(k=1;k<=menuCount;k++){mvf='';mvf="function MV"+k+"(){x='';for(i=0;i<href"+k+".length;i++){x+="+'"'+"<tr><td class=mxz ";mvf=mvf+"onclick=doGo('"+'"'+"+href"+k+"[i]+"+'"'+"') onmouseover=ov(this,'"+'"'+"+href"+k+"[i]+"+'"'+"')>"+'"'+"+text"+k+"[i]+'</td></tr>'};return x};";eval(mvf)};for(k=1;k<=subMenuCount;k++){mvf='';mvf=mvf+"function SMV"+k+"(){x='';for(i=0;i<subhref"+k+".length;i++){x=x+"+'"'+"<tr><td class=mxz ";mvf=mvf+"onclick=doGo('"+'"'+"+subhref"+k+"[i]+"+'"'+"') onmouseover=ov2(this) onmouseout=ou(this)>"+'"'+"+subtext"+k+"[i]+'</td></tr>'};return x};";eval(mvf)}}if(nS4){for(k=1;k<=menuCount;k++){mvf='';mvf=mvf+"function MV"+k+"(){x='';for(i=0;i<href"+k+".length;i++){x=x+"+'"'+"<tr><td><ilayer><layer width=100% bgcolor="+menuOverBgColor+" onmouseover=ov(this,'"+'"'+"+href"+k+"[i]+"+'"'+"')><a href=javascript:doGo('"+'"'+"+href"+k+"[i]+"+'"'+"') class=aNS4><font color="+menuOverFontColor+">"+'"'+"+text"+k+"[i]+'</font></a><span class=aNS42>&nbsp;</span></layer><layer bgcolor="+menuBgColor+" width=100% onmouseover=cBack();acE=this;this.visibility=\"hide\"><a href=javascript:; class=aNS4>'+text"+k+"[i]+'</a><span class=aNS42>&nbsp;</span></layer></ilayer></td></tr>'};return x}";eval(mvf)};for(k=1;k<=subMenuCount;k++){mvf='';mvf=mvf+"function SMV"+k+"(){x='';for(i=0;i<subhref"+k+".length;i++){x=x+"+'"'+"<tr><td><ilayer><layer width=100% bgcolor="+menuOverBgColor+"><a href=javascript:doGo('"+'"'+"+subhref"+k+"[i]+"+'"'+"') class=aNS4><font color="+menuOverFontColor+">"+'"'+"+subtext"+k+"[i]+'</font></a><span class=aNS42>&nbsp;</span></layer><layer bgcolor="+menuBgColor+" width=100% onmouseover=acE2.visibility=\"inherit\";acE2=this;this.visibility=\"hide\"><span class=aNS4>'+subtext"+k+"[i]+'</span><span class=aNS42>&nbsp;</span></layer></ilayer></td></tr>'};return x}";eval(mvf)}};function hTg(tagN,s){if(hideElementsIfOnWay||(oP&&hideElementsInOpera)){srav=iE?document.all.tags(tagN).length:document.getElementsByTagName(tagN).length;for(i=0;i<srav;i++){mO=iE?document.all.tags(tagN)[i]:document.getElementsByTagName(tagN)[i];MENU=iE?eval(s):document.getElementById(s);mOLeft=mO.offsetLeft;mOTop=mO.offsetTop;mOParent=mO.offsetParent;mOW=mO.offsetWidth;mOH=mO.offsetHeight;while(mOParent){mOLeft+=mOParent.offsetLeft;mOTop+=mOParent.offsetTop;mOParent=mOParent.offsetParent};if(oP&&hideElementsInOpera)mO.style.visibility='hidden';if(((mOLeft+mOW)>MENU.offsetLeft&&mOLeft<MENU.offsetLeft+MENU.offsetWidth)&&((mOTop+mOH)>MENU.offsetTop&&mOTop<MENU.offsetTop+MENU.offsetHeight))mO.style.visibility="hidden";isHiden=1}}};function sTg(tagN){if(hideElementsIfOnWay||(oP&&hideElementsInOpera)){srav=iE?document.all.tags(tagN).length:document.getElementsByTagName(tagN).length;for(i=0;i<srav;i++){mO=iE?document.all.tags(tagN)[i]:document.getElementsByTagName(tagN)[i];mO.style.visibility ="visible";isHiden=0}}};function overer(){TIM?clearTimeout(TIM):0};function hide(){TIM=setTimeout("hideSub();hide2();if(oP){sTg('FORM');sTg('OBJECT');sTg('EMBED')};if(iE){sTg('SELECT');sTg('EMBED');sTg('OBJECT');sTg('IFRAME')};if(nS){sTg('EMBED');sTg('IFRAME')}",hideTimeout)};function rV(){q='';for(z=1;z<=menuCount;z++){iE?q=q+"m"+z+".style.visibility='hidden';":nS4?q=q+"document.layers['m"+z+"'].visibility='hide';":q=q+"document.getElementById('m"+z+"').style.visibility='hidden';"};return q};function rV2(){q='if(subMenuCount){';for(z=1;z<=subMenuCount;z++){iE?q=q+"if(s!='subMenu"+z+"')subMenu"+z+".style.visibility='hidden';":nS4?q=q+"if(s!='subMenu"+z+"')document.layers['subMenu"+z+"'].visibility='hide';":q=q+"if(s!='subMenu"+z+"')document.getElementById('subMenu"+z+"').style.visibility='hidden';"};q+='}';return q};function cBack(){if(nS4){if(acE)acE.visibility='inherit';if(acE2)acE2.visibility='inherit'}else{if(acE){acE.style.background=menuBgColor;acE.style.color=menuFontColor};if(acE2){acE2.style.background=menuBgColor;acE2.style.color=menuFontColor}}};function ov2(ok){ok.style.background=menuOverBgColor;ok.style.color=menuOverFontColor;acE2=ok};function ov(ok,x){if(!nS4){cBack();acE=ok};if(!nS4){ok.style.background=menuOverBgColor;ok.style.color=menuOverFontColor};b=x.substring(0,5)=='show:'?x.indexOf(';')==-1?x.substring(5,x.length):x.substring(5,x.indexOf(';')):0;hideSub(b);if(subMenuCount&&b){F=iE?document.body.scrollLeft+document.body.clientWidth:pageXOffset+innerWidth;SAP=ok.offsetParent;SAL=!nS4?ok.offsetLeft:ok.pageX;SAT=!nS4?ok.offsetTop:ok.pageY;while(SAP){SAL+=SAP.offsetLeft;SAT+=SAP.offsetTop;SAP=SAP.offsetParent};r=iE?eval(b).style:nS4?document.layers[b]:document.getElementById(b).style;if(iE||oP){r.pixelTop=SAT-frameBorderWidth+subMenuOffset;if(iE&&(SAT-frameBorderWidth+subMenuOffset+eval(b).offsetHeight>document.body.scrollTop+document.body.clientHeight))r.pixelTop=document.body.scrollTop+document.body.clientHeight-eval(b).offsetHeight;if(SAL+menuWidth*2-frameBorderWidth*2-subMenuOffset<F){r.pixelLeft=SAL+menuWidth-frameBorderWidth*2-subMenuOffset;showSub(b)}else{r.pixelLeft=SAL-menuWidth+subMenuOffset;showSub(b)}};if(nS){if(SAT-frameBorderWidth+subMenuOffset+document.getElementById(b).offsetHeight+14<pageYOffset+innerHeight){r.top=SAT-frameBorderWidth+subMenuOffset}else{r.top=pageYOffset+innerHeight-document.getElementById(b).offsetHeight-14};if(SAL+menuWidth*2-frameBorderWidth*2-subMenuOffset+14<F){r.left=SAL+menuWidth-frameBorderWidth*2-subMenuOffset;showSub(b)}else{r.left=SAL-menuWidth+subMenuOffset;showSub(b)}};if(nS4){if(SAT-frameBorderWidth+subMenuOffset+r.document.height+16<pageYOffset+innerHeight){r.top=SAT-frameBorderWidth+subMenuOffset}else{r.top=pageYOffset+innerHeight-r.document.height-16};if(SAL+menuWidth*2-frameBorderWidth*2-subMenuOffset+16<F){r.left=SAL+menuWidth-frameBorderWidth*2-subMenuOffset;showSub(b)}else{r.left=SAL-menuWidth+subMenuOffset;showSub(b)}}}};function ou(ok){ok.style.background=menuBgColor;ok.style.color=menuFontColor};eval("function hide2(){"+rV()+";cBack()};function hideSub(s){if(iE){if(!s&&!isHiden){sTg('SELECT');sTg('OBJECT');sTg('EMBED');sTg('IFRAME')}};if(nS){if(!s&&!isHiden){sTg('EMBED');sTg('IFRAME')}};"+rV2()+"}");function show(a){TIM?clearTimeout(TIM):0;hideSub();cBack();o=iE?eval(a).style:nS4?document.layers[a]:document.getElementById(a).style;if(iE||oP){if(o.visibility!='visible'){if(oP){sTg('FORM');sTg('OBJECT');sTg('EMBED')}else{sTg('SELECT');sTg('OBJECT');sTg('EMBED');sTg('IFRAME')};if(iE&&(eval(a).filters&&eval(a).filters.length!=0)){hTg('SELECT',a);hTg('OBJECT',a);hTg('EMBED',a);hTg('IFRAME',a);hide2();eval(a).filters[0].apply();o.visibility='visible';eval(a).filters[0].play()}else{if(oP){hTg('FORM',a);hTg('OBJECT',a);hTg('EMBED',a)}else{hTg('SELECT',a);hTg('OBJECT',a);hTg('EMBED',a);hTg('IFRAME',a)};hide2();o.visibility='visible'}}}else{if(nS){if(o.visibility!='visible'){sTg('EMBED');sTg('IFRAME');hTg('EMBED',a);hTg('IFRAME',a);hide2();o.visibility='visible'}};if(nS4){if(o.visibility!='show'){hide2();o.visibility='show'}}}};function showSub(a){o=iE?eval(a).style:nS4?document.layers[a]:document.getElementById(a).style;if(iE||oP){if(o.visibility!='visible'){hideSub();if(iE&&(eval(a).filters&&eval(a).filters.length!=0)){hTg('SELECT',a);hTg('OBJECT',a);hTg('EMBED',a);hTg('IFRAME',a);eval(a).filters[0].apply();o.visibility='visible';eval(a).filters[0].play()}else{if(oP){hTg('FORM',a);hTg('OBJECT',a);hTg('EMBED',a)}else{hTg('SELECT',a);hTg('OBJECT',a);hTg('EMBED',a);hTg('IFRAME',a)};hideSub();o.visibility='visible'}}}else{if(nS){if(o.visibility!='visible'){hideSub();hTg('EMBED',a);hTg('IFRAME',a);o.visibility='visible'}};if(nS4){if(o.visibility!='show'){hideSub();o.visibility='show'}}}};function doGo(ok){if(ok.substring(0,5)=='show:'){if(ok.indexOf(';')==-1){return}else{ok=ok.substring(ok.indexOf(';')+1,ok.length)}};hide();hideSub();if(ok.charAt(0)=='*'){if(ok.substring(0,6)=='*self*'){document.location.href=ok.substring(6,ok.length);return};if(ok.substring(0,11)=='*newWindow*'){window.open(ok.substring(11,ok.length));return};for(s=1;s<ok.length;s++){if(ok.charAt(s)=='*'){eval('top.'+ok.substring(1,s)+'.location="'+ok.substring(s+1,ok.length)+'"')}}return};if(ok.substring(0,11)=='javascript:'){document.location.href=ok;return};if(target=='self'){document.location.href=ok;return};if(target=='newWindow'){window.open(ok);return};alert("ERROR:\nThe \"target\" variable is not set correctly!")};document.write("<style>.mxz{font-family:"+font+";font-size:"+fontSize+";color:"+menuFontColor+";font-weight:"+fontWeight+";background:"+menuBgColor+";"+nSPad+"cursor:"+cur+"}.aNS4{font-weight:"+fontWeight+";font-family:"+font+";font-size:"+NS4fontSize+";color:"+menuFontColor+";padding:"+cellPadding+";text-decoration:none}.aNS42{font-size:1pt}</style>");if(iE||oP||nS){for(j=1;j<=subMenuCount;j++){document.write("<div style='position:absolute;z-index:1001;top:-1000px;left:-1000px;visibility:hidden;width:"+menuWidth+"px;filter:"+menuIE55filter+"' id="+('subMenu'+j)+" onmouseover=overer() onmouseout=hide()><table cellpadding=0 cellspacing=0 border=0><tr><td bgcolor="+menuBorderColor+"><table cellpadding="+cellPadding+" width="+menuWidth+" cellspacing="+frameBorderWidth+" border=0>"+eval('SMV'+j+'()')+"</table></td></tr></table></div>")}};if(iE||oP||nS){for(j=1;j<=menuCount;j++){document.write("<div style='position:absolute;top:"+eval('menu'+j+'TopPixels')+";left:"+eval('menu'+j+'LeftPixels')+";z-index:1000;visibility:hidden;width:"+menuWidth+"px;filter:"+menuIE55filter+"' id="+('m'+j)+" onmouseover=overer() onmouseout=hide()><table cellpadding=0 cellspacing=0 border=0><tr><td bgcolor="+menuBorderColor+"><table cellpadding="+cellPadding+" width="+menuWidth+" cellspacing="+frameBorderWidth+" border=0>"+eval('MV'+j+'()')+"</table></td></tr></table></div>")}};if(nS4){for(j=1;j<=menuCount;j++){document.write("<layer z-index=1000 id=m"+j+" visibility=hide left="+eval('menu'+j+'LeftPixels')+" top="+eval('menu'+j+'TopPixels')+" bgcolor="+menuBorderColor+" width="+menuWidth+" onmouseover=overer() onmouseout=hide()><table cellspacing="+frameBorderWidth+" cellpadding=0 border=0 width=100%>"+eval('MV'+j+'()')+"</table></layer>")};for(j=1;j<=subMenuCount;j++){document.write("<layer z-index=1001 id=subMenu"+j+" visibility=hide left=0 top=0 bgcolor="+menuBorderColor+" width="+menuWidth+" onmouseover=overer() onmouseout=hide()><table cellspacing="+frameBorderWidth+" cellpadding=0 border=0 width=100%>"+eval('SMV'+j+'()')+"</table></layer>")}}
