function navMenuStyle(target,func){
	//console.log(target);
	target.each(function(i,el){
		//console.log(i);
		$(el).hover(
		function(){
			$(this).find("dl").show();
		}, 
		function(){
			$(this).find("dl").hide();
		});
		
               
	
                
                
		var menuItem = $(el).find("dd");
		
		if(menuItem.length % 2){	//odd
			menuItem.last().css("border-bottom","0");
		}else{						//even
			menuItem.last().css("border-bottom","0");
			menuItem.last().prev().css("border-bottom","0");
		}
		
		menuItem.each(function(i,el){
			if(i%2){$(el).css("border-right","0");}
		});
		
		if(func){ func.call(menuItem) };
	});
}
$(document).ready(function(){
    $('#catName, #subCatName, .lvl2 > .option > li > a').live('click', function(){
    return false;
    })
     $('#catName #subCatName, .lvl2 > .option > li > a').bind('blur', function(){
            $(this).next("dl").hide();
            return false;
    });
})

//function colorSelector(){
//	this.maxChoice = 2;
//	this.selected = [];
//	this.className = "selected";
//	
//	$("#nav .colorSelector dd a").toggle(
//		function(o){return function(){
//			o.select(this); return false;
//		}}(this),
//		function(o){return function(){
//			o.remove(this); return false;
//		}}(this)
//	)
//}

//colorSelector.prototype = {
//	select: function(el){
//		
//		if(this.selected.length < this.maxChoice){
//			this.selected.push($(el).attr("rel"));
//			$(el).addClass(this.className);
//		}
//	},
//	remove: function(el){
//		var target = $(el).attr("rel");
//	
//		for(var i=0;i<this.selected.length;i++){
//			if(this.selected[i] == target){
//				this.selected.splice(i,1);
//				$(el).removeClass(this.className);
//				break;
//			}
//		}
//	},
//	get: function(){
//		return this.selected;
//	}
//};
