﻿var _doc=document;var topsy_top10=[];function topsy_sort(a,b){return(b.trackback_total-a.trackback_total);}
function topsy_display10(){_doc.getElementById("tw_hotentries").innerHTML=topsy_top10.join('');}
function topsy_callback(data){if(!data)return;var top5=[];topsy_top10=[];var entry;var list=data.response.list;list.sort(topsy_sort);var len=list.length>10?10:list.length;for(var i=0;i<len;i++){entry=['<div style="margin-bottom:0px;margin-top:12px;"><img src="http://antenna7.com/ver3/img/icon_twitter.gif" width="18" height="11" style="margin-right:10px;" /><a href="',list[i].topsy_trackback_url,'" target="_blank">','<span style="color:#FF0000;background:#FFFFFF;font-weight:bold;text-decoration:underline;">',list[i].trackback_total,' tweets</span></a>　　<a href="',list[i].url,'">',list[i].title.replace("：",""),'</a><br /></div>'].join('');topsy_top10.push(entry);if(i<5)top5.push(entry);}
top5.push('<div style="margin-bottom:4px;"><a href="javascript:void(0)" onClick="topsy_display10()" id="tw_btn10"><img src="/_images/blog/_b81/sothis/down.png" width="13" height="12" border="0" style="margin:0 4px 0 0;vertical-align:middle"/><img src="http://antenna7.com/ver3/img/btn_moreranking.gif" width="453" height="24" style="margin-right:0px;margin-top:15px;" /><br/></a></div>');_doc.getElementById("tw_hotentries").innerHTML=top5.join('');}
var hateb_top10=[];function hateb_display10(){_doc.getElementById("hb_hotentries").innerHTML=hateb_top10.join('');}
function hateb_callback(data){if(!data)return;var top5=[];hateb_top10=[];var title;var entry;var len=data.length;for(var i=0;i<len;i++){title=data[i].title;var j=title.indexOf("：");if(j!=-1){title=title.substring(0,j);}
title=title.replace("：So-net blog","");entry=['<div style="margin-bottom:4px;"><img src="/_common/skins/11/images/arrow_s.gif" width="5" height="7" style="margin-right:4px;" /><a href="http://b.hatena.ne.jp/entry/',data[i].link,'" target="_blank"><span style="color:#FF6060;background:#FFEEEE;font-weight:bold;text-decoration:underline;">',data[i].count,' users</span></a> <a href="',data[i].link,'"  target="_blank">',title,'</a><br /></div>'].join('');hateb_top10.push(entry);if(i<5)top5.push(entry);}
top5.push('<div style="margin-bottom:4px;"><a href="javascript:void(0)" onClick="hateb_display10()"  id="hb_btn10"><img src="/_images/blog/_b81/sothis/down.png" width="13" height="12" border="0" style="margin:0 4px 0 0;vertical-align:middle"/>10件まで表示<br/></a></div>');_doc.getElementById("hb_hotentries").innerHTML=top5.join('');}
var bc_ad=[];var bc_sbm_icons=[];function delicious_count(url,oldurl){var encurl=encodeURIComponent(url);var delicious_html=['<a href="http://del.icio.us/url/?url=',encurl,'" title="del.icio.usの登録件数" target="_blank" ><span id="delicious_count_',encurl,'" style="vertical-align:3px;font-size:9px;color:#FF6563; background:#FFFFFF;font-weight:bold;text-decoration:underline;"></span></a> '].join('');var delicious_script=function(){var script=_doc.createElement('script');script.type='text/javascript';script.charset='UTF-8';script.src=['http://feeds.delicious.com/v2/json/urlinfo/data?url=',encurl,'&callback=delicious_callback'].join('');_doc.body.appendChild(script);}
if(window.addEventListener){window.addEventListener("load",delicious_script,false);}else if(window.attachEvent){window.attachEvent("onload",delicious_script);}else{delicious_script();}
return delicious_html;}
function delicious_callback(data){if(!data)return;var first=data[0];if(!first)return;var encurl=encodeURIComponent(first.url);var span=_doc.getElementById('delicious_count_'+encurl);if(!span)return;var text;if(first.total_posts==0)
return;text=_doc.createTextNode(first.total_posts+' people')
span.appendChild(text);}
function bc_addTwitter(url,title)
{var link=['<a href="http://twitter.com/home?status=',encodeURIComponent(url),'" target="_blank" title="このエントリーをTwitterに送る">','<img src="/_images/blog/_b81/sothis/twitter-icon1.png" style="border:none;margin-bottom:0;margin-right:4px;" /></a>'].join('');return link;}
function bc_addBuzzurl(url,title)
{var link=['<a href="http://buzzurl.jp/entry/',url,'" title="このエントリーをBuzzurlに登録" target="_blank">','<img src="/_images/blog/_b81/sothis/7504455.gif" style="border:none;margin-bottom:0" /></a>','<a href="http://buzzurl.jp/entry/',url,'" title="Buzzurl登録件数" target="_blank"><img src="http://api.buzzurl.jp/api/counter/',url,'" style="border:none;margin-bottom:0" /></a>'].join('');return link;}
function bc_addDelicious(url,title)




function blog_custom2(url,title,id)
{if(typeof(id)!='undefined')
{bc_sbm_icons.push({url:url,title:title,id:id});}}
function blog_custom3()
{var img_url='/_images/blog/_b81/sothis/';var hdr=_doc.getElementsByTagName("table")[0];hdr.align="center";hdr.style.width="771px";var hdr_ul=hdr.getElementsByTagName("ul");hdr_ul[0].style.whiteSpace="nowrap";var bnr=new Array();bnr[0]='3747611.jpg';bnr[1]='3747614.jpg';bnr[2]='3809755.jpg';bnr[3]='banner01.png';bnr[4]='banner02-89b63.png';bnr[5]='banner03.png';bnr[6]='banner04.png';bnr[7]='banner05.png';bnr[8]='banner06-66971.png';bnr[9]='banner07-4d3f6.png';var i=Math.floor(Math.random()*bnr.length);_doc.getElementById("banner").style.background=['url("',img_url,bnr[i],'") no-repeat 10px 0px'].join('');var profile=_doc.getElementById('profileicon');if(typeof(profile)!='undefined')
{if(Math.floor(Math.random()*10)<3)
{profile.src=[img_url,"10642545.png"].join('');}
if(Math.floor(Math.random()*300)<1)
{profile.src=[img_url,"aplicon.png"].join('');}}
var cmnt_area=_doc.getElementById("myblog-comment-list-area");if(typeof(cmnt_area)!='undefined'&&cmnt_area!=null)
{var img=cmnt_area.getElementsByTagName("img");for(var i=0,n1=img.length;i<n1;i++)
{if(img[i].src=="http://blog.so-net.ne.jp/_img/cmn/profile_guest.gif")
{img[i].src="/_images/blog/_b81/sothis/10829755.png";}}}
for(var i=0;i<bc_sbm_icons.length;i++)
{var footer=['<span style="font-size:x-small;">',bc_setFooter(bc_sbm_icons[i].url,bc_sbm_icons[i].title),'</span>'].join('');_doc.getElementById(bc_sbm_icons[i].id).innerHTML=footer;_doc.getElementById(bc_sbm_icons[i].id+"_ads").innerHTML=bc_ad[Math.floor(Math.random()*bc_ad.length)];}
bc_set_ad2();}
bc_init_ad();if(typeof(putSWF)=='undefined')
{function putSWF(swf){_doc.write(swf);}}
if(typeof(putSWFbyId)=='undefined')
{function putSWFbyId(id,swf){_doc.getElementById(id).innerHTML=swf;}}
if(typeof(putBCFeedPlayerById)=='undefined')
{function putBCFeedPlayerById(id,feedURL,width,height){if(typeof(width)=='undefined')width=290;if(typeof(height)=='undefined')height=170;var code=['<div style="border-bottom:solid 1px #DDDDDD;border-right:solid 1px #DDDDDD;">','<object type="application/x-shockwave-flash" width="',width,'" height="',height,'" data="http://bigcontact.com/feed-player?r=0&t=1001&xmlurl=',encodeURIComponent(feedURL),'"><param name="quality" value="best" /> ','<param name="wmode" value="window" />','<param name="allowScriptAccess" value="always" />','<param name="allowFullScreen" value="true" />','<param name="movie" value="http://bigcontact.com/feed-player?r=0&t=1001&xmlurl=',encodeURIComponent(feedURL),'" /></object></div>'].join('');_doc.getElementById(id).innerHTML=code;}}
if(typeof(putDewPlayerById)=='undefined')
{function putDewPlayerById(id,mp3URL,width){if(typeof(width)=='undefined')width=200;var code=['<object type="application/x-shockwave-flash" data="http://www003.upp.so-net.ne.jp/bjork/dewplayer/dewplayer.swf?mp3=',mp3URL,'&amp;showtime=1&amp;nopointer=1" width="',width,'" height="20">','<param name="movie" value="http://www003.upp.so-net.ne.jp/bjork/dewplayer/dewplayer.swf?mp3=',mp3URL,'&amp;showtime=1&amp;nopointer=1" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /></object>'].join('');_doc.getElementById(id).innerHTML=code;}}
if(typeof(putDewPlayerMiniById)=='undefined')
{function putDewPlayerMiniById(id,mp3URL,width){if(typeof(width)=='undefined')width=160;var code=['<object type="application/x-shockwave-flash" data="http://www003.upp.so-net.ne.jp/bjork/dewplayer/dewplayer-mini.swf?mp3=',mp3URL,'&amp;showtime=1&amp;nopointer=1" width="',width,'" height="20">','<param name="movie" value="http://www003.upp.so-net.ne.jp/bjork/dewplayer/dewplayer-mini.swf?mp3=',mp3URL,'&amp;showtime=1&amp;nopointer=1" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /></object>'].join('');_doc.getElementById(id).innerHTML=code;}}
if(typeof(putDewPlayerMultiById)=='undefined')
{function putDewPlayerMultiById(id,mp3URL,width){if(typeof(width)=='undefined')width=240;var code=['<object type="application/x-shockwave-flash" data="http://www003.upp.so-net.ne.jp/bjork/dewplayer/dewplayer-multi.swf?mp3=',mp3URL,'&amp;showtime=1&amp;nopointer=1" width="',width,'" height="20">','<param name="movie" value="http://www003.upp.so-net.ne.jp/bjork/dewplayer/dewplayer-multi.swf?mp3=',mp3URL,'&amp;showtime=1&amp;nopointer=1" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /></object>'].join('');_doc.getElementById(id).innerHTML=code;}}
if(typeof(putDewPlayerStreamById)=='undefined')
{function putDewPlayerStreamById(id,mp3URL){var code=['<object type="application/x-shockwave-flash" data="http://www003.upp.so-net.ne.jp/bjork/dewplayer/dewplayer-stream.swf?mp3=',mp3URL,'/;stream.nsv" width="135" height="50">','<param name="movie" value="http://www003.upp.so-net.ne.jp/bjork/dewplayer/dewplayer-stream.swf?mp3=',mp3URL,'/;stream.nsv" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /></object>'].join('');_doc.getElementById(id).innerHTML=code;}}
if(typeof(YT_slide)=='undefined')
{function YT_slide(name,movList,w,h)
{var idx=0;var max=movList.length-1;var hq=false;var ap=false;this.putVideo=function()
{var movId=movList[idx][1];var imgURL="http://www003.upp.so-net.ne.jp/bjork/images/";var re=new RegExp("<[\/\!]*?[^<>]*?>","g");var srch=encodeURIComponent(movList[idx][2]);var re2=new RegExp("%2B","g");var nextTitle;var nextStr;var prevTitle;var prevStr;if(idx>=max)
{nextTitle=['<b style="color:#DDDDDD">Next</b><img src="',imgURL,'nextgray.png" style="margin:2px 2px -4px 2px" border="0" />'].join('');}
else
{nextStr=movList[idx+1][0];nextTitle=['<a href="javascript:void(0)" onclick="',name,'.nextVideo();" title="',nextStr.replace(re,""),'"><b>Next</b><img src="',imgURL,'next.png" style="margin:2px 2px -4px 2px" border="0" /></a>'].join('');}
if(idx<=0)
{prevTitle=['<img src="',imgURL,'prevgray.png" style="margin:2px 2px -4px 2px" border="0" />','<b style="color:#DDDDDD">Prev</b>'].join('');}
else
{prevStr=movList[idx-1][0];prevTitle=['<a href="javascript:void(0)" onclick="',name,'.prevVideo();" title="',prevStr.replace(re,""),'"><img src="',imgURL,'prev.png" style="margin:2px 2px -4px 2px" border="0" />','<b>Prev</b></a>'].join('');}
var ql="";var qlt="高画質に切り替え";var qls="HQ(mp4)";var atp="";if(hq==true)
{ql="&ap=%2526fmt%3D18";qlt="通常画質に切り替え";qls="Normal";}
if(ap==true)
{atp="&autoplay=1";}
var code1=['<span style="font-size:x-small">',movList[idx][0],'</span><br /><object width="',w,'" height="',h,'"><param name="movie" value="http://www.youtube.com/v/',movId,ql,atp,'&hl=en&fs=1&rel=0&&showsearch=0" />','<param name="wmode" value="transparent" />','<embed src="http://www.youtube.com/v/',movId,ql,atp,'&hl=en&fs=1&rel=0&&showsearch=0&showinfo=0&iv_load_policy=3" type="application/x-shockwave-flash" wmode="transparent" width="',w,'" height="',h,'" /></object>','<br />',(idx+1),' / ',(max+1),' <span style="color:#BBBBBB;">|</span>',prevTitle,' <span style="color:#BBBBBB;">|</span> ',nextTitle,'<span style="color:#BBBBBB;">|</span>','<a title="',qlt,'" href="javascript:void(0)" onclick="',name,'.changeQuality();" >','<img src="',imgURL,'color.png" style="margin:2px 4px -4px 4px" border="0" /><b>',qls,'</b></a>',' <span style="color:#BBBBBB;">|</span>','<a target="_blank" rel="nofollow" title="この動画をダウンロード" href="http://catwalk.plala.jp/get_ytmp4.aspx?id=',movList[idx][1],'" ><img src="',imgURL,'download.png" style="margin:2px 4px -4px 4px" border="0" /><b>Download</b></a>'].join('');var code2="";if(srch.length>1)
{code2=[' <span style="color:#BBBBBB;">|</span>','<a title="代替映像を探す" href="http://www.youtube.com/results?search_query=',srch.replace(re2,"%20"),'" target="_blank"><img src="',imgURL,'missing.png" style="margin:0px 4px -4px 4px" border="0" /><b>Missing?</b></a>'].join('');}
_doc.getElementById(name).innerHTML=[code1,code2].join('');_doc.getElementById(name).style.width=w+"px";if(w==480)
{_doc.getElementById(name).style.marginLeft="20px";}};this.setQuality=function(q)
{hq=q;}
this.enableAutoplay=function()
{ap=true;}
this.changeQuality=function()
{hq=(hq==true)?false:true;this.putVideo();}
this.nextVideo=function()
{if(idx<max)
{idx++;ap=true;}
this.putVideo();}
this.prevVideo=function()
{if(idx>0)
{idx--;ap=true;}
this.putVideo();}
this.setVideo=function(index)
{ap=false;idx=index;this.putVideo();}
this.init=function()
{this.putVideo();}
this.putMov=function(){this.putVideo();}
this.nextMov=function(){this.nextVideo();}
this.prevMov=function(){this.prevVideo();}}}
if(typeof(Ymp_slide)=='undefined')
{function Ymp_slide(name,movList,w,h)
{var idx=0;var max=movList.length-1;this.putVideo=function()
{var movId=movList[idx][1];var eId=movList[idx][2];var ympsc=movList[idx][3];var imgURL="http://www003.upp.so-net.ne.jp/bjork/images/";var re=new RegExp("<[\/\!]*?[^<>]*?>","g");var srch=encodeURIComponent(movList[idx][4]);var re2=new RegExp("%2B","g");var nextTitle;var nextStr;var prevTitle;var prevStr;if(idx>=max)
{nextStr=['<b>Next</b><img src="',imgURL,'nextgray.png" style="margin:2px 2px -4px 2px" border="0" />'].join('');nextTitle=['<span style="color:#DDDDDD;">',nextStr,'</span>'].join('');}
else
{nextStr=['<b>Next</b><img src="',imgURL,'next.png" style="margin:2px 2px -4px 2px" border="0" />'].join('');nextTitle=movList[idx+1][0];nextTitle=['<a href="javascript:void(0)" onclick="',name,'.nextVideo();" title="',nextTitle.replace(re,""),'">',nextStr,'</a>'].join('');}
if(idx<=0)
{prevStr=['<img src="',imgURL,'prevgray.png" style="margin:2px 2px -4px 2px" border="0" /><b>Prev</b>'].join('');prevTitle=['<span style="color:#DDDDDD;">',prevStr,'</span>'].join('');}
else
{prevStr=['<img src="',imgURL,'prev.png" style="margin:2px 2px -4px 2px" border="0" /><b>Prev</b>'].join('');prevTitle=movList[idx-1][0];prevTitle=['<a href="javascript:void(0)" onclick="',name,'.prevVideo();" title="',prevTitle.replace(re,""),'">',prevStr,'</a>'].join('');}
var code1=['<span style="font-size:x-small">',movList[idx][0],'</span><br/><object width="',w,'" height="',h,'" id="uvp_fop" allowFullScreen="true">','<param name="movie" value="http://d.yimg.com/m/up/fop/embedflv/swf/fop.swf"/>','<param name="flashVars" value="id=',movId,'&amp;eID=',eId,'&amp;lang=us&amp;enableFullScreen=0&amp;shareEnable=1"/>','<param name="wmode" value="transparent"/><embed height="',h,'" width="',w,'" id="uvp_fop" allowFullScreen="true" src="http://d.yimg.com/m/up/fop/embedflv/swf/fop.swf" type="application/x-shockwave-flash" flashvars="id=',movId,'&amp;eID=',eId,'&amp;lang=us&amp;ympsc=',ympsc,'&amp;enableFullScreen=1&amp;shareEnable=1" /></object>','<br/>',(idx+1),' / ',(max+1),' <span style="color:#BBBBBB;">|</span> ',prevTitle,' <span style="color:#BBBBBB;">|</span> ',nextTitle].join('');var code2="";if(srch.length>1)
{code2=[' <span style="color:#BBBBBB;">|</span> ','<a title="代替映像を探す" href="http://search.music.yahoo.com/search/?m=video&p=',srch.replace(re2,"%20"),'" target="_blank"><img src="',imgURL,'missing.png" style="margin:0px 4px -4px 4px" border="0" /><b>MISSING?</b></a>'].join('');}
_doc.getElementById(name).innerHTML=[code1,code2].join('');_doc.getElementById(name).style.width=w+"px";if(w==480)
{_doc.getElementById(name).style.marginLeft="20px";}};this.nextVideo=function()

{if(idx<max)
{idx++;}
this.putVideo();}
this.prevVideo=function()
{if(idx>0)
{idx--;}
this.putVideo();}
this.setVideo=function()
{idx=index;this.putVideo();}
this.init=function()
{this.putVideo();}
this.putMov=function(){this.putVideo();}
this.nextMov=function(){this.nextVideo();}
this.prevMov=function(){this.prevVideo();}}}
if(typeof(Veoh_slide)=='undefined')
{function Veoh_slide(name,movList,w,h)
{var idx=0;var max=movList.length-1;this.putVideo=function()
{var movId=movList[idx][1];var permalinkId=movList[idx][2];var imgURL="http://www003.upp.so-net.ne.jp/bjork/images/";var re=new RegExp("<[\/\!]*?[^<>]*?>","g");var srch=encodeURIComponent(movList[idx][3]);var re2=new RegExp("%2B","g");var nextTitle;var nextStr;var prevTitle;var prevStr;if(idx>=max)
{nextStr=['<b>Next</b><img src="',imgURL,'nextgray.png" style="margin:2px 2px -4px 2px" border="0" />'].join('');nextTitle=['<span style="color:#DDDDDD;">',nextStr,'</span>'].join('');}
else
{nextStr=['<b>Next</b><img src="',imgURL,'next.png" style="margin:2px 2px -4px 2px" border="0" />'].join('');nextTitle=movList[idx+1][0];nextTitle=['<a href="javascript:void(0)" onclick="',name,'.nextVideo();" title="',nextTitle.replace(re,""),'">',nextStr,'</a>'].join('');}
if(idx<=0)
{prevStr=['<img src="',imgURL,'prevgray.png" style="margin:2px 2px -4px 2px" border="0" /><b>Prev</b>'].join('');prevTitle=['<span style="color:#DDDDDD;">',prevStr,'</span>'].join('');}
else
{prevStr=['<img src="',imgURL,'prev.png" style="margin:2px 2px -4px 2px" border="0" /><b>Prev</b>'].join('');prevTitle=movList[idx-1][0];prevTitle=['<a href="javascript:void(0)" onclick="',name,'.prevVideo();" title="',prevTitle.replace(re,""),'">',prevStr,'</a>'].join('');}
var code1=['<span style="font-size:x-small">',movList[idx][0],'</span><br/><embed src="http://www.veoh.com/videodetails2.swf?permalinkId=',permalinkId,'&id=',movId,'&player=videodetailsembedded&videoAutoPlay=0" allowFullScreen="true" width="',w,'" height="',h,'" bgcolor="#FFFFFF" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>','<br/>',(idx+1),' / ',(max+1),' <span style="color:#BBBBBB;">|</span> ',prevTitle,' <span style="color:#BBBBBB;">|</span> ',nextTitle].join('');var code2="";if(srch.length>1)
{code2=[' <span style="color:#BBBBBB;">|</span> ','<a title="代替映像を探す" href="http://www.veoh.com/search.html?search=',srch.replace(re2,"%20"),'" target="_blank"><img src="',imgURL,'missing.png" style="margin:0px 4px -4px 4px" border="0" /><b>MISSING?</b></a>'].join('');}
_doc.getElementById(name).innerHTML=[code1,code2].join('');_doc.getElementById(name).style.width=w+"px";if(w==480)
{_doc.getElementById(name).style.marginLeft="20px";}};this.nextVideo=function()
{if(idx<max)
{idx++;}
this.putVideo();}
this.prevVideo=function()
{if(idx>0)
{idx--;}
this.putVideo();}
this.setMov=function(index)
{idx=index;this.putVideo();}
this.init=function()
{this.putVideo();}
this.putMov=function(){this.putVideo();}
this.nextMov=function(){this.nextVideo();}
this.prevMov=function(){this.prevVideo();}}}