// init Cufon styles after document ready based on CUFON_SETTINGS jQuery(function() { jQuery.initCufon = function() { Cufon.replace('h1, h2, h3, h4, h5, #sidebar .title', {hover: true, fontFamily: 'Frutiger LT Std'}); Cufon.replace('#navigation li a', {hover: true, fontFamily: 'Frutiger LT Std'}); Cufon.replace('.single_page_nowshowingfront h1 a, .single_page_comingsoonfront h1 a', {hover: true, fontFamily: 'Frutiger Bold'}); Cufon.replace('#footer2 a, #footer_highlight span', {hover: true, fontFamily: 'Frutiger LT Std'}); } }); jQuery(document).ready(function($) { jQuery(".ceebox").ceebox(); /* Cufon Font Replacement */ //Cufon.replace('#navigation ul li, h1, h2, h3, h4, h5, #sidebar .title', { fontFamily: 'League Gothic' }); //Cufon.replace('.sf-menu .current_page_parent a', { fontFamily: 'League Gothic' }); /* Superfish Font Replacement */ $("ul.sf-menu").superfish({ autoArrows: false, pathClass: 'current', // the class you have applied to list items that lead to the current page delay: 600, // delay on mouseout animation: {opacity:'toggle', height:'show'}, // fade-in and slide-down animation speed: 350, // faster animation speed autoArrows: false, // disable generation of arrow mark-up dropShadows: false, // disable drop shadows onHide: function(){ $.initCufon(); }, onInit: function(){ } }); $('#footer_highlight').click(function() { if($('#footer2').hasClass('active')) { $('#footer2').slideUp('500', function() {$('#footer2').removeClass('active'); $('#footer_highlight').removeClass('expanded');}); } else { $('#footer2').slideDown('500', function() {$('#footer2').addClass('active'); $('#footer_highlight').addClass('expanded');}); } }); $('#footer_highlight').addClass('expanded'); $('#footer2').addClass('active'); }); $(window).resize(function() { if($('.single_page_home').length) { $('.ngg-slideshow img').each(function() { // Set bg size var ratio = 800 / 1280; // Get browser window size var browserwidth = $(window).width(); var browserheight = $(window).height(); // Scale the image if ((browserheight/browserwidth) > ratio){ $(this).height(browserheight); $(this).width(browserheight / ratio); } else { $(this).width(browserwidth); $(this).height(browserwidth * ratio); } // Center the image /*$(this).css('left', (browserwidth - $(this).width())/2); $(this).css('top', (browserheight - $(this).height())/2);*/ //old script /*img_height = $(this).css('height').replace('px', '') * 1; img_width = $(this).css('width').replace('px', '') * 1; width = $(window).width(); height = Math.round(img_height / img_width * width); $(this).css({ 'height': height + 'px', 'width': width + 'px' });*/ }); } }); if($('.single_page_home').length) { $('#grid-content').css({'margin': '-31px 0 0 0', 'width': '100%', 'float': 'left', 'display': 'block'}); //$('#footer').css({'margin': '-80px 0 0 0', 'position': 'fixed'}); }