//function lookup(inputString) {
//	//if(inputString.length == 0 || inputString.length % 5 != 0) {
//    if (inputString.length < 3) {
//		$('#search_suggestions').fadeOut('fast'); // Hide the suggestions box
//	} else {
//		$.post("/BriggsandStratton/layouts/ajax/rpc.aspx", { queryString: "" + inputString + "" }, function(data) { // Do an AJAX call
//            $('#search_suggestions').fadeIn('fast'); // Show the suggestions box
//            $('#search_suggestions').html(data); // Fill the suggestions box
//        });
//	}
//	
//}


$(document).ready(function(){
	jQuery(document.body).formHints();
	$("a[rel*='newsletter'],a[rel*='find_model'],a[rel*='share'],a[rel*='select-region'],a[rel*='video-submit'],a[rel*='askbriggs-submit'],a[rel*='askbriggs-submit2']").colorbox({width:"800px", height:"625px", iframe:true});
	$("#product_image a,a[rel*='image']").colorbox({height:660,width:640,iframe:true,scrolling:false});
	$("a[rel*='rss']").colorbox({width:"540px", height:"500px"});
	$("a[rel*='external'],a[rel*='non-html']").attr("target","_blank");
	$("#search_input input").blur(function() {
	 	$('#search_suggestions').fadeOut('fast');
	 });
	$("ul.filters > li > a").click(function(){ $(this).parent().toggleClass("on"); return false; });
	$(".tabs").tabs();
	$('#logo').pngFix();
	
	$('#navigation>ul>li').hover(
		function() {
			$('#navigation>ul>li.on div.sub').css("display","none");
			$(this).addClass("hover");
		},
		function() {
			$('#navigation>ul>li.on div.sub').css("display","block");
			$(this).removeClass("hover");
		}
	);
	
});

