$(document).ready(function() {

    $('.prime-menu').superfish(
      {
       delay:       0,
       animation:   {opacity:'show',height:'show'},
       speed:       'fast',
       hoverClass:  'sfHover',
       autoArrows:  true,
       dropShadows: true,
       disableHI:   false
      }
    );

    $('a.lightbox').lightBox(
      {
       overlayBgColor:       '#000',
       overlayOpacity:       0.6,
       imageLoading:         'fileadmin/layout/img/lightbox/loading.gif',
       imageBtnClose:        'fileadmin/layout/img/lightbox/close.gif',
       imageBtnPrev:         'fileadmin/layout/img/lightbox/prev.gif',
       imageBtnNext:         'fileadmin/layout/img/lightbox/next.gif',
       containerResizeSpeed: 500,
       /* txtImage:             'Bild',
          txtOf:                'von' */
       }
    );
    
    /*

    if ((screen.width<1024) && (screen.height<768))
       {
        $.scrollTo( {top:'350px', left:'0px'}, 1000 );
       }

    else
       {
        $.scrollTo( {top:'120px', left:'0px'}, 1000 );
       }

    */

    $.localScroll(
      {
       duration:1200
      }
    );

    $('#sub-menu > div').slideToggle(0);
    $('#sub-menu > a').click(function()
      {
        $('#sub-menu > div:visible').slideToggle('slow');
        if( $(this).next().css('display') == 'none' )
          {
           $(this).next().slideToggle('slow');
          }
        return false;
      }
    );
	
    $('.open').slideToggle('slow');
    $('.none').slideToggle(0);
	
    if ($.browser.msie) {
     $('#content-normal').show();
    }
    else {
     $('#content-normal').hide();
     $('#content-normal').show(500);
    }
	/*
    $('.inputtext').val('Suche ...');
	*/
  }
);

