$(document).ready(function(){
	 $("#port-all").click(function(event){
	   event.preventDefault();
	 });

        //$("#div_news").wrap('<div id="newssleterWrapper" style="height:0;position:absolute;">');

        
		$("#newsletter").click(function(){
			 $("#div_news").toggle();
           // $('newssleterWrapper').()
            //$("#div_news").show().animate(500, {top:'20px', height:'100px'});
		});
        
        
        $('#buton_news').click(function(){            
           $.ajax({
              type: 'POST',
              url: 'http://nirvanamasaj.ro/newsletter.php',
              data: 'email='+$('#email_news').val(),
              success: function(data){if(data == 'error'){alert('Adresa de email introdusa nu este valida!');}else{alert('V-ati abonat su success la newsletter-ul nostru!');$("#div_news").hide()}},
              dataType: 'text'
            }); 
        });

        $("#maimultseo").click(function(){
                var $this = $(this);
                if( $this.is('.seovizibil') ) {
                        $('#textseo').slideUp("slow");
                        $this.removeClass('seovizibil');
                        $this.addClass('seoinvizibil');
                        $this.html('mai multe');
                }
                else {
                        $('#textseo').slideDown("slow");
                        $this.removeClass('seoinvizibil');
                        $this.addClass('seovizibil');
                        $this.html('inchide');
                }
                return false;
        });




	  $(".MsoNormal").attr('style', '').removeClass('MsoNormal');
	  $("a[href='#']").attr("href", "javascript:void(0)");
});