Cufon.DOM.ready(function() { Cufon.replace('h1:not(#logo-home), h2, h3, h4, h5', { hover: true}); Cufon.replace('.page-menu .page_item'); Cufon.replace('.page-menu .current_page_item', { color: '#ff911b'}); }); /*$(document).ready(function() { $('a.lightbox').lightBox({fixedNavigation:true}); $('a[@rel=lightbox]').lightBox({fixedNavigation:true}); });*/ function setFooter(){ //if($(".blog").length < 0 ){ // alert('d'); var iWinHeight = $(window).height(); var iDocHeight = $(document).height(); var eWrapper = $('#wrapper'); var iWrapperHeight = parseInt(eWrapper.height()) + parseInt(eWrapper.css('paddingTop')) + parseInt(eWrapper.css('paddingBottom')) + parseInt(eWrapper.css('marginTop')) + parseInt(eWrapper.css('marginBottom') ) ; var eFooter = $("#footer"); var iFooterHeight = parseInt(eFooter.height()); // + parseInt(eFooter.css('paddingTop')) + parseInt(eFooter.css('paddingBottom')) + parseInt(eFooter.css('marginTop')) + parseInt(eFooter.css('marginBottom') ) ; //alert(iDocHeight + ' ' + iWrapperHeight ); if(iDocHeight > iWrapperHeight) { var iFeatureFooterHeight = iDocHeight - iWrapperHeight; //alert(iFeatureFooterHeight + ' ' + iFooterHeight ); if(iFeatureFooterHeight > iFooterHeight) { eFooter.height(iFeatureFooterHeight); } } //} } function setImageLoader(){ jQuery.noConflict(); jQuery(function(){ jQuery.fn.getTitle = function() { var arr = jQuery("a.fancybox"); jQuery.each(arr, function() { var title = jQuery(this).children("img").attr("title"); jQuery(this).attr('title',title); }) } // Supported file extensions var thumbnails = 'a:has(img)[href$=".bmp"],a:has(img)[href$=".gif"],a:has(img)[href$=".jpg"],a:has(img)[href$=".jpeg"],a:has(img)[href$=".png"],a:has(img)[href$=".BMP"],a:has(img)[href$=".GIF"],a:has(img)[href$=".JPG"],a:has(img)[href$=".JPEG"],a:has(img)[href$=".PNG"]'; jQuery(thumbnails).addClass("fancybox").attr("rel","fancybox").getTitle(); jQuery("a.fancybox").fancybox({ 'imageScale': true, 'padding': 10, 'zoomOpacity': true, 'zoomSpeedIn': 500, 'zoomSpeedOut': 500, 'zoomSpeedChange': 300, 'overlayShow': true, 'overlayColor': "#666666", 'overlayOpacity': 0.3, 'enableEscapeButton': true, 'showCloseButton': true, 'hideOnOverlayClick': true, 'hideOnContentClick': true, 'frameWidth': 560, 'frameHeight': 340, 'callbackOnStart': null, 'callbackOnShow': null, 'callbackOnClose': null, 'centerOnScroll': true }); }); } $(document).ready(function(){ setFooter(); setImageLoader(); }); $(window).resize(setFooter);