Cufon.replace('ul.menu_dropdown > li > a, div#left-menu ul a', { fontFamily: 'Frutiger Light'/*, hover: {color: '#fff'}*/ }); //Cufon.replace('ul.menu_dropdown', {fontFamily: 'Frutiger Light'}); Cufon.replace('h1, h2, .contact-name, p.header, h3', {fontFamily: 'Frutiger BoldCn'}); Cufon.replace('.cite, .cite-thin', {fontFamily: 'Klavika Bold IT'}); /*Cufon.replace('#foot', {fontFamily: 'Klavika Regular'});*/ jQuery(document).ready(function(){ jQuery("ul.menu_dropdown li").dropdown(); jQuery("ul.menu_dropdown ul").mouseleave(function() { /*Cufon.replace('ul.menu_dropdown > li > a', {fontFamily: 'Frutiger Light', color: '#000'});*/ }); jQuery("ul.menu_dropdown ul a").hover(function() { jQuery(this).css('background', '#fff'); }, function() { jQuery(this).css('background', 'transparent'); }); jQuery("ul.menu_dropdown ul ul").hover(function() { var cl = jQuery(this).parents('li.parent').attr('class'); jQuery('ul.menu_dropdown li[class="' + cl + '"] > a').css('background', '#fff'); }, function() { var cl = jQuery(this).parents('li.parent').attr('class'); jQuery('ul.menu_dropdown li[class="' + cl + '"] > a').css('background', 'none'); }); //jQuery('li').hasClass('hover').('background', '#fff'); //jQuery('a').parent('li').hasClass('hover').css('background', '#fff'); String.prototype.firstLower = function() { return this.charAt(0).toLowerCase() + this.slice(1); } jQuery("ul.lower li a:not(:contains('Ing'))").each(function() { //jQuery(this).text(jQuery(this).text().firstLower()); }); /*jQuery(".nivo-controlNav a[rel=0]").mouseover(function() { jQuery('.item20 a').trigger('mouseover'); jQuery('.item15 > a').css('background', '#fff'); //$('.item3 ul').css('visibility', 'visible'); }); jQuery(".nivo-controlNav a[rel=0]").mouseout(function() { jQuery('.item20 a').trigger('mouseout'); jQuery('.item15 > a').css('background', 'none'); //$('.item3 ul').css('visibility', 'visible'); });*/ //toLowerAnchors.text(toLowerAnchors.text()); jQuery('ul.menu_dropdown ul').hide(); //jQuery('#slider-prev, #slider-next').hide(); }); jQuery.fn.dropdown = function() { jQuery(this).hover(function(){ jQuery(this).addClass("hover"); jQuery('> .dir',this).addClass("open"); //jQuery('ul:first',this).css('visibility', 'visible'); jQuery('ul:first',this).toggle('fast'); },function(){ jQuery(this).removeClass("hover"); jQuery('.open',this).removeClass("open"); //jQuery('ul:first',this).css('visibility', 'hidden'); jQuery('ul:first',this).hide(); //.toggle(); }); }; jQuery.fn.delay = function (time){ var that = this; return this.queue(function(){ setTimeout(function(){ that.dequeue(); }, time); }); };