// JavaScript Document
$(document).ready(function(){

	/*____________________
	* Link Sub-Menu
	* --------------------
	*/
	$("#top-menu > ul > li").mouseenter(function(){
			/*
			* Mouse enters
			*/
			var contentSaved = $('> ul[class=content]', this).html();
			
			if($(' > .parent', this).css('display') == 'block')
			{
				$('> .parent', this).css('display', 'none');
			
				$('> .child', this).html(contentSaved).css('display', 'inline').unscramble().delay(800).queue(function() {
					
					$(this).html(contentSaved);
					$(this).dequeue();	
				});
			}
	});
		
		
	$("#top-menu").mouseleave(function(){
			/*
			* Mouse leaves
			*/
			setTimeout(function(){
				$('.parent').css('display', 'block');
				$('.child').css('display', 'none');
			}, 1000);	
	});
});

$(window).load(function() {
	
	$('#slide-show > div').nivoSlider({
		effect:'fade', //Specify sets like: 'fold,fade,sliceDown'
		animSpeed:500, //Slide transition speed
		pauseTime:7000,
		directionNav:false, //Next & Prev
		controlNav:false, //1,2,3...
		controlNavThumbs:false, //Use thumbnails for Control Nav
		pauseOnHover:false, //Stop animation while hovering

	});
	
});
