// jquery effekt for mforum   alireza balouch @ siteman as 2008
var ringmegstatus = 0;
$(function () {
	$('#pamelding > span > a ').click(function () {
          $('#content_wrapper').animate({marginLeft : '-' + ( divSize * 2) + 'px'} , slideTime);
          $('#one').removeClass('active');
          $('#two').removeClass('active');
          $('#three').addClass('active');
          return false;
  });

// slide effekt

      $('#content_one').show();
      $('#content_two').show();
      $('#content_three').show();

      var divSize = 620 ;
      var slideTime = 1000;

      $('#one a ').click(function () {
          $('#content_wrapper').animate({marginLeft : '0px'} , slideTime);
          $('#one').addClass('active');
          $('#two').removeClass('active');
          $('#three').removeClass('active');
          return false;
      });

      $('#two a ').click(function () {
          $('#content_wrapper').animate({marginLeft : '-' +  divSize + 'px'} , slideTime);
          $('#one').removeClass('active');
          $('#two').addClass('active');
          $('#three').removeClass('active');
          return false;
      });
      $('#three a ').click(function () {
          $('#content_wrapper').animate({marginLeft : '-' + ( divSize * 2) + 'px'} , slideTime);
          $('#one').removeClass('active');
          $('#two').removeClass('active');
          $('#three').addClass('active');
          return false;
      });

      // kvittering for ring meg
      $('.knapp a').click(function (){
          if ($('#ringmeg_kontakt').val() != ''){
            $('#kvittering').fadeIn(500).animate({opacity : 1},3000).fadeOut(500);
          }
          setTimeout("do_submit_ringmeg()" ,3000 );
          return false;
      });
      // ta vekk teksten fra ring meg inputene
      $('#ringmeg_kontakt').click(function(){
          if ($('#ringmeg_kontakt').val() == 'Kontaktperson'){
              $('#ringmeg_kontakt').val('');
          }
      });
      $('#ringmeg_telefon').click(function(){
          if ($('#ringmeg_telefon').val() == 'Telefonnummer'){
              $('#ringmeg_telefon').val('');
          }
      });

});
