// JavaScript Document

		//initialize accordions on load
		Event.observe(window, 'load', loadAccordions, false);

		//load the accordion
		function loadAccordions() {			
			this.accAccordion = new accordion('vertical_container');
		}
		
		
		
		/*****************************************************************
		*	form submission for accessories
		*		
		*
		********************************************************************/
		function submitFeaForm(form)
		{
			var cForm = document.forms[form];				
		
				cForm.submit();
			
		}
		
		/*****************************************************************
		*	opens the appropriate accordion
		*		
		*
		********************************************************************/
		openFeatureAccordion = function (pos, arrowID, accordionName) {

		    //alert(pos);

		    //this.currentOpenPos = pos;
		    if (accordionName != undefined) {
		        var accord = "#" + accordionName + " .accordion_toggle";
		        if (this[accordionName] == undefined) {
		            this[accordionName] = {};
		        }
		        this[accordionName].currentOpenPos = pos;
		        var dataObj = this[accordionName];
		    } else {
		        var accord = "#vertical_container .accordion_toggle";
		        if (this["vertical_container"] == undefined) {
		            this["vertical_container"] = {};
		        }
		        this["vertical_container"].currentOpenPos = pos;

		        var dataObj = this["vertical_container"];
		    }
		    accAccordion.activate($$(accord)[pos]);

		    if (dataObj.arrowBut != undefined) {
		        dataObj.arrowBut.className = "arrow";
		    }

		    if (arrowID != undefined) {

		        var temp = dataObj.arrowBut;
		        dataObj.arrowBut = getElement(arrowID);
		        if (temp != dataObj.arrowBut) {
		            //alert('is open')

		            var pn = getElement(arrowID).previousElementSibling.children[0].innerHTML;
		            var p7 = s.prop7;
                    

		            if (p7.substring(p7.length - 1) == "/")
		                p7 = p7.substring(0, p7.length - 1);
		            var om = {// You can pass in an object literal to s.t() with ONLY the variables you want to update

		                pageName: s.pageName + "/" + pn,
		                prop5: s.prop5,
		                prop6: s.prop6,
		                prop7: s.prop7,
		                prop8: s.prop8,
		                prop9: p7 + "/" + pn


		            }

		            //alert(om.pageName);

		            // For tracking "page" views

		            if (s && s.t) { // Check to make sure the object/methods exists before calling
		                void (s.t(om));
		            };



		            dataObj.arrowBut.className = "arrow_up";
		        } else {
		            dataObj.arrowBut = undefined;
		        }

		    }

		}
		
		
		
		
		/*****************************************************************
		*	closes the appropriate accordion
		*		
		*
		********************************************************************/
		/*closeFeatureAccordion = function(accordionName){
			if(accordionName != undefined){
				var accord = "#"+accordionName+" .accordion_toggle";
			}else{
				var accord = "#vertical_container .accordion_toggle";
			}
			accAccordion.activate($$(accord)[this.currentOpenPos]);	
			
			if(this.arrowBut != undefined){
				this.arrowBut.className="arrow";	
			
			}
		}*/
		
		
		showBillTab = function (billTabId,hrefId){
			var billTab = getElement(billTabId);
			var billTabLink =  getElement(hrefId);
			if(this.currentBillTab != billTab){
				this.currentBillTab.style.display ='none';	
				this.currentBillTabLink.className = "";
				
			}
			
			billTabLink.className = "active";
			billTab.style.display ='';
			this.currentBillTab = billTab;
			this.currentBillTabLink = billTabLink;
			
		}
		
