/* To unminify this script, go to http://jkenny.dev.clickiwoo.com/assets/scripts/blog.js?nomin=1 */
$(document).ready(function(){$("#reorder").bind("change",sortBy);$("#ppp").bind("change",postPerPage);$("#keyword").bind("click",clearBox).bind("blur",clearBoxBlur);if($(".pics > a").length>0){}bindImages();if($("#captcha_refresh").length>0){$("#captcha_refresh").bind("click",function(){$("#captcha").attr("src","/home/captcha?rnd="+Math.floor(Math.random()*10000));return false})}});function clearBox(){if($(this).val()=="Enter Keyword"){$(this).val("")}}function clearBoxBlur(){if($(this).val()==""){$(this).val("Enter Keyword")}}function sortBy(){window.location.href=window.location.pathname+"?reorder="+this.value}function postPerPage(){window.location.href=window.location.pathname+"?ppp="+this.value}function bindImages(){if($(".pics > div > a").length>0){$(".pics > div > a").fancybox({autoScale:false,overlayColor:"#000",overlayOpacity:0.9,padding:0,speedIn:400,speedOut:400,top_offset:20})}$("#p_sub-items > ul> li > a").each(function(){$(this).bind("click",function(){var a=$(this).attr("id");a=a.substr(6);$('.pics > div[id*="image-div-"]:not(.hide)').addClass("hide");$("#image-div-"+a).removeClass("hide");$("#p_sub-items > ul > li:.current").removeClass("current");$("#thumb-"+a).parent().addClass("current");return false})})};