//last modified 2008-06-06 23:58:36
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('2008-06-06 23:56:40'.replace(/-/ig,'/')).getTime();
var mgrlink=false;
var uris=_lowercase(document.URL);
var baseURI=new Array();
baseURI['home']='http://www.miniface.com/';
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=['2004_11','2004_12','2005_01','2005_02','2005_04','2005_09','2005_10','2006_08','2006_10','2006_11','2007_02'].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']='回應';
profilestr['commenttitle']='回應文章';
profilestr['authortitle']=' ';
profilestr['updatetitle']='last modified:';
profilestr['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+=' |