var MenuDes=new menuObj('MenuDes');
MenuDes.clMain='padding:3px; font-family:Verdana; font-size:9px; font-weight:bold'; //estilos para los menus principales
MenuDes.clSub='padding:3px; font-family:Verdana; font-size:9px;font-weight:bold'; //Estilos para los submenus
MenuDes.clSubSub='padding:3px; font-family:Verdana; font-size:8px'; //Estilos para los submenus de los submenus
MenuDes.clAMain='text-decoration:none; color:White'; //Estilos para los enlaces principales
MenuDes.clASub='text-decoration:none; color:White'; //Estilos para los enlaces de los submenues
//MenuDes.clASubSub='text-decoration:none; color:White'; //Estilos para los enlaces de los submenus de los submenus
MenuDes.backgroundbar=0; //Set to 0 if no backgroundbar
MenuDes.backgroundbarfromleft=0; //The left placement of the backgroundbar in pixel or %
MenuDes.backgroundbarfromtop=5; //The top placement of the backgroundbar  in pixel or %
MenuDes.backgroundbarsize="250"; //The size of the bar in pixel or %
MenuDes.backgroundbarcolor="NAVY"; //The backgroundcolor of the bar

MenuDes.mainheight=20; //The height of the main menuitems in pixel or %
MenuDes.mainwidth=120; //The width of the main menuitems  in pixel or %

/*These are new variables. In this example they are set like the previous version*/
MenuDes.subwidth=MenuDes.mainwidth; // ** NEW ** The width of the submenus
MenuDes.subheight=20; //The height if the subitems in pixel or % 

MenuDes.subsubwidth=MenuDes.mainwidth; // ** NEW ** The width of the subsubmenus in pixel or % 
MenuDes.subsubheight=MenuDes.subheight; //** NEW ** The height if the subsubitems in pixel or % 


//Writing out the style for the menu (leave this line!)
MenuDes.makeStyle();

MenuDes.subplacement=MenuDes.mainheight; //** NEW ** Relative to the main item
MenuDes.subsubXplacement=MenuDes.subwidth/2; //** NEW ** The X placement of the subsubmenus, relative to the sub item
MenuDes.subsubYplacement=7; //** NEW ** The Y placement of the subsubmenus, relative to the sub item

MenuDes.mainbgcoloroff='#330099'; //The backgroundcolor of the main menuitems 
MenuDes.mainbgcoloron='#330099'; //The backgroundcolor on mouseover of the main menuitems 
MenuDes.subbgcoloroff='#3399FF'; //The backgroundcolor of the sub menuitems
MenuDes.subbgcoloron='#666666'; //The backgroundcolor on mouseover of the sub menuitems
//MenuDes.subsubbgcoloroff='#AAAAAA'; //The backgroundcolor of the subsub menuitems
//MenuDes.subsubbgcoloron='#666666'; //The backgroundcolor on mouseover of the subsub menuitems
MenuDes.stayoncolor=1; //Do you want the menus to stay on the mouseovered color when clicked?

MenuDes.menuspeed=15; //The speed of the clipping in px
//MenuDes.menusubspeed=15; //The speed of the submenus clipping in px

MenuDes.menurows=1; //Set to 0 if you want rows and to 1 if you want columns

MenuDes.menueventon="mouse"; //Set this to "mouse" if you want the menus to appear onmouseover, set it to "click" if you want it to appear onclick
MenuDes.menueventoff="mouse"; //Set this to "mouse" if you them to disappear onmouseout, if not set it to "click"

//Placement of the menuitems

//Example in %:
//MenuDes.menuplacement=new Array("20%","40%","60%","50%","65%") //Remember to make the arrays contain as many values as you have main menuitems

//Example in px: (remember to use the ' ' around the numbers)
//MenuDes.menuplacement=new Array(10,200,300,400,500)

//Example right beside eachother (only adding the pxbetween variable)
//MenuDes.menuplacement=0;
//MenuDes.menuplacement=new Array(225,100,300,400,500);
MenuDes.menuplacement=new Array(250,370,450,570,500);

//If you use the "right beside eachother" you cant how many pixel there should be between each here
MenuDes.pxbetween=0; //in pixel or %

//And you can set where it should start from the left here


var displacement;

if (bw.ns4){
	displacement = 117;
	if (window.innerWidth <= 760)
		MenuDes.fromleft= displacement + 15;
	else
		MenuDes.fromleft= displacement + (window.innerWidth - 760)/2; //in pixel or %
	}
else {
	displacement = 129;
	if (document.body.clientWidth <= 760)
		MenuDes.fromleft= displacement;
	else
		MenuDes.fromleft= displacement + (document.body.clientWidth - 760)/2; //in pixel or %
	}
//This is how much from the top the menu should be.
MenuDes.fromtop=5; //in pixel or %  67

//MAIN 0

//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
MenuDes.makeMain(0,'<img src=imagenes/flecha.gif border=0> Cursos Presenciales',0);
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
	MenuDes.makeSub(0,0,'&nbsp;Datan&aacute;lisis','datanalisis.htm',3,'_top');
	MenuDes.makeSub(0,1,'&nbsp;Centro Europeo','centroeuropeo.htm',3,'_top');
        MenuDes.makeSub(0,2,'&nbsp;Desk Formaci&oacute;n','desk_formacion.htm',3,'_top');

MenuDes.makeMain(1,'<img src=imagenes/flecha.gif border=0> Desarrollo','index.htm#');
MenuDes.makeMain(2,'<img src=imagenes/flecha.gif border=0> Software/Hardware','index.htm#');
MenuDes.makeMain(3,'<img src=imagenes/flecha.gif border=0> Cursos Online','index.htm#');
 	MenuDes.makeSub(3,0,'&nbsp;&nbsp;Aula Virtual','aula_virtual.htm',1,'_top');
	MenuDes.construct();

