/*

File: custom.js

For: Landed!
Author: Luke Smith - HisHandiwork.biz
Created: 06/28/11



--- TABLE OF CONTENTS ---


1. JMENU
2. FANCYBOX
3. RECENT TWEETS
4. IMAGE ZOOM


*/



/* 1 * JMENU */
jQuery(document).ready(function() {
    $('#menu ul').jmenu({
	    animation:'slide',
	    duration: 100
    });
});

/* 2 * FANCYBOX */
jQuery(document).ready(function() {

	//display image
	$(".fancy").fancybox({
		'overlayShow'	       : true,
		'easingIn'           : 'swing',
		'easingOut'          : 'swing',
		'speedIn'            : 500,
		'speedOut'           : 200
	});
	
	//display text
	$(".text").fancybox();
		
});

/* 3 * LATEST TWEETS */
jQuery(window).load(function() {

getTwitters('myTweets', {
        id: 'lukediv',	// replace with your twitter user id
        prefix: '<a href="http://twitter.com/%screen_name%">%name%</a> said: ', 
        clearContents: false, // leave the original message in place
        count: 2, 
        withFriends: true,
        ignoreReplies: false,
	 enableLinks: true,
        newwindow: true
    });
    
});

/* 4 * IMAGE ZOOM */
$(document).ready(function() {

	$("a.fancy img, a.f-video img").mouseover(function(){
		$(this).stop(true,true);
		$(this).fadeTo(300, 0.5);
	});
	
	$("a.fancy img, a.f-video img").mouseout(function(){
		$(this).fadeTo(400, 1.0);
	});
	
	$(".flickr_badge_image img").mouseover(function(){
		$(this).stop(true,true);
		$(this).fadeTo(300, 0.5);
	});
	
	$(".flickr_badge_image img").mouseout(function(){
		$(this).fadeTo(400, 1.0);
	});
 
});






