$(function() {
		   
	$("div#my-folio-of-works").slideViewerPro({ 
        // slideViewerPro options (defaults) 
		galBorderWidth: 0,  // the border width around the main images 
		thumbsTopMargin: 10, // the distance that separates the thumbnails and the buttons from the main images 
		thumbsRightMargin: 6, // the distance of each thumnail respect to the next one 
		thumbsBorderWidth: 1, // the border width of each thumbnail. Note that the border in reality is above, not around 
		buttonsWidth: 41, // the width of the prev/next buttons that commands the thumbnails 
		galBorderColor: "#ff0000", // the border color around the main images 
		thumbsBorderColor: "#e1e1e1", // the border color of the thumbnails but not the current one 
		thumbsActiveBorderColor: "#ff0000", // the border color of the current thumbnail 
		buttonsTextColor: "#ff0000", //the color of the optional text in leftButtonInner/rightButtonInner 
		thumbsBorderOpacity: 1, // could be 0, 0.1 up to 1.0 
		thumbsActiveBorderOpacity: 0.3, // could be 0, 0.1 up to 1.0 
		easeTime: 750, // the time it takes a slide to move to its position 
		asTimer: 4000, // if autoslide is true, this is the interval between each slide 
		thumbs: 4, // the number of visible thumbnails 
		thumbsPercentReduction: 22, // the percentual reduction of the thumbnails in relation to the original 
		thumbsVis: true, // with this option set to false, the whole UI (thumbs and buttons) are not visible 		
		leftButtonInner: leftSlideButton, //could be an image "<img src='images/larw.gif' />" or an escaped char as "&larr"; 		
		rightButtonInner: rightSlideButton, //could be an image or an escaped char as "&rarr"; 
		autoslide: false, // by default the slider do not slides automatically. When set to true REQUIRES the jquery.timers plugin 
		typo: true, // the typographic info of each slide. When set to true, the ALT tag content is displayed 
		typoFullOpacity: 0.4, // the opacity for typographic info. 1 means fully visible. 
		shuffle: false // the LI items can be shuffled (randomly mixed) when shuffle is true 
    }); 
						   
	$("ul.sf-menu").superfish({
		autoArrows:  false,
		delay:       400,                             // one second delay on mouseout 
		animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
		speed:       'fast',                          // faster animation speed 
		autoArrows:  false,                           // disable generation of arrow mark-up 
		dropShadows: false                            // disable drop shadows 			
	}); 
	
	$('ul.list li').each(function() {
	  var a = $(this).children('a');
	  var aClass = a.attr('rel');
	  if (a.hasClass('active')) {     
	   $('.'+aClass).css({'display':'block'});
	  } else {
	   $('.'+aClass).css({'display':'none'});
	  }
	 });
	 $('ul.list li a').click(function () {             
	  var thisaClass = $(this).attr('rel');
	  $(this).parent('li').parent('ul').children('li').each(function() {
	   var a = $(this).children('a');
	   var aClass = a.attr('rel');
	   if (thisaClass == aClass) {
		$('.'+aClass).show();
		a.attr('class','active');
	   } else {
		$('.'+aClass).hide();
		a.attr('class','');
	   }
	  });
	  return false;
	});
	
});

Cufon.replace('h1, h2, h3',{  } );	
