jQuery(document).ready(function(){
         // slidemenu
            jqueryslidemenu.buildmenu("mainmenu", arrowimages);
    }); 
 
 // logintab function      
jQuery(function() {     
   jQuery('#opentab').toggle(
      function()
      {
         jQuery('#boven').animate({
            top: "0px" 
         }, 300);            
      },
      function()
      {
         jQuery('#boven').animate({
            top: "-86px"
         }, 300);      
      }
   );                  
});
jQuery(function() {     
   jQuery('#opentab').toggle(
      function()
      {
         jQuery('#bovenIngelogd').animate({
            top: "0px" 
         }, 300);            
      },
      function()
      {
         jQuery('#bovenIngelogd').animate({
            top: "-36px"
         }, 300);      
      }
   );                  
});

jQuery(function() {
      jQuery("#opentab").click(function () {       
            jQuery(this).toggleClass('arrowup');                        
            });      
});

 // tabs function 
jQuery(function() {
      jQuery("#tab1").click(function () {       
            if ( jQuery(this).hasClass('inactivetab')) {
               
               jQuery(this).removeClass('inactivetab');
               jQuery(this).addClass('activetab');          
               jQuery("#tab2").addClass('inactivetab');
               jQuery("#tabtext2").hide();
               jQuery("#tabtext1").show();   
            }                                         
            });      
});

jQuery(function() {
      jQuery("#tab2").click(function () {       
            if ( jQuery(this).hasClass('inactivetab')) {
               
               jQuery(this).removeClass('inactivetab');
               jQuery(this).addClass('activetab');                
               jQuery("#tab1").addClass('inactivetab');  
               jQuery("#tabtext1").hide();
               jQuery("#tabtext2").show();                              
            }                                         
            });      
});






 // filter function     



jQuery(function() {     
      
      jQuery("#topfilter ul li a.sub").toggle(
         function()
         {
          jQuery(this).nextAll('ul:first').show();
          jQuery(this).parent('li').addClass('open');       
         },
         function()
         {
          jQuery(this).nextAll('ul:first').hide();
          jQuery(this).parent('li').removeClass('open');
         });                  
      
});


   








jQuery(function() {
      // defaulttext in the fields
         jQuery('.text').each(function() {
            var default_value = this.value;
            jQuery(this).focus(function() {
               if(this.value == default_value) {
                  this.value = '';
               }
            });
            jQuery(this).blur(function() {
               if(this.value == '') {
                  this.value = default_value;
               }
            });
      });
});







