$(document).ready(function(){ 
	$(document).pngFix(); 
	$(".logo").hover(function(){
			$(this).stop().fadeTo(300, 0.7); // This should set the opacity to 100% on hover
			},function(){
			$(this).stop().fadeTo(200, 1.0); // This should set the opacity back to 60% on mouseout
			});
	
	$("#nav a.cbbvalue").hover(function(){
			$(this).stop(true, true);
			$(this).animate( { marginTop: "4px"}, 200);
		},
		function(){
			$(this).animate( { marginTop: "0px"}, 200);
		});
	
	$("td a.cbb_search").hover(function(){
			$(this).stop(true, true);
			$(this).animate( { marginTop: "4px"}, 200);
		},
		function(){
			$(this).animate( { marginTop: "10px"}, 200);
		});
	
	$("a.more").fadeTo("fast", 1.0);
	$("a.more").hover(function(){
			$(this).stop(true, true);
			$(this).animate( { marginLeft: "5px", opacity: 0.9 }, 200);
		},
		function(){
			$(this).animate( { marginLeft: "0px", opacity: 1.0 }, 200);
		});
	$(".switch_panel a").click(function(){
		$('ul', $(this).parent().parent()).slideToggle("slow");
		$(this).toggleClass("active"); return false;
		});
	$(".switch_panel_trim a").click(function(){
		$('.hide', $(this).parent().parent()).slideToggle("slow");
		$(this).toggleClass("active"); return false;
		});
	$("a.expand").click(function(){
		$('.hide').slideToggle("slow");
		$(this).toggleClass("active"); return false;
		});
	$("a.advanced").click(function(){
		$('.advanced_search').slideToggle("slow");
		$(this).toggleClass("active"); return false;
		});
	
	$('input').checkBox();
	$('select').selectbox();
});

Cufon.replace('h1,h2, .foot h4, #shopby h3, .box_title h3, table.newbrand td.title h3, .results_box_big h3, .results_box_big span, .results_box h3, .results_box span, .results_box_small h3, .results_box_small span, div.price, td a.cbb_search, .dotted_seporator h3, .switch_panel_trim a, table.configure_steps h4, .popup_top h1, .award_panel p, .award_panel strong');

Cufon('#header label, .box_title h3', {
      textShadow: '#000 0px -1px'
});

Cufon.replace('#subnav li a, #shopby h3, .home_news h3 a, .home_reviews h3 a, .home_advice h3 a', {
	  textShadow: '#fff 0px 1px',
      hover: true
});

Cufon.replace('.results_box_big h3, .results_box_big span, .results_box h3, .results_box span, .results_box_small h3, .results_box_small span', {
	  textShadow: '#fff 0px 1px'
});

Cufon.replace('.box_title_value h3', {
	  textShadow: '#35832d 0px -1px'
});
Cufon.replace(' .award_panel p, .award_panel strong', {
	  textShadow: '#00729b 0px -1px'
});
Cufon.replace('td a.cbb_search', {
	  textShadow: '#1d7614 0px -1px'
});


var ajaxProxy = 'ajax-proxy.php';
