$(document).ready(function(){

   //make the layout table fit the screen
   $(".layout_table").css("height", $(document).height());
   
   //the hovering fade effect for icons above menu
   $(".js_bigOver").hover(
      function(){
	     $(this).stop(true, true);
	     $(this).fadeTo("100", "0.5");
	  },
	  function(){
		 $(this).stop(true, true);
	     $(this).fadeTo("100", "1.0");
	  }
   );
   
   var currentYear = $(".yearOption:last").text();
   $("#year" + currentYear).css("display","block");
   $("#yearSelect option").each(function(){
      if($(this).text() == currentYear)
	     $(this).attr("selected", "selected");
	  else
	     $(this).removeAttr("selected");
   });
   $("#yearSelect").change(function(){
      $("#year" + currentYear).css("display","none");
	  currentYear = $("#yearSelect option:selected").text();
      $("#year" + currentYear).css("display","block");
	  
   });
   
   //CK EDITOR STARTS HERE
   CKEDITOR.replace(
      "f_source",
      {
         toolbar:[
            ['Source','-','RemoveFormat','Format', 'Font', 'FontSize'],
            ['Bold', 'Italic', 'Underline', 'Strike', '-', 'Subscript', 'Superscript', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock'],
			['Outdent', 'Indent', 'Blockquote', '-', 'TextColor', 'BGColor', 'Smiley', '-', 'SpecialChar', 'Table', 'HorizontalRule', '-', 'Image', 'Link', 'Unlink', 'Anchor']
			
        ]
      }
   );
   //CK EDITOR ENDS HERE
   
});