$(document).ready(function(){
	// slide effects
	$('#footer li.here strong').hover(function(){
		$(this).animate({height:100}, {queue:false,duration:200});
	}, function() {
		$(this).animate({height:79}, {queue:false,duration:200})
	});
	$('#footer li.contact strong').hover(function(){
		$(this).animate({height:70}, {queue:false,duration:200});
	}, function() {
		$(this).animate({height:50}, {queue:false,duration:200})
	});
	$('#footer .link-pixel span').hover(function(){
		$(this).animate({height:40}, {queue:false,duration:200});
	}, function() {
		$(this).animate({height:20}, {queue:false,duration:200})
	});
	
	// navigation
	var n = document.getElementById("nav");	
	if( n ){
		var lis = n.getElementsByTagName("li");
		for (var i = 0; i < lis.length; i++)
		{
			if (lis[i].className.indexOf('active') != -1 )
			{
				n.className = "hidden";
				n = lis[i];
			}
			else
			{
				lis[i].onmouseover = function ()
				{
					this.className += " hover";
					n.className = n.className.replace("active", "") + "hidden";
				}
				lis[i].onmouseout = function ()
				{
					this.className = this.className.replace("hover", "");
					n.className = n.className.replace("hidden", "") + "active";
				}
			}
		}
	}
});
