var B={ua:$.browser,search:{id:'web_s',web_cgi:{index:'search2-b',necpc:'search-necpc',pc:'search2-b',ssg:'search-sgst-btop',ssgnec:'search-necpc-sgst-top'},jmp_cgi:{index:'fwd_btop'},jmp_sid:{index:{'pic_s':171,'twi_s':172,'map_s':173,'dic_s':174,'bshop_s':175,'news_s':176,'mov_s':177,'blog_s':178,'enc_s':179,'site_s':180,'qa_s':181,'tel_s':182,'sum_s':183,'bg_s':184,'s_top':297}},logo:{1:'H1S',2:'H1O',3:'H1R'},kk_param:{index:{1:'kk10',2:'kk12',3:'kk11'}}},tab:{id:{news:'',promo:'prom1',enjoy:''},path:new Array('news_tab/menu','promo_tab/menu','enjoy_tab/menu'),type:new Array('news','prm','enjoy'),ext:'tab_menu',val:{news:{'topics':'01','entame':'02','sports':'03','social':'05','keizai':'06','ranking':'07','oshare':'08'},enjoy:{'btab':'01','clipon':'02','game':'03','event':'04'}}},current:{dir:'',base:''},hotel:{1:'top_RY2S',2:'top_RY2O',3:'top_RY2R'},design_ga:{1:'design_std',2:'design_ofc',3:'design_rcp'},btop_s_change:{bingo090209:'bingo',baseball090519:'camp',search090625:'camp',bingo090721:'bingo',bingo091013_a:'bingo',search091203:'camp',bingo100208_a:'bingo',sports20100524:'camp',sp_bingo100705_a:'bingo',sp_season101013:'sp_season101013',sp_bingo101201_a:'sp_bingo101201_a',sp_weboss101220:'sp_weboss101220',clipon:'clipon',everyday_prize:'camp',renewal080407:'camp',sp_baseball080701:'camp',sp_bingo080818:'bingo',sp_christmas081208:'camp',banner090810:'banner090810',bingo091013_b:'bingo',bingo100208_b:'bingo',sp_hajimete101228:'sp_hajimete101228',sp_weather:'sp_weather',sp_news:'sp_news',sp_tool:'sp_tool',bingo:'bingo',camp:'camp',sp_bingo110221_a:'sp_bingo110221_a',sp_kirei:'sp_kirei',sp_wedding:'sp_wedding',sp_soudan:'sp_soudan',sp_kireicamp:'sp_kireicamp'},start_ga:{sp_bingo120123_a:'sp_bingo120123_a',sp_clipon111121:'sp_clipon111121',sp_bingo110704_a:'sp_bingo110704_a',sp_kirei_large:'sp_kirei_large',bingo:'sp_bingo',camp:'sp_camp',sp_season101013:'sp_season101013',sp_bingo101201_a:'sp_bingo101201_a',sp_weboss101220:'sp_weboss101220',clipon:'sp_clipon',banner090810:'sp_banner090810',sp_hajimete101228:'sp_hajimete101228',sp_weather:'sp_weather',sp_news:'sp_news',sp_tool:'sp_tool',sp_bingo110221_a:'sp_bingo110221_a',sp_kirei:'sp_kirei',sp_wedding:'sp_wedding',sp_soudan:'sp_soudan',sp_kireicamp:'sp_kireicamp'},necpcfb:false,cookie:{btop_p:{expires:new Date(2030,11,31,23,59,59),path:'/'},news0809kimochi:{expires:new Date(2030,11,31,23,59,59),path:'/',domain:'biglobe.ne.jp'},btop_t:{expires:31,path:'/'},recommend_opt:{expires:new Date(2030,11,31,23,59,59),path:'/'},btop_s:{expires:new Date(2030,11,31,23,59,59),path:'/',domain:'biglobe.ne.jp'},btop_n:{expires:new Date(2030,11,31,23,59,59),path:'/'},btop_o:{path:'/'},btop_smode:{path:'/'},btop_e:{expires:new Date(2030,11,31,23,59,59),path:'/'}},emater:{0:'5&表示しない&nodisp',1:'0&東北電力&tohoku',2:'1&東京電力&tokyo',3:'2&中部電力&chuden',4:'3&関西電力&kansai',5:'4&九州電力&kyuden'},_SEARCH_TOP_SUGGEST_OFF_:0,changeDesign:function(id){var tmp=B.getBtop_p(),c;var tmp2=tmp[0].split('&');c=id+'&'+tmp2[1]+'&';if(tmp2[2]!=undefined)c+=tmp2[2];tmp[0]=c;B.setBtop_p(tmp);location.reload();},getBtop_p:function(){var p=$.cookieNe('btop_p');if(p==null)p='0&0&||||';var t=p.split('|');return t;},setBtop_p:function(d){var tmp='';for(var i=0;i<d.length;i++){tmp+=d[i]+'|';}
tmp=tmp.substr(0,tmp.length-1);$.cookieNe('btop_p',tmp,{expires:B.cookie.btop_p.expires,path:B.cookie.btop_p.path});},movementSearch:function(i,stype){var ht,label;var cgipath,domain,path;if(stype!='form'){if(i=='web_s'||i=='pic_s'||i=='twi_s'||i=='map_s'||i=='dic_s'||i=='bshop_s'){$('#'+B.search.id).attr('class','');$('#'+i).attr('class','s-on');}}
if(i=='web_s'){domain='http://cgi.search.biglobe.ne.jp';path='/cgi-bin/';if(B._SEARCH_TOP_SUGGEST_OFF_==0){bsSuggest.conf.SUGGEST_CGI_DOMAIN=domain;bsSuggest.conf.SUGGEST_CGI_PATH=path;}
if(location.href.match(/index-necpc.html/g)||location.href.match(/index-necpcsp.html/g)){label=B.search.web_cgi.necpc;cgipath=domain+path+label;}else if(location.href.match(/index-pc.html/g)||location.href.match(/index-necpcfb.html/g)){label=B.search.web_cgi.pc;cgipath=domain+path+label;}else{label=B.search.web_cgi.index;cgipath=domain+path+label;}
$('#srch').attr('action',cgipath);ht='<input type="hidden" name="'+i+'.x" value="1" />';$('#search_tag').html(ht);}else{domain='http://jmp.search.biglobe.ne.jp';path='/cgi-bin/fwd/';cgipath=domain+path+B.search.jmp_cgi.index;var psid=B.search.jmp_sid.index[i];label=B.search.jmp_cgi.index+'?sid='+psid;if(B._SEARCH_TOP_SUGGEST_OFF_==0){bsSuggest.conf.SUGGEST_CGI_DOMAIN=domain;bsSuggest.conf.SUGGEST_CGI_PATH=path;bsSuggest.conf.SUGGEST_CGI_NAME=label;}
$('#srch').attr('action',cgipath);ht='<input type="hidden" name="sid" id="search_tag_sid" value="'+psid+'" />';$('#search_tag').html(ht);if(B.ua.safari)$('#search_tag_sid').attr('value',psid);}
if(stype!='form'&&!(i=='web_s'||i=='pic_s'||i=='twi_s'||i=='map_s'||i=='dic_s'||i=='bshop_s')){B.search.id=i
$('#srch').submit();return false;}
if(stype!='form'){if(B.search.id==i){$('#srch').submit();return false;}else{B.search.id=i;if($('#sfrm input').attr('value')==''){$('#sfrm input').focus();}else{$('#srch').submit();return false;}}
}else{B.gae('search','submit',label);}},kkLoc:function(obj){var query=$(obj).attr('href');var q=query.split('q=');var url='http://cgi.search.biglobe.ne.jp/cgi-bin/search-top-kk?_btop_kk=';var prm=B.search.kk_param.index[BP.tp];var label='search-top-kk?_btop_kk='+prm;url=url+prm+'&q='+q[1];B.gae('search','click',label);location.href=url;return;},changeEnergy:function(id){B.setBtop_e(id);location.reload();},setBtop_e:function(id){$.cookieNe('btop_e',id,{expires:B.cookie.btop_e.expires,path:B.cookie.btop_e.path});},getPage:function(id,t,sid){var tab;var tpid=BP.tp;if(t==1){if(B.tab.id.news==''){B.tab.id.news=$('.n-on').attr('id');if(B.tab.id.news==undefined){B.tab.id.news=$('.n-end-on').attr('id');}}
tab=B.tab.id.news;}
if(t==2){tab=B.tab.id.promo;}
if(t==3){if(B.tab.id.enjoy==''){B.tab.id.enjoy=$('.jo-on').attr('id');if(B.tab.id.enjoy==undefined){B.tab.id.enjoy=$('.end-on').attr('id');}}
tab=B.tab.id.enjoy;}
if(tab==id){var category;if(t==1)category='news_'+id;if(t==2)category='promo';if(t==3)category=id;if(t==1||(t==3&&(id=='event'||id=='btab'))){label=$('#'+id+' a:first-child').attr('href');}else if(t==2){label=sid+'_tab';}else{label=id;}
B.gae(category,'click',label);return true;}
var tmp_id;if(t==1)tmp_id=B.tab.val.news[id];if(t==2)tmp_id=sid;if(t==3)tmp_id=B.tab.val.enjoy[id];var filename=B.tab.path[t-1]+'/c_'+BP.tp+'_'+B.tab.type[t-1]+'_'+tmp_id+'.'+B.tab.ext;$.ajax({url:filename,cache:false,success:function(html){B.setTab(html,id,t,sid);}});return false;},setTab:function(res,id,type,sid){$('#menu'+type).html(res);if(type==1){var cn1=$('#'+B.tab.id.news).attr('class'),cn2=$('#'+id).attr('class');var nc1=cn1.replace('-on',''),nc2=cn2.replace('n','n-on');if(id=='ranking'){if(!cn2.match(/n-end-on/))nc2=cn2.replace('n-end','n-end-on');else	nc2=cn2;}
if(B.ua.opera){$('#nlst').css('padding-bottom','0.1em');}
if($('.baseball').html()){var ht='このエリアはFlash Player8以上でお楽しみいただけます。';$('#pickup').flashvercheck(8,ht);}
$('#'+B.tab.id.news).attr('class',nc1);$('#'+id).attr('class',nc2);B.tab.id.news=id;var num=$.cookieNe('news0809kimochi');if(BP.tp==2){if(num==null)num=0;}
B.setKonoff(num);$("li[id^='kimochi']").setKimochi(num);res=B.tab.val.news[id];$.cookieNe('btop_n',res,{expires:B.cookie.btop_n.expires,path:B.cookie.btop_n.path});}else if(type==2){$('#'+B.tab.id.promo).attr('class','');$('#'+id).attr('class','prom-on');if(B.checkRecommend(sid)){Rtoaster.click(sid);}
B.setPromCookie(sid);B.tab.id.promo=id;}else if(type==3){var tpid=BP.tp;var cn1=$('#'+B.tab.id.enjoy).attr('class'),cn2=$('#'+id).attr('class');$('#'+B.tab.id.enjoy).attr('class',cn1.replace('-on',''));$('#'+id).attr('class',cn2+'-on');if(id=='clipon'){$('#cfla').flashvercheck(8,'<div id="ncfla">このエリアはFlash Player8以上でお楽しみいただけます。</div>');}
if(B.ua.safari){if(id=='event')$('.clnk').css('margin-top','0.9em');if(id=='btab')$('#bingo').css('margin-bottom','0.8em');}
B.tab.id.enjoy=id;res=B.tab.val.enjoy[id];$.cookieNe('btop_o',res,{path:B.cookie.btop_o.path});}},setKonoff:function(val){var ht;if(val=='0'){ht='<a href="/?T" id="nmloff">関心メーター表示をONにする</a>';}else{ht='<a href="/?T" id="nml">表示をOFFにする</a>';}
$('#k-sw').html(ht);},officeKimochi:function(){var num=$.cookieNe('news0809kimochi');if(num==null){B.setKonoff(0);$("li[id^='kimochi']").setKimochi(0);}},kimochi:function(val){$('#k-sw a').click(function(e){if(val==0){$.cookieNe('news0809kimochi','1',{expires:B.cookie.news0809kimochi.expires,path:B.cookie.news0809kimochi.path,domain:B.cookie.news0809kimochi.domain});B.setKonoff(1);$("li[id^='kimochi']").setKimochi(1);}else{$.cookieNe('news0809kimochi','0',{expires:B.cookie.news0809kimochi.expires,path:B.cookie.news0809kimochi.path,domain:B.cookie.news0809kimochi.domain});B.setKonoff(0);$("li[id^='kimochi']").setKimochi(0);}
return false;});},gae:function(c,a,l){if(typeof _gaq!=undefined&&c!=undefined&&a!=undefined&&l!=undefined){_gaq.push(['_trackEvent',c,a,l]);}},setPromCookie:function(id){re=new RegExp("_","i");if(id.search(re)!=-1){id=RegExp.leftContext;}
var sc='',max=10;var dt='';if(typeof(BP)=='undefined'){dt=new Date();}else{if(BP.dt!=null&&typeof(BP.dt.getFullYear)=='function'){dt=new Date(BP.dt);}else{dt=new Date();}}
var exdt=new Date(dt);exdt.setDate(exdt.getDate()+B.cookie.btop_t.expires);dt.setDate(dt.getDate()+30);var y=dt.getFullYear();var m=dt.getMonth()+1;if(m<10)m='0'+m;var d=dt.getDate();if(d<10)d='0'+d;var h=$.cookieNe('btop_t');if(h==null)h='';if(h.length<=0){sc=id+'&'+y+m+d;}else{var tmp=h.split('|'),tmp2;for(var i=0;i<tmp.length;i++){tmp2=tmp[i].split('&');if(tmp2[0]!=id){sc+=tmp[i]+'|';}}
sc+=id+'&'+y+m+d;tmp=sc.split('|');if(tmp.length>max){sc='';for(var j=1;j<=max;j++){sc+=tmp[j];if(j!=max)sc+='|';}}}
$.cookieNe('btop_t',sc,{expires:exdt,path:B.cookie.btop_t.path});},promoRT:function(element,specialid){if(specialid=='')return;if(!BP.rt[specialid])return;$('#'+element).attr('id','recommend_'+specialid);var ht='<a href="'+BP.rt[specialid]['url']+'">'+BP.rt[specialid]['name']+'</a>';var tmp=element.replace('rt_top_promo','rt_top_promo_tab');$('#'+tmp).html(ht);$('#'+tmp+' a').click(function(e){return(B.getPage(tmp,2,specialid));});},checkRecommend:function(id){var tmp=$('#recommend_'+id).html();if(id==tmp)return true;return false;},swfAttach:function(){var f;f='<object width="390" height="110" style="visibility: visible;" id="externalFlash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" type="application/x-shockwave-flash" width="390" height="110">';f+='<param name="movie" value="/e/clipon_111121/scratch.swf">';f+='<param value="always" name="allowscriptaccess">';f+='<param value="all" name="allowNetworking">';f+='<param value="false" name="menu">';f+='<param value="showAll" name="scale">';f+='<param value="middle" name="align">';f+='<param value="TM" name="salign">';f+='<param value="#FFFFFF" name="bgcolor">';f+='<param value="select=scratch&amp;route=bltop&amp;target=_blank&amp;size=small" name="flashvars">';f+='<embed src="/e/clipon_111121/scratch.swf" bgcolor="#FFFFFF"  WIDTH="390" HEIGHT="110" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" flashvars="select=scratch&amp;route=bltop&amp;target=_blank&amp;size=small">';f+='</object>';$('#cfla').html(f);}};(function(){if(navigator.userAgent.indexOf('Fletsphone')!=-1){location.href='./tvphone/index.html';}
if(location.href.match(/(.+)\/([^\/]*)/)){B.current.dir=RegExp.$1+'/';B.current.base=RegExp.$2;if(B.current.base.match(/([^\?]*)\?/)){B.current.base=RegExp.$1;}}
if(location.href.match(/index-necpcfb.html/g)){B.necpcfb=true;}})();(function(){$.fn.setKimochi=function(val){if(val==0){this.each(function(i,v){if(v.className!='n-new')v.className=v.className+'-off';});}else{this.each(function(i,v){v.className=v.className.replace('-off','');});}
B.kimochi(val);};$.fn.flashvercheck=function(ver,h){var version='0';if(navigator.plugins&&navigator.mimeTypes['application/x-shockwave-flash']){var plugin=navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin;if(plugin&&plugin.description){version=plugin.description.replace(/^[A-Za-z\s]+/,'');version=version.split('.',2);version=version[0];}}else{try{var version=new ActiveXObject('ShockwaveFlash.ShockwaveFlash').FlashVersion();version=Math.floor(version/0x10000);}catch(e){}}
if(ver>version){this.html(h);}}})();jQuery.cookieNe=function(name,value,options){if(typeof value!="undefined"){options=options||{};if(value===null){value="";options.expires=-1}var expires="";if(options.expires&&(typeof options.expires=="number"||options.expires.toUTCString)){var date;if(typeof options.expires=="number"){date=new Date;date.setTime(date.getTime()+options.expires*24*60*60*1E3)}else date=options.expires;expires="; expires="+date.toUTCString()}var path=options.path?"; path="+options.path:"";var domain=options.domain?"; domain="+
options.domain:"";var secure=options.secure?"; secure":"";document.cookie=[name,"=",value,expires,path,domain,secure].join("")}else{var cookieValue=null;if(document.cookie&&document.cookie!=""){var cookies=document.cookie.split(";");for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==name+"="){cookieValue=cookie.substring(name.length+1);break}}}return cookieValue}};(function(a){var b=function(b){var b=a(b),c=b[0];for(var d in c)(function(d){if(a.isFunction(c[d]))b[d]=/^get[^a-z]/.test(d)?function(){return c[d].apply(c,arguments)}:function(){var a=arguments;b.each(function(c){var e=b[c];e[d].apply(e,a)});return b}})(d);return b};a.ex=a.ex||{};a.ex.resize=function(b,c,d){if(a.isFunction(d)){d={callback:d}}var e=this,f=e.config=a.extend({},a.ex.resize.defaults,d);f.targets=c;f.target=f.watchTarget=f.targets.eq(b);f.index=b;f.oldBrowser=a.browser.msie&&(a.browser.version<8||!a.boxModel);f.key={height:"",width:""};if(f.contentsWatch){e._createContentsWrapper()}f.currentSize=f.newSize=e.getSize();if(f.resizeWatch)e._resizeWatch()};a.extend(a.ex.resize.prototype,{_createContentsWrapper:function(){var a=this,b=a.config;var c=b.oldBrowser?"zoom:1;display:inline":"display:inline-block";b.watchTarget=b.target.wrapInner('<div style="'+c+";width:"+b.target.css("width")+'"/>').children();return a},_resizeWatch:function(){var a=this,b=a.config;setTimeout(function(){if(b.contentsWatch){if(b.watchTarget.prev().size()>0||b.watchTarget.next().size()>0||b.watchTarget.parent().get(0)!=b.target.get(0)){b.watchTarget.replaceWith(b.watchTarget.get(0).childNodes);a._createContentsWrapper()}}if(a._isResize()){b.currentSize=b.newSize;b.callback.call(b.watchTarget.get(0),a)}a._resizeWatch()},b.resizeWatch)},_isResize:function(){var a=this,b=a.config;var c=false;b.newSize=a.getSize();for(var d in b.key){c=c||b.newSize[d]!=b.currentSize[d]}return c},getTargets:function(){return this.config.targets},getTarget:function(){return this.config.target},getSize:function(){var a=this,b=a.config;if(b.contentsWatch)b.watchTarget.css("width","auto");var c={};for(var d in b.key){c[d]=b.watchTarget[d]()}if(b.contentsWatch)b.watchTarget.css("width",b.target.css("width"));return c}});a.ex.resize.defaults={contentsWatch:false,resizeWatch:100,callback:function(){}};a.fn.exResize=function(c){var d=this,e=[];d.each(function(b){var f=d.eq(b);var g=f.data("ex-resize")||new a.ex.resize(b,d,c);e.push(g);f.data("ex-resize",g)});return c&&c.api?b(e):d}})(jQuery)
/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/*
 *      exResize 0.1.0 - jQuery plugin
 *      written by Cyokodog
 *
 *      Copyright (c) 2010 Cyokodog (http://d.hatena.ne.jp/cyokodog/)
 *      Dual licensed under the MIT (MIT-LICENSE.txt)
 *      and GPL (GPL-LICENSE.txt) licenses.
 *
 *      Built for jQuery library
 *      http://jquery.com
 *
 */



