// Which one do you want to animate open to start with
                //if(typeof acc_start_open == "undefined"){ acc_start_open = 0 ; }
// This is to take into acount any padding on the child element
                if(typeof acc_closed_height == "undefined"){ acc_closed_height = 2 ; }
// 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, ee_init){
                                                if( elements[ee_loc].offsetHeight==acc_closed_height ){
                                                                //$$('#accordian .element').morph({'height':0}) ;
                                                                if (ee_init==true) {
                                                                                elements[ee_loc].setStyles({'height':full_height[ee_loc]}) ;
                                                                } else {
                                                                                elements[ee_loc].morph({'height':full_height[ee_loc]}) ;
                                                                }
                                                } else {
                                                                elements[ee_loc].morph({'height':0}) ;
                                                }
                                }
                                //function close_all(){ elements.morph({'height':0}) ; }
                                function load_all(){
                                                elements.setStyles({'height':0}) ;
                                                for(i=0; i<acc_start_open.length; i++) {
                                                                //alert(i+' - '+acc_start_open[i]);
                                                                if(acc_start_open[i]>=0){ toggle_element(acc_start_open[i], true) ; }
                                                }
                                                //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,"")), false) ;
                                                }); i++ ;
                                });
                                load_all(acc_start_open);
                });

