(typeof(ET) != 'undefined') || (ET = {});
ET.Community = ET.Community || {};
ET.Community.ShareThis = ET.Community.ShareThis || {};
ET.Community.ShareThis = {
Config: {
MarketCode: 'cn',
SingleCacheServer: 'http://cns2.ef-cdn.com'
},
htmlTemplate: '',
Load: function () {
var jsFileMergeHandler = '/community/_Scripts/ShareJs.aspx?ctr=cn';
var cssFileMergeHandler = 'http://cns2.ef-cdn.com/community/_Styles/social/social_share.min.css';
var cssLink = document.createElement('link');
with(cssLink) {
href = cssFileMergeHandler;
rel = 'stylesheet';
type = 'text/css';
};
if (navigator.appName == 'Microsoft Internet Explorer') {
if (parseInt(navigator.appVersion.replace(/.*?MSIE\s([\d\.]+).*/ig,"$1")) <= 6) {
document.execCommand("BackgroundImageCache", false, true);
}
}
document.getElementsByTagName('head')[0].appendChild(cssLink); document.write(ET.Community.ShareThis.htmlTemplate);
ET.Community.ShareThis.UseJiaThis(); },
UseJiaThis: function() {
if (jQuery('.jiathis:empty').share) {
jQuery('.jiathis:empty').share({ sharingUrl: 'http://www.englishlive.cn/community/article/fool.html', sharingTitle: '锛冩垜鍒氬湪Englishtown鑻辫绀惧尯鍙戠幇浜嗗ソ涓滀笢锛岀珛椹氨鎯充笌浣犲垎浜竴涓嬪搱銆傦純鎰氫汉鑺傝嫳璇拰鎰氫汉鑺傜殑鍚箟' });
}
else {
setTimeout('ET.Community.ShareThis.UseJiaThis();', 1000);
}
if (jQuery) {
jQuery(function () {
if (typeof(jiathis_config) == 'undefined') {
window.jiathis_config = {
sm: "qzone,tsina,msn,tqq,renren,kaixin001,t163,tsohu,xiaoyou,tieba,taobao,baidu",
siteNum: 12,
siteName: '鍒嗕韩鍒�...',
hideMore: true,
hsf: false,
leftLink: {
url: '#',
name: ' '
},
rightLink: {
url: '/',
name: '鏌ョ湅鏇村...'
},
data_track_clickback: true,
title: '锛冩垜鍒氬湪Englishtown鑻辫绀惧尯鍙戠幇浜嗗ソ涓滀笢锛岀珛椹氨鎯充笌浣犲垎浜竴涓嬪搱銆傦純鎰氫汉鑺傝嫳璇拰鎰氫汉鑺傜殑鍚箟',
url: 'http://www.englishlive.cn/community/article/fool.html'
};
}
if (typeof(JIATHIS_CONFIGS) == 'undefined') {
document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).setAttribute('src', '//v2.jiathis.com/code/jia.js?uid=899824');
}
});
}
},
UseCommonShare: function() {
if (typeof(shareArray) != 'undefined') {
window.switchTo5x = true;
document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).setAttribute('src', '//w.sharethis.com/button/buttons.js');
}
else {
setTimeout('ET.Community.ShareThis.UseCommonShare();', 1000);
}
},
UseCommonShareLoop: function() {
if (typeof(stLight) != 'undefined') {
stLight.options({ publisher: '15a855bd-c320-41ca-a4b6-ca3ea3e93cdc', embeds: 'true' });
var title = '锛冩垜鍒氬湪Englishtown鑻辫绀惧尯鍙戠幇浜嗗ソ涓滀笢锛岀珛椹氨鎯充笌浣犲垎浜竴涓嬪搱銆傦純鎰氫汉鑺傝嫳璇拰鎰氫汉鑺傜殑鍚箟';
var url = 'http://www.englishlive.cn/community/article/fool.html';
jQuery(".share-container > span").each(function () {
jQuery(this).attr({
st_url: url,
st_title: title
});
});
}
else {
setTimeout('ET.Community.ShareThis.UseCommonShareLoop();', 1000);
}
}
};
ET.Community.ShareThis.Load();