// JavaScript Document

/* BIO TOGGLE */

 $(document).ready(function(){
	$('.wrap').hover(function(){
		
			$(this).children('.front').stop().animate({ "top" : '195px'}, 700);
			} , function() {
			$(this).children('.front').stop().animate({ "top" : '0'}, 400);
		
		});
							
	  //for div
  /*$("div:odd").css("background-color", "#F4F4F8");
  $("div:even").css("background-color", "#EFF1F1");
	
	  //for table row
	*/
	  
  $("#post-60 tr:even").css("background-color", "#000000");
  $("#post-60 tr:odd").css("background-color", "#19130c");
  
  $("tr:even").each(function(){
		$(this).mouseover(function(){$(this).css("background-color", "#322a22");});
		$(this).mouseout(function(){$(this).css("background-color", "#000000");});
	})
    $("tr:odd").each(function(){
		$(this).mouseover(function(){$(this).css("background-color", "#322a22");});
		$(this).mouseout(function(){$(this).css("background-color", "#19130c");});
	})
  
  $("#post-62 div.toggle").each(function(){
		$(this).mouseover(function(){$(this).css("background-color", "#19130c");});
		$(this).mouseout(function(){$(this).css("background-color", "#000000");});
	})

/* BIO TOGGLE */				
	$(".toggle").each(function(){
 	    $(this).addClass("hOpen");	
		$(this).next().hide();
		$(this).next().addClass("bBorder");
		
		$(this).css({"cursor":"pointer"});
		
		$(this).mouseover(function(){$(this).addClass("red_u");});
		$(this).mouseout(function(){$(this).removeClass("red_u");});
 /*
		$(this).click(function(){
			$("#msg").hide("fast");
			$(this).addClass("red");			/* Turns Red 
			$(this).removeClass("hOpen");		/* Makes temp not target 
			$(this).next().show("slow");		/* Opens Div 
			$(".hOpen").next().hide("slow");	/* Hides target divs 
			$(".hOpen").removeClass("red");		/* Turns off red of target 
			$(this).addClass("hOpen");			/* Returns to being target 
		});*/
		
		$(this).click(function() {
		$(this).next().slideToggle(function() {
				if($(this).css("display")=="none"){
					$(this).prev().removeClass("red_h");
					$(this).prev().addClass("hOpen");
					$(this).prev().removeClass("hClose");
				}else{
					$(this).prev().addClass("red_h");
					$(this).prev().removeClass("hOpen");
					$(this).prev().addClass("hClose");
				}
			});
	});
	})
	

	$(".openAll").each(function(){
		$(this).mouseover(function(){$(this).addClass("red_u");});
		$(this).mouseout(function(){$(this).removeClass("red_u");});	
		$(this).css({"cursor":"pointer"});
		})
	
	$(".closeAll").each(function(){
		$(this).mouseover(function(){$(this).addClass("red_u");});
		$(this).mouseout(function(){$(this).removeClass("red_u");});	
		$(this).css({"cursor":"pointer"});
		})
	
	
	$(".openAll").click(function(){
		$(".toggle").each(function(){
			$(this).next().show("slow");
			$(this).removeClass("hOpen");
			$(this).addClass("hClose");
		})
	});
 
	$(".closeAll").click(function(){
		$(".toggle").each(function(){
			$(this).next().hide("slow");
			$(this).removeClass("hClose");
			$(this).addClass("hOpen");
		})
	});
});
