
//Lightbox Code
$(document).ready(function() { 
	$("a.fancylightbox").fancybox({
		'titleShow'     : true,
		'titlePosition'	: 'over',
		'transitionIn'	: 'fade',
		'transitionOut'	: 'fade',
		'overlayOpacity': '0.5',
		'overlayColor'  :  '#333'
	});
	$("a.buttonfancylightbox").fancybox({
		'titleShow'     : true,
		'titlePosition'	: 'over',
		'transitionIn'	: 'fade',
		'transitionOut'	: 'fade',
		'overlayOpacity': '0.5',
		'overlayColor'  :  '#333'
	});
	$("a.fancylightboxnorollover").fancybox({
		'titleShow'     : true,
		'titlePosition'	: 'over',
		'transitionIn'	: 'fade',
		'transitionOut'	: 'fade',
		'overlayOpacity': '0.5',
		'overlayColor'  :  '#333'
	});
	$("a[rel=portfolio]").fancybox({
		'titleShow'     : true,
		'titlePosition'	: 'over',
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'overlayOpacity': '0.5',
		'overlayColor'  :  '#333'
	});
	$(".videolightbox").fancybox({
		'titleShow'     : false,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'overlayOpacity': '0.5',
		'overlayColor'  :  '#333'
	});
	$(".buttonvideolightbox").fancybox({
		'titleShow'     : false,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'overlayOpacity': '0.5',
		'overlayColor'  :  '#333'
	});
});

//Transparency Adjustments
$(document).ready(function() {  
            $('.transparent').each(function() {
                $(this).hover(
                    function() {
                        $(this).stop().animate({ opacity: 0.5 }, 400);
                    },
                   function() {
                       $(this).stop().animate({ opacity: 1.0 }, 400);
                   })
                });
});


//Start of Overlay Icons
$(document).ready(function(){   
    $("a.fancylightbox").append("<span></span>"); 
    $("a.fancylightbox").hover(function(){ 
        $(this).children("span").stop(true, true).fadeIn(0); 
    },function(){ 
        $(this).children("span").stop(true, true).fadeOut(0); 
    }); 
});
$(document).ready(function(){ 
    $("a.videolightbox").append("<span></span>"); 
    $("a.videolightbox").hover(function(){ 
        $(this).children("span").stop(true, true).fadeIn(0); 
    },function(){ 
        $(this).children("span").stop(true, true).fadeOut(0); 
    }); 
});
$(document).ready(function(){ 
    $("a.blogpost").append("<span></span>"); 
    $("a.blogpost").hover(function(){ 
        $(this).children("span").stop(true, true).fadeIn(0); 
    },function(){ 
        $(this).children("span").stop(true, true).fadeOut(0); 
    }); 
});
