//Lightbox Code
$(document).ready(function() { 
	$("a.fancylightbox").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.7 }, 400);
                    },
                   function() {
                       $(this).stop().animate({ opacity: 1.0 }, 400);
                   })
                });
});

//Inset Borders
$(document).ready(function() {  
	$(".border").insetBorder({
	  speed          : 250,           // 1000 = 1 second, default 250
	  borderColor    : "#000000",    // Default white (#ffffff)
	  inset          : 7,             // Border width, default 10px
	  borderType     : "solid",        // Border type, e.g. dashed
	  outerClass     : "ibe_outer",    // Class name of outer wrap
	  innerClass     : "ibe_inner"     // Class name of inner border
	});
});


//Drop-Down Menus Loading
$(document).ready(function(){ 
    $("ul.sf-menu").supersubs({ 
        minWidth:    12,   // minimum width of sub-menus in em units 
        maxWidth:    25,   // maximum width of sub-menus in em units 
        extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                           // due to slight rounding differences and font-family 
    }).superfish();  // call supersubs first, then superfish, so that subs are 
                     // not display:none when measuring. Call before initialising 
                     // containing tabs for same reason. 
});



//Twitter Sidebar Settings
$(document).ready(function() {
		$('#tweets-sidebar').jtwt({image_size : 20, count : 3, username: 'envato', convert_links : 1, loader_text : 'Loading new tweets...'});   
});


//Twitter Footer Settings
$(document).ready(function() {
		$('#tweets').jtwt({image_size : 0, count : 1, username: 'envato', convert_links : 1, loader_text : 'Loading new tweets...'});   
});

