/* Copyright 2008 Google Inc. */ (function() { var d=true,j=null,k=false,m=m||{};m.global=this;m.DEBUG=d;m.LOCALE="ja";m.b=j;m.provide=function(a){m.e(a)};m.e=function(a,b,c){a=a.split(".");c=c||m.global;!(a[0]in c)&&c.execScript&&c.execScript("var "+a[0]);for(var e;a.length&&(e=a.shift());)if(!a.length&&m.isDef(b))c[e]=b;else c=c[e]?c[e]:(c[e]={})};m.getObjectByName=function(a,b){a=a.split(".");b=b||m.global;for(var c;c=a.shift();)if(b[c])b=b[c];else return j;return b};m.globalize=function(a,b){b=b||m.global;for(var c in a)b[c]=a[c]};
m.addDependency=function(){};m.require=function(){};m.useStrictRequires=k;m.basePath="";m.nullFunction=function(){};m.identityFunction=function(){return arguments[0]};m.abstractMethod=function(){throw Error("unimplemented abstract method");};m.addSingletonGetter=function(a){a.getInstance=function(){return a.g||(a.g=new a)}};
m.typeOf=function(a){var b=typeof a;if(b=="object")if(a){if(a instanceof Array||!(a instanceof Object)&&Object.prototype.toString.call(a)=="[object Array]"||typeof a.length=="number"&&typeof a.splice!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("splice"))return"array";if(!(a instanceof Object)&&(Object.prototype.toString.call(a)=="[object Function]"||typeof a.call!="undefined"&&typeof a.propertyIsEnumerable!="undefined"&&!a.propertyIsEnumerable("call")))return"function"}else return"null";
else if(b=="function"&&typeof a.call=="undefined")return"object";return b};m.h=function(a,b){if(b in a)for(var c in a)if(c==b&&Object.prototype.hasOwnProperty.call(a,b))return d;return k};m.i=function(a,b){return a instanceof Object?Object.prototype.propertyIsEnumerable.call(a,b):m.h(a,b)};m.isDef=function(a){return a!==undefined};m.isNull=function(a){return a===j};m.isDefAndNotNull=function(a){return a!=j};m.isArray=function(a){return m.typeOf(a)=="array"};
m.isArrayLike=function(a){var b=m.typeOf(a);return b=="array"||b=="object"&&typeof a.length=="number"};m.isDateLike=function(a){return m.isObject(a)&&typeof a.getFullYear=="function"};m.isString=function(a){return typeof a=="string"};m.isBoolean=function(a){return typeof a=="boolean"};m.isNumber=function(a){return typeof a=="number"};m.isFunction=function(a){return m.typeOf(a)=="function"};m.isObject=function(a){a=m.typeOf(a);return a=="object"||a=="array"||a=="function"};
m.getHashCode=function(a){if(a.hasOwnProperty&&a.hasOwnProperty(m.a))return a[m.a];a[m.a]||(a[m.a]=++m.f);return a[m.a]};m.removeHashCode=function(a){"removeAttribute"in a&&a.removeAttribute(m.a);try{delete a[m.a]}catch(b){}};m.a="closure_hashCode_"+Math.floor(Math.random()*2147483648).toString(36);m.f=0;m.cloneObject=function(a){var b=m.typeOf(a);if(b=="object"||b=="array"){if(a.clone)return a.clone.call(a);b=b=="array"?[]:{};for(var c in a)b[c]=m.cloneObject(a[c]);return b}return a};
m.bind=function(a,b){var c=b||m.global;if(arguments.length>2){var e=Array.prototype.slice.call(arguments,2);return function(){var h=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(h,e);return a.apply(c,h)}}else return function(){return a.apply(c,arguments)}};m.partial=function(a){var b=Array.prototype.slice.call(arguments,1);return function(){var c=Array.prototype.slice.call(arguments);c.unshift.apply(c,b);return a.apply(this,c)}};m.mixin=function(a,b){for(var c in b)a[c]=b[c]};
m.now=Date.now||function(){return+new Date};
m.globalEval=function(a){if(m.global.execScript)m.global.execScript(a,"JavaScript");else if(m.global.eval){if(m.b==j){m.global.eval("var _et_ = 1;");if(typeof m.global._et_!="undefined"){delete m.global._et_;m.b=d}else m.b=k}if(m.b)m.global.eval(a);else{var b=m.global.document,c=b.createElement("script");c.type="text/javascript";c.defer=k;c.appendChild(b.createTextNode(a));b.body.appendChild(c);b.body.removeChild(c)}}else throw Error("goog.globalEval not available");};m.typedef=d;
m.getCssName=function(a,b){a=a+(b?"-"+b:"");return m.d&&a in m.d?m.d[a]:a};m.setCssNameMapping=function(a){m.d=a};m.getMsg=function(a,b){b=b||{};for(var c in b)a=a.replace(new RegExp("\\{\\$"+c+"\\}","gi"),b[c]);return a};m.exportSymbol=function(a,b,c){m.e(a,b,c)};m.exportProperty=function(a,b,c){a[b]=c};m.inherits=function(a,b){function c(){}c.prototype=b.prototype;a.c=b.prototype;a.prototype=new c;a.prototype.constructor=a};
m.base=function(a,b){var c=arguments.callee.caller;if(c.c)return c.c.constructor.apply(a,Array.prototype.slice.call(arguments,1));for(var e=Array.prototype.slice.call(arguments,2),h=k,f=a.constructor;f;f=f.c&&f.c.constructor)if(f.prototype[b]===c)h=d;else if(h)return f.prototype[b].apply(a,e);if(a[b]===c)return a.constructor.prototype[b].apply(a,e);else throw Error("goog.base called from a method of one name to a method of a different name");};m.MODIFY_FUNCTION_PROTOTYPES=d;
if(m.MODIFY_FUNCTION_PROTOTYPES){Function.prototype.bind=function(a){if(arguments.length>1){var b=Array.prototype.slice.call(arguments,1);b.unshift(this,a);return m.bind.apply(j,b)}else return m.bind(this,a)};Function.prototype.partial=function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,j);return m.bind.apply(j,a)};Function.prototype.inherits=function(a){m.inherits(this,a)};Function.prototype.mixin=function(a){m.mixin(this.prototype,a)}};function n(a){if(a.readyState==4)if(a.status==200){a=a.responseText;if(!(a.length<1))if(!(a[0]!=100||a.length!=3)){var b="watch"+a[1]+"@"+a[2];a=window.document.getElementsByName(b);b=window.document.getElementsByName(b+"_img");for(var c=0;c<a.length;c++){a[c].setAttribute("value",0);b[c].src="/groups/img/watched_n.gif";a[c].blur()}}}}
var p=["\u30b9\u30bf\u30fc\u3092\u4ed8\u3051\u3066\u3053\u306e\u30c8\u30d4\u30c3\u30af\u3092\u30c1\u30a7\u30c3\u30af","\u3053\u306e\u30c8\u30d4\u30c3\u30af\u3092\u76e3\u8996","\u66f4\u65b0\u60c5\u5831\u3092\u30e1\u30fc\u30eb\u3067\u53d7\u4fe1\u3059\u308b\u306b\u306f\u3001\u5c01\u7b52\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044","\u30b9\u30ec\u30c3\u30c9\u306e\u66f4\u65b0\u3092\u30e1\u30fc\u30eb\u3067\u53d7\u4fe1\u3059\u308b"];
function q(a,b,c){this.id="rating_holder_"+a;this.rating=b;this.text=c}m.exportSymbol("RAT_RatingHolder",q);var u=j;function v(){u=j;window.document.body.parentNode.onmouseup=j}function w(a,b,c){u=c;window.document.body.parentNode.onmouseup=v;x(a,b)}m.exportSymbol("RAT_startTrackingStars",w);function y(a){window.is_ie&&u!=j&&a.button==0&&v()}m.exportSymbol("RAT_mouseMove",y);function z(a,b,c,e,h){if(u!=j&&u==e){x(b,c);A(a,b,c,e,h);u=j}}m.exportSymbol("RAT_mouseUpInStar",z);
function A(a,b,c,e,h){window._SendServerRequest(window._G2_UrlBuilder.makeGroupUrl("/ratings?did="+b+"&rat="+c+"&tok="+h));e.rating=c;e.text="\u4fdd\u5b58\u3055\u308c\u305f\u8a55\u4fa1";a=window.document.getElementById("ratings_text_"+b);a.innerHTML=e.text;if(e.text=="Text for clearing space")a.style.display="none"}
function B(a,b,c){if(!(u!=j&&u!=c)){if(u!=j&&u==c)x(a,b);else for(c=1;c<=b;c++)window.document.getElementById("s"+c+"_"+a+"_img").src="/groups/img/yellow_star_lite.gif";a=window.document.getElementById("ratings_text_"+a);a.style.display="inline";switch(b){case "1":a.innerHTML="\u975e\u5e38\u306b\u826f\u304f\u306a\u3044";break;case "2":a.innerHTML="\u3042\u307e\u308a\u826f\u304f\u306a\u3044";break;case "3":a.innerHTML="\u666e\u901a";break;case "4":a.innerHTML="\u826f\u3044";break;case "5":a.innerHTML=
"\u975e\u5e38\u306b\u826f\u3044";break;default:break}}}m.exportSymbol("RAT_hesitateStars",B);function C(a,b,c){x(a,c.rating);a=window.document.getElementById("ratings_text_"+a);a.innerHTML=c.text;if(c.text=="Text for clearing space")a.style.display="none"}m.exportSymbol("RAT_unhesStars",C);
function x(a,b){for(var c=1;c<=5;c++)if(c<=b)window.document.getElementById("s"+c+"_"+a+"_img").src="/groups/img/yellow_star_blue_outline.gif";else window.document.getElementById("s"+c+"_"+a+"_img").src="/groups/img/clear_star_blue_outline.gif"}m.exportSymbol("RAT_lightStars",x);
function D(a,b,c,e){var h="watch"+b+"@"+c,f=window.document.getElementsByName(h);h=window.document.getElementsByName(h+"_img");var i="threadsub"+b+"@"+c,l=window.document.getElementsByName(i),o=window.document.getElementsByName(i+"_img"),r=window.document.getElementsByName(i+"_lnk0");i=window.document.getElementsByName(i+"_lnk2");if(f.length<1)return k;var s;try{s=parseInt(f[0].getAttribute("value"),10)}catch(J){s=1}if(l.length<1)if(e==2)return k;var t;try{t=parseInt(l[0].getAttribute("value"),10)}catch(K){t=
0}if(e==1)for(var g=0;g<f.length;g++){if(s==0){f[g].setAttribute("value",1);h[g].src="/groups/img/watched_y.gif";h[g].title=p[1]}else{f[g].setAttribute("value",0);h[g].src="/groups/img/watched_n.gif";h[g].title=p[0]}f[g].blur()}else for(g=0;g<l.length;g++){if(t==0){l[g].setAttribute("value",1);if(o.length>g)o[g].src="/groups/img/threadsub_y.gif";if(o.length>g)o[g].title=p[3];if(r.length>g)r[g].style.display="";if(i.length>g)i[g].style.display="none"}else{l[g].setAttribute("value",0);if(o.length>g)o[g].src=
"/groups/img/threadsub_n.gif";if(o.legnth>g)o[g].title=p[2];if(r.length>g)r[g].style.display="none";if(i.length>g)i[g].style.display=""}l[g].blur()}f=2*t+s;a=window._G2_UrlBuilder.makeGroupUrlForGroup(window._G2_createGroup(b),"/watch_topic?Action.JS=1&WebToken="+a+"&tid="+c+"&oldstate="+f+"&email="+(e==2?"1":"0"));window._StartGETRequest(a,n);if(a=window.is_ie?window.event:this)if(window.is_ie){a.cancelBubble=d;a.returnValue=k}return k}m.exportSymbol("toggleStar",D);
function E(a,b,c,e){var h="watch"+c+"_"+e;c=window.document.getElementsByName(h);h=window.document.getElementsByName(h+"_img");if(!(c.length<1)){var f;try{f=parseInt(c[0].getAttribute("value"),10)}catch(i){f=1}for(var l=0;l<c.length;l++){if(f==1){c[l].setAttribute("value",0);h[l].src="/groups/img/watched_n.gif"}else{c[l].setAttribute("value",1);h[l].src="/groups/img/watched_y.gif"}c[l].blur()}a=window._G2_UrlBuilder.makeGroupUrlForGroup(window._G2_createGroup(b),"/watch_topic?Action.JS=1&WebToken="+
a+"&tid="+e+"&oldstate="+f+"&email=0");window._SendServerRequest(a);if(a=window.is_ie?window.event:this){if(window.is_ie){a.cancelBubble=d;a.returnValue=k}return k}return k}}m.exportSymbol("toggle_watch",E);function F(a,b){a="threadsub"+a+"@"+b;a=window.document.getElementsByName(a);if(a.length<1)return k;var c;try{c=parseInt(a[0].getAttribute("value"),10)}catch(e){return k}return c?d:k}m.exportSymbol("TS_isThreadSubbed",F);
function G(a,b,c,e){if(a.readyState<=3){b.style.display="none";c.style.display="inline";e.style.display="none"}else{b.style.display="none";c.style.display="none";e.style.display="inline"}}
function H(a,b,c,e){a=window.document.getElementById("thrsp"+b);var h=a.getElementsByTagName("div");window._StartGETRequest(window._G2_UrlBuilder.makeGroupUrl("/spam_rating?thread="+b+"&tok="+c),function(f){G(f,h[0],h[1],h[2]);if(e&&f.readyState==4){var i=document.getElementsByName("spam_report");for(f=0;f<i.length;++f)i[f].style.display="none";i=document.getElementsByName("spam_progress");for(f=0;f<i.length;++f)i[f].style.display="none";i=document.getElementsByName("spam_reported");for(f=0;f<i.length;++f)i[f].style.display=
"inline"}});return d}m.exportSymbol("reportThreadSpam",H);function I(a,b,c){a="sp"+b;a=window.document.getElementById(a);var e=a.getElementsByTagName("div");window._StartGETRequest(window._G2_UrlBuilder.makeGroupUrl("/spam_rating?msg="+b+"&tok="+c),function(h){G(h,e[0],e[1],e[2])});return d}m.exportSymbol("reportMessageSpam",I); })()
