// JavaScript Document

//Text input toggle

$(function(){$('input:text').events({
		focus: function(){ if(this.value == this.defaultValue) this.value = "" },
		blur: function(){ if(this.value == "") this.value = this.defaultValue; }
	});
		   });
jQuery.fn.events = function(o){
    for (var i in o) {
        this.bind(i, o[i]);
    }
    return this;
}

$(function(){
	$('.content_link > a').click(function(e){
								e.preventDefault();							
								
								
								if($(this).parent().find('.content_item').is(':hidden')){
											$('.content_item').slideUp();
											$(this).parent().find('.content_item').slideDown();
											}
								
					});

/*$('.content_item li > a').click(function (e){
								e.preventDefault();
									$('#content_box').load($(this).attr('href'));
										  });

	*/									  
	
});


$(document).ready(function() {
						   if($('#one').is(':visible')){
							   $('#first').show();
						   };
						   if($('#two').is(':visible')){
							   $('#second').show();
						   };
						   if($('#three').is(':visible')){
							   $('#third').show();
						   };
})
