jQuery.noConflict();
jQuery(document).ready(function()	{
	jQuery(".jquery-tabs span.tab:first").addClass("current");  //為第一個span加入 .current 的樣式，預設選取
	jQuery(".jquery-tabs ul:not(:first)").hide();  //ul 不是第一個時隱藏
	jQuery(".jquery-tabs span.tab").mousedown(function()	{  //滑鼠移到 span 上時觸發函數
		jQuery(".jquery-tabs span.tab").removeClass("current");  //為第一個 span 移除 .current 樣式
		jQuery(this).addClass("current");  //為觸發的 span 加入樣式
		jQuery(".jquery-tabs ul").hide();  //隱藏 ul
		jQuery("."+jQuery(this).attr("id")).fadeIn("slow");  //這句是核心，class(.) 和觸發 span 的ID 一致的 fadeIn(漸顯)
	});
	jQuery(".jquery-tabss span.side:first").addClass("scurrent");
	jQuery(".jquery-tabss ul:not(:first)").hide();
	jQuery(".jquery-tabss span.side").mousedown(function()	{
		jQuery(".jquery-tabss span.side").removeClass("scurrent");
		jQuery(this).addClass("scurrent");
		jQuery(".jquery-tabss ul").hide();
		jQuery("."+jQuery(this).attr("id")).fadeIn("slow");
	});
	if(jQuery('input#author[value!=""]').length>0)	{   //判斷訪客欄位是否有值
		jQuery("#author_info").css('display','none');   //將id為author_info對象的display屬性設為none，即隱藏
		var change='<span  id="show_author_info" style="cursor: pointer; color:#2970A6;">變更身分 &raquo;</span>';  //定義change，style是定義CSS樣式，讓他有超鏈接的效果，color要根據你自己的來改，當然你也可以在CSS中定義#show_author_info來實現，這樣是為了不用再去修改style.css而已！
		var close='<span  id="hide_author_info" style="cursor: pointer;color: #2970A6;">取消變更 &raquo;</span>';   //定義close
		jQuery('#welcome').append(change);   //在ID為welcome對象裡加入剛剛定義的change
		jQuery('#welcome').append(close);    // 加入close
		jQuery('#hide_author_info').css('display','none');   //隱藏close
		jQuery('#show_author_info').click(function() {   //滑鼠點擊change時發生的事件
			jQuery('#author_info').slideDown('slow')   //訪客輸入欄向下滑出
			jQuery('#show_author_info').css('display','none');   //隱藏change
			jQuery('#hide_author_info').css('display','inline');  //顯示close
			jQuery('#hide_author_info').click(function() {  // 滑鼠點擊close時發生的事件
				jQuery('#author_info').slideUp('slow')    //訪客輸入欄向上滑
				jQuery('#hide_author_info').css('display','none');  //隱藏close
				jQuery('#show_author_info').css('display','inline');
			})
		})
	}
});