var lang = {
YUS:'Yus Reader',
SHARE:'Share',
LIKE:'Like',
DISLIKE:'Dislike',
NEW_CH:'New Channel',
DEF_CH_NAME:'Another new channel',
NOT_CH:'it is not a channel',
NEW_TAB:'New Tab',
CHK_FEED:'Please check the feed is valid',
OK_SHARE:'you have success share news to your friends',
SHARE_BLOG:'Share Blog with friends',
INVITE_FRI:'Invite friends to joing YusReader',
RECOMMENT_YUS:'Want to know my personal fever blogs? Come visit Yus-Reader http://yusreader.com , you will know me more. Cool Blog reader!',
SHARE_DESC:'Want to know what all your friends are reading? Want to know deeper about your friends? Want to share more? See how Yus Reader can do for you.',
SEE_FRI_BLOG:"See friend's blog list",
ADD_FEED:'Add Feed',
CLICK_HERE:'click here',
ADD_NEW_TAB:'Add New Tab',
EDIT:'Edit',
DEL:'Delete',
NUM_FRI:' friends',
SEE_ALL:'see all',
FOLLOW:'Follow',
DEL_WARNING:'Delete【{0}】? This action can not be rolled back!',
NEW_BLOG_TITLE:'New Feed',
SHARE_BLOG_MSG:'I recommend {0}.',
FAIL_OPEN_BLOG_LIST:'Can not open Blog list',
SELECT_TOPIC:'Select topics you are interesting',
OK:'OK',
CANCEL:'Cancel',
CHANGE_PWD:'Change password',
OLD_PWD:'Old password',
NEW_PWD:'New password',
SEL_LANG:'Select language',
SHARE_WITH_FRI:'Share with friends',
SEL_ALL:'Select All',
SEL_NUM:'selected',
CLEAR:'Clear',
READ_MORE:'read more',
REPLY:'Replys',
NEW_POST:'New Post',
SEND_MSG:'Send message',
SEE_PROFILE:'See prifile',
MOD1:'(1)Good reading mode',
MOD2:'(3)Easy manageable mode',
MOD3:'(2)Very beautiful mode',
SEL_PAGE:'Select target page',
NO_ITEM_YET:'No item in this page yet, go create some item now!',
CMT_DEFAULT:'write a comment...',
COMMENT:'comment',
SHOW_TOTAL_COMMENT:'View all {0} comments',
DAYS_AGO:'{0} days ago',
HOURS_AGO:'{0} hours ago',
MINS_AGO:'{0} minutes ago',
SECS_AGO:'{0} seconds ago',
TIP_1: './images/user_teach.png',
MSG_ALLOW_POPUP: 'Please configure your browser to allow pop-ups from this site',
FEATURE_READER: 'open'
}; 

//date time formating
var monthMapping = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec');
var dayMapping = new Array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
function formatData(date) {
    return (undefined == monthMapping[date.getMonth()]) ? '' : dayMapping[date.getDay()]+' '+monthMapping[date.getMonth()] +' '+ date.getDate()+' '+date.getFullYear();
}