/**
 * Edge Office javascript resource file
 * Created by This is Beautiful for Edge Office
 * email: nick@thisisbeautiful.net
 * Copyright 2009
 */


/* Navigation mouseover and mouseout effects */

$(function() {

		// set opacity to zero on page load

		$("ul#nav span").css("opacity","0");

		// on mouseover

		$("ul#nav span").hover(function () {

			// animate opacity to full

			$(this).stop().animate({

				opacity: 1

			}, "fast");

		},

		// on mouseout

		function () {

			// animate opacity to zero

			$(this).stop().animate({

				opacity: 0

			}, "fast");
			
		},
		
		function () {
			
			// click function
			
			$(this).toggleClass('ul#nav span');

		});
		
	});

/* End Navigation mouseover and mouseout effects */

/* Navigation click effects */

/**$(function() {});

/* End Navigation click effects */



/* Twitter Function */		
			
			$(function () {getTwitters('spokeytweet', { 
  			id: 'spokeyjoe', 
  			count: 1, 
  			enableLinks: true, 
  			ignoreReplies: true, 
  			clearContents: true,
			template: '<span class="twitterStatus">%text%</span><br /><span class="twitterTime" align="right">%time%</span><br /><ul id="spokeytweet"><li><a href="http://www.twitter.com/spokeyjoe"><span class="followus"></span></li></a></ul>'
			});})
			
/* End Twitter Function */		
			
/* FancyBox Function */

$(function() {

	/* This is basic - uses default settings */
	
	$("a#single_image").fancybox({
		'zoomSpeedIn': 300,
		'zoomSpeedOut': 300
		
	});
	
	/* Using custom settings */
	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	$("a.iframe").fancybox({
		'zoomSpeedIn': 300,
		'zoomSpeedOut': 300,	
		'frameWidth': 990,
		'frameHeight':550
	});
	
	$("a.eastern").fancybox({
		'zoomSpeedIn': 300,
		'zoomSpeedOut': 300,	
		'frameWidth': 960,
		'frameHeight':600
	});
	
	$("a.group").fancybox({
		'zoomSpeedIn':	300, 
		'zoomSpeedOut':	300, 
		'overlayShow':	false
	});
	});

/* End FancyBox Function*/			
			
			
			
			
/**		});*/