jQuery(document).ready(function($){if(($.browser.msie)&&($.browser.version=="6.0")){var css='width:100%;height:38px;line-height:38px;text-align:center;color:#4B4D52;font-size:16px;background:#ACB1BE url(http://livesino.net/wp-content/themes/h/images/ie6.png) repeat-x;';$('#h').before('<div id="ie6" style="'+css+'">您正在使用 Internet Explorer 6 访问本博客。点击此处了解如何改进浏览体验。</div>');$('#main').css('background-position','center 38px');}
$("#content img").lazyload({threshold:200,effect:"fadeIn"});$("a[rel=ignition]").colorbox({transition:'elastic',opacity:0.65,current:""}).hover(function(){$(this).append('<div id="cboxZoom"></div>');var i=$(this).find("img")
var ol=i.offset().left+i.width()-13;var ot=i.offset().top-10;$("#cboxZoom").css({left:ol,top:ot});},function(){$(this).find("div:last").remove();});$("body").keydown(function(event){if(event.keyCode=='192'){$("input.search-input").focus();}});if($("#comments").length>0){$("#commentlist li").each(function(){var g=$(this).find("ul.children li .comment-content");$(this).find(".comment-reply-link:first").clone().appendTo(g);});$("#commentlist a.comment-reply-link").click(function(){var rename=$(this).parents(".comment-content").find(".comment-author-name").text();var reid='"#comment-'+$(this).parents(".comment-content").find(".comment-id").text()+'"';$("#comment").append("&lt;a href="+reid+"&gt;@"+rename+"&lt;/a&gt;&nbsp;").focus();});$("#cancel-comment-reply-link").click(function(){$("#comment").empty();});$("#comment").keydown(function(event){if(event.keyCode=='13'&&event.ctrlKey){$("#submit").click();}});}
if($("#loading").length>0){$(".kudos-post h4").each(function(){var nav=$(this).text();var title=$(this).attr("id");$(".kudos-nav ul").append("<li><a href='javascript:void(0);' rel='#"+title+"'>"+nav+"</a></li>");});$("#loading").remove();}
if($(".kudos-frame-left").length>0){$(window).scroll(function(){var g=$(window).scrollTop();var p=g;var o=0;if(g>130){p=g-100;}
$(".kudos-frame-left").animate({top:p+"px"},{duration:1000,queue:false});if(g>250){o=g-250;}});$("#search-focus").click(function(){$("input.search-input").focus();});}
$("a[rel*=#]").click(function(){var i=$(this).attr("rel");var c=$(i).offset().top;$("html,body").animate({scrollTop:c},1000);});});addComment={moveForm:function(d,f,i,c){var m=this,a,h=m.I(d),b=m.I(i),l=m.I("cancel-comment-reply-link"),j=m.I("comment_parent"),k=m.I("comment_post_ID");if(!h||!b||!l||!j){return}
m.respondId=i;c=c||false;if(!m.I("wp-temp-form-div")){a=document.createElement("div");a.id="wp-temp-form-div";a.style.display="none";b.parentNode.insertBefore(a,b)}
h.parentNode.insertBefore(b,h.nextSibling);if(k&&c){k.value=c}
j.value=f;l.style.display="";l.onclick=function(){var n=addComment,e=n.I("wp-temp-form-div"),o=n.I(n.respondId);if(!e||!o){return}
n.I("comment_parent").value="0";e.parentNode.insertBefore(o,e);e.parentNode.removeChild(e);this.style.display="none";this.onclick=null;return false};try{m.I("comment").focus()}catch(g){}
return false},I:function(a){return document.getElementById(a)}};
