function navigationArrow(path){

	

  jQuery("#nav ul li ul").addClass("push"); // This is line 3

  jQuery("#nav ul li.drop").addClass("enhanced");

  jQuery("#nav ul li.drop").removeClass("drop");

  jQuery("#nav ul li.enhanced span").after(' <img src="' + path + '" />');

  jQuery("#nav ul li.enhanced img").wrap('<a class="arrow rest"></a>');



  jQuery("#nav ul li a").hover(function(){

    jQuery(this).removeClass("rest").addClass("hover");

  }, function(){

    jQuery(this).removeClass("hover").addClass("rest");

  });

  

  jQuery("#nav ul li a").click(function(){

		if (jQuery(this).hasClass("hover") == true) {

		  jQuery("#nav ul li a.open").removeClass("open").addClass("rest");

		  jQuery("#nav ul li ul").hide();

		  jQuery(this).removeClass("hover").addClass("open");

		  jQuery(this).parent().find("ul").fadeIn();

		} else {

		  if (jQuery(this).hasClass("open") == true) {

			jQuery(this).removeClass("open").addClass("hover");

			jQuery(this).parent().find("ul").hide();

		  }

		}

  });



  jQuery(document).click(function(event){

    var target = jQuery(event.target);

    if (target.parents("#nav").length == 0) {

      jQuery("#nav ul li a.arrow").removeClass("open").addClass("rest");

      jQuery("#nav ul li ul").hide();

    }

	});



}



//************************************************************** NEW MENU JS ********************************************************//



var MenuTabHit=false; //global variable to keep track of when menutab is moused on or off, had multiple hits mousing over

					  //dropdown for some reason so this is made to help make it only happen once - problem found in ie5/6

var BrowserType;      //Holdes the browser id info, derived from function below.

//This next function queries browser to see what kind it is, if it's not a version of IE, returns -1

//If it is a version of IE, returns the version number.

function getBrowserType () {

	var infoString=navigator.appVersion;

	var temp=infoString.indexOf('MSIE');

	if (temp==-1) {

		//Not IE browser

		return -1;

	} else {

		//Is IE browser and returns version number

		infoString=infoString.substr(temp);

		temp=infoString.indexOf(';');

		infoString=infoString.substring(0,temp);

		infoString=infoString.split(" ");

		return infoString[1];

	}

}

//document.getElementById('output').innerHTML;

BrowserType=getBrowserType();

//Create FadeIn object class

function Fader () {

	var opacity=.9;

	this.version;

	this.element;

	this.timerId;

	this.incr=0.0;

	this.fadeIn=function () {

		

		if (this.incr<opacity) {

				switch (true)

				{

   					case (this.version!=-1 && this.version<7.0) ://IE and less than version 7.0

      					this.element.style.filter="alpha(opacity="+this.incr*(opacity*100)+")";

      					break;

   					case (this.version!=-1 && this.version>=7.0) ://IE version 7.0 or greater

      					this.element.style.filter="alpha(opacity="+this.incr*(opacity*100)+")";

      					break;

   					case (this.version==-1) ://All other browsers other than IE

      					this.element.style.opacity=this.incr;

      					break;

				} 

			this.incr+=.1;

		} else {



				switch (true)

				{

   					case (this.version!=-1 && this.version<7.0) ://IE and less than version 7.0

      					this.element.style.filter="alpha(opacity="+(opacity*100)+")";

      					break;

   					case (this.version!=-1 && this.version>=7.0) ://IE version 7.0 or greater

      					this.element.style.filter="alpha(opacity="+(opacity*100)+")";

      					break;

   					case (this.version==-1) ://All other browsers other than IE

      					this.element.style.opacity=opacity;

      					break;

				} 

			this.incr=0.0;

			this.clearTimer();

		}

	}

	this.clearTimer=function () {

		if (this.timerId) {

				clearInterval(this.timerId);

			} else {

				this.timerId=false;

			}

	}

	this.start=function () {

		this.timerId=window.setInterval("faderObj.fadeIn()",1);

		}

}



faderObj= new Fader();

faderObj.version=BrowserType;

//---------------------------------------------------------------------------------------------------------------------

function showDropDown (node) {

	var dropDownElement=(node.getElementsByTagName('UL'))[0];

	dropDownElement.style.display='block';

	var menuTabLink=(node.getElementsByTagName('A'))[0];

	menuTabLink.className='menutablinkjavascripthover';

	if (menuTabLink.id) {menuTabLink.id="lastmenutablinkjavascripthover";}

	if (!MenuTabHit) {MenuTabHit=true;

		switch (true)

		{

   			case (faderObj.version!=-1 && faderObj.version<7.0) ://IE and less than version 7.0

				dropDownElement.style.filter="alpha(opacity=0)";

				faderObj.element=dropDownElement;

				faderObj.incr=0.0;

				faderObj.clearTimer();

				faderObj.start();

				//document.getElementById('output').innerHTML="IE browser less than version 7.0";

      			break;

   			case (faderObj.version!=-1 && faderObj.version>=7.0) ://IE version 7.0 or greater

				dropDownElement.style.filter="alpha(opacity=0)";

				faderObj.element=dropDownElement;

				faderObj.incr=0.0;

				faderObj.clearTimer();

				faderObj.start();

				//document.getElementById('output').innerHTML="IE browser 7.0 or greater";

      			break;

   			case (faderObj.version==-1) ://All other browsers other than IE

				dropDownElement.style.opacity=0.0;

				faderObj.element=dropDownElement;

				faderObj.incr=0.0;

				faderObj.clearTimer();

				faderObj.start();

				//document.getElementById('output').innerHTML="Non-IE browser";

      			break;

		}

	}

}

function hideDropDown (node) {

	var dropDownElement=(node.getElementsByTagName('UL'))[0];

	dropDownElement.style.display='none';

	var menuTabLink=(node.getElementsByTagName('A'))[0];

	menuTabLink.className='menutablink';

	if (menuTabLink.id) {menuTabLink.id="lastmenutablink";}

	MenuTabHit=false;

}

function highlightmenutab (node) {

	var menuTabLink=(node.parentNode).getElementsByTagName('A')[0];

	menuTabLink.className='menutablinkjavascripthover';

	MenuTabHit=true;

}

function unhighlightmenutab (node) {

	var menuTabLink=(node.parentNode).getElementsByTagName('A')[0];

	menuTabLink.className='menutablink';

	MenuTabHit=true;

}