// JavaScript Document

		//initialize accordions on load
		Event.observe(window, 'load', loadAccordions, false);

		//load the accordion
		function loadAccordions() {			
			this.accAccordion = new accordion('vertical_container');			
		}
		
	
		
		/*****************************************************************
		*	opens the appropriate accordion
		*		
		*
		********************************************************************/
		openAccordion = function(pos,arrowID,titleID){
			this.currentOpenPos = pos;
			accAccordion.activate($$('#vertical_container .accordion_toggle')[pos]);
			if(this.arrowBut != undefined){				
				this.arrowBut.className="arrow";	
				this.titleObj.className="service_title";
			}	
			
			if(arrowID != undefined){
				var temp = this.arrowBut;
				this.arrowBut = document.getElementById(arrowID);
				if(temp != this.arrowBut){
					this.arrowBut.className="arrow_up";	
				}else{
					this.arrowBut = undefined;	
				}
				var temp2 = this.titleObj;
				this.titleObj = document.getElementById(titleID);
				if(temp2 != this.titleObj){
					this.titleObj.className="service_title_selected";	
				}else{
					this.titleObj = undefined;	
				}
				
			}
			
		}
		/*****************************************************************
		*	closes the appropriate accordion
		*		
		*
		********************************************************************/
		closeFeatureAccordion = function(){
			accAccordion.activate($$('#vertical_container .accordion_toggle')[this.currentOpenPos]);	
			
			if(this.arrowBut != undefined){
				this.arrowBut.className="arrow";	
			
			}
		}
		
		
		infoShield = function(toggle,img){
			if(toggle){ 
				var displayObj = document.getElementById("shield");				
				//find page size
				var size = pageSize();
				var height = size.height;			
				var width = size.width;		
				var insideShieldObj = document.getElementById("insideShield");
				insideShieldObj.style.width=width+'px'
				insideShieldObj.style.height = height+'px';
				displayObj.style.display = '';
				
				var titleObj = document.getElementById("imageArea");
				titleObj.innerHTML = "<img src='"+img+"' />";
				//titleObj.style.display = '';
				var infoObj = getElement("infoPopUp");
				//infoObj.className = "insideText_popup";									
				
				infoObj.style.top =((height -200)/2)+"px";
				infoObj.style.left =((width -580)/2)+"px";
			
			}else{	
				var displayObj = document.getElementById("shield");
				displayObj.style.display = 'none';
				
			}	
			
		}
			
