/* Author: 
		Ulle bäckström
*/

$(document).ready(function() {
	
	// $('.eme-calendar-table .eventful a').addClass('vtip');
	
	$('.login').append('<span class="hover"></span>').each(function () {
	  var $span = $('> span.hover', this).css('opacity', 0);
	  $(this).hover(function () {
	    $span.stop().fadeTo(200, 1);
	  }, function () {
	    $span.stop().fadeTo(200, 0);
	  });
	});
	
	$('#aside_nav input[type="button"]').hover(function(){
			$(this).addClass('hover').fadeTo(200, 1);
		},
		function(){
			$(this).removeClass('hover').fadeTo(200, 1);	
	});
	
	$('#eme-rsvp-form').before('<h2 style="margin-top:30px;">Ilmoittautuminen</h2>');
	
	
	if($.browser.msie) {

    // do something

	}
	else {
    // initialise plugins
		$(function(){
			$('#main_nav ul').superfish({
				
				 autoArrows:  true,
				 speed:	'fast',
				 animation:   {height:'show'}
			
			});
		});
	}
});

