jQuery(document).ready(function($){ Cufon.replace('body.page h1, body.single h1, h2, h3'); //search box defaultValue = "Type your search. Tap enter."; $("#s") .bind("focus", function(){ value = $(this).val(); if(value==defaultValue){ $(this).val(""); } }) .bind("focus mouseover", function(){ $(this).css({color:'#fff'}); }) .bind("blur", function(){ value = $(this).val(); if($.trim(value)==""){ $(this).val(defaultValue); } }) .bind("blur mouseout", function(){ $(this).css({color:'#75AEA7'}); }) .trigger("blur"); //mouse glow in the nav $("body").mousemove(function(e){ if(document.body.offsetWidth <980){ winSize = 980; }else{ winSize= document.body.offsetWidth; } $("#glow").fadeIn().css("top",(e.pageY - 260) + "px").css("left",(e.pageX - 80 - ((winSize-980)/2)) + "px") }); $("#nav2 li:not(.current-cat) a").css({opacity: .8}); $("#nav2 li:not(.current-cat) a").bind("mouseover focus", function(){ $(this).css({opacity: 1}); }); $("#nav2 li:not(.current-cat) a").bind("mouseout blur", function(){ $(this).animate({opacity: .8}, 600); }); });