

$(document).ready(function(){

  $('a').each(function (){
    var colorbefore;
    $(this).mouseover(function (){ 
      colorbefore = $(this).css("color");

      if (colorbefore != "rgb(206, 201, 201)"){
        $(this).animate({ color: "#df0000", opacity: 1.0, }, 400 );     
      }    
    });
      
    $(this).mouseout(function (){  
      if (colorbefore != "rgb(206, 201, 201)"){
        $(this).animate({ color: "#8e5a17", opacity: 1.0, }, 400 );   
      }
    })        	
  });


$('.boxlink').each(function (){

	$(this).mouseover(function (){ 
    $(this).animate({ backgroundPosition:"(0px -54px)", opacity: 1.0 }, 400 ); 
  });
	$(this).mouseout(function (){
    $(this).animate({ backgroundPosition:"(0px 0px)", opacity: 1.0, }, 200 );    
  });	
});
	
$('.subnav a').each(function (){
  $(this).css( {backgroundPosition: "-268px 0px"} );
  
 
  
	$(this).mouseover(function (){ 
    $(this).animate({ backgroundPosition:"(-134px 0px)" }, 180 ); 
  });
	$(this).mouseout(function (){
    $(this).animate({ backgroundPosition:"(-268 0px)", opacity: 1.0, }, 140 );    
  });	
});

$('.activity').each(function (){  
    $(this).css( {backgroundPosition: "0px 0px"} );
    $(this).mouseover(function (){ 
      $(this).animate({ backgroundPosition:"(-134px 0px)" }, 180 ); 
    });
	  $(this).mouseout(function (){
      $(this).animate({ backgroundPosition:"(0px 0px)", opacity: 1.0, }, 140 );    
    });	
});	

	
	$('.lone').animate({ opacity: 0.0 }, 1 ); 
	$('.ltwo').animate({ opacity: 0.0 }, 1 );
	$('.lthree').animate({ opacity: 0.0 }, 1 );
	$('.lfour').animate({ opacity: 0.0 }, 1 );
	$('.lfive').animate({ opacity: 0.0 }, 1 );
	$('.lsix').animate({ opacity: 0.0 }, 1 );
	
  $('#link-one').mouseover(function (){ 
    $('.lone').animate({ opacity: 1.0 }, 250 ); 
  });
	$('#link-one').mouseout(function (){ 
    $('.lone').animate({ opacity: 0.0 }, 200 );
  });
  
  $('#link-two').mouseover(function (){ 
    $('.ltwo').animate({ opacity: 1.0 }, 250 ); 
  });
	$('#link-two').mouseout(function (){ 
    $('.ltwo').animate({ opacity: 0.0 }, 200 );
  });	
	
  $('#link-three').mouseover(function (){ 
    $('.lthree').animate({ opacity: 1.0 }, 250 ); 
  });
	$('#link-three').mouseout(function (){ 
    $('.lthree').animate({ opacity: 0.0 }, 200 );
  });	
  
  $('#link-four').mouseover(function (){ 
    $('.lfour').animate({ opacity: 1.0 }, 250 ); 
  });
	$('#link-four').mouseout(function (){ 
    $('.lfour').animate({ opacity: 0.0 }, 200 );
  });	
  
  $('#link-five').mouseover(function (){ 
    $('.lfive').animate({ opacity: 1.0 }, 250 ); 
  });
	$('#link-five').mouseout(function (){ 
    $('.lfive').animate({ opacity: 0.0 }, 200 );
  });	
  
  $('#link-six').mouseover(function (){ 
    $('.lsix').animate({ opacity: 1.0 }, 250 ); 
  });
	$('#link-six').mouseout(function (){ 
    $('.lsix').animate({ opacity: 0.0 }, 200 );
  });	


	});	
	
	
   

	
	
$(document).ready(function() {
	$.scrollTo.defaults.axis = 'xy';
		$('.gototop').click(function(){
		$.scrollTo( "#cont", {duration:1300} );
	});
	$('#linkalternativa').click(function(){
		$.scrollTo( ".alternativagame", {duration:1300} );
	});
	$('#linkarmaqg').click(function(){
		$.scrollTo( ".arma-qggame", {duration:1300} );
	});
	$('#linkarma2').click(function(){
		$.scrollTo( ".arma2game", {duration:1300} );
	});
	$('#linkhd2ss').click(function(){
		$.scrollTo( ".hd2ssgame", {duration:1300} );
	});
  $('#linkmafia2').click(function(){
		$.scrollTo( ".mafia2game", {duration:1300} );
	});
  $('#linkmutant').click(function(){
		$.scrollTo( ".mutantgame", {duration:1300} );
	});
  $('#linkrp').click(function(){
		$.scrollTo( ".rock-podvratakugame", {duration:1300} );
	});	
	$('#linksow2').click(function(){
		$.scrollTo( ".state-of-war-2game", {duration:1300} );
	});	
	$('#linkzl').click(function(){
		$.scrollTo( ".zhave-letogame", {duration:1300} );
	});	
	
	$('#linkadverts-media').click(function(){
		$.scrollTo( ".adverts-media", {duration:1300} );
	});
	$('#linkconnekt').click(function(){
		$.scrollTo( ".connekt", {duration:1300} );
	});
	$('#linkcgmagazine').click(function(){
		$.scrollTo( ".cg-magazine", {duration:1300} );
	});
	$('#linkcgm').click(function(){
		$.scrollTo( ".cgm", {duration:1300} );
	});
	$('#linkfaraway-studios').click(function(){
		$.scrollTo( ".faraway-studios", {duration:1300} );
	});
	$('#linkfod2').click(function(){
		$.scrollTo( ".fod2", {duration:1300} );
	});
	$('#linkfod3').click(function(){
		$.scrollTo( ".fod3", {duration:1300} );
	});
	$('#linkgamesource').click(function(){
		$.scrollTo( ".gamesource", {duration:1300} );
	});
	$('#linkmafia').click(function(){
		$.scrollTo( ".mafiatwo", {duration:1300} );
	});
	$('#linkmeeting-the-enemy').click(function(){
		$.scrollTo( ".meeting-the-enemy", {duration:1300} );
	});
	$('#linkmgh').click(function(){
		$.scrollTo( ".mgs", {duration:1300} );
	});
	$('#linknahraj').click(function(){
		$.scrollTo( ".nahraj", {duration:1300} );
	});
	$('#linkchmela-pneu').click(function(){
		$.scrollTo( ".pneu-chmela", {duration:1300} );
	});
	$('#linkrsmoto').click(function(){
		$.scrollTo( ".rsmoto", {duration:1300} );
	});
	$('#linkstiefel').click(function(){
		$.scrollTo( ".stiefel", {duration:1300} );
	});
	
 });
 

	
	