/* jQuery tubular plugin
|* by Sean McCambridge
|* http://www.seanmccambridge.com/tubular
|* Copyright 2010
|* licensed under the MIT License
|* Do not remove this copyright notice
|* Enjoy.
|* 
|* Thanks,			http://farm6.static.flickr.com/5313/5893853979_573a80a440_b.jpg
|* Sean */


    $.backstretch("http://preview.whitebeirut.com/v3/img/DSC_6001_BGv2.jpg");
     
    
    
    $("#yt-container").ready(function () {
          $("#alpha").delay(4800).fadeTo(4000, 0.5);
        }); 
        



$(document).ready(function(){
    $('#iframe').bind('shakeFrame',function(){
        $('#iframe').effect("shake",{"times":3,"distance":10},60);
    });



 
 jQuery.fn.fadeLoadingLogo = function()
{

        $("#loadingLogo").fadeIn(800);
        $("#loadingLogo").delay(3000).fadeOut(800);
        $("#iframe").css( "visibility", "hidden" );
        ytplayer.playVideo();
  
};


// alert() each a-element's ID
$("aTEST").click(function (){
    	$(this).fadeLoadingLogo();
	});  

  

  
  $(".x1x").delay(1800).fadeTo(2000, 0.7);
 
  
  
  function hideYourDiv() {
   $(".x1x").delay(4800).fadeTo(2000, 0.2);
}
var theTimeout = setTimeout(hideYourDiv, 5000);
$("div#grid-wrapper").mouseover(function() {
  clearTimeout(theTimeout);
  $(".x1x").fadeTo(1000, 0.7);
});
  


  
  
  
    
$(".x1").hover(function () {
      $(this).fadeTo(200, 1);
      $(this).css('cursor','pointer');
});

$(".x1").mouseleave(function () {
      $(this).fadeTo(2000, 0.7);
});


$(".x0").click(function (){
    	$("#iframe").css( "visibility", "hidden" );
    	iframeLoading();
});



});
      


setTimeout("myBar.loaded('jQueryCustom.js')", 500);

