//easy slider script
jQuery(window).bind("load", function() {
	jQuery("div#slider1").codaSlider()
		});
//end slider script
$(function(){
	 
	$("table#table4").hide();//hide table 4  
    $('a[href*=#]').click(function() {
		//jan added -- to show table --
		var alink = this.title;
		//alert(alink);
		 if ( alink == "t4" ){
			 $("p.topen").hide();
			 $("table#table4").show();
			 $("table#table4 caption").show();
			 }
		//end			   
    	if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
        && location.hostname == this.hostname) {
        	var $target = $(this.hash);
            $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
			//JANICE ADDED -- to highlight the ref number
	     	var target2 = $(this).attr("href");
	   		var thespan = "span"+target2;
	   		$("small span").css({'background-color' : 'white', 'color' : '#999999'});
	       	$(thespan).css({'background-color' : '#eb7b00', 'color' : '#ffffff'});
	  		//END JANICE ADDED
            if ($target.length) {
                var targetOffset = $target.offset().top;
                $('html,body').animate({scrollTop: targetOffset}, 2000);
                return false;
            }
        }
    });	
	// show table 4	
	$("p.topen").click(function(){ 
		$(this).hide();
		$("table#table4 caption").show();
		$("table#table4").show();
		});
	// hide table 4
	$("table#table4 caption").click(function(){ 
		$(this).hide();
		$("table#table4").slideUp("slow");
		$("p.topen").show();		
		});
	//easy slider script
	//hide the all of the element with class msg_body
	$(".msg_body").hide();
	//toggle the componenet with class msg_body
	$(".msg_head").click(function(){
		$(this).next(".msg_body").slideToggle(250);
	});
});
