jQuery.noConflict();
jQuery('#slideshow').cycle({fx: 'fade'});
jQuery(function(){
				 	   
	   
		   
		   jQuery("a#close-login").click(function(){
		jQuery("#login-wrap").animate({right : "-290px"});
 });
		   	   
	
// Öppna
	jQuery("#open").click(function(){
		jQuery('#dagens-lunch-wrap p:first').css("margin-bottom","9px");
		jQuery("div#mer-luncher").slideDown(500);	
	});	
 
	// Stäng
	jQuery("#close").click(function(){
		jQuery("div#mer-luncher").slideUp('slow');
		setTimeout(function(){jQuery('#dagens-lunch-wrap p:first').css("margin-bottom","0");}, 650);
	});		
 
	// Byt mellan knappar
	jQuery("#dagens-lunch-bottom a").click(function () {
		jQuery("#dagens-lunch-bottom a").toggle();
	});

var merluncher = jQuery('#mer-luncher').children().size(); 
if( merluncher > 0)
		  { 
		  jQuery('#open').css({ display: 'block'});
		  
		  } 
		 

jQuery("#main-navigation li").click(function(){
					 jQuery("#main-navigation li.current_page_item").removeClass("current_page_item");
					 jQuery(this).addClass("current_page_item");
					 
					 });


jQuery('#myForm').ajaxForm(function(data) {
							if (data==1){
								jQuery('#bademail').fadeOut("fast");
								jQuery('#success').fadeIn("slow");
								jQuery('#myForm').resetForm();
							}
							else if (data==2){
								jQuery('#bademail').fadeOut("fast");
								jQuery('#badserver').fadeIn("slow");
							}
							else if (data==3)
							{
								jQuery('#bademail').fadeIn("slow");
							}
						});
});
