﻿//CustomHTML Begin
var CustomHTML = '';
//CustomHTML End
//Configs Begin
var AfAuthor = '老罗';
var BfBulletin = '欢迎各位的光临如果你需要手机铃声和彩信图片,请访问我的主站http://www.sharexbar.com本blog主要对全球的热点经济，军事，政治做一个简单的综合，希望你能够喜欢';
var CfEmail = 'Your Email Address';
var EfSubTitle = '你喜欢吗';
var FfTheme = 'spring';
var GfTitle = '乱七八糟的黑板报';
var HfCounterScript = '<script src=\'http://s51.cnzz.com/stat.php?id=478435&web_id=478435\' language=\'JavaScript\' charset=\'gb2312\'></script>';
//Configs End
//Status Begin
var Writings=33;
var Reviews=4;
var Trackbacks=0;
//Status End
//LatestReviews Begin
var LatestReviews = new Array(  
'<li class="mli">gh: <a href="'+Path+'econmic/p13.html#Review"  title="说得不错啊">说得不错啊</a></li>',
'<li class="mli">tttt: <a href="'+Path+'econmic/p2.html#Review"  title="sdsfs">sdsfs</a></li>',
'<li class="mli">tttt: <a href="'+Path+'econmic/p2.html#Review"  title="tttt">tttt</a></li>',
'<li class="mli">gh: <a href="'+Path+'d7/p5.html#Review"  title="不参与哦">不参与哦</a></li>');//LatestReviews End
//Directories Begin
var Directories = new Array(  
new Directory('econmic/index.html','乱七八糟的世界经济',13,'econmic'),
new Directory('it/index.html','胡瞟乱写的IT世界',3,'it'),
new Directory('plc/index.html','沸沸扬扬的世界政治',0,'plc'),
new Directory('army/index.html','高深莫测的世界军事',1,'army'),
new Directory('d7/index.html','昏天黑地的现实生活',13,'d7'),
new Directory('medal/index.html','风风火火的全球媒体',1,'medal'),
new Directory('market/index.html','腥风血雨的市场竞争',2,'market'));//Directories End
//Menologies Begin
var Menologies = new Array(  
new Menology('2009-04',1,'2009-04.html'),
new Menology('2009-02',3,'2009-02.html'),
new Menology('2008-12',7,'2008-12.html'),
new Menology('2008-07',1,'2008-07.html'),
new Menology('2008-06',1,'2008-06.html'),
new Menology('2008-04',1,'2008-04.html'),
new Menology('2008-03',1,'2008-03.html'),
new Menology('2008-02',2,'2008-02.html'),
new Menology('2007-12',6,'2007-12.html'),
new Menology('2007-11',10,'2007-11.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-11','it/p51.html','信息技术与人的自由'),
new Special('2009-2-11','econmic/p50.html','寒假第三季--大山深处'),
new Special('2008-12-19','d7/p47.html','买个越南妹做老婆的理由'),
new Special('2008-12-10','d7/p45.html','对于自己的身份证被人冒用去买手机卡的完整处理流程'),
new Special('2008-12-8','d7/p42.html','川大的一个活动'),
new Special('2008-7-7','econmic/p40.html','郎咸平：向高盛宣战!'),
new Special('2008-6-3','d7/p39.html','成都电梯灵异事件'),
new Special('2008-4-7','econmic/p34.html','google sitemap在线制作工具'),
new Special('2008-3-14','d7/p31.html','Indian Mogul Tries Gamesmanship'),
new Special('2008-2-26','market/p29.html','想早超生吗？来华为吧 --成都华为员工跳楼自杀，又一个IT精英不堪压力离开了世界'),
new Special('2008-2-20','market/p26.html','东芝缴械投降 DVD行业何去何从(As Toshiba Surrenders, Whats Next For DVDs?)'),
new Special('2007-12-29','army/p21.html','小道消息：美空军中将间接证实美军F22确被我军击落'),
new Special('2007-12-14','econmic/p20.html','摩托罗拉价值几何?(What Is Motorolas Worth?)中英文双语'),
new Special('2007-12-11','econmic/p18.html','爆强男人大骂非处女'),
new Special('2007-12-4','econmic/p17.html','周正龙的老虎是假的吗'),
new Special('2007-11-29','medal/p14.html','f 15再次下令停飞'),
new Special('2007-11-28','econmic/p13.html','揭秘:抽奖拿Q币，迎奥运拿Q币之类的骗局之图铃'),
new Special('2007-11-14','it/p8.html','手机替身---VTech电话'),
new Special('2007-11-13','d7/p6.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("blogYunY")!=""){document.write('<a href="'+Path+'Process/ReviewDelete.asp?ID='+ReviewID+'">Delete</a>');}}
function DeleteReviewLink(ID){if (getCookie("blogYunY")!=""){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("blogYunY")!=""){document.write('<a href="'+Path+'process/reviewaction.asp?id='+ID+'">OK?</a>');}}
function ShowReviewLink(ID){if (getCookie("blogYunY")!=""){document.write('<a href="'+Path+'process/reviewaction.asp?id='+ID+'">Show</a>');}}
function HideReviewLink(ID){if (getCookie("blogYunY")!=""){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("blogYunY")!=""){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 ""	}
