/* This copyright notice must be untouched at all times. Copyright (c) 2008 Stu Nicholls - stunicholls.com - all rights reserved. */
$(document).ready(function(){
	$("#nav li.current").children("ul").css("left", "0px").show();
	$("#nav li").hover(function(){
		if(this.className.indexOf("current") == -1)  {
			getCurrent = $(this).parent().children("li.current:eq(0)");
		
			/*
			if(this.className.indexOf("top") != -1) {
				$(this).children("a:eq(0)").css({backgroundColor:"#00aa9b",color:"#fff"});
			}
			else {
				$(this).children("a:eq(0)").css({backgroundColor:"#e6e6e6",color:"#3d3d3d"});
			}
			*/
			
			if (getCurrent = 1 ) {
				$(this).parent().children("li.current:eq(0)").children("ul").hide();
			}
		$(this).children("ul:eq(0)").css("left", "0px").show();
		}
	},function(){
		if(this.className.indexOf("current") == -1)  {
			getCurrent = $(this).parent().children("li.current:eq(0)")
			
			/*			
			if(this.className.indexOf("top") != -1) {
				$(this).children("a:eq(0)").css({backgroundColor:"#e6e6e6",color:"#3d3d3d"});
			}
			else {
				$(this).children("a:eq(0)").css({backgroundColor:"#00aa9b",color:"#fff"});
			}
			*/
			
			if (getCurrent = 1 ) {
				$(this).parent().children("li.current:eq(0)").children("ul").show();;
			}
			$(this).children("ul:eq(0)").css("left", "-99999px").hide();
		}
	});
});
//
/*
$(document).ready(function(){
	$("#dropline li.current").children("ul").css("left", "0px").show();
	$("#dropline li.current").children(":first-child").css("color", "#c00")
	$("#dropline li").hover(function(){
		if(this.className.indexOf("current") == -1)  {
			getCurrent = $(this).parent().children("li.current:eq(0)");
			//
			if(this.className.indexOf("top") != -1)  {
				$(this).children("a:eq(0)").css("color","#069");
			}
			else {
				$(this).children("a:eq(0)").css("color","#000");
			}
			//
			if (getCurrent = 1 ) {
				$(this).parent().children("li.current:eq(0)").children("ul").hide();;
			}
		$(this).children("ul:eq(0)").css("left", "0px")
									.show();
		}
	},function(){
		if(this.className.indexOf("current") == -1)  {
			getCurrent = $(this).parent().children("li.current:eq(0)");
			//
			if(this.className.indexOf("top") != -1) {
				$(this).children("a:eq(0)").css("color","#000");
			}
			else {
				$(this).children("a:eq(0)").css("color","#666");
			}
			//
			if (getCurrent = 1 ) {
				$(this).parent().children("li.current:eq(0)").children("ul").show();;
			}
			$(this).children("ul:eq(0)").css("left", "-99999px")
								.hide();
			}
	});
});
*/
