jQuery.noConflict();
jQuery(document).ready(function() {

jQuery(document).pngFix();

//homepage scroll	
  	jQuery("div.scrollable").scrollable({size:3}); 
		


//homepage tabs
	jQuery("div.scrollable-tabs").scrollable({size:1});

	jQuery("div.navi a").each(function(i) { 
			 
			
		  var tabText;	
		  
		  //get the title attribute of the div and display on tab
		  tabText=jQuery(this).parent('div.navi').next(".scrollable-tabs").find(".items").find("div.tab-section:nth-child("+(i+1)+")").attr('title');		  
	 
	 	 jQuery(this).html(tabText); 
		
			
		}); 
		
		//products tabs
	jQuery("div.products-scrollable-tabs").scrollable({size:1,navi:".products-navi"});

	jQuery("div.products-navi a").each(function(i) { 
			 
			
		  var tabText;	
		  
		  //get the title attribute of the div and display on tab
		  tabText=jQuery(this).parent('div.products-navi').next(".products-scrollable-tabs").find(".items").find("div.tab-section:nth-child("+(i+1)+")").attr('title');		  
	 
	 	 jQuery(this).html(tabText); 
		
			
		}); 
		
		
	//global nav hover	
		jQuery("#menulist_root-nav  ul").hover(
      function () {
        jQuery(this).prev("a.mainlevel-nav").addClass("active");
      }, 
      function () {
        jQuery(this).prev("a.mainlevel-nav").removeClass("active");

      }
    );
    
  
		jQuery("a#single_image").fancybox({'overlayOpacity':0.85,'overlayShow':true}); 
	

	
});
