jQuery(document).ready(function() { // Back to top button animation jQuery(function() { jQuery(window).scroll(function() { var x=jQuery(this).scrollTop(); if(x != 0) { jQuery('#toTop').fadeIn(3000); } else { jQuery('#toTop').fadeOut(); } }); jQuery('#toTop').click(function() { jQuery('body,html').animate({scrollTop:0},800); }); }); // Menu animation jQuery("#access ul ul").css({display: "none"}); // Opera Fix jQuery("#access li").hover(function(){ jQuery(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400); },function(){ jQuery(this).find('ul:first').css({visibility: "hidden"}); }); // Social Icons Animation jQuery(".socialicons").hover( function(){ jQuery(this).animate({"top": "-5px" },{ queue: false, duration:200}); /* jQuery(this).css({ '-webkit-transform': 'rotate(5deg)', '-moz-transform': 'rotate(5deg)', '-ms-transform': 'rotate(5deg)', '-o-transform': 'rotate(5deg)', 'transform': 'rotate(5deg)', 'zoom': 1 });*/ }, function(){ jQuery(this).animate({ "top": "0px" }, { queue: false, duration:200 }); /* jQuery(this).css({ '-webkit-transform': 'rotate(0deg)', '-moz-transform': 'rotate(0deg)', '-ms-transform': 'rotate(0deg)', '-o-transform': 'rotate(0deg)', 'transform': 'rotate(0deg)', 'zoom': 1 });*/ }); /*! http://tinynav.viljamis.com v1.03 by @viljamis */ (function ($, window, i) { $.fn.tinyNav = function (options) { // Default settings var settings = $.extend({ 'active' : 'selected', // String: Set the "active" class 'header' : false // Boolean: Show header instead of the active item }, options); return this.each(function () { // Used for namespacing i++; var $nav = $(this), // Namespacing namespace = 'tinynav', namespace_i = namespace + i, l_namespace_i = '.l_' + namespace_i, $select = $('