$(document).ready(function(){
	
	$("#dropline li.ativo").children("ul").css("left", "0px").show();
	$("#dropline li.ativo").children(":first-child").css("color", "#fff")

	$("#dropline li").hover(function(){
		if(this.className.indexOf("ativo") == -1)  {
			getCurrent = $(this).parent().children("li.ativo:eq(0)");
			if(this.className.indexOf("top") != -1)  {
				$(this).children("a:eq(0)").css("color","#fff");
				//$(this).children("a:eq(0)").css("background","#59041c");
				//$(this).children("a:eq(0)").css("text-decoration","underline");
			}
			else {
				$(this).children("a:eq(0)").css("color","#f49a11");
				//$(this).children("a:eq(0)").css("background","#f49a11");
			}
			if (getCurrent = 1 ) {
				$(this).parent().children("li.ativo:eq(0)").children("ul").show();
			}
		$(this).children("ul:eq(0)").css("left", "0px").hide();
		//$(this).children("a:eq(0)").css("background","#59041c");
		}
	},function(){
		if(this.className.indexOf("ativo") == -1)  {
			getCurrent = $(this).parent().children("li.ativo:eq(0)");
			if(this.className.indexOf("top") != -1) {
				$(this).children("a:eq(0)").css("color","#a70630");
				$(this).children("a:eq(0)").css("background","#f49a11");
				$(this).children("a:eq(0)").css("text-decoration","none");
			}
			else {
				$(this).children("a:eq(0)").css("color","#fff");
				$(this).children("a:eq(0)").css("background","#59041c");
			}
			if (getCurrent = 1 ) {
				$(this).parent().children("li.ativo:eq(0)").children("ul").show();
			}
	$(this).children("ul:eq(0)").css("left", "-99999px").hide();
		}
	});
});
