function init() {
	if (!browserSufficient) {
		slide = $('bestell-ebene');
		
		// $('bestellbutton').onclick = function () {
		//                                  if (slide.style.display == 'block') 
		//                                    slide.style.display = 'none';
		//                                else 
		//                                    slide.style.display = 'block';
		//                                return false;
		//                              };
		//     $('bestell-close').onclick = function () {
		//                                  if (slide.style.display == 'block') 
		//                                    slide.style.display = 'none';
		//                                else 
		//                                    slide.style.display = 'block';
		//                                return false;
		//                              }; 
	}
	else {
		slide = new Fx.Slide('bestell-ebene', {duration: 500});

        $('bestell-ebene').adopt($('bestell-ebene-content'));
        $('bestell-ebene').adopt($('bestell-spacer'));
        
		if (!bestellung) {
		    slide.element.style.display = "block";
			slide.hide();
		}
    
    //$('bestellbutton', 'bestell-close').onclick = function () {
                                                    // slide.toggle();
                                                    //  return false;
  //                                                 };
          // .addEvent('click', function (evt) {
          //                     new Event(evt).stop();
          //                              slide.toggle();
          //                             })
          //          .addEvent('mouseover', function () { 
          //                                   $('bb2img').setProperty('src',
          //                                               "/images/layout/pfeilani_2.gif") 
          //                                 })
          //          .addEvent('mouseout', function () { 
          //                                   $('bb2img').setProperty('src',
          //                                               "/images/layout/pfeilani_1.gif") 
          //                                });
    $$('.slide_toggle')
          .addEvent('click', function (evt) {
                              new Event(evt).stop();
                                 if (firsttime) {
                                     urchinTracker("/goal/bestellformopened");   
                                     firstime = false;
                                 }
                                 slide.toggle();
                                })
             .addEvent('mouseover', function () { 
                                      $('bb2img').setProperty('src',
                                                  "/images/layout/pfeilani_2.gif") 
                                    })
             .addEvent('mouseout', function () { 
                                      $('bb2img').setProperty('src',
                                                  "/images/layout/pfeilani_1.gif") 
                                   });
	

		$$('#q')
		    .addEvent('focus', function() {
                              if (this.getValue() == this.defaultValue) { 
                                this.value =''; 
                              }
                           })
        .addEvent('blur', function () {
                              if (this.getValue() == '') { 
                                        this.value = this.defaultValue; 
                              }
                           });
    
		$$('#newsletter_email')
		    .addEvent('focus', function() {
                            if (this.getValue() == this.defaultValue) { 
                              this.value =''; 
                            }
                           })
        .addEvent('blur', function () {
                            if (this.getValue() == '') { 
                                      this.value = this.defaultValue; 
                            }
                          });

		
		form_init();
		comments_init();
	  partners_init();
	}

}		




function comments_init() {
  var all_li = $$('#comments_col2 ul li');
  all_li.each( function (li) {    
                  $E('img', li).addEvent('click', function () { 
                                                    $('message').value = "_" 
                                                              + $E('a.text_author', li).innerHTML 
                                                              + ": \n"+  $E('p', li).innerHTML + "_\n" 
                                                              +  $('message').value;
                                                  })
               }
  );
}



function partners_init() {
  var links_div = $E('#box_allPartners div');

  if (links_div) {
    links_div.setStyle("display", "none");
    
    $('box_allPartners_clicker').onclick = function () {
                          		  if (links_div.style.display == 'block') 
                              		links_div.style.display = 'none';
                              	else 
                              		links_div.style.display = 'block';
                              	return false;
      	                      };

    var all_a = $$('#box_partners ul li a');
    all_a.addEvent('mouseover', function () {
                            			this.getFirst().setProperty('src', 
                            			                "/images/partners/"+this.getFirst().getProperty("alt") 
                            			                + "_ro.png"
                            			          		  );
                                })
          .addEvent('mouseout', function () {
          			                  this.getFirst().setProperty('src', 
                            			                "/images/partners/"+this.getFirst().getProperty("alt") 
                            			                + ".png"
                            			          		  );
                                });

  }
}
