//---------------------------------//
//
//  AlteWaffen von Benedikt Morschheuser  
//  http://www.BMo-design.de        
//  Bugs nach info@BMo-design.de
//
//---------------------------------//
//
// Copyright (C) 2009 bmo-design.de
//---------------------------------//
// ************************************************************
//		JavaScript
// ************************************************************


//zu den moo-tools von mootolls.net copyright (c) 2007 Valerio Proietti, <http://mad4milk.net>
window.addEvent('domready', function(){
			/*$each($$('.FXoberkategorien'), function(element){
				element.addEvents({ ......  evtl.

			}); */
			$each($$('.cat-item'), function(element){
				element.addEvents({
						mouseenter: function(){
										this.set('morph', {duration: 200});
										this.morph({
											'border-left-width': '15px',
											'border-left-color': '#fff'
										});
							},
						mouseleave: function(){
										this.set('morph', {duration: 200});
										this.morph({
											'border-left-width':'10px',
											'border-left-color': '#fff'
										});
							}
				}); 
			}); 
			$each($$('.cat-item a'), function(element){
				element.addEvents({
						mouseenter: function(){
										this.set('morph', {duration: 200});
										this.morph({
											'background-color': '#83A2AD'
										});
							},
						mouseleave: function(){
										this.set('morph', {duration: 200});
										this.morph({
                                            'background-color': '#AFC4C9'
										});
							}
				}); 
			}); 
			$each($$('.cat-item .cat-item a'), function(element){
				element.removeEvents('mouseenter');
				element.removeEvents('mouseleave');
				element.addEvents({
						mouseenter: function(){
										this.set('morph', {duration: 200});
										this.morph({
											'background-color': '#83A2AD'
										});
							},
						mouseleave: function(){
										this.set('morph', {duration: 200});
										this.morph({
                                            'background-color': '#CFDBDE'
										});
							}
				}); 
			}); 
            //Searchform
            $('searchsubmit').addEvents({
                    mouseenter: function(){
                                this.set('morph', {duration: 50});
                                this.morph({
                                    'color': '#456169'
                                });
                    },
                    mouseleave: function(){
                                this.set('morph', {duration: 50});
                                this.morph({
                                     'color': '#ffffff'
                                });
                    }
            }); 							   
});
