var IE = (navigator.appName == "Microsoft Internet Explorer") ? 1 : 0; var NS = (navigator.appName == "Netscape") ? 1 : 0; var hideMenu = null; //alert ("IE: "+IE); //alert ("NS: "+NS); function Hide(div){ if(IE)eval('document.all.'+div+'.style.visibility="hidden"'); if(NS){ document.getElementById(div).style.visibility="hidden" } } function Show(div){ if(IE) eval('document.all.'+div+'.style.visibility="visible"'); if(NS){ document.getElementById(div).style.visibility="visible" } } function imgOn(Num) { Hide('m1'); Hide('m2'); if (document.images) { document.images["b" +Num].src = eval("b" +Num+ "on.src") } } function imgOff(Num) { //alert("Num: "+Num); if (document.images) { document.images["b" +Num].src = eval("b" +Num+ ".src") } } //MenuMouseOver function mImgOn(divNum,Num) { clearTimeout(hideMenu); if (document.images) { if(IE){ document.images["m" +divNum+ "b" +Num].src = eval("m" +divNum+ "b" +Num+ "on.src") } if(NS){ document.images["m" +divNum+ "b" +Num].src = eval("m" +divNum+ "b" +Num+ "on.src") } } } function mImgOff(divNum,Num) { if (document.images) { if(IE){ document.images["m" +divNum+ "b" +Num].src = eval("m" +divNum+ "b" +Num+ ".src") } if(NS){ document.images["m" +divNum+ "b" +Num].src = eval("m" +divNum+ "b" +Num+ ".src"); } } hideMenu=setTimeout('hideAll()',500) } function hideAll(){ Hide('m1'); Hide('m2'); } //--------------------------------------------------------------- //*************************************************************** // Delcaración de Objetos imagen de los botones, con sus rutas if(document.images){ for (i=1; i<=6; i++) { eval("b"+i+" = new Image()"); eval("b"+i+".src = '/img_menu/b"+i+".jpg'"); eval("b"+i+"on = new Image()"); eval("b"+i+"on.src = '/img_menu/b"+i+"on.jpg'"); eval("m1b"+i+" = new Image()"); eval("m1b"+i+".src = '/img_menu/m1b"+i+".jpg'"); eval("m1b"+i+"on = new Image()"); eval("m1b"+i+"on.src = '/img_menu/m1b"+i+"on.jpg'"); } for (i=1; i<=4; i++) { eval("m2b"+i+" = new Image()"); eval("m2b"+i+".src = '/img_menu/m2b"+i+".jpg'"); eval("m2b"+i+"on = new Image()"); eval("m2b"+i+"on.src = '/img_menu/m2b"+i+"on.jpg'"); } } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i