Cufon.replace('h1',{hover: true})('h2',{hover: true})('h3',{hover: true})('h4',{hover: true})('h5',{hover: true})('h6',{hover: true})('#nav li a',{hover: true})('.archivetitle',{hover: true}); // Javascript originally by Patrick Griffiths and Dan Webb. // http://htmldog.com/articles/suckerfish/dropdowns/ sfHover = function() { var sfEls = document.getElementById("nav").getElementsByTagName("li"); for (var i=0; i') .cycle({ fx: 'fade', speed: 1000, pager: '#numbers', timeout: 4000 }); // Image preloading and display an icon when mouse hover lightbox images $('#container img').not("#sidebar img").css("opacity", "0.0"); // Image preloading and display an icon when mouse hover lightbox images $('#container img').not("#sidebar img").each( function() { $(this).wrap("
"); var imagePath = $(this).attr('src'); $(this).removeAttr('src'); $(this) .css("opacity", "0.0") .load( function() { $(this) .css("opacity", "0.0") .animate({opacity: 0.0}, 200) .animate({opacity: 1.0}, 500, function(){ $(this).parent().replaceWith($(this)); var $lightbox = $(this).parent("a[rel^='prettyPhoto']"); if ($lightbox.length > 0) { $(this).css("position", "relative"); var $class = ''; if($lightbox.attr('href').match(/(jpg|gif|jpeg|png|tif)/)) { $class = 'lightbox-image'; } else { $class = 'lightbox-video'; } if ($(this).length > 0) { var $span = $("").appendTo($lightbox); $(this).bind('mouseenter', function(){ $height = $(this).height(); $width = $(this).width(); $pos = $(this).position(); $span.css({ height:$height, width:$width, top:$pos.top, left:$pos.left }); }); } } }); }).attr('src', imagePath); }); // Reduce opacity when mouse hover lightbox images $("a[rel^='prettyPhoto'] img").hover(function(){ $(this).stop().fadeTo("slow", 0.6); // This sets the opacity to 60% on hover },function(){ $(this).stop().fadeTo("slow", 1.0); // This sets the opacity back to 100% on mouseout }); });