       /**
        *
        *  required functions
        *
        */

        function getWindowHeight() {
          var windowHeight=0;
          if (typeof(window.innerHeight)=='number') {
            windowHeight=window.innerHeight;
          }
          else {
            if (document.documentElement&&document.documentElement.clientHeight) {
              windowHeight=document.documentElement.clientHeight;
            }
            else {
              if (document.body&&document.body.clientHeight) {
                windowHeight=document.body.clientHeight;
              }
            }
          }
          return windowHeight;
        }


        /**
         *   Init accordion
         *
         */


          Event.observe(window, 'load', loadAccordions, false);

          function loadAccordions() {


               $$('#vertical_container > h1').each(function(el){

                    el.observe('mouseover',function(e){
                           Event.element(e).addClassName('accordion_over')
                           })

                    el.observe('mouseout',function(e){
                           Event.element(e).removeClassName('accordion_over')
                           })

                })

                accordion = new Fx.Accordion(
                	$$('#vertical_container > .accordion_toggle'),
                	$$('#vertical_container > .accordion_content'),
                	{
                		opacity: true,
                	}
                );

//                if(typeof activator!='undefined') accordion.showThisHideOpen(activator)


	          $$('.accordion_toggle').each(function(el, index){
	          	if (el.className.search(/accordion_toggle_active/) != -1) accordion.showThisHideOpen(index);
	          });
          };
        

        /**
         *  Init bugfix
         *
         */

        if(!Prototype.Browser.IE){
         ['load','resize'].each(function(evt){
             Event.observe(window,evt,function(){
                  ch=getWindowHeight()
                  ch=ch < 600 ? 600 : ch;
                  $('container').setStyle({minHeight: (ch)+'px'});
             })
         })
        }
