// JavaScript Document
var _t = encodeURI(document.title);
			var _url = encodeURIComponent(document.location);
			var _appkey = encodeURI("1092715c15c841a6bb6dc5df21f0bcca");//你从腾讯获得的appkey
			var _appkeys = encodeURI("3547642052");//你从新浪获得的appkey
			
			var _site = 'http://jeequ.com';//你的网站地址


function share_qq(){
			var _pic = encodeURI(document.getElementsByTagName("img")[0].src);
			var _u = 'http://v.t.qq.com/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic;
			window.open( _u,'转播到腾讯微博', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
		
		
function share_sina(){
			var _pic = encodeURI(document.getElementsByTagName("img")[0].src);
			var _u = 'http://service.t.sina.com.cn/share/share.php?title='+_t+'&url='+_url+'&appkey='+_appkeys+'&ralateUid=1746123387&pic='+_pic;
			window.open( _u,'转播到新浪微博', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
		
function share_kaixin(){
			
			var _u = 'http://www.kaixin001.com/repaste/share.php?rtitle='+_t+'&rurl='+_url;
			window.open( _u,'转播到开心网', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
function share_renren(){
			
			var _u = 'http://share.renren.com/share/buttonshare.do?link='+_url+'&title='+_t;
			window.open( _u,'转播到人人网', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
function share_douban(){
			
			var _u = 'http://www.douban.com/recommend/?url='+_url+'&title='+_t;
			window.open( _u,'转播到豆瓣网', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
		
function share_qqz(){
			
			var _u = 'http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url='+_url;
			window.open( _u,'转播到豆瓣网', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
		
		
function share_xianguo(){
			
			var _u = 'http://xianguo.com/service/submitfav/?link='+'&title='+_t;
			window.open( _u,'转播到鲜果', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
		
function share_163(){
			
			var _u = 'http://t.163.com/article/user/checkLogin.do?link='+_site+'&source=集趣网&info='+_t+' '+_url+'&1289489384959';
			window.open( _u,'转播到网易', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
		
	function renjian(){
			
			var _u = 'http://www.renjian.com/outside/share_link.xhtml?link='+_url+'&title='+_t;
			window.open( _u,'转播到人间网', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );
		}
		
		
$(document).ready(function(){
$(".comment-body").find("span").hide();
 $(".comment-body").mouseover(function(){
    $(this).find("span").show();
  });
  
   $(".comment-body").mouseout(function(){
    $(this).find("span").hide();
  });
  
});
function P7_colH(){
    var i,oh,hh,h=0,dA=document.p7eqc,an=document.p7eqa;if(dA&&dA.length){
    for(i=0;i<dA.length;i++){dA[i].style.height='auto';}for(i=0;i<dA.length;i++){
    oh=dA[i].offsetHeight;h=(oh>h)?oh:h;}for(i=0;i<dA.length;i++){if(an){
    dA[i].style.height=h+'px';}else{P7_eqA(dA[i].id,dA[i].offsetHeight,h);}}if(an){
    for(i=0;i<dA.length;i++){hh=dA[i].offsetHeight;if(hh>h){
    dA[i].style.height=(h-(hh-h))+'px';}}}else{document.p7eqa=1;}
    document.p7eqth=document.body.offsetHeight;
    document.p7eqtw=document.body.offsetWidth;}
    }
    function P7_eqT(){
    if(document.p7eqth!=document.body.offsetHeight||document.p7eqtw!=document.body.offsetWidth){
    P7_colH();}
    }
    function P7_equalCols(){
    if(document.getElementById){document.p7eqc=new Array;for(i=0;i<arguments.length;i++){
    document.p7eqc[i]=document.getElementById(arguments[i]);}setInterval("P7_eqT()",1);}
    }
    function P7_eqA(el,h,ht){
    var sp=1000,inc=5000,nh=h,g=document.getElementById(el),oh=g.offsetHeight,ch=parseInt(g.style.height);
    ch=(ch)?ch:h;var ad=oh-ch,adT=ht-ad;nh+=inc;nh=(nh>adT)?adT:nh;g.style.height=nh+'px';
    oh=g.offsetHeight;if(oh>ht){nh=(ht-(oh-ht));g.style.height=nh+'px';}
    if(nh<adT){setTimeout("P7_eqA('"+el+"',"+nh+","+ht+")",sp);}
    }
	
function comment_image() {
var URL = prompt('请输入图片的 URL 地址:');
if (URL) {
document.getElementById('comment').value = document.getElementById('comment').value + '<img src="' + URL + '" />';
}} 




(function($){

	$(window).scroll(function(event){

		if($(this).scrollTop() > 0){

			if($.browser.ie6){

				$('#goTopButton').css('top', $(this).scrollTop() + $(this).height() - 170);

			}

			if($('#goTopButton').css('display') == 'none'){

				$('#goTopButton').fadeIn();

			}

		}else{

			$('#goTopButton').fadeOut();

		}

	});

})(jQuery);


jQuery(document).ready(function($){	//Begin jQuery

/* 存档页面 jQ伸缩 */
 $('#expand_collapse,.archives-yearmonth').css({cursor:"pointer"});
 $('#archives ul li ul.archives-monthlisting').hide();
 $('#archives ul li ul.archives-monthlisting:first').show();
 $('#archives ul li span.archives-yearmonth').click(function(){$(this).next().slideToggle('fast');return false;});
 //以下下是全局的操作
 $('#expand_collapse').toggle(
 function(){
 $('#archives ul li ul.archives-monthlisting').slideDown('fast');
 },
 function(){
 $('#archives ul li ul.archives-monthlisting').slideUp('fast');
 });

	$('.reply').click(function() {
	var atid = '"#' + $(this).parent().attr("id") + '"';
	var atname = $(this).parent().find('cite:first').text();
	$("#comment").focus().attr("value","<a href=" + atid + ">@" + atname + " </a>");
});
	$('#cancel-comment-reply').click(function() {	//点击取消回复评论清空评论框的内容
	$("textarea#comment").val("");
});

$("span.reply").hide();
$(".comment-body").mouseover(function(){
    $(this).find("span").show();
  });
  $(".comment-body").mouseout(function(){
    $(this).find("span").hide();
  });

})	//End jQuery

window.onload=window.onresize=function(){
if(document.getElementById("right").clientHeight<document.getElementById("left").clientHeight)
{
document.getElementById("right").style.height=document.getElementById("left").offsetHeight+"px";
 }
else{
	document.getElementById("left").style.height=document.getElementById("right").offsetHeight+"px";
	}}

