        window.addEvent('domready', function() {
                                                                                   
                Element.implement({
                        show: function() {
                                this.setStyle('display','');
                        },
                        hide: function() {
                                this.setStyle('display','none');
                        }
                });
                                                                                 
                var l = new cvLinkSelect({
                        select_class: '.cvlinked', //the class for the linked select boxes
                        url: '/forums/jscripts/ajax.search.php',
                        multiple_var: true, //use multiple get variables or only one
                        loadClass: 'cvloading', //the css class that is added when a request is made
                        isLast: function(){
                                /* alert('Last dynamic selectbox!'); */
                        },
                        hasnoSub: function(){
                                /* alert('This option has no depending options. Lets hide the next elements!'); */

                                l.select.each(function(s){
                                        if(l.select.indexOf(s) >= l.select.indexOf(l.current)){ //if the select depends on the parent
                                                s.hide();
                                        }

                                });
                        },
                        hasSub: function(){
                                l.select.each(function(s){
                                        if(l.select.indexOf(s) >= l.select.indexOf(l.current)){ //if the select depends on the parent
                                                s.show();
                                        }

                                });
                        }
                });
        });

