﻿/*分享函数，供flash调用*/

/*分享到QQ空间*/
function shareToQQ() {
    window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=' + encodeURIComponent(document.location.href));
}

/*分享到QQ微博*/
function shareToQQWb() {

    var _t = encodeURI(document.title);

    var _url = encodeURI(document.location);

    var _appkey = encodeURI("appkey"); //你从腾讯获得的appkey

    var _pic = encodeURI(''); //（列如：var _pic='图片url1|图片url2|图片url3....）

    var _site = ''; //你的网站地址

    var _u = 'http://v.t.qq.com/share/share.php?title=' + _t + '&url=' + _url + '&appkey=' + _appkey + '&site=' + _site + '&pic=' + _pic;

    window.open(_u);

}

/*分享到新浪微博*/

function shareToSina() {
    window.open('http://v.t.sina.com.cn/share/share.php?title=' + encodeURIComponent(document.title.substring(0, 76)) + '&url=' + encodeURIComponent(location.href) + '&rcontent=');
}

/*分享到豆瓣*/
function shareToDouBan() {
    window.open('http://www.douban.com/recommend/?url=' + encodeURIComponent(document.location.href) + '&title=' + encodeURIComponent(document.title));
}

/*分享到人人网*/
function shareToRenRen() {
    window.open('http://share.renren.com/share/buttonshare.do?link=' + encodeURIComponent(document.location.href) + '& title=' + encodeURIComponent(document.title));
}

/*分享到开心网*/
function shareToKaixin() {
    window.open('http://www.kaixin001.com/repaste/share.php?rtitle=' + encodeURIComponent(document.title) + '& rurl=' + encodeURIComponent(document.location.href) + '&rcontent=');
}

