

function openMenu(){
	$('ul',this).slideDown('medium');
	// $('a:first',this).css('color','#ee3a42');
}
function closeMenu(){
	$('ul',this).slideUp('fast');
	// $('a:first',this).css('color','#ffffff');
}
$(function() {
		$( "#history-content" ).tabs({ fx: { opacity: 'toggle', duration:'medium'} });
		
		if(document.location.hash!='') {
        //get the index from URL hash
      	tabSelect = document.location.hash.substr(1,document.location.hash.length);
	$("#history-content").tabs('select',tabSelect-1);
}

	});

$('document').ready(function(){
    $("#cssdropdown li").hoverIntent({    
        over: openMenu, 
		timeout: 100, 
		out: closeMenu
	});
	
	$('#logo').cycle({
		fx: 'fade',
		speed: 450,
		timeout: 2000
	});
	
	$('#logoaboutus').cycle({
		fx: 'fade',
		speed: 750,
		timeout: 4000
	});
	
	$( "#leftmenu" ).accordion({ 
		 active: 5
	});
	
	$( "#leftmenu" ).accordion( 
		"option", "active", 5
	);
	
	$( ".selector" ).accordion({ fillSpace: true });

	
	$('img.captify').captify({
		// all of these options are... optional
		// ---
		// speed of the mouseover effect
		speedOver: 'fast',
		// speed of the mouseout effect
		speedOut: 'normal',
		// how long to delay the hiding of the caption after mouseout (ms)
		hideDelay: 100,	
		// 'fade', 'slide', 'always-on'
		animation: 'slide',		
		// text/html to be placed at the beginning of every caption
		prefix: '',		
		// opacity of the caption on mouse over
		opacity: '0.6',					
		// the name of the CSS class to apply to the caption box
		className: 'caption-bottom',	
		// position of the caption (top or bottom)
		position: 'top',
		// caption span % of the image
		spanWidth: '98%'
	});
	
		$('img.captifyplant').captify({
		// all of these options are... optional
		// ---
		// speed of the mouseover effect
		speedOver: 'fast',
		// speed of the mouseout effect
		speedOut: 'normal',
		// how long to delay the hiding of the caption after mouseout (ms)
		hideDelay: 100,	
		// 'fade', 'slide', 'always-on'
		animation: 'slide',		
		// text/html to be placed at the beginning of every caption
		prefix: '',		
		// opacity of the caption on mouse over
		opacity: '0.9',					
		// the name of the CSS class to apply to the caption box
		className: 'caption-bottom',	
		// position of the caption (top or bottom)
		position: 'top',
		// caption span % of the image
		spanWidth: '94%'
	});

	$('img.captify2').captify({
		// all of these options are... optional
		// ---
		// speed of the mouseover effect
		speedOver: 'fast',
		// speed of the mouseout effect
		speedOut: 'normal',
		// how long to delay the hiding of the caption after mouseout (ms)
		hideDelay: 100,	
		// 'fade', 'slide', 'always-on'
		animation: 'slide',		
		// text/html to be placed at the beginning of every caption
		prefix: '',		
		// opacity of the caption on mouse over
		opacity: '0.6',					
		// the name of the CSS class to apply to the caption box
		className: 'cap-bottom',	
		// position of the caption (top or bottom)
		position: 'bottom',
		// caption span % of the image
		spanWidth: '98%'
	});
	
		$('img.captify3').captify({
		// all of these options are... optional
		// ---
		// speed of the mouseover effect
		speedOver: 'fast',
		// speed of the mouseout effect
		speedOut: 'normal',
		// how long to delay the hiding of the caption after mouseout (ms)
		hideDelay: 100,	
		// 'fade', 'slide', 'always-on'
		animation: 'slide',		
		// text/html to be placed at the beginning of every caption
		prefix: '',		
		// opacity of the caption on mouse over
		opacity: '0.6',					
		// the name of the CSS class to apply to the caption box
		className: 'cap-bottom',	
		// position of the caption (top or bottom)
		position: 'bottom',
		// caption span % of the image
		spanWidth: '98%'
	});
	
		$().newsTicker({
		newsList: "#ticker",
		tickerRate: 50,
		startDelay: 10,
		ownControls: true,
		resumeOffHover: true,
		placeHolder1: " "
	});
	
		    

 
});

