/*function formatText(index, panel) {
    		  return index + "";
    	  };
    
        $(function () {
        
            $('.anythingSlider').anythingSlider({
                easing: "easeInOutExpo",        // Anything other than "linear" or "swing" requires the easing plugin
                autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
                delay: 4000,                    // How long between slide transitions in AutoPlay mode
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                animationTime: 600,             // How long the slide transition takes
                hashTags: true,                 // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
            		pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
            		startText: "Go",                // Start text
    		        stopText: "Stop",               // Stop text
    		        navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
            });
            
            $("#slide-jump").click(function(){
                $('.anythingSlider').anythingSlider(6);
            });
            
});*/
		
		
		

$(function(){

    $("ul.dropdown li").hover(function(){
    
        $(this).addClass("active");
        $('ul:first',this).css('visibility', 'visible');
    
    }, function(){
    
        $(this).removeClass("active");
        $('ul:first',this).css('visibility', 'hidden');
    
    });
    

});



/*$(document).ready(function() {

	$("#extracts li:first").addClass("active");
	$("div.tabContent").hide();
	$("div.tabContent:first").show();

	//On Click Event
	$("#extracts li").click(function() {

		$("#extracts li").removeClass("active"); 
		$(this).addClass("active"); 
		$("div.tabContent").hide(); 

		var activeTab = $(this).find("a").attr("href"); 
		$(activeTab).fadeIn(); 
		return false;
	});

});
*/

/*
$(document).ready(function(){
						   
    $(".tabContent div").hide();
			
	
	$(".tabContent h4").click(function(){
		$(this).next("div").slideToggle("fast");
		$(this).toggleClass("activeHeading");
	});
	
});
*/


function resetForm(id) {
	$('#'+id).each(function(){
	        this.reset();
	});
}


$(document).ready(function(){
						   
    $("#results dd").hide();
			
	
	$("#results dt").click(function(){
		$(this).next("dd").slideToggle("fast").siblings("dd:visible").slideUp("fast");
		$(this).toggleClass("active").siblings("dt").removeClass("active");
	});
	
});


$(document).ready(function(){
	$("#popUp span").hide();
	
	$("a.checkResults").click(function(){
		$("#popUp span").show();
		$("a.checkResults span").hide();
		$("a.restart span").hide();
	});				   
});

$(document).ready(function(){
	$("a.restart").click(function(){
		$("#popUp span").hide();
});

});


$(document).ready(function(){
  $("#contentPop input[type=text][title]").each(function() {
	  $(this).val($(this).attr("title"));
	  if($.trim($(this).val()) == "")
		$(this).val($(this).attr("title"));
	  $(this).focus(function() {
		  if($(this).val() == $(this).attr("title"))  {
		  	$(this).val(""); }
		})
		.blur(function() {
		  if($.trim($(this).val()) == "") {
			  $(this).val($(this).attr("title")); }
		});
	});
});
