﻿	$(document).ready(function(){
		$('#live').sprites({
			show: {opacity: 'show'},
			hide: {opacity: 'hide'}
		});
	});

		Cufon.replace('h1', { fontFamily: 'Neutra Text Book' });
        Cufon.replace('.font_hneue', { fontFamily: 'Helvetica Neue LT Std' });
		Cufon.replace('.font_nbook', { fontFamily: 'Neutra Text Book' });
		Cufon.replace('.font_nbold', { fontFamily: 'Neutra Text Bold' });


$(document).ready(function(){
    $(".button").hover(
    function(){
    	
        $(".footer_buttons").addClass($(this).attr("title"));       
    },
    function(){
        $(".footer_buttons").removeClass($(this).attr("title"));
    });
});



$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});


		$(document).ready(function(){
			$(".portfolio_buttons").hoverIntent({
				sensitivity: 3, 
				interval: 10, 
				over: '', 
				timeout: 0, 
				out: moveReset
			});
		});
		function moveReset(){ $(".see_more_here .bg").animate({opacity:0},{duration:250}).animate({backgroundPosition:"-1000px 0"},{duration:50}).animate({opacity:1},{duration:250}); }



		$(document).ready(function(){
			$(".portfolio_buttons a").hoverIntent({
				sensitivity: 3, 
				interval: 10, 
				over: moveTo, 
				timeout: 0, 
				out: ''
			});
		});
		function moveTo(){ var yPos = $(this).attr("pos"); $(".see_more_here .bg").animate({backgroundPosition:yPos+" 0"},{duration:150}); }
		function moveBack(){ $(".see_more_here .bg").animate({backgroundPosition:"-1000px 0"},{duration:150}); }


		$(document).ready(function(){
			$(".portfolios_viewer div.starting").show();
			$(".portfolios_thumbs div").hoverIntent({
				sensitivity: 3, 
				interval: 50, 
				over: inFade, 
				timeout: 0, 
				out: ''
			});
		}); // close document.ready

		function inFade(){  $(".portfolios_viewer .infodiv").fadeOut();var name = $(this).attr("name");$(".portfolios_viewer div."+name).fadeIn();}




		//<![CDATA[
		$(function () {
			$(".runnable")
				.css({ cursor: "pointer"})
				.hover(function () {
					var words = $(this).attr("name");
					$('#capa_content').unhighlight();
					$.each(words.split(" "), function(idx, val) { $('#capa_content').highlight(val, { wordsOnly: true }); })
					Cufon.refresh();
				});
				
		});
		//]]>
		
		
		
$(document).ready(function() {
	$(".tellmemore a").fancybox();
});


$(document).ready(function() { 
	$(".tellmemore a").fancybox({ 
		'zoomSpeedIn': 300, 
		'zoomSpeedOut': 300, 
		'overlayShow': true,
		'overlayOpacity': 0.5,
		'overlayColor': '#333',
		'frameWidth': 700,
		'frameHeight': 500
	}); 
	
		$("a[rel=outlook_setup]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
		}
	});
}); 




