jQuery.noConflict();
jQuery(document).ready(function($) {
    $("#flashMessage").show("normal",
        function()
        {
            $("#flashMessage").fadeOut(10000);
        }
        );
		
	$(".actor_reel").hide();
	$(".actor_delete_div").hide();
	$("#form_add").hide();
	$(".actor_category").hide();
	$(".actor_reel_add").hide();
	$(".info").hide();
	$(".actor_description_div").hide();
	$(".actor_expanded").hide();
	
	$(".name").find("a").toggle(
		function()
		{
			$(this).parents(".talent").find(".info").show("fast").fadein(100);
		},
		function()
		{
			$(this).parents(".talent").find(".info").hide("fast").fadeout(100);		
		}
	
	)
	
	$(".add_files").toggle( function()
	{
		$(this).parents("div.actor_reel").find("div.actor_reel_add").show("fast").fadein(100);	
		return false;
	}, function(){})
	
	$(".actor_reel_hide").click( function()
	{
		$(this).parents("div.actor_reel_add").hide("fast");
	})
	
	$(".show_form_add").click(
		function(){
			$("#form_add").show("medium").fadein(1000);
			return false;
		}
	)
	
	$(".hide_description").click(
		function()
		{
			$(this).parents("div.actor").find(".actor_description_div").hide("fast").fadeout(100);
			return false;
		}
	)
	
	$(".edit_description").click(
		function()
		{
			$(this).parents("div.actor").find(".actor_description_div").show("fast").fadein(100);
		}
	)
	
	$(".hide_form_add").click(function(){
		$("#form_add").hide("slow").fadeout(1000);
		return false;
	})
	
	$(".actor_delete").click(function(){
				$(this).parents("div.actor").find(".actor_delete_div").show("fast").fadein(100);
				return false;
	})
	
	$(".actor_delete_no").click(function(){ $(this).parents(".actor_delete_div").hide("fast").fadeout(100); return false; })

	$(".show_category").toggle(
		function(){
				$(this).text("Hide");
				$(this).parents("div.actor").find(".actor_category").show("fast").fadein(100);
				return false;
		},
		function()
		{
				$(this).text("Show");
				$(this).parents("div.actor").find(".actor_category").hide("fast").fadeout(100);
				return false;
		}
	)
	
	$(".show_reels").toggle(
		function(){
				$(this).text("Hide Reel");
				$(this).parents("div.actor").find(".actor_reel").show("fast").fadein(100);
				return false;
		},
		function()
		{
				$(this).text("Show Reel");
				$(this).parents("div.actor").find(".actor_reel").hide("fast").fadeout(100);
				return false;
		}
	)
	
	$("#category_dropdown").change(
		function()
		{
			location.href = $(this).attr("value");
		}	
	);

	$(".actor_name_link").toggle(
		function()
		{
			$(this).parents("div.actor").find(".actor_expanded").show("fast").fadein(100);
		},
		function()
		{
			$(this).parents("div.actor").find(".actor_expanded").hide("fast").fadeout(100);
		}
	
	)
	
	 		
}); 