﻿function express_window()
{
      ht = (screen.availheight * 2) / 3;
      wd = (screen.availwidth * 2) / 3;
      url = "http://www.navair.es/index.htm" 
      features = "location,scrollbars,toolbar,titlebar,menubar,resizable=yes,screenX=0,screenY=0,height=" + ht + ",width=" + wd + ",left=0,top=0";
      win_name = "ExpressWindow"
      window.open(url,win_name, features);
}


var Nav = new Navigation();

	initialiseNav();


function initialiseNav() {
    //############### SET UP YOUR NAV OPTIONS FROM HERE ##################
    // PLEASE NOTE THAT YOU SHOULD TEST YOUR NAV IMPLEMENTATION IN ALL BROWSERS BEFORE RELEASING
    // you may leave some of the options, and default values will be used.
    /*general preferences and positioning*/
    Nav.top = 80;
    Nav.left = 19;
    Nav.instanceName = "Nav"; //VERY IMPORTANT
    Nav.childLevelItemWidth = 200;
    Nav.xSpacing = 0;
    Nav.ySpacing = 0;
    Nav.topLevelNavItemHeight = 25;
	Nav.topLevelBackgroundColour = "";
    Nav.childLevelBackgroundColour = "#ffffff";
    Nav.topLevelLinkClass = "firstlevelnav";
    Nav.childLevelLinkClass = "secondlevelnav";
    Nav.childGroupParagraph = "childGroupParagraph";
    Nav.letterSpacing = 0.5;
    Nav.lineHeight = 20;
    Nav.padding = 0;
    Nav.centeringOffset = 0; // 0 means completely center, anything else moves nav to the RIGHT
    /*border options (limited browser support)*/
    Nav.childLevelBorder = "solid"; // solid, dotted, dashed.. (probably others)
    Nav.childLevelBorderColour = "#000000";
    Nav.childLevelBorderWidth = 0;
    /*border options for child levels only (limited browser support)*/
    Nav.childShadowBodyColour = "#eeeeee";
    Nav.childShadowLineColour = "#eeeeee";
    Nav.childShadowDeltaX = -1;
    Nav.childShadowDeltaY = 1;
    Nav.nextButtonCode = "<img src=\"img/fleche.gif\" height=\"14\" width=\"14\" border=\"0\" align=\"right\">";
    Nav.leftSpacerImage = "<img src=\"/ES/Images/1x1_tcm29-907.gif\" width=\"6\" height=\"2\" align=\"left\"/>";
    Nav.cellMouseOverColour = "#9999FF";
    Nav.cellMouseOutColour = Nav.childLevelBackgroundColour; // could make a colour "stick"..


    Nav.addTopLevelNavItem("tcm:29-37-4","<img src='img/triangle.gif' width='25' height='13'  border='0' />About Navair", "index.htm", 150 );
Nav.addNavItem("tcm:29-37-4","Presentation","us_presentation.htm" );
Nav.addNavItem("tcm:29-37-4","Main Activities","us_activities.htm" );
Nav.getNonTopLevelNavItem("Main Activities").addChild("Wiring", "us_cableado.htm");
Nav.getNonTopLevelNavItem("Main Activities").addChild("Mechanics", "us_mecanica.htm");
Nav.getNonTopLevelNavItem("Main Activities").addChild("Comercial", "us_comercial.htm");
Nav.addNavItem("tcm:29-37-4","Certifications","us_iso.htm" );
Nav.addNavItem("tcm:29-37-4","Press Room","us_press.htm" );
Nav.addNavItem("tcm:29-37-4","Contact","us_contact.htm" );
Nav.addTopLevelNavItem("tcm:29-38-4","<img src='img/triangle.gif' width='25' height='13'  border='0' />Engineering & Manufacture", "us_desa.htm", 190 );
Nav.addNavItem("tcm:29-38-4","Aeronautical Development","us_daero01.htm" );
Nav.addNavItem("tcm:29-38-4","Naval Development","us_dnav01.htm" );
Nav.addNavItem("tcm:29-38-4","Military Development","us_dmil01.htm" );
Nav.addNavItem("tcm:29-38-4","Space Development","us_dspa01.htm" );
Nav.addTopLevelNavItem("tcm:29-39-4","<img src='img/triangle.gif' width='25' height='13'  border='0' />Comercial", "us_com00.htm", 115 );
Nav.addNavItem("tcm:29-39-4","Tools of Fixation","us_comuf00.htm" );
Nav.getNonTopLevelNavItem("Tools of Fixation").addChild("Tools of positioning and fixations", "us_comuf01.htm");
Nav.getNonTopLevelNavItem("Tools of Fixation").addChild("Aeronautical and space fixations", "us_comuf02.htm");
Nav.getNonTopLevelNavItem("Tools of Fixation").addChild("Clamps and associate tools of positioning", "us_comuf03.htm");
Nav.getNonTopLevelNavItem("Tools of Fixation").addChild("HI-SHEAR: Tools", "us_comuf04.htm");
Nav.getNonTopLevelNavItem("Tools of Fixation").addChild("HI-SHEAR: Fixations", "us_comuf05.htm");
Nav.addNavItem("tcm:29-39-4","Shocks and Vibrations","us_comvib00.htm" );
Nav.getNonTopLevelNavItem("Shocks and Vibrations").addChild("Engineering shocks and vibrations", "us_comvib01.htm");
Nav.getNonTopLevelNavItem("Shocks and Vibrations").addChild("The cable shock absorber", "us_comvib02.htm");
Nav.getNonTopLevelNavItem("Shocks and Vibrations").addChild("Adapted solutions", "us_comvib03.htm");
Nav.getNonTopLevelNavItem("Shocks and Vibrations").addChild("Clientes", "us_comvib04.htm");
Nav.addNavItem("tcm:29-39-4","BAB","us_bab00.htm" );
Nav.getNonTopLevelNavItem("BAB").addChild("Double Action m", "us_bab02.htm");
Nav.getNonTopLevelNavItem("BAB").addChild("Simple Action", "us_bab03.htm");
Nav.getNonTopLevelNavItem("BAB").addChild("Double Action S89", "us_bab05.htm");
Nav.getNonTopLevelNavItem("BAB").addChild("Trigger", "us_bab04.htm");
Nav.getNonTopLevelNavItem("BAB").addChild("Special", "us_bab07.htm");
Nav.getNonTopLevelNavItem("BAB").addChild("Accessories", "us_bab06.htm");
Nav.getNonTopLevelNavItem("BAB").addChild("References", "us_babref.htm");
Nav.addTopLevelNavItem("tcm:29-40-4","<img src='img/triangle.gif' width='25' height='13'  border='0' />International", "us_international.htm", 130 );
Nav.addNavItem("tcm:29-40-4","Fairs","us_salon.htm" );
Nav.addNavItem("tcm:29-40-4","Clients","us_client.htm" );
Nav.addNavItem("tcm:29-40-4","Programs of Participation","us_prog.htm" );
Nav.getNonTopLevelNavItem("Programs of Participation").addChild("Aero", "us_progaero.htm");
Nav.getNonTopLevelNavItem("Programs of Participation").addChild("Naval", "us_prognav.htm");
Nav.getNonTopLevelNavItem("Programs of Participation").addChild("Military", "us_progmil.htm");
Nav.getNonTopLevelNavItem("Programs of Participation").addChild("Space", "us_progspace.htm");
Nav.addTopLevelNavItem("tcm:29-41-4","<img src='img/flagES.gif' width='25' height='13'  border='0' />Español", "es_index.htm", 100 );
}

function drawNavItem(title, url, divClass) {
	document.write('<div class="leftnav '+divClass+'"><a href="'+url+'">'+title+'</a></div>');
}

function drawLeftNav(isNotGenerated) {
	var divClass = (isNotGenerated) ? "" : "generated";
	drawNavItem("send package" , ".html", divClass);
	drawNavItem("track package" , ".html", divClass);
	drawNavItem("check transit times" , ".html", divClass);
	drawNavItem("check price" , ".html", divClass);
	drawNavItem("my TNT" , ".html", divClass);
	drawNavItem("mobile solutions" , ".html", divClass);
	drawNavItem("collection" , ".html", divClass);
}