/**
 * TOGSUN.com
 * LastChangedDate: 2009-02-10 
 */
//changeImg
function changeImg(){
	if($('#Photo').val() != ''){
		$('#changephoto').html('<img src="'+$('#Photo').val()+'" height="90" width="90"  />');
	}
}
//hovershow list
function hoverShow(list){
	$(list).each(function(i){
		$(this).mouseover(function(){
			$(list+" dl").hide();
			$(list+" p.thin").show();
			$(list+":eq("+i+") dl").show();
			$(list+":eq("+i+") p.thin").hide();
			return false;
		});
		$(list+":eq(0) p.thin").hide();
		$(list+":eq(0) dl").show();
	});
}
$(document).ready(function(){
	//account show/hide
	$("#account .module h6 a").click(function(){
		$(this).toggleClass("active");
		$("#"+$(this).attr("rel")).slideToggle("slow"); 
		return false;
	});
	
	//mm gg
	$(".mh2 .mm-gg ul li.mm").click(function(){
		$("#mh-gg").hide();
		$(".mh2 .mm-gg ul li.info").html("MM秀");
		$("#mh-mm").fadeIn("slow"); 
		return false;
	});
	$(".mh2 .mm-gg ul li.gg").click(function(){
		$("#mh-mm").hide();
		$(".mh2 .mm-gg ul li.info").html("GG秀");
		$("#mh-gg").fadeIn("slow"); 
		return false;
	});

});