
	$(document).ready(function(){
		/*$(".round").before('<div style="border-bottom:1px solid #26435a;margin-left:1px;margin-right:1px;height:1px;"></div>');
		$(".round").after('<div style="border-top:1px solid #d0d0d0;margin-left:1px;margin-right:1px;height:1px;"></div>');
		*/
		$("#bringing").hover(function() {
			$("#tolife").fadeIn(300);
		}, function() {
			$("#tolife").fadeOut(300);
		});	
		
		$("#login").click(function() {
			var user = $("#login_user").attr("value");
			var pass = $("#login_pass").attr("value");
			$.get("ajax.php",{user:""+user,pass:""+pass}, function(data){
				$("#login_hold").html(data);
			});
		});
		
		$("#nav2 a").hover(function() {
			$(this).animate({
				marginTop:"5px",
				height:"30px"
			},200);
		}, function() {
			$(this).animate({
				marginTop:"0px",
				height:"35px"
			},200);
		});	
		
		$(".project img").hover(function() {
			$(this).animate({
				opacity:.85
			},200);
		}, function() {
			$(this).animate({
				opacity:1
			},200);
		});
		
		$(".prjct").hover(function() {
			$(this).animate({
				opacity:.85
			},200);
		}, function() {
			$(this).animate({
				opacity:1
			},200);
		});
		
		$(".prjct").toggle(
			function() {
				var height = $(this).attr("id");
				$(this).animate({
					height:height
				},500);
			},
			function() {
				$(this).animate({
					height:"200px"
				},500);
			}
		);
		
		$(".quote").toggle(
			function() {
				var height = $(this).attr("id");
				$("#contact_hold").slideDown(500);
			},
			function() {
				$("#contact_hold").slideUp(500);
			}
		);
		
		$(".admin").click(function() {
			$(".admin").css("background-image","url(images/admin_toggle2.png)");
			$(".admin").css("color","#ffffff");
			$(this).css("background-image","url(images/admin_toggle1.png)");
			$(this).css("color","#4b8418");
			$(".admin_hold div").css("display","none");
			var id = $(this).attr("id");
			$("#do_"+id+" div").css("display","");
			$("#do_"+id).css("display","");
		});
		
		$("#alert").ready(function() {
			var c = setTimeout('SlideUp()',3000);
		});
		
		$(".news").click(function() {
			var id = $(this).attr("id");
			$("#newspop").html("");
			$.get("ajax.php",{news:""+id}, function(data){
				$("#newspop").html(data);
			});
			$("#newspop").animate({
				height:"160px",
				opacity:.80
			},300);
		});
	
	});
	
	function SlideUp() {
		$("#alert").slideUp(1000);
		$("#alert").fadeOut(100);
	}

	function parse(text) {
		var content = text.replace(/\n/g,"<br/>");
		return content;
	}
	
	function parse2(text) {
		var content = text.replace(/a/i,"");
		content = content.replace(/b/i,"");
		return content;
	}

