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(".item111").parent().css('margin-left', '-400px'); 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(".nivo-prevNav, .nivo-nextNav").html(""); jQuery("#slider").nivoSlider({ effect:"fade", slices:15, boxCols:8, boxRows:4, animSpeed:200, pauseTime: 3000, startSlide:0, directionNav:true, directionNavHide:false, controlNav:true, controlNavThumbs:true, controlNavThumbsFromRel:true, keyboardNav:true, pauseOnHover:true, manualAdvance:false, prevText: '', nextText: '' }); 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(200); },function(){ jQuery(this).removeClass("hover"); jQuery('.open',this).removeClass("open"); //jQuery('ul:first',this).css('visibility', 'hidden'); jQuery('ul:first',this).toggle(); }); };