//<![CDATA[
// Baseline javascript navigation document part 2 © 2007 HDR Visual Communications //

	var urlB = '';
	if(headerSel.contains('a')){
		$$('#nav .'+ headerSel).setStyle('background','url('+urlB+') repeat-x top left');
		$$('#nav .b').setStyle('background','url('+urlB+') repeat-x top left');
	} else {
		if(headerSel == 'b'){
			$$('#nav .'+ headerSel).setStyle('background','url('+urlB+') repeat-x top left');
			$$('#nav .c').setStyle('background','url('+urlB+') repeat-x top left');
		} else if(headerSel == 'c'){
			$$('#nav .'+ headerSel).setStyle('background','url('+urlB+') repeat-x top left');
		}
	}
	$$('#nav .'+ headerSel).setStyle('background','url() repeat-x top left');
	$$('#nav .'+pageSel+' a').setStyle('background-color', '#FFE2E2');
	$$('#nav .'+pageSel+' a').setStyle('color', '#FF9999');
	// Close toggles		
			$$('#nav .a').addEvents(
			{
				'click':function()
				{
					accordion1.display(1);
					accordion2.display(1);
					this.setStyle('background','url('+urlB+') repeat-x top left');
					this.setStyle('color','#000');
					a = 1;
					aa = 0;
					b = 0;
					c = 0;
					$$('#nav .b').setStyle('background','url('+urlB+') repeat-x top left');
					$$('#nav .c').setStyle('background-color','transparent');
					$$('#nav .c').setStyle('background','url('+null+') repeat-x top left');
					
				},

				'mouseover':function()
				{
						this.setStyle('background-color','#FFE2E2');
						this.setStyle('color','#FF9999');
				},

				'mouseout':function()
				{
						this.setStyle('background','url('+urlB+') repeat-x top left');
						this.setStyle('color','#000');
				}

			});


			$$('#nav .b').addEvents(
			{
				'click':function()
				{
					accordion1.display(1);
					accordion2.display(1);
					this.setStyle('background','url('+urlB+') repeat-x top left');
					this.setStyle('color','#000');
					a = 0;
					aa = 0;
					b = 1;
					c = 0;
					$$('#nav .c').setStyle('background','url('+urlB+') repeat-x top left');
				},

				'mouseover':function()
				{
						this.setStyle('background-color','#FFE2E2');
						this.setStyle('color','#FF9999');
				},

				'mouseout':function()
				{
					if(b){
						this.setStyle('background','url('+urlB+') repeat-x top left');
						this.setStyle('color','#000');
					} else {
						this.setStyle('background-color','transparent');
						this.setStyle('color','#000');
					}
				}

			});

			$$('#nav .c').addEvents(
			{
				'click':function()
				{
					accordion1.display(1);
					accordion2.display(1);
					this.setStyle('background','url('+urlB+') repeat-x top left');
					this.setStyle('color','#000');
					a = 0;
					aa = 0;
					b = 0;
					c = 1;
					$$('#nav .b').setStyle('background-color','transparent');
					$$('#nav .b').setStyle('background','url('+null+') repeat-x top left');
				},

				'mouseover':function()
				{	
						this.setStyle('background-color','#FFE2E2');
						this.setStyle('color','#FF9999');
				},

				'mouseout':function()
				{
					if(c){
						this.setStyle('background','url('+urlB+') repeat-x top left');
						this.setStyle('color','#000');
					} else {
						this.setStyle('background-color','transparent');
						this.setStyle('color','#000');
					}
				}

			});
//]]>