// set up variables for layer animation

// up for home page

var direction = "home";





///////////////////////

// Mouseover scripts here

///////////////////////



//preload highlighted



homeHi = new Image(44, 28);

homeHi.src = "new_images/nav_home_on.jpg";

applicationsHi = new Image(128, 28);

applicationsHi.src = "new_images/nav_applications_on.jpg";

benefitsHi = new Image(118, 28);

benefitsHi.src = "new_images/nav_benefits_on.jpg";

productsHi = new Image(122, 28);

productsHi.src = "new_images/nav_products_on.jpg";

resourcesHi = new Image(74, 26);

resourcesHi.src = "new_images/nav_resources_on.jpg";

testimonialsHi = new Image(85, 26);

testimonialsHi.src = "new_images/nav_testimonials_on.jpg";

galleryHi = new Image(103, 26);

galleryHi.src = "new_images/nav_gallery_on.jpg";

contactHi = new Image(62, 26);

contactHi.src = "new_images/nav_contact_on.jpg";



//lowlighted icon substitutions



homeLo = new Image(44, 28);

homeLo.src = "new_images/nav_home.jpg";

applicationsLo = new Image(128, 28);

applicationsLo.src = "new_images/nav_applications.jpg";

benefitsLo = new Image(118, 28);

benefitsLo.src = "new_images/nav_benefits.jpg";

productsLo = new Image(122, 28);

productsLo.src = "new_images/nav_products.jpg";

resourcesLo = new Image(74, 26);

resourcesLo.src = "new_images/nav_resources.jpg";

testimonialsLo = new Image(85, 26);

testimonialsLo.src = "new_images/nav_testimonials.jpg";

galleryLo = new Image(103, 26);

galleryLo.src = "new_images/nav_gallery.jpg";

contactLo = new Image(62, 26);

contactLo.src = "new_images/nav_contact.jpg";



function hiLite(icon) {

	theMouseItem = icon;

	turnedOn = eval(icon + "Hi.src");	

		if (ie || dom) {document.images[theMouseItem].src = turnedOn;}

		if (nn) {document.navigation.document.images[theMouseItem].src = turnedOn;}

}





// Non is for assorted mouseovers that aren't in the nav bar



function hiLiteNon(nonicon) {

	thenonMouseItem = nonicon;

	turnedOn = eval(nonicon + "Hi.src");

		if (ie || dom) {document.images[thenonMouseItem].src = turnedOn;}

		if (nn) {document.background.document.images[thenonMouseItem].src = turnedOn;}

}



function loLiteNon(nonicon) {

	thenonMouseItem = nonicon;

	turnedOff = eval(thenonMouseItem + "Lo.src");

		if (ie || dom) {document.images[thenonMouseItem].src = turnedOff;}

		if (nn) {document.background.document.images[thenonMouseItem].src = turnedOff;}

}



// hilite and lolite TD for nav items

function hiLiteNavTD(cell) {

      if (ie) {

         thisObj = eval("document.all." + cell + ".style");

      }

      if (nn) {

        thisObj = eval("document.layers['" + cell + "'].style");

      }

      if (dom) {

        thisObj = eval("document.getElementById('" + cell + "').style");

      }

      thisObj.background="#60ba46";

      }

      

function loLiteNavTD(cell) {

      if (ie) {

         thisObj = eval("document.all." + cell + ".style");

      }

      if (nn) {

        thisObj = eval("document.layers['" + cell + "'].style");

      }

      if (dom) {

         thisObj = eval("document.getElementById('" + cell + "').style");

      }

      thisObj.background="#AAAA99";

      }





// script for spawning new window



function openWindow(page,windowName,width,height,tools) {



// if window has already been opened and is behind main window,

// bring to front



		if (tools != 1) {

				showTools = ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no";

				} else {

				showTools = ",resizable=yes,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes";

				} 



    if (navigator.appName == 'Netscape') {

        adjWidth = width + 16;

        adjHeight = height + 16;

    }

    else {

        adjWidth = width + 16;

        adjHeight = height + 16;

    }

    

    myWin = window.open(page,'windowName','width=' + adjWidth + ',height=' + adjHeight + showTools);



	if (!myWin.focus()) {

		myWin.focus();

	}

	

}


