﻿/*****************************
	Atrox Animation
	Animations for atrox.se
	Author: Bjorn Hall
*****************************/

$(function() {
		$(".menu-fade")
		.hide()
		.end()
		
        $(".icon-nav, .box-large a").hover(function() {
                $(this).find("span").stop(true, true).fadeIn();
        }, function() {
                $(this).find("span").stop(true, true).fadeOut();
        });
		$('#pagenav .first, #pagenav .second, #pagenav .third').animate({opacity:"0"},0);
		//$('.webbstrat').animate({height:"hide"},10);
		$('#pagenav .first').animate( { bottom: "+=100px", opacity: "1" }, 600, 'easeInQuad', runSecond());
		
		function runSecond(){
		$('#pagenav .second').delay(300).animate( { bottom: "+=100px", opacity: "1" }, 600, 'easeInQuad', runThird());
		}
		
		function runThird(){
		$('#pagenav .third').delay(600).animate( { bottom: "+=100px", opacity: "1" }, 600, 'easeInQuad');
		}
		
		
		/*jQuery.jQueryRandom = 0;
			jQuery.extend(jQuery.expr[":"],
			{
			    random: function(a, i, m, r) {
			        if (i == 0) {
			            jQuery.jQueryRandom = Math.floor(Math.random() * 4);
			        };
			        return i == jQuery.jQueryRandom;
					
			    }
			});
	      	$('a:random').click(function(){
	      		
	      		$('.oops').toggle();
	      		return false;
	      	
	      		
	      	});*/
			
});
