// Which one do you want to animate open to start with
	if(typeof acc_start_open == "undefined"){ acc_start_open = -1 ; }
// This is to take into acount any padding on the child element
	if(typeof acc_closed_height == "undefined"){ acc_closed_height = 0 ; }
// Prevents posible ID conflicts when changed
	if(typeof acc_functional_prefix == "undefined"){ acc_functional_prefix = "prodacord_" ; }
// Do the moo
	window.addEvent('domready',function() { 
		invisible_opacity = 0.0001 ;
		togglers = $$('#accordian .toggler') ;
		elements = $$('#accordian .element') ;
		// Mapstuff ---------------------------------------------------
			mapunits = $$('#mapdiv .mapunit') ;
			mapunits.setStyles({'opacity':invisible_opacity,'visibility':'visible'}) ;
			i=0 ;
			$$('.mapover_coords area').each(function (coord){
				coord.id = acc_functional_prefix+'unit_'+i ;
				coord.addEvent('click',function(){
					toggle_element(parseFloat(coord.id.replace(acc_functional_prefix+'unit_',""))) ;
				}); i++ ;
			});
		// ------------------------------------------------------------
		full_height = Array() ;
		// Functions
		function toggle_element(ee_loc){
			if( elements[ee_loc].offsetHeight==acc_closed_height ){
				$$('#accordian .element').morph({'height':0}) ;
				elements[ee_loc].morph({'height':full_height[ee_loc]}) ;
			} else {
				elements[ee_loc].morph({'height':0}) ;
			}
		// Mapstuff ---------------------------------------------------
			mapunits.morph({'opacity':invisible_opacity}) ;
			$('unit'+(ee_loc+1)).morph({'opacity':1}) ;
		// ------------------------------------------------------------
		}
		function close_all(){ elements.morph({'height':0}) ; }
		function load_all(){
			elements.setStyles({'height':0}) ;
			if(acc_start_open>=0){ toggle_element(acc_start_open) ; }
		}
		i=0 ;
		togglers.each(function (el){
			full_height[i] = elements[i].offsetHeight ;
			el.id = acc_functional_prefix+i ;
			el.addEvent('click',function(){
				toggle_element(parseFloat(el.id.replace(acc_functional_prefix,""))) ;
			}); i++ ;
		});
		load_all(acc_start_open);
	});