//////----TO TOP---////////
jQuery(document).ready(function ($) {
jQuery('.totop').click(function() {
jQuery('html, body').animate( {
scrollTop: 0
}
, "slow");
}
);
}
);
//////----MENU---////////
jQuery(document).ready(function ($) {
$('.navbar .dropdown').hover(function() {
$(this).addClass('extra-nav-class').find('.dropdown-menu').first().stop(true, true).delay(200).slideDown();
}
, function() {
var na = $(this)
na.find('.dropdown-menu').first().stop(true, true).delay(50).slideUp('fast', function() {
na.removeClass('extra-nav-class')
}
)
}
);
$('.dropdown-submenu').hover(function() {
$(this).addClass('extra-nav-class').find('.dropdown-menu').first().stop(true, true).delay(200).slideDown();
}
, function() {
var na = $(this)
na.find('.dropdown-menu').first().stop(true, true).delay(50).slideUp('fast', function() {
na.removeClass('extra-nav-class')
}
)
}
);
}
);
/*! http://tinynav.viljamis.com v1.1 by @viljamis */
(function(a,i,g) {
a.fn.tinyNav=function(j) {
var b=a.extend( {
active:"selected",header:"",label:""
}
,j);
return this.each(function() {
g++;
var h=a(this),d="tinynav"+g,f=".l_"+d,e=a("").attr("id",d).addClass("tinynav "+d);
if(h.is("ul,ol")) {
""!==b.header&&e.append(a("").text(b.header));
var c="";
h.addClass("l_"+d).find("a").each(function() {
c+='