【新唐人2012年10月20日讯】 (美国之音电) 华盛顿 —
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = “//connect.facebook.net/zh_TW/sdk.js#xfbml=1&version=v2.10&appId=438245383020959″;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));
var dates = showDate();
var html = dates.nowDate + ‘ ‘ + dates.nowWeekDay;
document.getElementById(‘calendar’).innerHTML = html;
var switchTo5x = true;
// ShareThis Asynchronous Javascript Loading
// from https://techblog.willshouse.com/?p=5265
(function() {
// window.switchTo5x=false; // (optional)
var e = document.createElement(“script");
e.type = “text/javascript";
e.async = true;
e.onload = function() {
try {
stLight.options({
publisher : “850b283e-f25f-4a08-8e5e-fd4174d3fbd2″,
doNotHash : false,
doNotCopy : false,
hashAddressBar : false
});
} catch (e) { /* optionally do something to handle errors here */
}
}
e.src = (‘https:’ == document.location.protocol ? ‘https://ws’
: ‘http://w’)
+ ‘.sharethis.com/button/buttons.js’;
var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(e, s);
})();
var _comscore = _comscore || [];
_comscore.push({ c1: “2″, c2: “24003086″ });
(function() {
var s = document.createElement(“script"), el = document.getElementsByTagName(“script")[0]; s.async = true;
s.src = (document.location.protocol == “https:" ? “https://sb" : “http://b") + “.scorecardresearch.com/beacon.js";
el.parentNode.insertBefore(s, el);
})();
checkautonext( );
function setautonext(boxName ) {
if(boxName.checked == true) {
createCookie(“autonext","1″,100);
} else {
createCookie(“autonext","0″,100);
}
}
function checkautonext( ) {
var ccc = document.getElementById(‘auto-continue-checkbox’);
if (ccc !== null && ccc != undefined) {
if(readCookie(“autonext")=="1″){
ccc.checked=true;
} else if(readCookie(“autonext")=="0″){
ccc.checked=false;
} else {
ccc.checked=true;
}
}
}
function createCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = “; expires="+date.toGMTString();
}
else var expires = “";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + “=";
var ca = document.cookie.split(‘;’);
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function eraseCookie(name) {
createCookie(name,"",-1);
}
document.cookie="jwplayer.mute=false;expires=Thu, 18 Dec 2000 12:00:00 GMT; path=/";
document.cookie="jwplayer.volume=50;expires=Thu, 18 Dec 2000 12:00:00 GMT; path=/";
var _sf_startpt=(new Date()).getTime()
var _sf_async_config = _sf_async_config || {};
/** CONFIGURATION START **/
_sf_async_config.uid = 57227;
_sf_async_config.domain = ‘ntdtv.com’;
_sf_async_config.useCanonical = true;
_sf_async_config.sections = ‘203’; //CHANGE THIS
_sf_async_config.authors = ‘voa’; //CHANGE THIS
/** CONFIGURATION END **/
(function() {
function loadChartbeat() {
window._sf_endpt = (new Date()).getTime();
var e = document.createElement(‘script’);
e.setAttribute(‘language’, ‘javascript’);
e.setAttribute(‘type’, ‘text/javascript’);
e.setAttribute(‘src’, ‘//static.chartbeat.com/js/chartbeat.js’);
document.body.appendChild(e);
}
var oldonload = window.onload;
window.onload = (typeof window.onload != ‘function’) ?
loadChartbeat : function() {
oldonload();
loadChartbeat();
};
})();