var $jQ = jQuery.noConflict();

$jQ(document).ready(function() {
	// Initialise bar section start type windown
	
	$jQ(".sf-menu").superfish({ 
	           animation: {height:'show'},   // slide-down effect without fade-in 
	           delay:     1200 ,              // 1.2 second delay on mouseout 
	           autoArrows:  true                           // disable generation of arrow mark-up 
	       });
	       
	
	
	$jQ('.icon_image_sml').hover( function(){
	     $jQ(this).css('background-position', '0 -25px');
	},
	function(){
	     $jQ(this).css('background-position', '0 0');
	});
	
	
	/* jQuery(".gallery-icon a").addClass("lightbox");  */  
	 
	/* jQuery(".gallery-icon a").attr('rel', 'gallery');*/ 
	
	 
	
	
		/* Cambiare l'effetto da utilizzare */
		$jQ.easing.def = "easeInQuint";
	
		/* Associare una funzione all'evento click sul link */
		$jQ('li.titleb a').click(function(e){
		
			/* Finding the drop down list that corresponds to the current section: */
			var subMenu = $jQ(this).parent().next();
			
			/* Trovare il sotto menu che corrisponde alla voce cliccata */
			$jQ('.sub-menu').not(subMenu).slideUp('slow');
			subMenu.stop(false,true).slideToggle('slow');
			
			$jQ("li ul.sub-menu").css("display", "block");
			
			/* Prevenire l'evento predefinito (che sarebbe di seguire il collegamento) */
			e.preventDefault();
		});
		

	
				
		if (!!('ontouchstart' in window)) {
			$jQ('#content').touchScroll({scrollHeight: 1300});
		}		
				
		
		
		
		
if(navigator.platform == 'iPhone' || navigator.platform == 'iPod')
{
     $jQ("#primary").css("position", "static");
    
    
    
};




		
});






