//last modified 2017-06-15 17:40:41
function getid(d){return document.getElementById(d)}
function gettag(o,t){return o.getElementsByTagName(t)}
function _lowercase(o){return o.toString().toLowerCase()}
function _middle(o,l,r){return (o.split(l)[1])?o.split(l)[1].split(r)[0]:''}
function _leftback(o,n){return o.substr(0,n)}
function _rightback(o,n){return o.substr(o.length-n,n)}
function dw(c){document.write(c)}
var spacer='
';
var _timezones=28800000;
var lastmodified=new Date('2016-11-10 18:09:58'.replace(/-/ig,'/')).getTime();
var mgrlink=false;
var uris=_lowercase(document.URL);
var baseURI=new Array();
baseURI['home']='http://www.nutrition.org.tw/';
baseURI['content']=baseURI['home']+'contentbypermalink';
baseURI['css']=baseURI['home']+'css';
baseURI['js']=baseURI['home']+'js';
baseURI['media']=baseURI['home']+'media';
baseURI['download']=baseURI['home']+'download';
function qsp(p){return _middle(uris+'&','&'+p+'=','&')}
function loadjs(s){
upd=(s.split('comment').length>1)?new Date().getTime():lastmodified;
upd='&upd='+upd
dw('<'+'script src="'+s+upd+'"><'+'/script>')}
function addToFavorite(){
if((navigator.appVersion.indexOf("MSIE")>0) && (parseInt(navigator.appVersion)>=4)){
window.external.AddFavorite(baseURI['home'],this.document.title)}}
function asmt(n,d){location.href='mailto:'+n+'@'+d}
var dbwr=_lowercase(navigator.appName);
var isie=(dbwr=='microsoft internet explorer');
var isff=(dbwr=='netscape');
var isother=(!isie && !isff);
ishome=(typeof ishome=='undefined')?false:ishome
var isview=(uris.split('openview').length>1||ishome);
var isdoc=(uris.split('contentbypermalink').length>1);
var issrch=(uris.split('searchview').length>1);
var ispreview=(uris.split('preview').length>1);
viewtitle=uris.split('/')[uris.split('/').length-1].split('.php')[0]+'.php'
_start=(qsp('start')=='')?1:qsp('start');
_count=(qsp('count')=='')?10:qsp('count');
_catid=qsp('catid');
_category=(_catid=='')? '':'&catid='+_catid;
function status(s,e){s=s.replace(/-/ig,'/');e=e.replace(/-/ig,'/');
var dt=new Date().getTime();
var sd=new Date(s).getTime();
var ed=new Date(e).getTime();
pub=(sd < dt && ed > dt)
return pub}
var archiveBymonth=['1969_12','2006_04','2006_06','2006_09','2006_11','2007_01','2007_06','2007_11','2008_04','2008_08','2008_10','2009_04','2009_05','2009_06','2009_07','2009_08','2009_09','2009_11','2009_12','2010_02','2010_03','2010_04','2010_07','2010_09','2010_11','2011_01','2011_03','2011_04','2011_06','2011_07','2011_08','2011_09','2011_12','2012_02','2012_04','2012_05','2012_06','2012_07','2012_08','2012_10','2012_11','2012_12','2013_01','2013_02','2013_03','2013_04','2013_05','2013_06','2013_07','2013_08','2013_09','2013_10','2013_11','2013_12','2014_01','2014_02','2014_03','2014_04','2014_05','2014_06','2014_07','2014_08','2014_09','2014_10','2014_11','2014_12','2015_01','2015_02','2015_03','2015_04','2015_05','2015_06','2015_07','2015_08','2015_09','2015_10','2015_11','2015_12','2016_01','2016_02','2016_03','2016_04','2016_05','2016_06','2016_07','2016_08','2016_09','2016_10','2016_11','2016_12','2017_01','2017_02','2017_03','2017_04','2017_05','2017_06'].reverse();
function sharchives(){
o=gettag(getid('Archives'),'select')[0];
o.disabled=false;
o.options[0]=new Option(calendar_mon[today.getMonth()]+', '+thisyear,'')
if(archiveBymonth.length > 0 && archiveBymonth[0].length>6){
for(i=0;i < archiveBymonth.length;i++){
D=archiveBymonth[i].split('_');var yr=D[0];var mn=D[1]
sv=baseURI['home']+'contentbymonth.php?openview&catid=' + archiveBymonth[i];
st=calendar_mon[eval(mn-1)] + ', ' + yr;
o.options[i]=new Option(st,sv,0,(archiveBymonth[i]==_catid))}}}
var _permalink='';var _images=[];var _attachments=[];var _created='';var _modified='';var _pubdate='';var _subject='';var _iscomment='n';
var today=new Date();
var thisyear=(today.getYear() < 1900)? 1900+today.getYear():today.getYear();
var thismon=_rightback('00'+(today.getMonth()+1),2)
var navdate=(_catid.length>10||_catid=='')?thisyear+'_'+thismon:_catid
var calendar_mon=["January","February","March","April","May","June","July","August","September","October","November","December"]
mon_jan='01';mon_feb='02' ;mon_mar='03';mon_apr='04';
mon_may='05';mon_jun='06';mon_jul='07';mon_aug='08';
mon_sep='09';mon_oct='10';mon_nov='11';mon_dec='12';
function shcalendar(){
var dow=new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
var dsow=7;var dsom=31;var cal='
| S | M | T | W | T | F | S |
|---|
';
profilestr['navnext']='
';
profilestr['commentinner']='comment?';
profilestr['commenttitle']='Reader Comments';
profilestr['authortitle']=' ';
profilestr['updatetitle']='last modified:';
profilestr['more']='more ››';
profilestr['postcommenttitle']='| '+ profilestr['myattachment']+ ' |
'
for(i=0;i < atts.length;i++)
{
_a+=' '+decodeURIComponent(atts[i])+'' } _a+=' |
| '+ profilestr['myphoto']+' |
| ':'>'
for(i=0;i < pics.length;i++)
{
_p+=' ' } _p+=' |
';
_twitter=' ';
_fb=''
dw('