$(document).ready(function(){
//Clear value in search input box
	$(function() {
		swapValues = [];
		$(".s_input").each(function(i){
			swapValues[i] = $(this).val();
			$(this).focus(function(){
				if ($(this).val() == swapValues[i]) {
					$(this).val("");
				}
			}).blur(function(){
				if ($.trim($(this).val()) == "") {
					$(this).val(swapValues[i]);
				}
			});
		});
});
	
	if($("#list1b").length != 0) {
		$('#list1b').accordion({
			autoheight: false
		});
	}
	
	
	//show hide timeline
	$('#showhide').hide();

	
	//Toggle
	$('.timeline-btn').toggle(
		function() {
			$(this).toggleClass('close').blur();
			$('#showhide').slideDown(1000);
		},
		function() {
			$(this).toggleClass('close').blur();
			$('#showhide').slideUp(1000);
		}
	);


//Zebra Stripe table and add hover class
$('.table tr:odd').addClass('odd');

//Open all links with rel="external" in new window
$('a[rel="external"]').click( function() {
        window.open( $(this).attr('href') );
        return false;
    });
 });