/* feedback */
$(document).ready(function(){
	$('table#feedback-form').addClass('form_defalut');
	$('table#feedback-form tr').find('td:eq(0)').css('fontSize','.8em');
	$('table#feedback-form tr').find('td:eq(0)').css('textAlign','right');
	$('table#feedback-form tr').find('td:eq(0)').css('width','100px');
	$('table#feedback-form tr td').css('padding','5px');
	$('table#feedback-form tr').find('td:eq(1)').css('width','200px');
	$('table#feedback-form tr input').css('border','1px solid black');
	$('table#feedback-form tr input').css('width','250px');
	$('table#feedback-form tr textarea.my_note').css('border','1px solid black');
	$('table#feedback-form tr textarea.my_note').css('width','350px');
	$('table#feedback-form tr textarea.my_note').css('height','200px');
	$('table#feedback-form tr').find('td:eq(0)').css('vertical-align','top');
	$('table#feedback-form tr input.submit').css('width','auto');

});



$(
	function () {
		$( "#left" ).imageScroller( {loading:'Wait please...'} );
		
		$( "#right" ).imageScroller( {speed:'4000', direction:'right'} );
		
		$( "#top" ).imageScroller( {direction:'top'} );

		$( "#bottom" ).imageScroller( {speed:'3500', direction:'bottom'} );
	}
)

/** 學會簡介 **/
$(document).ready(function(){
$("#van-one li").hover(
function(){ $("ul", this).fadeIn("slow"); }, 
function() { } 
);
if (document.all) {
$("#van-one li").hoverClass ("sfHover");
}
});

$.fn.hoverClass = function(c) {
return this.each(function(){
$(this).hover( 
function() { $(this).addClass(c); },
function() { $(this).removeClass(c); }
);
});
}; 


/** 活動花絮 **/

$(document).ready(function(){
$("#van-two li").hover(
function(){ $("ul", this).fadeIn("slow"); }, 
function() { } 
);
if (document.all) {
$("#van-two li").hoverClass ("sfHover");
}
});

$.fn.hoverClass = function(c) {
return this.each(function(){
$(this).hover( 
function() { $(this).addClass(c); },
function() { $(this).removeClass(c); }
);
});
}; 


/** 委員會表格顏色 **/
$(document).ready(function() {
  $('#submembers th').addClass('table-heading');
  $('#submembers tr:not([th]):odd').addClass('odd');
  $('#submembers tr:not([th]):even').addClass('even');
});

/** 研討會資訊表格顏色 **/
$(document).ready(function() {
  $('#procedurelist_1 th').addClass('table-heading');
  $('#procedurelist_1 tr:not([th]):odd').addClass('odd');
  $('#procedurelist_1 tr:not([th]):even').addClass('even');
});
/** 研討會詳細內容表格顏色 **/
$(document).ready(function() {
  $('#showprocedure th').addClass('table-heading');
  $('#showprocedure tr:not([th]):odd').addClass('odd');
  $('#showprocedure tr:not([th]):even').addClass('even');
  $('#showprocedure tr').find('td:eq(0)').addClass('column_1');

});

/* */
$(document).ready(function() {
  $('#procedurelist_3 th').addClass('table-heading');
  $('#procedurelist_3 tr:not([th]):odd').addClass('odd');
  $('#procedurelist_3 tr:not([th]):even').addClass('even');
});

/* */
$(document).ready(function() {
  $('#procedurelist_2 th').addClass('table-heading');
  $('#procedurelist_2 tr:not([th]):odd').addClass('odd');
  $('#procedurelist_2 tr:not([th]):even').addClass('even');
});



/** 九十八年度工作計畫表格顏色 **/
$(document).ready(function() {
  $('#show_plan thead th').addClass('table-heading');
  $('#show_plan thead.sub th').addClass('table-sub-heading');
  $('#show_plan thead.sub2 th').addClass('table-sub2-heading');
  
  $('#show_plan tbody tr:not([th]):odd').addClass('odd');
  $('#show_plan tbody tr:not([th]):even').addClass('even');

  $('#show_plan tbody tr').find('td:eq(2)').addClass('holdtime');

});



$(document).ready(function(){
  $("#nav_procedure").css('textDecoration' , 'underline	');
  $("#nav_procedure").css('fontSize' , '0.8em');
  $("#nav_procedure").find('label').css('paddingRight' , '30px');

  $("#nav_procedure").find('label').hover( function() {
	  $(this).addClass('hover');
  },function(){
	  $(this).removeClass('hover');
  });
  $("#nav_procedure").css('paddingBottom' , '10px');

  $("#nav_procedure label:eq(0)").addClass('hoveron');
  $("#nav_procedure label:eq(0)").click(function(){
	  
		$(this).addClass('hoveron');
		$("#nav_procedure label:eq(1)").removeClass('hoveron');
		$("#nav_procedure label:eq(2)").removeClass('hoveron');
		$('#procedurelist_1').show(); 
	    $('#procedurelist_2').hide(); 
	    $('#procedurelist_3').hide(); 
  });
	
  $("#nav_procedure label:eq(1)").click(function(){
		$(this).addClass('hoveron');
		$("#nav_procedure label:eq(0)").removeClass('hoveron');
		$("#nav_procedure label:eq(2)").removeClass('hoveron');
	    $(this).addClass('hover');
	    $('#procedurelist_2').show(); 
	    $('#procedurelist_3').hide(); 
	    $('#procedurelist_1').hide(); 
  });
	
  $("#nav_procedure label:eq(2)").click(function(){
		$(this).addClass('hoveron');
		$("#nav_procedure label:eq(0)").removeClass('hoveron');
		$("#nav_procedure label:eq(1)").removeClass('hoveron');
	    $(this).addClass('hover');
	    $('#procedurelist_3').show(); 
	    $('#procedurelist_1').hide(); 
	    $('#procedurelist_2').hide(); 
  });

});