jQuery(document).ready(function($) {

	

	$('.film').hover(function() {
		$(this).stop().animate({ opacity: 1 }, 200, function() {
		$(this).children().stop().animate({ height: '54px' }, 100);
		$("#filmtekst").stop().animate({ opacity: 1 }, 300);
  		});
	 	}, function () {
		$(this).stop().animate({
		opacity: 0.5
  		}, 200, function() {
    		// Animation complete.
		$(this).children().stop().animate({ height: '44px' }, 100);
		$("#filmtekst").stop().animate({ opacity: 0 }, 300);
  		});
	});

	$('.design').hover(function() {
		$(this).stop().animate({ opacity: 1 }, 200, function() {
		$(this).children().stop().animate({ height: '54px' }, 100);
		$("#designtekst").stop().animate({ opacity: 1 }, 300);
  		});
	 	}, function () {
		$(this).stop().animate({
		opacity: 0.5
  		}, 200, function() {
    		// Animation complete.
		$(this).children().stop().animate({ height: '44px' }, 100);
		$("#designtekst").stop().animate({ opacity: 0 }, 300);
  		});
	});

	$('.teknologi').hover(function() {
		$(this).stop().animate({ opacity: 1 }, 200, function() {
		$(this).children().stop().animate({ height: '54px' }, 100);
		$("#teknologitekst").stop().animate({ opacity: 1 }, 300);
  		});
	 	}, function () {
		$(this).stop().animate({
		opacity: 0.5
  		}, 200, function() {
    		// Animation complete.
		$(this).children().stop().animate({ height: '44px' }, 100);
		$("#teknologitekst").stop().animate({ opacity: 0 }, 300);
  		});
	});

	$('.storytelling').hover(function() {
		$(this).stop().animate({ opacity: 1 }, 200, function() {
		$(this).children().stop().animate({ height: '54px' }, 100);
		$("#storytellingtekst").stop().animate({ opacity: 1 }, 300);
  		});
	 	}, function () {
		$(this).stop().animate({
		opacity: 0.5
  		}, 200, function() {
    		// Animation complete.
		$(this).children().stop().animate({ height: '44px' }, 100);
		$("#storytellingtekst").stop().animate({ opacity: 0 }, 300);
  		});
	});

	$('.film').click(function() {
	window.location = 'http://massiverhino.no/filmanimasjon/';
	});

	$('.design').click(function() {
	window.location = 'http://massiverhino.no/kompetanse/designillustrasjon/';
	});

	$('.teknologi').click(function() {
	window.location = 'http://massiverhino.no/kompetanse/teknologi/';
	});

	$('.storytelling').click(function() {
	window.location = 'http://massiverhino.no/kompetanse/storytelling/';
	});

if ( $.browser.msie ) {
$('#header .menu-item a').get(0).style.removeAttribute('filter');
$('.hentry h2').get(0).style.removeAttribute('filter');

$('#header .menu-item a').hover(function() {
		$(this).stop().animate({ opacity: 1, height: '45px'  }, 150, function() {
  		});
	 	}, function () {
		$(this).stop().animate({
		opacity: 0.7, height: '30px'
  		}, 100, function() {
    		// Animation complete.
  		});
	});

}
else {
	$('#header .menu-item a').stop().animate({
		opacity: 0.7
  		}, 100);

	$('.hentry h2').stop().animate({
		opacity: 0.7
  		}, 100);


	$('#header .menu-item a').hover(function() {
		$(this).stop().animate({ opacity: 1, height: '45px'  }, 150, function() {
  		});
	 	}, function () {
		$(this).stop().animate({
		opacity: 0.7, height: '30px'
  		}, 100, function() {
    		// Animation complete.
		
  		});
	});

	

	$('.hentry h2').hover(function() {
		$(this).stop().animate({ opacity: 1  }, 250, function() {
  		});
	 	}, function () {
		$(this).stop().animate({ opacity: 0.7 }, 150, function() {
    		// Animation complete.
		
  		});
	});
} // End if condition (IE8)






});

