	$(document).ready(function(){
	// Checkbox Color
		$("input.checkbox").parent().css("color", "#aaaaaa");
		$("input.checkbox:checked").parent().css("color", "#000000");
		$("input.checkbox").click(function(){
			$(this).parent().css("color", "#aaaaaa");
			$("input.checkbox:checked").parent().css("color", "#000000");
		});
	// Box collapse
		$(".box .head").each(function(){
			$(this).click(function(){
				if ($(this).parent().parent().hasClass("collapse")){
					$(this).parent().parent().removeClass("collapse");
				}
				else{
					$(this).parent().parent().addClass("collapse");
				}
			});
		});
	// Edit Profile
		$('.profileSwitchLink').click(function(){
			var clickedLink=$('.profileSwitchLink').index(this);
			$('div.profileSwitch').eq(clickedLink).toggle();
			$('form.profileSwitch').eq(clickedLink).toggle();
			if(($(this).text()).indexOf('Edit')!=-1){$(this).text('Hide');} else {$(this).text('Edit');};
			return false;
		});
	// Item list
		$('.item .more').click(function(){
			var clickedLink=$('.item .more').index(this);
			$(this).toggle();
			$('.item .close').eq(clickedLink).toggle();
			var obj=$('.item .txt').eq(clickedLink);
			$(obj.children('p')).show();
			return false;
		});
		$('.item .close').click(function(){
			var clickedLink=$('.item .close').index(this);
			$(this).toggle();
			$('.item .more').eq(clickedLink).toggle();
			var obj=$('.item .txt').eq(clickedLink);
			$(obj.children('p')).not(':first').hide();
			return false;
		});
		$('.item').not('.open').each(function(i){
			$($(this).children('.txt').children('p')).not(':first').hide();
		});
	// Add widget
		$(".addWidget dt a").each(function(){
			$(this).click(function(){
				if ($(this).parent().next().hasClass("show")){
					$(this).parent().next().removeClass("show");
				}
				else{
					$(this).parent().next().addClass("show");
				}
			});
		});	
	// END	
	});	
