	function showRegister() {
		if ($("#login div").eq(0).css("display") == "none") {
			$("#login div").eq(0).show("fast");
		} else {
			$("#login div").eq(0).hide("fast");
		}	
	}

	function change(value,other) {
		$("#div_" + value).removeClass();
		$("#div_" + value).addClass("aclick");
		$("#div_" + other).removeClass();
		$("#div_" + other).addClass("ablank");
		document.getElementById("status").value = value;
	}
	
	function showDiv() {
		if ($("#all_kinds_content").css("display") == "none") {
			$("#all_kinds_content").show("fast");
		} else {
			$("#all_kinds_content").hide("fast");
		}	
	}
	
	function hiddenDiv() {
		$("#all_kinds_content").hide("fast");
	}
	
	function selectedCategories(artTypeId) {
		document.getElementById("artTypeId").value = artTypeId;
	}
	
	function search() {
		document.getElementById("searchForm").submit();		
	}	
	
	$(document).ready(function(){
		$("#all_kinds_content").css("left",$("#spanGa").offset().left);
		$("#all_kinds_content").css("top",$("#spanGa").offset().top + $("#spanGa").height());
		$("#all_kinds_content div").each(function(){
			$(this).click(function(){
				$("#spanGa").text($(this).html());
				$("#all_kinds_content").hide("fast");
			});
		});
		
		$("#description_nav a").each(function(){
			$(this).click(function(){
				$("#description_nav a").each(function(){
					$(this).removeClass("abc");
				});
				
				$("#description_3 .description_content").each(function(){
					$(this).css("display","none");
				});
				
				var id=$(this).attr("id");
				$("#description_3 .description_content").eq(parseInt(id)).show("fast");
				
				$(this).addClass("abc");
			});
		});
			
		var default_keyword = $("#keywords").val();
		$("#keywords").focusin(
			function() {
				if ($(this).val() == default_keyword)
					$(this).val("");
			}
		);	
		
		$("#keywords").focusout(
				function() {
					if ($(this).val() == "") {
						$(this).val(default_keyword);
					}
				}				
		);
	});
	
	function changeImg(obj) {
		$("#lookImg").hide("fast");
		$("#lookImg").attr("src",obj.src);
		$("#lookImg").show("fast");
	}
