﻿//CustomHTML Begin
var CustomHTML = '';
//CustomHTML End
//Configs Begin
var AfAuthor = 'VIVI';
var BfBulletin = 'MISS-DORA';
var CfEmail = 'xieweibaba@hotmail.com';
var EfSubTitle = 'Vivi';
var FfTheme = 'shiho';
var GfTitle = 'MISS DORA';
var HfCounterScript = '';
//Configs End
//Status Begin
var Writings=64;
var Reviews=146;
var Trackbacks=0;
//Status End
//LatestReviews Begin
var LatestReviews = new Array(  
'<li class="mli">ah+ree: <a href="'+Path+'life/p40.html#Review"  title="Reviewing...">Reviewing...</a></li>',
'<li class="mli">ah ree: <a href="'+Path+'about_vivi/p13.html#Review"  title="Reviewing...">Reviewing...</a></li>',
'<li class="mli">milk++: <a href="'+Path+'people/p64.html#Review"  title="我也很喜欢她！还有她哥哥！">我也很喜欢她！还有她哥哥！</a></li>',
'<li class="mli">YY: <a href="'+Path+'people/p64.html#Review"  title="更新来点动力啊。。。。。。。">更新来点动力啊。。。。。。。</a></li>',
'<li class="mli">milk++: <a href="'+Path+'about_vivi/p62.html#Review"  title="很就没有开腔......实在忍不住问：为何您更新那么慢.：p">很就没有开腔......实在忍不住问：为何您更新那么慢.：p</a></li>');//LatestReviews End
//Directories Begin
var Directories = new Array(  
new Directory('about_vivi/index.html','About vivi',13,'about_vivi'),
new Directory('design/index.html','Design',1,'design'),
new Directory('art/index.html','Art',1,'art'),
new Directory('life/index.html','Life',29,'life'),
new Directory('moive/index.html','Movie',1,'moive'),
new Directory('music/index.html','Music',3,'music'),
new Directory('fashion/index.html','Fashion',2,'fashion'),
new Directory('food/index.html','Food',0,'food'),
new Directory('miss_dora/index.html','MISS Dora',6,'miss_dora'),
new Directory('people/index.html','People',0,'people'));//Directories End
//Menologies Begin
var Menologies = new Array(  
new Menology('2007-06',3,'2007-06.html'),
new Menology('Index &amp; Tags',-1,'index.html'));//Menologies End
//Resources Begin
var Resources = new Array( );//Resources End
//Specials Begin
var Specials = new Array(  
new Special('2009-11-26','about_vivi/p62.html','MISS DORA in UABAN'),
new Special('2009-11-3','life/p61.html','天凉了'),
new Special('2009-9-16','fashion/p60.html','Travell to 70s'),
new Special('2009-7-22','life/p59.html','值得纪念的时刻（人人都朝天上看）'),
new Special('2009-7-18','life/p58.html','收获Ⅰ'),
new Special('2009-7-14','people/p57.html','面孔Ⅰ—Yulia Kharlapanova'),
new Special('2009-6-27','life/p56.html','世隔叁年的相聚'),
new Special('2009-4-29','fashion/p55.html','秀上的聚会'),
new Special('2009-3-30','about_vivi/p54.html','我回来了'),
new Special('2009-1-7','moive/p53.html','《大狗民》在都市中每个人都有机会长出属于自己的尾巴'),
new Special('2008-12-25','life/p52.html','平安之夜'),
new Special('2008-11-29','life/p51.html','The wedding'),
new Special('2008-10-29','art/p50.html','怀念'),
new Special('2008-10-20','life/p49.html','从越南而来'),
new Special('2008-10-5','about_vivi/p48.html','假日归来'),
new Special('2008-9-10','life/p47.html','关于旅行'),
new Special('2008-8-16','life/p46.html','又是分别'),
new Special('2008-7-23','life/p45.html','一碗大沙拉'),
new Special('2008-7-12','life/p44.html','一张黑白照片'),
new Special('2008-6-30','life/p43.html','报道'),
new Special('2008-5-19','life/p42.html','2008.5.19---21全国同哀悼'),
new Special('2008-5-17','life/p41.html','情系震区，尽己薄力'),
new Special('2008-5-1','life/p40.html','动漫展'),
new Special('2008-3-31','life/p39.html','Three Nice Days'),
new Special('2008-3-9','about_vivi/p38.html','时光'),
new Special('2008-2-19','miss_dora/p37.html','我是五好少先队员'),
new Special('2008-2-14','about_vivi/p36.html','新年快乐'),
new Special('2008-2-3','life/p35.html','一整夜雪后的今天'),
new Special('2008-1-30','life/p33.html','大雪'),
new Special('2008-1-14','life/p32.html','又下雪了'),
new Special('2008-1-9','music/p31.html','让某个夜晚也来点民谣'),
new Special('2008-1-6','miss_dora/p30.html','奇妙的幻想'),
new Special('2008-1-4','life/p29.html','2007.12.30-------2008.1.1迎接新年到来'),
new Special('2007-12-24','life/p28.html','Merry christmas to my friends'),
new Special('2007-12-13','about_vivi/p27.html','Forever Like Red'),
new Special('2007-12-6','about_vivi/p26.html','此时的念头'),
new Special('2007-12-5','life/p25.html','感受不一样的生日聚餐'),
new Special('2007-11-28','life/p24.html','幸福的婚礼'),
new Special('2007-11-12','fashion/p23.html','STREET BOOK'),
new Special('2007-10-22','music/p22.html','离开地球表面,和你们一起私奔到月球'),
new Special('2007-10-20','life/p21.html','We are together'),
new Special('2007-10-11','life/p20.html','每当变幻时'),
new Special('2007-10-8','life/p19.html','杭州百年一遇的水灾'),
new Special('2007-9-18','miss_dora/p18.html','无论怎样还是很开心'),
new Special('2007-9-5','life/p17.html','He can not be relied upon'),
new Special('2007-8-29','about_vivi/p16.html','想说点什么'),
new Special('2007-8-27','about_vivi/p15.html','Happy birthday,朋友（忡）'),
new Special('2007-8-21','about_vivi/p14.html','Please dont mind at all'),
new Special('2007-8-18','about_vivi/p13.html','无题'),
new Special('2007-8-13','miss_dora/p12.html','Magazine No.4拍摄花絮'),
new Special('2007-8-11','about_vivi/p11.html','无题'),
new Special('2007-8-7','music/p10.html','I like these voice'),
new Special('2007-8-4','life/p9.html','OK,就这样'),
new Special('2007-7-26','about_vivi/p8.html','对他们说'),
new Special('2007-7-22','life/p7.html','我们是一群XX份子'),
new Special('2007-7-1','life/p6.html','镜头'),
new Special('2007-6-24','life/p5.html','Miss you'),
new Special('2007-6-21','design/p4.html','70/80香港新生代设计人展'),
new Special('2007-6-20','about_vivi/p3.html','属于我的6.18'),
new Special('2007-6-19','miss_dora/p2.html','惬意的一天'),
new Special('2007-6-13','miss_dora/p1.html','值得纪念的日子'));//Specials End
var Months = new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
var YunY_Calendar = "";
var Now = new Date();
var When = new Date( Now.getFullYear(),Now.getMonth(),1);
var Special ="-";
function FindSpecial(SpecialDate){for(var i=0;i<Specials.length;i++){if(Specials[i].UpdateDate==SpecialDate){return i;}}return -1;}
function setMonthYear(){YunY_Calendar.rows[0].cells[1].innerHTML=Months[When.getMonth()]+" "+When.getFullYear();for(var i=0;i<6;i++)for(var j=0;j<7;j++){YunY_Calendar.rows[2+i].cells[j].innerHTML="";}for(var i=0;i<6;i++)for(var j=0;j<7;j++){if(  (i*7+j-When.getDay()+1)>0 && (i*7+j-When.getDay()+1)<=(32-(new Date( When.getFullYear(),(When.getMonth()),32)).getDate()) ){if(FindSpecial(When.getFullYear()+"-"+(When.getMonth()+1)+"-"+(i*7+j-When.getDay()+1))>-1){YunY_Calendar.rows[2+i].cells[j].innerHTML="<a href='"+Path+Specials[FindSpecial(When.getFullYear()+"-"+(When.getMonth()+1)+"-"+(i*7+j-When.getDay()+1))].LinkID+"' title='"+Specials[FindSpecial(When.getFullYear()+"-"+(When.getMonth()+1)+"-"+(i*7+j-When.getDay()+1))].Abstract+"' ><span class='tdStrong'>"+(i*7+j-When.getDay()+1)+"</span></a>";}else{YunY_Calendar.rows[2+i].cells[j].innerHTML=i*7+j-When.getDay()+1;}}}if((Now.getMonth()==When.getMonth())&&(Now.getFullYear()==When.getFullYear())){YunY_Calendar.rows[2+Math.floor((Now.getDate()+When.getDay()-1)/7)].cells[Now.getDay()].innerHTML="<font color='red'>"+Now.getDate()+"</font>";}}
function PreviousMonth(){if((When.getMonth()-1)<0){When = new Date( When.getFullYear()-1,(When.getMonth()+11)%12,1);}else{When = new Date( When.getFullYear(),(When.getMonth()+11)%12,1);}setMonthYear();}
function NextMonth(){if((When.getMonth()+1)>11){When = new Date( When.getFullYear()+1,(When.getMonth()+1)%12,1);}else{When = new Date( When.getFullYear(),(When.getMonth()+1)%12,1);}setMonthYear();}
function Directory(ID,Name,Quantity,Alias){this.ID=ID;this.Name=Name;this.Quantity=Quantity;this.Alias=Alias;}
function Menology(Name,Quantity,LinkID){this.Name=Name;this.Quantity=Quantity;this.LinkID=LinkID;}
function Special(UpdateDate,LinkID,Abstract){this.UpdateDate=UpdateDate;this.LinkID=LinkID;this.Abstract=Abstract;}
function DeleteReviewLink(ReviewID){if (getCookie("blogviviYunY")!=""){document.write('<a href="'+Path+'Process/ReviewDelete.asp?ID='+ReviewID+'">Delete</a>');}}
function DeleteReviewLink(ID){if (getCookie("blogviviYunY")!=""){document.write('<a href="'+Path+'Process/ReviewDelete.asp?ID='+ID+'">Delete</a>');}}
function indexOfD(dir){for(var i=0;i<Directories.length;i++){if(('/'+Directories[i].ID).indexOf('/'+dir+'/index.')==0)return i;}return -1;}
function E(ID){return document.getElementById(ID);}
function OKReviewLink(ID){if (getCookie("blogviviYunY")!=""){document.write('<a href="'+Path+'process/reviewaction.asp?id='+ID+'">OK?</a>');}}
function ShowReviewLink(ID){if (getCookie("blogviviYunY")!=""){document.write('<a href="'+Path+'process/reviewaction.asp?id='+ID+'">Show</a>');}}
function HideReviewLink(ID){if (getCookie("blogviviYunY")!=""){document.write('<a href="'+Path+'process/reviewaction.asp?a=hide&id='+ID+'">Hide</a> ');}}
function EditLink(WritingID){document.write(' <span style="cursor:pointer" onclick="if(document.getElementById(\'reviews\').style.display!=\'none\') {document.getElementById(\'reviews\').style.display=\'none\';document.reviewform.author.focus();} else document.getElementById(\'reviews\').style.display=\'block\';">[<strong>Review</strong>]</span>'); if (getCookie("blogviviYunY")!=""){document.write(' <a href="'+Path+'process/writingedit.asp?id='+WritingID+'">[Edit]</a>');}}
function Quote(ID){var qstr = document.getElementById('C'+ID).innerHTML.replace(/<.*?>/g,'').replace(/\[.*\]/g,''); if(qstr.length>10)qstr = qstr.substring(0,10) +'...'; document.reviewform.content.value+= '['+document.getElementById('A'+ID).innerHTML+':'+qstr+']\r\n'; document.reviewform.content.focus();}
function WriteDirectories(){document.write('<ul class="mul">');for(var i=0;i<Directories.length;i++){document.write('<li class="mli"><a href="'+Path+Directories[i].ID+'">'+Directories[i].Name+'</a> ['+Directories[i].Quantity+']</li>');}document.write('</ul>');}
function WriteResources(){document.write('<ul class="mul">');for(var i=0;i<Resources.length;i++){document.write(Resources[i]);}document.write('</ul>');}
function WriteMenologies(){document.write('<ul class="mul">');for(var i=0;i<Menologies.length;i++){document.write('<li class="mli"><a href="'+Path+'m/'+Menologies[i].LinkID+'">'+Menologies[i].Name+'</a>'+(Menologies[i].Quantity>-1?' ['+Menologies[i].Quantity+']':'')+'</li>');}document.write('</ul>');}
function WriteLastestReviews(){document.write('<ul class="mul">');for(var i=0;i<LatestReviews.length;i++){document.write(LatestReviews[i]);}document.write('</ul>');}
function ResizeImg(imgID){if(imgID.width>500)imgID.width=500;}
function getCookie(arg_CookieName){fromN=document.cookie.indexOf(arg_CookieName+"=")+0;if((fromN)!=-1){		fromN+=arg_CookieName.length+1;	toN=document.cookie.indexOf(";",fromN)+0;	if(toN==-1){			toN=document.cookie.length}	return unescape(decodeURI(document.cookie.substring(fromN,toN)))	}	return ""	}
