// JavaScript Document

var $j = jQuery;

// Dropdown Menu
$j(document).ready(function(){
							
	$j('li.headlink').hover(
		function() { $j('ul', this).css('display', 'block'); },
		function() { $j('ul', this).css('display', 'none'); });

// Scrollable function
$j(function() {		
		
	// initialize scrollable 
	$j("div.doscrollable").scrollable({
									  
		// show X items at a time 
        size: 3,	
		// items are auto-scrolled in 5 secnod interval
		interval: 5000,
		// when last item is encountered go back to first item
		loop: true, 
		// make animation a little slower than the default
		speed: 900,
		// when seek starts make items little transparent
		onBeforeSeek: function() {
			this.getItems().fadeTo(350, 0.5);		
		},
		// when seek ends resume items to full transparency
		onSeek: function() {
			this.getItems().fadeTo(350, 1);
		}
	});	
	
});


});//end DOM ready