	
var current_global_column = "none";
var last_global_column = "none";
var counter = 0;


	function preload()
	{
		if (document.images)
		{
			aboutNFPAOn = new Image();
			aboutNFPAOff = new Image();
			aboutFluidPowerOn = new Image();
			aboutFluidPowerOff = new Image();
			marketDataOn = new Image();
			marketDataOff = new Image();
			technicalStandardsOn = new Image();
			technicalStandardsOff = new Image();
			educationOn = new Image();
			educationOff = new Image();
			eventsOn = new Image();
			eventsOff = new Image();
			storeOn = new Image();
			storeOff = new Image();
			joiningNFPAOn = new Image();
			joiningNFPAOff = new Image();
			aboutNFPAOn.src = "buttons/aboutNFPA_on.gif";
			aboutNFPAOff.src = "buttons/aboutNFPA.gif";
			aboutFluidPowerOn.src = "buttons/abtFluidPower_on.gif";
			aboutFluidPowerOff.src = "buttons/abtFluidPower.gif";
			marketDataOn.src = "buttons/mktData_on.gif";
			marketDataOff.src = "buttons/mktData.gif";
			technicalStandardsOn.src = "buttons/techStds_on.gif";
			technicalStandardsOff.src = "buttons/techStds.gif";
			educationOn.src = "buttons/education_on.gif";
			educationOff.src = "buttons/education.gif";
			eventsOn.src = "buttons/events_on.gif";
			eventsOff.src = "buttons/events.gif";
			storeOn.src = "buttons/store_on.gif";
			storeOff.src = "buttons/store.gif";
			joiningNFPAOn.src = "buttons/join_red.gif";
			joiningNFPAOff.src = "buttons/joinball.gif";
			}
	}
//END OF IMAGE PRELOAD

	function positionRedLine()
	{
	//jg	grayLogoElement = document.getElementById("grayLogo");
	//jg	redLineElement = document.getElementById("redLine");
	//	redLine.left = grayLogo.left + grayLogo.width;
	//jg	redLineElement.style.left = "283px";
	
	//jg	redLineElement.style.top = grayLogoElement.offsetTop + 	
	//jg    grayLogoElement.offsetHeight + 116 + 30;
	
	}

	function swapImage(theImage,theFile)
	{
		document[theImage].src = theFile;
	}


	function overMenuHeader(theHeader, intColID)
	{	

		col = document.getElementById("col"+intColID);
		col.style.visibility='visible';

		last_global_column = current_global_column;
	
		current_global_column = col.id;
			
		if(last_global_column == "none"){

			last_global_column = current_global_column;
		
		}

			if(last_global_column != current_global_column){

				last_global_column_off();
				current_global_column_on();
			}
			else{

				current_global_column_on();
			}

	}

	function outMenuHeader(theHeader,intColID)
	{

		col = document.getElementById("col"+intColID);
		col.style.visibility='hidden';

		if(col.id != last_global_column){
		
			last_global_column_off();
		}
			
	}


	function overMenuColumn(theColumn)
	{	
		theColumn.style.visibility='visible';
		
	}
	
	
	function outMenuColumn(theColumn)
	{
		theColumn.style.visibility='hidden';
	}


	function fadetext(){
		hex = 255; 
		
		if(hex>0) 
		{ 
		hex-=11; // increase color darkness
		document.getElementById("col1").style.color="rgb("+hex+","+hex+","+hex+")";
		setTimeout("fadetext()",20); 
		}
	
		else
		hex=255 //reset hex value
	}

<!-- janet look here -->

	function overMenuItem(theItem)
	{	
		<!-- this is blue -->
		<!--theItem.style.backgroundColor="#ECE8E8";-->
		theItem.style.backgroundColor="#6093CA";
		theItem.style.color="#FFFFFF";
		
		counter = counter + 1;

	}

<!-- janet look here -->

	function outMenuItem(theItem)
	{	
	
		<!--theItem.style.backgroundColor="#c4c1c1";-->
		<!--grey / silver -->
		theItem.style.backgroundColor="#F1F1F1";
		theItem.style.color="#000000";
		
		counter = counter - 1;

		setTimeout('checkcounter()', 10);

	}

	function checkcounter(){

		if (counter == 0)
			current_global_column_off();
	}


	function clickMenuItem(pid)
	{
		window.location = window.location.protocol + "//" + window.location.hostname + "/" + "default.asp?pid=" + pid; 
	}
	function submitSearch()
	{
		if ( String(document.searchForm.searchText.value).length == 0 )
		{
			alert("Please Enter The Text To Search For Before Clicking ''Search''");
		}
		else
		{
			window.location = window.location.protocol + "//" + window.location.hostname + "/" + "search/search.asp?pid=303&searchstring=" + document.searchForm.searchText.value;
		}
	}
	function clickSiteMap()
	{
		window.location = window.location.protocol + "//" + window.location.hostname + "/" + "default.asp?pid=304";
	}
	function clickMembersOnly()
	{
		window.location = "/member/welcome.asp?pid=8";
	}
	function mouseOverHomePageLink(theItem)
	{
		theItem.style.color="#f6240e";
	}
	function mouseOutHomePageLink(theItem)
	{
		theItem.style.color="#000000";
	}

	function mouseOverLink(siteurl,pID) 		
	{
		self.status = siteurl + "&sid=" + document.secure_id_form.secure_id.value
	}
	function openEventCalendar()
	{
		window.open("/calendar/Calendar.aspx","calendarWindow","toolbar=no,width=600,height=700,scrollbars=yes")
	}

	function mouseOverLink(siteurl,pID) 		
	{
		self.status = siteurl + "&sid=" + document.secure_id_form.secure_id.value
	}

	function last_global_column_off(){

		if(last_global_column == "col1"){
		MM_swapImage('Image13','','btns%20push-in/btn_about_off.gif',1);
		}
		else if(last_global_column == "col6"){
		MM_swapImage('Image14','','btns%20push-in/btn_events_off.gif',1);
		}
		else if(last_global_column == "col3"){
		MM_swapImage('Image15','','btns%20push-in/btn_industry_off.gif',1);
		}
		else if(last_global_column == "col4"){
		MM_swapImage('Image16','','btns%20push-in/btn_standards_off.gif',1);
		}
		else if(last_global_column == "col5"){
		MM_swapImage('Image17','','btns%20push-in/btn_education_off.gif',1);
		}
	}


	function last_global_column_on(){

		if(last_global_column == "col1"){
		MM_swapImage('Image13','','btns%20push-in/btn_about_on.gif',1);
		}
		else if(last_global_column == "col6"){
		MM_swapImage('Image14','','btns%20push-in/btn_events_on.gif',1);
		}
		else if(last_global_column == "col3"){
		MM_swapImage('Image15','','btns%20push-in/btn_industry_on.gif',1);
		}
		else if(last_global_column == "col4"){
		MM_swapImage('Image16','','btns%20push-in/btn_standards_on.gif',1);
		}
		else if(last_global_column == "col5"){
		MM_swapImage('Image17','','btns%20push-in/btn_education_on.gif',1);
		}
	}

	function current_global_column_on(){

		if(current_global_column == "col1"){
		MM_swapImage('Image13','','btns%20push-in/btn_about_on.gif',1);
		}
		else if(current_global_column == "col6"){
		MM_swapImage('Image14','','btns%20push-in/btn_events_on.gif',1);
		}
		else if(current_global_column == "col3"){
		MM_swapImage('Image15','','btns%20push-in/btn_industry_on.gif',1);
		}
		else if(current_global_column == "col4"){
		MM_swapImage('Image16','','btns%20push-in/btn_standards_on.gif',1);
		}
		else if(current_global_column == "col5"){
		MM_swapImage('Image17','','btns%20push-in/btn_education_on.gif',1);
		}
	}

	function current_global_column_off(){

		if(current_global_column == "col1"){
		MM_swapImage('Image13','','btns%20push-in/btn_about_off.gif',1);
		}
		else if(current_global_column == "col6"){
		MM_swapImage('Image14','','btns%20push-in/btn_events_off.gif',1);
		}
		else if(current_global_column == "col3"){
		MM_swapImage('Image15','','btns%20push-in/btn_industry_off.gif',1);
		}
		else if(current_global_column == "col4"){
		MM_swapImage('Image16','','btns%20push-in/btn_standards_off.gif',1);
		}
		else if(current_global_column == "col5"){
		MM_swapImage('Image17','','btns%20push-in/btn_education_off.gif',1);
		}
	}

function breadcrumbs(){

  alert();

  sURL = new String;
  bits = new Object;
  var x = 0;
  var stop = 0;
  var output = "<a href=\"/\">Home</a> &nbsp;<img border='0' src='images/crumb_arrow.gif'>&nbsp; ";
  sURL = location.href;
  sURL = sURL.slice(8,sURL.length);
  chunkStart = sURL.indexOf("/");
  sURL = sURL.slice(chunkStart+1,sURL.length)
  while(!stop){
    chunkStart = sURL.indexOf("/");
    if (chunkStart != -1){
      bits[x] = sURL.slice(0,chunkStart)
      sURL = sURL.slice(chunkStart+1,sURL.length);
    }else{
      stop = 1;
    }
    x++;
  }
  for(var i in bits){
    output += "<a href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    output += bits[i] + "/\">" + bits[i] + "</a> &nbsp;<img border='0' src='images/crumb_arrow.gif'>&nbsp; ";
  }
  document.write(output + document.title);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function gotosearch(){
window.location="site_search.asp?search=" + search.value + "&submit=Search+%3E%3E&mode=allwords"
}

function submitLoginForm(){

	document.getElementById('frmInPageLogin').submit(); 

}


