﻿//Status Begin
var Writings=29;
var Reviews=16;
var Trackbacks=0;
//Status End
//LatestReviews Begin
var LatestReviews = new Array(  
'<li>yj2k: <a href="'+Path+'sem/suixin-seo-start.html#r16i"  title="Reviewing...">Reviewing...</a></li>',
'<li>filalu: <a href="'+Path+'sem/adwords-spam.html#r15i"  title="Reviewing...">Reviewing...</a></li>',
'<li>mimi: <a href="'+Path+'sem/eb-ants.html#r14i"  title="Reviewing...">Reviewing...</a></li>',
'<li>mimi: <a href="'+Path+'sem/eb-ants.html#r13i"  title="Reviewing...">Reviewing...</a></li>',
'<li>Guest# 36: <a href="'+Path+'sem/eb-ants.html#r12i"  title="Reviewing...">Reviewing...</a></li>',
'<li>初学者: <a href="'+Path+'sem/otherseo1.html#r11i"  title="来学习了哦">来学习了哦</a></li>',
'<li>随心: <a href="'+Path+'sem/jianfeizhu.html#r10i"  title="“你们谷歌公司”我汗。 网页快照也可以在谷歌网站管理员工具中删除。详情看官方博客。">“你们谷歌公司”我汗。 网页快照也可以在谷歌网站管理员工具中删除。详情看官方博客。</a></li>',
'<li>随心: <a href="'+Path+'sem/google-search-quality-team-.html#r9i"  title="呵呵，程序作者大驾光临。荣幸啊。">呵呵，程序作者大驾光临。荣幸啊。</a></li>');//LatestReviews End
//Directories Begin
var Directories = new Array(  
new Directory('sem/index.html','sem',23,'sem'),
new Directory('tour/index.html','游记',2,'tour'),
new Directory('guanli/index.html','管理',2,'guanli'),
new Directory('baidu/index.html','百度SEO',2,'baidu'));//Directories End
//Menologies Begin
var Menologies = new Array(  
new Menology('2009-11',1,'2009-11.html'),
new Menology('2009-03',1,'2009-03.html'),
new Menology('2008-08',1,'2008-08.html'),
new Menology('2008-06',2,'2008-06.html'),
new Menology('2008-05',8,'2008-05.html'),
new Menology('2008-04',4,'2008-04.html'),
new Menology('2008-03',2,'2008-03.html'),
new Menology('2008-01',1,'2008-01.html'),
new Menology('2007-12',2,'2007-12.html'),
new Menology('2007-11',1,'2007-11.html'),
new Menology('2007-10',2,'2007-10.html'),
new Menology('2007-09',2,'2007-09.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-6','sem/black-hat-seo-adwords.html','过度SEO优化对adwords广告质量得分也有影响'),
new Special('2009-11-25','sem/google-vip-adwords.html','谷歌VIP客户沙龙adwords笔记'),
new Special('2008-8-20','sem/eb-ants.html','京东商城蚂蚁工坊案例分析-如何做好电子商务网站'),
new Special('2008-6-22','sem/google-adsense-error.html','Google AdSense 网站无法访问出现多语言提示 20080622凌晨'),
new Special('2008-6-19','guanli/google-adwords-discount.html','谷歌广告专家们开始重视直接客户'),
new Special('2008-5-28','baidu/liyanhong.html','李彦宏语录-摘抄自百度联盟三届峰会'),
new Special('2008-5-26','sem/keywords-discuz.html','关键词竞争程度参数讨论'),
new Special('2008-5-23','sem/adwords-spam.html','adwords广告投放中遇到的奇怪问题'),
new Special('2008-5-21','sem/how-to-sem.html','如何做好搜索营销'),
new Special('2008-5-13','sem/otherseo2.html','八方解码-让随心告诉你鲜为人知的SEO新应用之二互联网危机公关'),
new Special('2008-5-11','sem/otherseo1.html','八方解码SEO——让随心告诉你鲜为人知的SEO新应用（一）'),
new Special('2008-4-18','sem/aboutzhanqun.html','关于GOOGLE收录和SEO站群的讨论'),
new Special('2008-4-13','sem/googlebot.html','搜索引擎爬虫网站日志与SEO研究'),
new Special('2008-4-4','sem/sem2.html','易点网络提供的中级网络营销服务'),
new Special('2008-3-29','guanli/core-of-management.html','管理的核心问题是时间'),
new Special('2008-3-26','sem/google-search-quality-team-.html','Google Search Quality Team 的信'),
new Special('2008-1-12','sem/oversea.html','企业如何进行海外推广'),
new Special('2007-12-22','sem/silverlightseo.html','视频也能SEO！微软Silverlight正在推广.'),
new Special('2007-12-10','sem/sth-about-maketing.html','杂谈营销——给HELEN的信'),
new Special('2008-3-4','sem/how_to_seo.html','SEO简明教程'),
new Special('2007-10-10','sem/google-to-webmaster.html','谷歌和网站管理员的直接沟通'),
new Special('2008-5-27','sem/jianfeizhu.html','谷歌中文管理员博客博主回复整理以及随心点评（080527）'),
new Special('2007-9-18','sem/p4.html','网站建设中如何为以后的网站优化打基础'),
new Special('2007-7-25','tour/yn_dali.html','苍山与洱海之间，天龙八部与大理古城 （昆明-大理-丽江-香格里拉，云南自助游攻略之二）'),
new Special('2008-3-27','tour/yn_kunming.html','目标，彩云之南!（昆明-大理-丽江-香格里拉，云南自助游攻略之二）'));//Specials End
//RandomWritings Begin
var RandomWritings =             new Array(  
'<li><a href="../sem/alt-vs-text.html">图片链接=文字链接？</a></li>'       ,
'<li><a href="../sem/oversea.html">企业如何进行海外推广</a></li>'       ,
'<li><a href="../sem/p4.html">网站建设中如何为以后的网站优化打基础</a></li>'       ,
'<li><a href="../baidu/liyanhong.html">李彦宏语录-摘抄自百度联盟三届峰会</a></li>'       ,
'<li><a href="../sem/sem2.html">易点网络提供的中级网络营销服务</a></li>'       ,
'<li><a href="../baidu/baiduseo.html">百度SEO为啥难做</a></li>'       ,
'<li><a href="../sem/silverlightseo.html">视频也能SEO！微软Silverlight正在推广.</a></li>'       ,
'<li><a href="../sem/keywords-discuz.html">关键词竞争程度参数讨论</a></li>'       );//RandomWritings End
//LastUpdateDate Begin
var LastUpdateDate=20091125;
//LastUpdateDate 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,AllowReview){if(AllowReview==1){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(/<.*?>/mg,'').replace(/\[.*\]/mg,''); if(qstr.length>10)qstr = qstr.substring(0,10) +'...'; document.reviewform.content.value+= '['+document.getElementById('A'+ID).innerHTML.replace(/<.*?>/mg,'')+':'+qstr+']\r\n'; document.reviewform.content.focus();}
function WriteDirectories(){document.write('<ul class="mul" id="muldirectories">');for(var i=0;i<Directories.length;i++){document.write('<li><a href="'+Path+Directories[i].ID+'">'+Directories[i].Name+'</a> <span class="smallfont">['+Directories[i].Quantity+']</span></li>');}document.write('</ul>');}
function WriteResources(){document.write('<ul class="mul" id="mulresources">');for(var i=0;i<Resources.length;i++){document.write(Resources[i]);}document.write('</ul>');}
function WriteMenologies(){document.write('<ul class="mul" id="mulmenologies">');for(var i=0;i<Menologies.length;i++){document.write('<li><a href="'+Path+'m/'+Menologies[i].LinkID+'">'+Menologies[i].Name+'</a>'+(Menologies[i].Quantity>-1?' <span class="smallfont">['+Menologies[i].Quantity+']</span>':'')+'</li>');}document.write('</ul>');}
function WriteLastestReviews(){document.write('<ul class="mul" id="mullatestreviews">');for(var i=0;i<LatestReviews.length;i++){document.write(LatestReviews[i]);}document.write('</ul>');}
function WriteRandomWritings(){document.write('<ul class="mul" id="mulrandomwritings">');for(var i=0;i<RandomWritings.length;i++){document.write(RandomWritings[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 ""	}
function Search(event,oInput){var keyCode=(event)?event.keyCode:keyStroke.which;if(keyCode==13){top.location=Path+"Process/Search.asp?Keywords="+oInput.value;return false;}return true;}function Search2(oInputId){var oInput=document.getElementById(oInputId);top.location=Path+"Process/Search.asp?Keywords="+oInput.value;return false;}
function Showdadv(){if(document.getElementById('dadv').style.display=='none'){document.getElementById('dadv').style.display='inline';document.getElementById('code').src='../process/code.asp';}}
function LoadLastUser(){if((getCookie('YunYNickName')!='')&&(getCookie('YunYHomePage')!='')){document.reviewform.author.value=getCookie('YunYNickName');document.reviewform.link.value=getCookie('YunYHomePage');}}
function CheckSearchCache(key,N){if(LastUpdateDate==0) return; if(LastUpdateDate>N) location.href='../process/search.asp?keywords='+key;}
function MenologiesChart(){var maxy = 0;	var total = 12;	for(var i=Menologies.length-2;(i>-1 && i>Menologies.length-2-total);i--){	if(Menologies[i].Quantity>maxy) maxy=Menologies[i].Quantity;	}	 	var width = parseInt((Menologies.length-1)*45); 	var height = 100; 	var chd=""; 	var xl = ""; 	var chm=""; 	 	var t = 0; 	var totalv=0; 	for(var i=Menologies.length-2;(i>-1 && i>Menologies.length-2-total);i--){ 		var v = parseFloat(Menologies[i].Quantity*100/maxy).toFixed(4); 		chd +=v+','; 		xl +=Menologies[i].Name+'|'; 		chm +='o,FF9900,0,'+(Menologies.length-2-i)+',5.0|'; 		t++; 		totalv = totalv+parseFloat(Menologies[i].Quantity*100/maxy); 	} 	totalv = totalv/t/100; 	chm = 'h,dddddd,0,'+totalv.toFixed(4)+',1|'+chm; 	  	 	if(chd.length>0) chd = chd.substring(0,chd.length-1); 	if(xl.length>0) xl = xl.substring(0,xl.length-1);	 	if(chm.length>0) chm = chm.substring(0,chm.length-1); 	 	 	var yl = '|'+maxy/2+'|'+maxy; 	var chtt = 'Writings in the past months';	 	 	var url = 'http://chart.apis.google.com/chart?chs='+width+'x'+height+'&chd=t:'+chd+'&chtt='+chtt+'&chf=bg,s,f5f5f5&chm='+chm+'&cht=lc&chxt=x,y&chxl=0:|'+xl+'|1:|'+yl; 	if(t>5)document.write('<p><img src="'+url+'" /></p>');	 }function ShowCalendar(){document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" id="YunY_Calendar"><tr><td><div onclick="javascript:PreviousMonth()" style="cursor:pointer">«</div></td><td colspan="5" align="center"></td><td ><div onclick="javascript:NextMonth()" style="cursor:pointer;">»</div></td></tr><tr class="tdStrong"><td >Su</td><td >M</td><td >Tu</td><td >W</td><td >Th</td><td >F</td><td >Sa</td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td><td></td><td></td></tr></table>');YunY_Calendar=document.getElementById("YunY_Calendar");setMonthYear();}