
// remap jQuery to $
(function($){

 





 



})(window.jQuery);



// usage: log('inside coolFunc',this,arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  if(this.console){
    console.log( Array.prototype.slice.call(arguments) );
  }
};



// catch all document.write() calls
(function(doc){
  var write = doc.write;
  doc.write = function(q){ 
    log('document.write(): ',arguments); 
    if (/docwriteregexwhitelist/.test(q)) write.apply(doc,arguments);  
  };
})(document);





    $(function () {
        if ($.browser.msie && $.browser.version < 7) return;
        
        $('#navigation li')
            .removeClass('highlight')
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $('> span.hover', this).css('opacity', 0);
                    $(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo(400, 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo(400, 0);
                    });
                });
                
    });




    $(function () {
        if ($.browser.msie && $.browser.version < 7) return;
        
        $('#logo li')
            .removeClass('highlight-logo')
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $('> span.hover', this).css('opacity', 0);
                    $(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo(1000, 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo(1000, 0);
                    });
                });
                
    });




    $(function () {
        if ($.browser.msie && $.browser.version < 7) return;
		
        
        $('#footer-logo li')
            .removeClass('highlight-footer-logo')
            .find('a')
            .append('<span class="hover" />').each(function () {
                    var $span = $('> span.hover', this).css('opacity', 0);
                    $(this).hover(function () {
                        // on hover
                        $span.stop().fadeTo(1000, 1);
                    }, function () {
                        // off hover
                        $span.stop().fadeTo(1000, 0);
                    });
                });
                
    });




        $(function() {
            function launch() {
                 $('#contact').lightbox_me({centered: true, onLoad: function() { $('#contact').find('input:first').focus()}});
            }
            
            $('#launch').click(function() {
                $("#loader").lightbox_me({centered: true});
                setTimeout(launch, 500);
                return false;
            });
        });



