<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<div class="header"><div>
<div id="infos"> <a href=/"#loginform/" class=/"popwin/" title=/"登录 Yo2/">LOGIN MXQ</a>
</div>
<script language="javascript">
document.getElementById("infos").innerHTML = "(<a href=/"#loginform/" class=/"popwin/" title=/"LOGIN MSQ/">LOGIN MXQ</a>)";
</script>
<div id="loginform" class="hidden">
<form method="post" name="loginform" action="http://mxq/logon/" target="_top">
</form>
</div>
</div>
</div>
</body>
<script language="javascript" src="yo2.js"></script>
</html>
function $get(element) {
return document.getElementById(element);
}
function $tag(element){
return document.getElementsByTagName(element);
}
var will_be_go = '';
var will_be_go_id = '';
function avatarButton(){
if(will_be_go.indexOf('http://') > -1)window.open(will_be_go);
else if(will_be_go == 'addFriend')yo2addfriend();
else if(will_be_go == 'sendmessage')yo2message();
will_be_go = '';
return false;
}
function parseAvatarts(){
var avatar_imgs = $tag("img");
for (var i=0; i<avatar_imgs.length; i++){
if((/*avatar_imgs[i].src.indexOf('http://avatar22.cn/') > -1 || */avatar_imgs[i].src.indexOf('http://avatar.yo2cdn.com/') > -1) && avatar_imgs[i].src.indexOf('/avatar/') > -1 && avatar_imgs[i].className.indexOf('avatar_')<0){
var p = avatar_imgs[i].parentNode;
if(p.href && p.href.indexOf('http://me.yo2.cn/') > -1 && p.href.length == 50){
var thisid = p.href.replace('http://me.yo2.cn/','').replace('/','');
if(avatar_imgs[i].src.indexOf('88x88') > -1){
try{
p.className = 'avatar_88x88';
var ohtml = '<img src=" ohtml += "<div id=/"buttons/"><img src=/"http://home.yo2cdn.com/images/buttons/blog.gif/" width=/"16/" height=/"16/" title=/"Visit BLog/" οnmοuseοver=/"will_be_go='"+p.href+"blog/'/" οnclick=/"avatarButton()/" style=/"margin-right:2px;/"/><img src=/"http://home.yo2cdn.com/images/buttons/photo.gif/" width=/"16/" height=/"16/" title=/"Albums/" οnmοuseοver=/"will_be_go='"+p.href+"photo/'/" οnclick=/"avatarButton()/" style=/"margin-right:2px;/"/><img src=/"http://home.yo2cdn.com/images/buttons/do.gif/" width=/"16/" height=/"16/" title=/"Do/" οnmοuseοver=/"will_be_go='"+p.href+"do/'/" οnclick=/"avatarButton()/" style=/"margin-right:2px;/"/><img src=/"http://home.yo2cdn.com/images/buttons/add.gif/" width=/"16/" height=/"16/" title=/"Add friend/" οnmοuseοver=/"will_be_go='addFriend';will_be_go_id='"+thisid+"'/" οnclick=/"avatarButton()/" style=/"margin-right:2px;/"/><img src=/"http://home.yo2cdn.com/images/buttons/message.gif/" width=/"16/" height=/"16/" style=/"/" title=/"Send a message/" οnmοuseοver=/"will_be_go='sendmessage';will_be_go_id='"+thisid+"'/" οnclick=/"avatarButton()/"/></div>";
p.innerHTML = ohtml;} catch (e) {}
}else{
try{
p.className = 'avatar_32x32';
var ohtml = '<img src=" p.innerHTML = ohtml;
p.innerHTML += "<div id=/"buttons/"><img src=/"http://home.yo2cdn.com/images/buttons/blog.gif/" width=/"16/" height=/"16/" style=/"padding:0;margin:0;border:0;/" title=/"Visit Blog/" οnmοuseοver=/"will_be_go='"+p.href+"blog/'/" οnclick=/"avatarButton()/"/><img src=/"http://home.yo2cdn.com/images/buttons/message.gif/" width=/"16/" height=/"16/" style=/"padding:0;margin:0;border:0;/" title=/"Send a message/" οnmοuseοver=/"will_be_go='sendmessage';will_be_go_id='"+thisid+"'/" οnclick=/"avatarButton()/"/></div>";} catch (e) {}
}
p.onclick = avatarButton;
p.style.padding='0';
}
}
}
}
var v_yo2sns_loaded = 0;function yo2sns_loading(){if(v_yo2sns_loaded == 1)return;v_yo2sns_loaded = 1;parseAvatarts();}
if (document.all && window.ActiveXObject && !window.opera) {window.attachEvent('onload', parseAvatarts);}if (document.addEventListener) {document.addEventListener("DOMContentLoaded", yo2sns_loading, false);}if (navigator.userAgent.search(/WebKit/i) !== -1){DOMLoadTimer = setInterval(function (){if (document.readyState.search(/loaded|complete/i) !== -1) {yo2sns_loading();}}, 10);}window.onload = yo2sns_loading;
/// timeago
var curdt = new Date();
curdt = (curdt.getTime() / 1000);
var timeago = $tag("span");
for (var i=0; i<timeago.length; i++){
if(timeago[i].id=='timeago'){
ba = parseInt(curdt-parseInt(timeago[i].innerHTML));
if(ba < 0)ba = 0;
if(ba < 60)timeago[i].innerHTML = ba+' 绉掑墠';
else if(ba < 3600)timeago[i].innerHTML = parseInt(ba/60)+' 鍒嗗墠';
else if(ba < 3600*24)timeago[i].innerHTML = parseInt(ba/3600)+' 鏃跺墠';
else if(ba < 3600*24*7)timeago[i].innerHTML = parseInt(ba/3600/24)+' 鏃ュ墠';
else if(ba < 3600*24*31)timeago[i].innerHTML = parseInt(ba/3600/24/7)+' 鍛ㄥ墠';
else if(ba < 3600*24*31*12)timeago[i].innerHTML = parseInt(ba/3600/24/31)+' 涓湀鍓?;
else timeago[i].innerHTML = parseInt(ba/3600/24/31/12)+' 骞村墠';
}
}
/// make owner class name
if(typeof(yo2member) != 'undefined' && yo2member[0] > 0){
var ts = $tag("*");
for (var i=0; i<ts.length; i++){
if(ts[i].className != '' && ts[i].className.indexOf('u_'+yo2member[0]+' ') != -1)ts[i].className += ' owner';
}
}
var yo2userlogin = false;
var _yo2userlogin = false;
var yo2userlogin_ing = false;
var yo2sns_dialog_content_ = null;
var sel_t = '';
var sel_title = '';
var at_sid = null;
var fav_ok;var digg_ok;
/// main
var ismenulink = 0;var omenuat=null;var o;var s = $get('main_menu');if(typeof(s) != 'undefined' && s !=null){
var as = s.getElementsByTagName('a');
for(i=0;i<as.length;i++){as[i].οnmοusedοwn=function(){ismenulink = 1;};as[i].οnmοuseοut=function(){ismenulink = 0;};if(location.href.indexOf(as[i].href) > -1){if(o)o.className='';as[i].className="at";o=as[i];}}
as = s.getElementsByTagName('li');
for(i=0;i<as.length;i++){
var ols = as[i].getElementsByTagName('ol');
if(ols.length > 0){if(as[i].className.indexOf('button') < 0)as[i].className = as[i].className+' button';
as[i].onmouseover = mainMenuOver;
as[i].onmouseout = mainMenuOut;
as[i].onclick = mainMenuOn;
ols[0].style.position = 'absolute';
}}
}
function mainMenuOver(){if(this.className.indexOf('button_over') < 0)this.className = this.className+' button_over';}
function mainMenuOut(){this.className = this.className.replace('button_over','');}
function mainMenuOn(){if(omenuat!= null && omenuat != this){omenuat.className = omenuat.className.replace('button_on','').replace('button_over','');}omenuat=this;
var ob = this.className;this.className = this.className.replace('button_on','button_over');if(ob == this.className && ismenulink!=1)this.className = this.className.replace('button_over','button_on');}
if(typeof(yo2member) != 'undefined' && yo2member[0] > 0){document.write("<style>.asklogin {display:none}/n.needlogin {display:block;}/n.admin_"+yo2member[0]+" {display:block;}");
if(typeof(yo2member[4]) == 'undefined' || yo2member[4] == ''){document.write('.registerblog {display:block} .haveblog {display:none}');}else document.write('.registerblog {display:none}');
document.write('</style>');}else{document.write("<style>.asklogin,.registerblog {display:block}/n.needlogin {display:none;}/n.needadmin {display:none;}</style>")}
/// popwin
var v_popwin_loaded = 0;function popwin_loading(){if(v_popwin_loaded == 1)return;v_popwin_loaded = 1;popwin_loaded();}
if (document.all && window.ActiveXObject && !window.opera) {window.attachEvent('onload', popwin_loading);}if (document.addEventListener) {document.addEventListener("DOMContentLoaded", popwin_loading, false);}if (navigator.userAgent.search(/WebKit/i) !== -1){DOMLoadTimer = setInterval(function (){if (document.readyState.search(/loaded|complete/i) !== -1) {popwin_loading();}}, 10);}window.onload = popwin_loading;
function popwin_loaded(){
var s=document.createElement("div");s.id="popwin_window";s.style.display='none';
s.style.position = 'absolute';s.style.width = '100%';s.style.height = '100%';s.style.zIndex = '1001';s.style.border ='0px' ;s.style.padding = '0';s.style.margin = '0'; s.style.textAlign = 'center';s.style.left = 0;s.style.top=0;
s.innerHTML = '<div id="popwin_background" style="width:100%;height:100%; background-color:#666; border:0px;padding:0;margin:0;FILTER:alpha(opacity=60); -moz-opacity:0.6;opacity: 0.6;"></div><div style="position:absolute; left:0px; top:0px;width:100%;height:100%;border: 0px;padding:0;margin:0;"><div style="width:560px;border:6px solid #EEE;padding:60px;background:#FFF;margin:10% auto;text-align:left;"><h2 id="popwin_title" style="padding:0;margin:0 0 20px 0;font-size:20px;border-bottom:2px solid #EEE;z-index:1002;">Title </h2><div style="font-size:12px;width:50px;float:right;text-align:right;margin-top:-40px;"><a href="javascript:close_popwin()" style="color:#666;text-decoration:none;border:0;margin:0;padding:0;">X 鍏抽棴</a></div><div id="popwin_content"></div></div></div><style>#popwin_content a,#popwin_content div,#popwin_content h1,#popwin_content span,#popwin_content h2,#popwin_content h3,#popwin_content ul,#popwin_content li{background:#FFF;padding:0;margin:0;border:0;}</style>';
$tag("body")[0].appendChild(s);
function popwin_getPageScroll(){var yScroll;if (self.pageYOffset) {yScroll = self.pageYOffset;} else if (document.documentElement && document.documentElement.scrollTop){yScroll = document.documentElement.scrollTop;} else if (document.body) {yScroll = document.body.scrollTop;}return yScroll;}
if (document.documentElement){$get('popwin_window').style.position='fixed';$get('popwin_window').style.top = '0px';}
if(navigator.appVersion.indexOf('MSIE 6.0') > -1){function pop_win_ppos(){var s = $get('popwin_window');s.style.position='absolute';s.style.top = popwin_getPageScroll()+'px';s.style.width = screen.availWidth+'px';s.style.height = screen.availHeight+'px';setTimeout(pop_win_ppos,300);}setTimeout(pop_win_ppos,300);}
var links = $tag("a");
for (var i=0; i<links.length; i++){
if(links[i].className == 'popwin' && links[i].href.indexOf('javascript:') < 0){
var wh = 0;
var ttitle = links[i].title;
if(!ttitle)ttitle = links[i].innerHTML;
if(ttitle){
wh = ttitle.split('::');
if(parseInt(wh[1]) > 0){wh = parseInt(wh[1]);ttitle = links[i].title = ttitle.replace('::'+wh,'');}
else wh = 0;
}
//links[i].href="javascript:open_popwin('"+links[i].href+"','"+ttitle+"',"+wh+");";
links[i].className += ' popwin_'+wh;
links[i].οnclick=new_open_popwin;
}
}
}
function popwin_fat(i){
if($get('popwin_background').filters)$get('popwin_background').filters.alpha.Opacity=100-i;
else $get('popwin_background').style.opacity = 1-i*0.01;
}
function new_open_popwin(){
var wh = 0;
var href = this.href;
var ttitle = this.title;
if(!ttitle)ttitle = this.innerHTML;
if(this.className){
wh = this.className.split('popwin_');
if(parseInt(wh[1]) > 0){wh = parseInt(wh[1]);}
else wh = 0;
}
setTimeout(function(){open_popwin(href, ttitle, wh);},50);
popwin_fat(100);
for (var i=0;i<13;i++)
setTimeout('popwin_fat('+(100-(i/2*10))+')',20*i);
return false;
}
function close_popwin(){$get('popwin_window').style.display = 'none';$get('popwin_content').innerHTML ='';$get('popwin_content').style.overflow='';$get('popwin_content').style.height = '';}
function open_popwin(_src, title, wh){
var s = document.URL;if(s.indexOf('#') > 0)s = s.split('#')[0];
var ssrc = _src.replace(s,'');
ssrc = ssrc.replace(s.replace(//%20/g, ' '),'');
if(ssrc.charAt(0) == '#'){
_src = ssrc.replace('#','');
if($get(_src)){$get('popwin_content').innerHTML = $get(_src).innerHTML;$get('popwin_window').style.display = ''; setTimeout('popwinFocus()',500);
}
}else{
var h = 260;if(wh > 10 && wh < 321)h = wh;
if(_src.indexOf('?') != -1)_src = _src+ '&popwin=1';
else _src=_src+'?popwin=1';
$get('popwin_content').innerHTML = '<iframe src="'+_src+'" width="560" height="'+h+'" marginWidth="0" marginHeight="0" frameborder="0" id="popwin_frame"></iframe>';
$get('popwin_window').style.display = '';
}$get('popwin_title').innerHTML = title;
if($get('popwin_content').offsetHeight > 320){
$get('popwin_content').style.overflow='auto';
$get('popwin_content').style.height = '320px';
}
}
function popwinFocus(){var ss = $get('popwin_content').getElementsByTagName('input');for(var i=0;i<ss.length;i++){if(ss[i].type!='hidden'){ss[i].focus();break;}}}
yo2sns_sids = new Array();
function printYo2FavControl(s,uu,tt,cc,pp){
if(s == null || s == '' || s == 'undefined')at_sid = ''; else at_sid = s;
if(uu == null || uu == '' || uu == 'undefined')uu = location.href;
yo2sns_sids[yo2sns_sids.length] = encodeURIComponent(uu)+"@yo2fav@"+encodeURIComponent(s);
document.write('<div id="yo2sns_'+at_sid+'" class="yo2fav"><a href="http://tag.yo2.cn/?u='+encodeURIComponent(uu)+'" target="new" class="main_logo"><strong>Yo<sup>2</sup></strong></a> <a href="javascript:yo2fav(/''+at_sid+'/');" class="fav">鏀惰棌:<span id="fav_count'+at_sid+'">0</span></a> <a href="javascript:yo2digg(/''+at_sid+'/');" class="digg">鎺ㄨ崘:<span id="digg_count'+at_sid+'">0</span></a><div id="yo2sns_'+at_sid+'_uu" style="display:none">'+uu+'</div><div id="yo2sns_'+at_sid+'_tt" style="display:none">'+tt+'</div><div id="yo2sns_'+at_sid+'_cc" style="display:none">'+cc+'</div><div id="yo2sns_'+at_sid+'_pp" style="display:none">'+pp+'</div></div>');
}
document.write('<div id="yo2sns_dialog" style="display:none;"></div>');
function yo2sns_dialog_content(){
if(yo2sns_dialog_content_ == null)yo2sns_dialog_content_ = $get('popwin_content');
$get('popwin_content').style.overflow='hidden';
$get('popwin_content').style.height = '260px';
return yo2sns_dialog_content_;
}
function yo2sns_dialog_show(s,t){
if(s == ''){
$get('popwin_title').innerHTML =t;
$get('popwin_window').style.display = '';setTimeout('popwinFocus()',50);
}
else close_popwin();
//$get('yo2sns_dialog').style.display = s;
}
var will_function = '';
var yo2sns_ing__ = false;
var yo2sns_ing = false;
var yo2sns_ed = true;
var yo2sns_return = null;
var loginHTML = '鐧诲綍 yo2 <br/><input type="text" size=20 value="閭鍦板潃" id="yo2userlogin_email" onKeyDown="checkKey(event)" οnclick="if(this.value==/'閭鍦板潃/')this.value=/'/';"/> <input type="password" size=20 value="" id="yo2userlogin_pass" onKeyDown="checkKey(event)"/> <input type="button" value=" 鐧诲綍 " οnclick="yo2userlogin_()" /><br/><label><input type="checkbox" id="yo2userlogin_auto" value="1" /> 鑷姩鐧诲綍</label>';
var sel_type='composite';
function yo2fav(s){
will_function = yo2fav;
at_sid = s;
yo2sns_ing = false;
yo2sns_ed = true;
yo2sns_return = null;
try{sel_t = getHTMLOfSelection();
sel_title = encodeURIComponent(document.title);}catch(z) {}
yo2sns_dialog_show('','鏀惰棌椤甸潰');
if((yo2userlogin == false && yo2userlogin_ing == false) || _yo2userlogin == true){
yo2userlogin_ing = true;
yo2sns_dialog_content().innerHTML = loginHTML+(_yo2userlogin==true?"鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒":"");
_yo2userlogin = false;
return;
}
sel_type='composite';
if(yo2userlogin == true){
document.cookie="yo2userlogin=true;path=/";yo2userlogin = true;
will_function = '';
yo2sns_dialog_content().innerHTML = '<style type="text/css">#fav_catalogs span {cursor:pointer;}</style>鏍囩: <input type="text" size=37 id="fav_tags"/> <input type="button" value=" 鏀惰棌 " οnclick="yo2sns_()" class="button"/><div style="padding:6px 0;" id="fav_catalogs">鍒嗙被: <input name="yo2sns_type" type="hidden" value="composite"/><span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'funs/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_funs">濞变箰</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'feeling/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_feeling">鎯呮劅</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'fashion/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_fashion">鏃跺皻</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'travel/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_travel">鏃呮父</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'school/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_school">鏍″洯</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'work/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_work">鑱屽満</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'family/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_family">瀹跺涵</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'technology/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_technology">绉戞妧</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'culture/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_culture">鏂囧寲</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'society/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_society">绀句細</span> , <span οnclick="$get(/'yo2sns_type_/'+sel_type).style.background=/'#FFF/';sel_type=/'composite/';$get(/'yo2sns_type_/'+sel_type).style.background=/'#69BFDE/';" id="yo2sns_type_composite" style="background:#69BFDE">缁煎悎</span></div> <textarea id="fav_content" style="float:right;width:500px" rows=2></textarea>璇勮: <div style="height:1%;clear:both"></div>';
}else if(yo2userlogin_ing == true) {
//setTimeout( yo2fav, 1000);
}
}
var yo2message_ing = false;
function yo2message(s){
will_function = yo2message;
at_sid = s;
yo2message_ing = false;
yo2message_ed = false;
yo2message_ok = false;
yo2sns_dialog_show('','鍙戦€佺煭娑堟伅');
if((yo2userlogin == false && yo2userlogin_ing == false) || _yo2userlogin == true){
yo2userlogin_ing = true;
yo2sns_dialog_content().innerHTML = loginHTML+(_yo2userlogin==true?", 鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒":"");
_yo2userlogin = false;
return;
}
if(yo2userlogin == true){
document.cookie="yo2userlogin=true;path=/";yo2userlogin = true;
will_function = '';
yo2sns_dialog_content().innerHTML = '<input type="text" size=37 id="m_title" style="float:right;width:500px"/>鏍囬: <br/><textarea id="m_content" style="float:right;width:500px" rows=2></textarea>鍐呭: <input type="button" class="button" οnclick="yo2message_()" value=" 鍙戦€佺煭娑堟伅 " style="float:right"/> <div style="height:1%;clear:both"></div>';
}else if(yo2userlogin_ing == true) {
//setTimeout( yo2message, 1000);
}
}
function yo2digg_(){
if(yo2digg_ed == false){
setTimeout( yo2digg_, 1000);
return;
}
if(yo2digg_return != null){
yo2sns_dialog_content().innerHTML = yo2digg_return;
yo2digg_return = null;
setTimeout( yo2digg_, 1000);
}
else{
if(digg_ok == true){
$get('digg_count'+at_sid).innerHTML = parseInt($get('digg_count'+at_sid).innerHTML) + 1;
digg_ok = false;
}
yo2sns_dialog_show('none');
}
}
function yo2addfriend_(){
if(yo2addfriend_ed == false){
setTimeout( yo2addfriend_, 1000);
return;
}
if(yo2addfriend_return != null){
yo2sns_dialog_content().innerHTML = yo2addfriend_return;
yo2addfriend_return = null;
setTimeout( yo2addfriend_, 1000);
}
else{
yo2sns_dialog_show('none');
}
}
function checkKey(e){
var key = window.event ? e.keyCode : e.which;if(key.toString() == "13")yo2userlogin_();
}
function getSel()
{
var txt = '';
var foundIn = '';
if (window.getSelection)
{
txt = window.getSelection();
}
else if (document.getSelection)
{
txt = document.getSelection();
}
else if (document.selection)
{
txt = document.selection.createRange().text;
}
else return;
return txt ;
}
function getHTMLOfSelection () {
var range;
if (document.selection && document.selection.createRange) {
range = document.selection.createRange();
return range.htmlText;
}
else if (window.getSelection) {
var selection = window.getSelection();
if (selection.rangeCount > 0) {
range = selection.getRangeAt(0);
var clonedSelection = range.cloneContents();
var div = document.createElement('div');
div.appendChild(clonedSelection);
return div.innerHTML;
}
else {
return '';
}
}
else {
return '';
}
}
function yo2getPageScroll(){
var yScroll;
if (self.pageYOffset) {
yScroll = self.pageYOffset;
} else if (document.documentElement && document.documentElement.scrollTop){ // Explorer 6 Strict
yScroll = document.documentElement.scrollTop;
} else if (document.body) {// all other Explorers
yScroll = document.body.scrollTop;
}
return yScroll;
}
var yo2userlogin=null;
if(yo2userlogin == null){
var name='yo2userlogin=';var start=document.cookie.indexOf(name);var len=start+name.length;if(((!start)&&(name!=document.cookie.substring(start,name.length)))||start==-1){document.write('<sc'+'ript language=/"javascript/" src=/"http://me.yo2.cn/infos.php/"></sc'+'ript>')}else{var end=document.cookie.indexOf(';',len);if(end==-1)end=document.cookie.length;
if(document.cookie.substring(len,end) == 'true')yo2userlogin = true;
else {yo2userlogin = false;_yo2userlogin = true;}
}
}
if (window.addEventListener){
window.addEventListener('load', yo2sns_sids_, false);
}else if (window.attachEvent){
window.attachEvent('onload', yo2sns_sids_);
}
function yo2sns_sids_(){
if(yo2sns_sids.length < 1)return;
var sids = '';
for(i=0;i<yo2sns_sids.length;i++)
sids = sids + yo2sns_sids[i]+',';
var now = new Date();
var s=document.createElement("script");s.src="http://tag.yo2.cn/e10adc3949ba59abbe56e057f20f883e.php?ss="+(sids)+"&t="+now.getYear()+'-'+now.getMonth()+'-'+now.getDay();
$get("yo2sns_dialog").appendChild(s);
}
function yo2userlogin_(){
var q = $get('yo2userlogin_email').value;
var p = $get('yo2userlogin_pass').value;
var a = ($get('yo2userlogin_auto').checked ? 1:0);
p = hex_md5('!@*#^!@%#&'+hex_md5(p));
yo2sns_dialog_content().innerHTML = '<p align="center"><img src="http://me.yo2.cn/images/loading.gif" /></p>';
var s=document.createElement("script");s.src="http://me.yo2.cn/e1Oadc3949ba59abbe56eO57f2Of883e.php?q="+q+"&p="+p+"&a="+a+"&t="+Date()+Math.random ( );
$get("yo2sns_dialog").appendChild(s);
setTimeout(will_function, 1000);
}
function yo2sns_(){
if(yo2sns_ing == false){
var t = $get('fav_tags').value;
var c = $get('fav_content').value;
var u = '';
$get('fav_tags').value = '';
$get('fav_content').value = '';
if(at_sid != null && at_sid != '' && at_sid != 'undefined'){
}else at_sid = '';
try {
u = $get('yo2sns_'+at_sid+'_uu').innerHTML;
if(u != '' && u != '' && u != 'undefined')u = "u="+encodeURIComponent(u)+"&";
var ttile = $get('yo2sns_'+at_sid+'_tt').innerHTML;
if(ttile != '' && ttile != '' && ttile != 'undefined')sel_title = ttile;
var ccontent = $get('yo2sns_'+at_sid+'_cc').innerHTML;
if(sel_t == '') sel_t = ccontent;
} catch (e) {
}
var s=document.createElement("script");s.src="http://tag.yo2.cn/e10adc3949ba59abbe56e057f20f883e.php?"+u+"t="+t+"&p="+sel_type+"&tt="+sel_title+"&c="+c+"&cc="+encodeURIComponent(sel_t)+"&d="+Date();
$get("yo2sns_dialog").appendChild(s);
yo2sns_dialog_content().innerHTML = '<p align="center"><img src="http://me.yo2.cn/images/loading.gif" /></p>';
yo2sns_ing = true;yo2sns_ed = false;yo2sns_return = null;
setTimeout( yo2sns_, 1000);
}else if(yo2sns_ed == true){
if(yo2sns_return != null){
yo2sns_dialog_content().innerHTML = yo2sns_return;
yo2sns_return = null;
setTimeout( yo2sns_, 1000);
}
else{
if(fav_ok == true){
$get('fav_count'+at_sid).innerHTML = parseInt($get('fav_count'+at_sid).innerHTML) + 1;
fav_ok = false;
}
yo2sns_dialog_show('none');
yo2sns_ing = false;
}
}
}
function yo2message_(){
if(yo2message_ing == false){
var u = will_be_go_id;
var t = $get('m_title').value;
var c = $get('m_content').value;
var s=document.createElement("script");s.src="http://me.yo2.cn/e1Oadc3949ba59abbe56eO57f2Of883e.php?sendto="+u+"&m_title="+t+"&m_content="+c+"&d="+Date();
$get("yo2sns_dialog").appendChild(s);
yo2sns_dialog_content().innerHTML = '<p align="center"><img src="http://me.yo2.cn/images/loading.gif" /></p>';
yo2message_ing = true;yo2message_ed = false;yo2message_return = null;
setTimeout( yo2message_, 1000);
}else if(yo2message_ed == true){
if(yo2message_return != null){
yo2sns_dialog_content().innerHTML = yo2message_return;
yo2message_return = null;
setTimeout( yo2message_, 1000);
}else{
yo2sns_dialog_show('none');
yo2message_ing = false;
}
}
}
function yo2digg(s){
will_function = yo2digg;
at_sid = s;
yo2digg_ed = false;
digg_ok = false;
yo2sns_dialog_show('','鎺ㄨ崘椤甸潰');
if((yo2userlogin == false && yo2userlogin_ing == false) || _yo2userlogin == true){
yo2userlogin_ing = true;
yo2sns_dialog_content().innerHTML = loginHTML+(_yo2userlogin==true?", 鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒":"");
_yo2userlogin = false;
return;
}
if(yo2userlogin == true){
try {
document.cookie="yo2userlogin=true;path=/";yo2userlogin = true;
will_function = '';
yo2sns_dialog_content().innerHTML = '<p align="center"><img src="http://me.yo2.cn/images/loading.gif" /></p>';
var u = '';
if(at_sid != null && at_sid != '' && at_sid != 'undefined'){
u = $get('yo2sns_'+at_sid+'_uu').innerHTML;
if(u != '' && u != '' && u != 'undefined')u = "u="+encodeURIComponent(u)+"&";
}else at_sid = '';
setTimeout( yo2digg_, 1000);
sel_title = encodeURIComponent(document.title);
var ttile = $get('yo2sns_'+at_sid+'_tt').innerHTML;
if(ttile != '' && ttile != '' && ttile != 'undefined')sel_title = ttile;
} catch (e) {
}
var s=document.createElement("script");s.src="http://tag.yo2.cn/e10adc3949ba59abbe56e057f20f883e.php?"+u+"&digg=1&tt="+sel_title+"&d="+Date();
$get("yo2sns_dialog").appendChild(s);
}else if(yo2userlogin_ing == true) {
//setTimeout( yo2digg, 1000);
}
}
function yo2addfriend(s){
will_function = yo2addfriend;
yo2addfriend_ed = false;
yo2addfriend_ed_ok = false;
var u = will_be_go_id;
yo2sns_dialog_show('','鍔犲ソ鍙?);
if((yo2userlogin == false && yo2userlogin_ing == false) || _yo2userlogin == true){
yo2userlogin_ing = true;
yo2sns_dialog_content().innerHTML = loginHTML+(_yo2userlogin==true?"鐢ㄦ埛鍚嶆垨瀵嗙爜閿欒":"");
_yo2userlogin = false;
return;
}
if(yo2userlogin == true){
document.cookie="yo2userlogin=true;path=/";yo2userlogin = true;
will_function = '';
yo2sns_dialog_content().innerHTML = '<p align="center"><img src="http://me.yo2.cn/images/loading.gif" /></p>';
setTimeout( yo2addfriend_, 1000);
var s=document.createElement("script");s.src="http://me.yo2.cn/e1Oadc3949ba59abbe56eO57f2Of883e.php?addfriend="+u+"&t="+Date();
$get("yo2sns_dialog").appendChild(s);
}else if(yo2userlogin_ing == true) {
//setTimeout( yo2addfriend, 1000);
}
}
var d = new Date();
var p = String((d.getYear()<200?1900+d.getYear():d.getYear()));
var m = d.getMonth()+1;
p = p+ (m<10?'0':'')+String(m);
p = p+ (d.getDate()<10?'0':'')+String(d.getDate());
function parseUri(sourceUri){
var uriPartNames = ["source","protocol","authority","domain","port","path","directoryPath","fileName","query","anchor"],
uriParts = new RegExp("^(?:([^:/?#.]+):)?(?://)?(([^:/?#]*)(?::(//d*))?)((/(?:[^?#](?![^?#/]*//.[^?#/.]+(?:[//?#]|$)))*/?)?([^?#/]*))?(?://?([^#]*))?(?:#(.*))?").exec(sourceUri),
uri = {};
for(var i = 0; i < 10; i++){
uri[uriPartNames[i]] = (uriParts[i] ? uriParts[i] : "");
}
if(uri.directoryPath.length > 0){
uri.directoryPath = uri.directoryPath.replace(///?$/, "/");
}
return uri;
}
var r=document.referrer;
if(parseUri(document.referrer)['domain'] == parseUri(document.domain)['domain'])r = '1';
try {if(typeof(is_admin) == 'undefined'){var is_admin=0; var is_post=0;}} catch(err) {var is_admin=0; var is_post=0;}
var document_domain = document.domain.toLowerCase();
if(is_admin != 1 && document_domain != 'yo2.cn' && document_domain != 'blog.yo2.cn' && document_domain != 'tag.yo2.cn' && document_domain != 'mag.yo2.cn' && document_domain != 'me.yo2.cn' && document_domain != 'q.yo2.cn' && document_domain != 'hi.yo2.cn' && document_domain != 'do.yo2.cn' && document_domain != 'photo.yo2.cn'){s = new Image();s.src= 'http://tag.yo2.cn/e10adc3949ba59abbe56e057f20f883e-none.php?u='+encodeURIComponent(document.URL)+'&r='+encodeURIComponent(r)+'&d='+p+(is_post==1?'&is_post='+is_post:'');}
/// Form Style
function setButtonStyle() {var buttons = $tag("input");for (var i=0; i<buttons.length; i++){if((buttons[i].type=='button'||buttons[i].type=='submit')&& buttons[i].className == '')buttons[i].className = 'button';else if(buttons[i].type=='checkbox')buttons[i].className = 'checkbox';else if(buttons[i].type=='radio')buttons[i].className = 'radio'; if(buttons[i].type=='checkbox' || buttons[i].type=='radio'){var q = buttons[i].parentNode; if(q.tagName == 'LABEL')q.className = q.className +' pointer';}}}
function setIeFormStyle(){
var objEvt = {
input : ["hover", "focus"],
select : ["hover", "focus"],
textarea: ["hover", "focus"]
};
var temp, tempLen = 0;
function hoverFunc (){this.className += ' hover';}
function unHoverFunc(){this.className = this.className.replace(' hover', '');}
function focusFunc (){this.className += ' focus';
if(navigator.appName.indexOf('Explorer')!=-1){
if(this.value==this.defaultValue&&this.name=='url') this.value='http://';
}
}
function unFocusFunc(){this.className = this.className.replace(' focus', '');}
for(var i in objEvt){
temp = $tag(i), tempLen = temp.length;
for(var j=0; j<tempLen; j++){
for(var k=0; k<objEvt[i].length; k++){
if(objEvt[i][k] == 'hover'){
temp[j].onmouseover = hoverFunc;
temp[j].onmouseout = unHoverFunc;
} else if(objEvt[i][k] == 'focus'){
temp[j].onfocus = focusFunc;
temp[j].onblur = unFocusFunc;
}
}
}
}
}
if (document.all){window.attachEvent('onload', setButtonStyle);window.attachEvent('onload', setIeFormStyle);}
else {window.addEventListener('load', setButtonStyle,false);}
///XHConn
function __XHConn()
{
var xmlhttp, bComplete = false;
try { xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) { try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) { try { xmlhttp = new XMLHttpRequest(); }
catch (e) { xmlhttp = false; }}}
if (!xmlhttp) return null;
this.connect = function(sURL, sMethod, sVars, fnDone)
{
if (!xmlhttp) return false;
bComplete = false;
sMethod = sMethod.toUpperCase();
try {
if (sMethod == "GET")
{
xmlhttp.open(sMethod, sURL+"?"+sVars, true);
sVars = "";
}
else
{
xmlhttp.open(sMethod, sURL, true);
xmlhttp.setRequestHeader("Method", "POST "+sURL+" HTTP/1.1");
xmlhttp.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
}
xmlhttp.onreadystatechange = function(){
if (xmlhttp.readyState == 4 && !bComplete)
{
bComplete = true;
fnDone(xmlhttp);
}};
xmlhttp.send(sVars);
}
catch(z) { return false; }
return true;
};
return this;
}
function XHConn(url, div_id){
var params = url.indexOf('?');
if(params > 0){__params = params;params = '&'+url.substr(params+1,url.length-params-1);url = url.substr(0,__params);}
else params = '';
var myConn = new __XHConn();if (!myConn) $get(div_id).innerHTML = ("鎮ㄧ殑娴忚鍣ㄤ笉鏀寔 XMLHTTP , JavaScript 搴旂敤.");
myConn.connect(url, 'POST', "t="+Date()+params, function (oXML) { if(oXML.responseText != ''){$get(div_id).innerHTML = oXML.responseText;$get(div_id).style.display='block'; }});
}
function getXHConn(url, functioname, method){
if(method != 'GET')method = 'POST';
var params = url.indexOf('?');
if(params > 0){__params = params;params = '&'+url.substr(params+1,url.length-params-1);url = url.substr(0,__params);}
else params = '';
var myConn = new __XHConn();if (!myConn) functioname(null);
myConn.connect(url, method, "t="+Date()+params, function (oXML) { functioname(oXML.responseText); });
}