$(document).ready(function() {
			
		$().piroBox({
		  my_speed: 300, //animation speed
		  bg_alpha: 0.7, //background opacity
		  slideShow : 'true', // true == slideshow on, false == slideshow off
		  slideSpeed : 3, //slideshow
		  close_all : '.piro_close' // add class .piro_overlay(with comma)if you want overlay click close piroBox
		  });
		
		});
		
		
$(document).ready(function() {
	
		$('#nav a')
		.css( {backgroundPosition: "0 -100px"} )
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 0)"}, 
				{duration:200})
			})
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 -100px)"}, 
				{duration:200})
			})
			
		$('#nav a.topnav_current')
		.css( {backgroundPosition: "0 0"} )
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 0)"}, 
				{duration:200})
			})
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 0)"}, 
				{duration:200})
			})
			
		$('#nav ul li a')
		.css( {backgroundPosition: "0 -100px"} )
		.mouseover(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 0)"}, 
				{duration:0})
			})
		.mouseout(function(){
			$(this).stop().animate(
				{backgroundPosition:"(0 -100px)"}, 
				{duration:0})
			})
		
		});
		
		
		
$(document).ready(function () {	
				
			$('#nav li').hover(
				function () {
					//show its submenu
					$('ul', this).slideDown(200);
		
				}, 
				function () {
					//hide its submenu
					$('ul', this).slideUp(200);			
				}
			);
			
		});
