﻿$(document).ready(function () {

        $(function() {
			$("#1").lavaLamp({
				fx: "backout", 
				speed: 300,
				
                click: function(event, menuItem) {
					//return false;
				}
			});
		});
        
		
		$(function () {
			$("#1 span").delay("slow").hover(
				function () {
					$("a", this).css("color","#ffffff");
					//alert($(this).parent().attr('class'));
					//alert($("a", this).attr('class'));
					//alert($(this).attr('class'));
					if ($(this).attr('class') == "selectedLava")
					{
						$("a", this).css("color","#ffffff");
						//alert($("a", this).css("color"));
					}
					else
					{
						$(".lavaLampWithImage .selectedLava a").css("color","#6C6C6C");
						//alert($(".lavaLampWithImage li.selectedLava a").css("color"));
					}
				},
				function () {
					$("a", this).css("color","#6C6C6C");
					$(".lavaLampWithImage .selectedLava a").css("color","#ffffff");
				}
				);
		});
	});
	
	// Social icons
	$(document).ready(function () {
		$("#social > ul > li").hover(
			function () {
			//alert($("a", this).attr('class'));
				$("a", this).stop(true, true).animate({
					'bottom':'-8px'
				},300);
			},
			function () {
				$("a", this).stop(true, true).animate({
					'bottom':'-20px'
				},300);
			}
		);
});


