(function($){
	$(document).ready(function(){
// You need to specify the size of your background image here (could be done automatically by some PHP code)
			var FullscreenrOptions = {  width: 1200, height: 800, bgID: '#bgimg' };
			// This will activate the full screen background!
			jQuery.fn.fullscreenr(FullscreenrOptions);
			
			$(".share").click(function() {
			
				$("#share-menu").slideToggle('slow', function() {
    // Animation complete.
  				});
			
			});
		/*$(function(){
			
			$( "#tabs" ).tabs({
			ajaxOptions: {
				error: function( xhr, status, index, anchor ) {
					$( anchor.hash ).html(
						"Couldn't load this tab. We'll try to fix this as soon as possible. " +
						"If this wouldn't be a demo." );
				}
			}
		});
	});*/


// Latest tweets
$("#twitter").getTwitter({
		userName: "thisvision",
		numTweets: 1,
		loaderText: "Loading tweets...",
		slideIn: true,
		showHeading: false,
		headingText: "Latest Tweets",
		showProfileLink: false
	});

$('.masonry').masonry({

  singleMode: false,
  // Disables measuring the width of each floated element.
  // Set to true if floated elements have the same width.
  // default: false

  columnWidth: 1,
  // Width in pixels of 1 column of your grid.
  // default: outer width of the first floated element.

  itemSelector: '.masoned:visible',
  // Additional selector to specify which elements inside
  // the wrapping element will be rearranged.
  // Required for Infinite Scroll with window resizing.

  resizeable: true,
  // Binds a Masonry call to window resizes 
  // so layout appears fluid.
  // default: true

  animate: true,
  // Animates layout rearrangements.
  // default: false

  animationOptions: {},
  // A map of options for animation.

  //appendedContent: $('.new_content'),
  // Additional container element for appended content.
  // Useful for Infinite Scroll integration.

  saveOptions: true
  // Masonry will use the options from previous Masonry
  // calls by default, so you only have to enter in options once
  // default: true

},  function() {}
  // Optional callback.
  // 'this' will refer to the applicable elements Masonry just rearranged

);

});

$(window).load(function(){
	$('#bgimg').animate({ opacity:1 }, 600, function(){

	});
	
});

})(this.jQuery);
