// JavaScript Document
jQuery.noConflict();
(function($) {
	$(function(){
		$("ul#topnav li").hover(function() {
			//$(this).css({ 'border' : '1px solid red'}); //Add background color + image on hovered list item
			var position = $(this).position();
			/*$(this).find("span").html( "left: " + position.left + ", top: " + position.top );*/
			$(this).find("span").fadeTo("fast", 0.5).animate({height:'show', opacity: 0.5}, "fast"); //Show the subnav
		} , function() { //on hover out...
			//$(this).css({ 'background' : 'none'}); //Ditch the background
			$(this).find("span").hide("fast"); //Hide the subnav
		});
	});
})(jQuery);

//产品分类列表
var getTypeList = function(v, k) {
	//alert(v);
	jQuery.get("ajax.php", {typeid: v, level: k},
	function(data){
		//alert("Data Loaded: " + data);
		jQuery("#proper_"+v).siblings().remove();
		jQuery("#proper_"+v).after(data);
		//alert(jQuery("#proper_"+v).siblings().attr("class"));
	});
};
