$(document).ready(function()
{

	$('#ex_list li.inactive').hover(
	function ()
	{
		
			$(this).animate({backgroundColor:"#242424"}, 300);
	
	},
	function ()
	{
	
			$(this).animate({backgroundColor:"#000"}, 300);
	
	});
	
	$('#ex_list li.active').hover(
	function ()
	{
		
			$(this).animate({backgroundColor:"#242424"}, 300);
	
	},
	function ()
	{
	
			$(this).animate({backgroundColor:"#242424"}, 300);
	
	});
	
	$('#ex_list li a').hover(
	function ()
	{
	$(this).animate({color:"#fff"}, 300);
	},
	function ()
	{
	$(this).animate({color:"#ccc"}, 300);
	});
	
	$('#banner ul li a').hover(
	function ()
	{
	$(this).animate({color:"#fff"}, 300);
	},
	function ()
	{
	$(this).animate({color:"#ccc"}, 300);
	});
	
	$('#visit-cooperhewitt a').hover(
	function ()
	{
	$(this).animate({color:"#fff"}, 300);
	},
	function ()
	{
	$(this).animate({color:"#ccc"}, 300);
	});
	
	function fadeInNew(div)
	{
		$(div).fadeIn();
	}
	
	function displayNone(div,ndiv)
	{
		$(div).css({display: "block"});
		$(div).animate({opacity:1},10,fadeInNew(ndiv));
		$(div).css({display: "none"});
	}
	
	$('#about-tab').click(
      function () {
      	$('#images').animate({opacity: 1},200,displayNone('#images','#info'));
      	$(this).animate({backgroundColor:"#000"});
      	$('#images-tab').animate({backgroundColor:"#333"});
			}
	);
	
	$('#images-tab').click(
      function () {
      	$('#info').animate({opacity: 1},200,displayNone('#info','#images'));
      	$(this).animate({backgroundColor:"#000"});
      	$('#about-tab').animate({backgroundColor:"#333"});
			}
	);
	
	$('#images img').hover(
	function ()
	{
	$(this).animate({backgroundColor:"#999"});
	},
	function ()
	{
	$(this).animate({backgroundColor:"#000"});
	});
	

});

/*

$(document).ready(function()
{
	
	$('#search-box').focus(function() { 
		this.value = "";
		$(this).css({color:"#000"});
		$(this).animate({borderLeftColor:"#8EAA3D",borderRightColor:"#8EAA3D",borderTopColor:"#8EAA3D",borderBottomColor:"#8EAA3D"},200);
	});
	
	$('#search-box').blur(function() { 
		$(this).animate({color:"#999"}, 200);
		$(this).animate({borderLeftColor:"#ccc",borderRightColor:"#ccc",borderTopColor:"#ccc",borderBottomColor:"#ccc"},200);
	});
	
	$('#location').click(
	function()
	{
		$('#popup').css({zIndex:600});
		$('#popup').fadeIn(400);
	});

	$('#close-location').click(
	function()
	{
		$('#popup').fadeOut(400);
	});
	
	$('#browse-by-list li a.inactive').hover(
	function ()
	{
	$(this).animate({backgroundColor:"#ffab00",color:"#fff"}, 300);
	},
	function ()
	{
	$(this).animate({backgroundColor:"#eee",color:"#999"}, 300);
	});
	
	$('#nominate-a-design a').hover(
	function ()
	{
	$(this).animate({backgroundColor:"#000",color:"#fff"}, 300);
	},
	function ()
	{
	$(this).animate({backgroundColor:"#ffab00",color:"#fff"}, 300);
	});
	
		
	$('#browse-nominees li').hover(
	function ()
	{
		$('#popup').fadeOut(400);
		$('.blue-border',this).css({zIndex:150});
		$('.blue-border',this).fadeIn(200);
		if($('.more-info-html-left',this))
		{
			$('.more-info-html-left',this).css({zIndex:149});
			$('.more-info-html-left',this).fadeIn(200);
			$('.more-info-html-left',this).animate({marginLeft: '-227px'},100);
		} 
			$('.more-info-html',this).css({zIndex:149});
			$('.more-info-html',this).fadeIn(200);
			$('.more-info-html',this).animate({marginLeft: '150px'},100);
		
	},
		function ()
	{
		$('.blue-border',this).css({zIndex:100});
		$('.blue-border',this).fadeOut(200);
		if($('.more-info-html-left',this))
		{
			$('.more-info-html-left',this).css({zIndex:99});
			$('.more-info-html-left',this).animate({marginLeft: '-222px'},15);
			$('.more-info-html-left',this).fadeOut(25);
		}
			$('.more-info-html',this).css({zIndex:99});
			$('.more-info-html',this).animate({marginLeft: '145px'},15);
			$('.more-info-html',this).fadeOut(25);
		
	});
	
  $('#pda_logo').hover(
  function ()
  {
    $(this).animate({backgroundColor:"#f2f2f2"}, 300);
  },
  function ()
  {
    $(this).animate({backgroundColor:"#fff"}, 800);
  });
});

*/