$(document).ready(function(){
	         $("#home-nav").click(function(){$("#main-content").load("main_show.html");
			 $("#hidden-nav").css("display", "none");
			  $("#welcome_wrapper").show();});

                    

			 $("#contact-nav").click(function(){$("#main-content").load("contact.html .box-padding");
			 $("#welcome_wrapper").hide();});
			 $(".folkfest-nav").click(function(){$("#main-content").load("folkfest.html");
			  $("#welcome_wrapper").hide();});
			 $("p.folk-info").click(function(){$("#main-content").load("folkfest.html");});
			 $(".ameribeat-nav").click(function(){$("#main-content").load("ameribeat.html");
			 $("#welcome_wrapper").hide();})
			 $(".string-nav").click(function(){$("#main-content").load("stringfling.html");
			 $("#welcome_wrapper").hide();});
			 $(".tic-nav").click(function(){$("#main-content").load("tickets.html");
			 $("#welcome_wrapper").hide();});
			 $("#bodified").click(function(){$("#bodified_status").toggle();});
			 $("#superkind").click(function(){$("#superkind_status").toggle();});
			 $("#aarons").click(function(){$("#aarons_status").toggle();});
			 $("#downunder").click(function(){$("#downunder_status").toggle();});
			 $("#funknwaffles").click(function(){$("#funknwaffles_status").toggle();});
			 $("#jabithica").click(function(){$("#jabithica_status").toggle();});
			 $("#jabbing").click(function(){$("#jabbing_status").toggle();});
			 $("#terrapin").click(function(){$("#terrapin_status").toggle();});
			 $("#soldato").click(function(){$("#soldato_status").toggle();});
			 $("#allmixed").click(function(){$("#allmixed_status").toggle();});
			 $("#brokedown").click(function(){$("#brokedown_status").toggle();});
			 $(".daze-nav").click(function(){$("#main-content").load("lastdaze.html");
			 $("#welcome_wrapper").hide();});

			 
			 $(function (){$('#js-news').ticker();
	/****************************************************************************************
	* Needed to pull this and put in with ticker code for it to work within                 *
    * the ticker. Will need to do this for any .click() that will be used.                  *
	****************************************************************************************/
   	//$("#tic").click(function(){$("#main-content").load("tickets.html");});

    });

		     	$("#subform").validate({
			debug: false,
			rules: {
				name: "required",
				email: {
					required: true,
					email: true
				}
			},
			messages: {
				name: "Please enter your name.",
				email: "A valid email is required.",
			},
			submitHandler: function(form) {
				// do other stuff for a valid form
				$.post('subscribe.php', $("#subform").serialize(), function(data) {
					$('#results').html(data);
				});
			}
		});
		 $("ul.subnav").parent().append("<span></span>"); //Only shows drop down trigger when js is enabled (Adds empty span tag after ul.subnav*)  
  
    $("#show-nav").click(function() { //When trigger is clicked...  
  
        //Following events are applied to the subnav itself (moving subnav up and down)

        $(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click  
  
        $(this).parent().hover(function() {  
        }, function(){  
            $(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up  
        });  
  
        //Following events are applied to the trigger (Hover events for the trigger)  
        }).hover(function() {  
            $(this).addClass("subhover"); //On hover over, add class "subhover"  
        }, function(){  //On Hover Out  
            $(this).removeClass("subhover"); //On hover out, remove class "subhover"  
    }); 
	/*var name = "#slider";  
    var menuYloc = null;  
  
 
    menuYloc = parseInt($(name).css("top").substring(0,$(name).css("top").indexOf("px")))  
    $(window).scroll(function () {  
        var offset = menuYloc+$(document).scrollTop()+"px";  
        $(name).animate({top:offset},{duration:500,queue:false});  
    });  */
 
		});
			

