window.addEvent('domready', function() {



    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    if($$('a.boxed').length>0)
        SqueezeBox.assign($$('a.boxed'), {
            parse: 'rel',
            handler:'iframe',
            iframePreload:true
        });

    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    //multibox (swf, galerien)
    //call multiBox
    //http://www.liamsmart.co.uk/Downloads/multiBox/
    var initMultiBox = new multiBox({
        mbClass: '.mb',//class you need to add links that you want to trigger multiBox with (remember and update CSS files)
        container: $(document.body),//where to inject multiBox
        //descClassName: 'multiBoxDesc',//the class name of the description divs
        showControls: false,
        showNumbers: false,
        path: './Files/',//path to mp3 and flv players
        useOverlay: true,//use a semi-transparent background. default: false;
        maxSize: {w:800,h:600},//max dimensions (width,height) - set to null to disable resizing
        addDownload: true,//do you want the files to be downloadable?
        addRollover: true,//add rollover fade to each multibox link
        addOverlayIcon: false,//adds overlay icons to images within multibox links
        addChain: true,//cycle through all images fading them out then in
        recalcTop: true,//subtract the height of controls panel from top position
        addTips: true,//adds MooTools built in 'Tips' class to each element (see: http://mootools.net/docs/Plugins/Tips)
        autoOpen: 0//to auto open a multiBox element on page load change to (1, 2, or 3 etc)
    });


    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    // Verhalten der Suchfelder bei focus und blur
    var valueString = 'SUCHE';
    $$('.searchfield').each(function(item){
        item.addEvents({
            'focus': function(){
                if( this.value == valueString ){
                    this.value= '';
                }
            },
            'blur': function(){
                if( this.value == "" ){
                    this.value=valueString;
                }
            }
        })

    });








});
