var GLOBAL_encodeURIComponent=encodeURIComponent,GLOBAL_Object=Object,GLOBAL_Error=Error,GLOBAL_String=String,GLOBAL_document=document,GLOBAL_decodeURIComponent=decodeURIComponent,GLOBAL_Array=Array;function SETPROP_length(b,c){return b.length=c}function SETPROP_title(b,c){return b.title=c}function SETPROP_innerHTML(b,c){return b.innerHTML=c}function SETPROP_currentTarget(b,c){return b.currentTarget=c}function SETPROP_target(b,c){return b.target=c}
function SETPROP_keyCode(b,c){return b.keyCode=c}function SETPROP_type(b,c){return b.type=c}
var $$PROP_push="push",$$PROP_length="length",$$PROP_prototype="prototype",$$PROP_test="test",$$PROP_exec="exec",$$PROP_abort="abort",$$PROP_slice="slice",$$PROP_replace="replace",$$PROP_document="document",$$PROP_split="split",$$PROP_button="button",$$PROP_indexOf="indexOf",$$PROP_message="message",$$PROP_hasOwnProperty="hasOwnProperty",$$PROP_dispatchEvent="dispatchEvent",$$PROP_target="target",$$PROP_call="call",$$PROP_createElement="createElement",$$PROP_keyCode="keyCode",$$PROP_forEach="forEach",
$$PROP_handleEvent="handleEvent",$$PROP_type="type",$$PROP_contains="contains",$$PROP_apply="apply",$$PROP_parentNode="parentNode",$$PROP_fileName="fileName",$$PROP_join="join",$$PROP_unshift="unshift",a,goog=goog||{},goog$global=this,goog$exportPath_=function(b,c,d){var e=b[$$PROP_split]("."),f=d||goog$global,g;!(e[0]in f)&&f.execScript&&f.execScript("var "+e[0]);for(;e[$$PROP_length]&&(g=e.shift());)if(!e[$$PROP_length]&&typeof c!="undefined")f[g]=c;else f=f[g]?f[g]:(f[g]={})},goog$getObjectByName=
function(b,c){var d=b[$$PROP_split]("."),e=c||goog$global,f;for(;f=d.shift();)if(e[f])e=e[f];else return null;return e},goog$nullFunction=function(){},goog$typeOf=function(b){var c=typeof b;if(c=="object")if(b){if(b instanceof GLOBAL_Array||!(b instanceof GLOBAL_Object)&&GLOBAL_Object[$$PROP_prototype].toString[$$PROP_call](b)=="[object Array]")return"array";if(typeof b[$$PROP_call]!="undefined")return"function"}else return"null";else if(c=="function"&&typeof b[$$PROP_call]=="undefined")return"object";
return c};var goog$isArray=function(b){return goog$typeOf(b)=="array"},goog$isArrayLike=function(b){var c=goog$typeOf(b);return c=="array"||c=="object"&&typeof b[$$PROP_length]=="number"},goog$isString=function(b){return typeof b=="string"};
var goog$isObject=function(b){var c=goog$typeOf(b);return c=="object"||c=="array"||c=="function"},goog$getHashCode=function(b){if(b[$$PROP_hasOwnProperty]&&b[$$PROP_hasOwnProperty]("closure_hashCode_"))return b.closure_hashCode_;b.closure_hashCode_||(b.closure_hashCode_=++goog$hashCodeCounter_);return b.closure_hashCode_},goog$hashCodeCounter_=0,goog$bind=function(b,c){var d=b.boundArgs_;if(arguments[$$PROP_length]>2){var e=GLOBAL_Array[$$PROP_prototype][$$PROP_slice][$$PROP_call](arguments,2);d&&
e[$$PROP_unshift][$$PROP_apply](e,d);d=e}c=b.boundSelf_||c;b=b.boundFn_||b;var f,g=c||goog$global;f=d?function(){var h=GLOBAL_Array[$$PROP_prototype][$$PROP_slice][$$PROP_call](arguments);h[$$PROP_unshift][$$PROP_apply](h,d);return b[$$PROP_apply](g,h)}:function(){return b[$$PROP_apply](g,arguments)};f.boundArgs_=d;f.boundSelf_=c;f.boundFn_=b;return f},goog$partial=function(b){var c=GLOBAL_Array[$$PROP_prototype][$$PROP_slice][$$PROP_call](arguments,1);c[$$PROP_unshift](b,null);return goog$bind[$$PROP_apply](null,
c)},goog$now=Date.now||function(){return(new Date).getTime()},goog$exportSymbol=function(b,c,d){goog$exportPath_(b,c,d)},goog$inherits=function(b,c){function d(){}d.prototype=c[$$PROP_prototype];b.superClass_=c[$$PROP_prototype];b.prototype=new d;b[$$PROP_prototype].constructor=b};
Function[$$PROP_prototype].bind=function(b){if(arguments[$$PROP_length]>1){var c=GLOBAL_Array[$$PROP_prototype][$$PROP_slice][$$PROP_call](arguments,1);c[$$PROP_unshift](this,b);return goog$bind[$$PROP_apply](null,c)}else return goog$bind(this,b)};var goog$array$indexOf=function(b,c,d){if(b[$$PROP_indexOf])return b[$$PROP_indexOf](c,d);if(GLOBAL_Array[$$PROP_indexOf])return GLOBAL_Array[$$PROP_indexOf](b,c,d);var e=d==null?0:d<0?Math.max(0,b[$$PROP_length]+d):d,f=e;for(;f<b[$$PROP_length];f++)if(f in b&&b[f]===c)return f;return-1},goog$array$forEach=function(b,c,d){if(b[$$PROP_forEach])b[$$PROP_forEach](c,d);else if(GLOBAL_Array[$$PROP_forEach])GLOBAL_Array[$$PROP_forEach](b,c,d);else{var e=b[$$PROP_length],f=goog$isString(b)?b[$$PROP_split](""):
b,g=0;for(;g<e;g++)g in f&&c[$$PROP_call](d,f[g],g,b)}},goog$array$contains=function(b,c){if(b[$$PROP_contains])return b[$$PROP_contains](c);return goog$array$indexOf(b,c)>-1},goog$array$remove=function(b,c){var d=goog$array$indexOf(b,c),e;if(e=d!=-1)GLOBAL_Array[$$PROP_prototype].splice[$$PROP_call](b,d,1)[$$PROP_length]==1;return e};
var goog$array$clone=function(b){if(goog$isArray(b))return b.concat();else{var c=[],d=0,e=b[$$PROP_length];for(;d<e;d++)c[d]=b[d];return c}},goog$array$toArray=function(b){if(goog$isArray(b))return b.concat();return goog$array$clone(b)},goog$array$extend=function(b){var c=1;for(;c<arguments[$$PROP_length];c++){var d=arguments[c];if(goog$isArrayLike(d)){d=goog$array$toArray(d);b[$$PROP_push][$$PROP_apply](b,d)}else b[$$PROP_push](d)}};var goog$dom$defaultDomHelper_;var goog$object$forEach=function(b,c,d){for(var e in b)c[$$PROP_call](d,b[e],e,b)},goog$object$getValues=function(b){var c=[],d=0;for(var e in b)c[d++]=b[e];return c},goog$object$getKeys=function(b){var c=[],d=0;for(var e in b)c[d++]=e;return c},goog$object$PROTOTYPE_FIELDS_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],goog$object$extend=function(b){var c,d,e=1;for(;e<arguments[$$PROP_length];e++){d=arguments[e];for(c in d)b[c]=d[c];
var f=0;for(;f<goog$object$PROTOTYPE_FIELDS_[$$PROP_length];f++){c=goog$object$PROTOTYPE_FIELDS_[f];if(GLOBAL_Object[$$PROP_prototype][$$PROP_hasOwnProperty][$$PROP_call](d,c))b[c]=d[c]}}};var goog$string$trim=function(b){return b[$$PROP_replace](/^[\s\xa0]+|[\s\xa0]+$/g,"")},goog$string$encodeUriRegExp_=/^[a-zA-Z0-9\-_.!~*'()]*$/,goog$string$urlEncode=function(b){b=GLOBAL_String(b);if(!goog$string$encodeUriRegExp_[$$PROP_test](b))return GLOBAL_encodeURIComponent(b);return b};
var goog$string$htmlEscape=function(b,c){if(c)return b[$$PROP_replace](goog$string$amperRe_,"&amp;")[$$PROP_replace](goog$string$ltRe_,"&lt;")[$$PROP_replace](goog$string$gtRe_,"&gt;")[$$PROP_replace](goog$string$quotRe_,"&quot;");else{if(!goog$string$allRe_[$$PROP_test](b))return b;if(b[$$PROP_indexOf]("&")!=-1)b=b[$$PROP_replace](goog$string$amperRe_,"&amp;");if(b[$$PROP_indexOf]("<")!=-1)b=b[$$PROP_replace](goog$string$ltRe_,"&lt;");if(b[$$PROP_indexOf](">")!=-1)b=b[$$PROP_replace](goog$string$gtRe_,
"&gt;");if(b[$$PROP_indexOf]('"')!=-1)b=b[$$PROP_replace](goog$string$quotRe_,"&quot;");return b}},goog$string$amperRe_=/&/g,goog$string$ltRe_=/</g,goog$string$gtRe_=/>/g,goog$string$quotRe_=/\"/g,goog$string$allRe_=/[&<>\"]/;
var goog$string$compareVersions=function(b,c){var d=0,e=goog$string$trim(GLOBAL_String(b))[$$PROP_split]("."),f=goog$string$trim(GLOBAL_String(c))[$$PROP_split]("."),g=Math.max(e[$$PROP_length],f[$$PROP_length]),h=0;for(;d==0&&h<g;h++){var i=e[h]||"",m=f[h]||"",k=new RegExp("(\\d*)(\\D*)","g"),j=new RegExp("(\\d*)(\\D*)","g");do{var l=k[$$PROP_exec](i)||["","",""],n=j[$$PROP_exec](m)||["","",""];if(l[0][$$PROP_length]==0&&n[0][$$PROP_length]==0)break;var o=l[1][$$PROP_length]==0?0:parseInt(l[1],10),
p=n[1][$$PROP_length]==0?0:parseInt(n[1],10);d=goog$string$compareElements_(o,p)||goog$string$compareElements_(l[2][$$PROP_length]==0,n[2][$$PROP_length]==0)||goog$string$compareElements_(l[2],n[2])}while(d==0)}return d},goog$string$compareElements_=function(b,c){if(b<c)return-1;else if(b>c)return 1;return 0};goog$now();var goog$userAgent$detectedOpera_,goog$userAgent$detectedIe_,goog$userAgent$detectedWebkit_,goog$userAgent$detectedMobile_,goog$userAgent$detectedGecko_,goog$userAgent$detectedCamino_,goog$userAgent$detectedMac_,goog$userAgent$detectedWindows_,goog$userAgent$detectedLinux_,goog$userAgent$getUserAgentString=function(){return goog$global.navigator?goog$global.navigator.userAgent:null};
var goog$userAgent$init_=function(){goog$userAgent$detectedCamino_=goog$userAgent$detectedGecko_=goog$userAgent$detectedMobile_=goog$userAgent$detectedWebkit_=goog$userAgent$detectedIe_=goog$userAgent$detectedOpera_=false;var b;if(b=goog$userAgent$getUserAgentString()){var c=goog$global.navigator;goog$userAgent$detectedOpera_=b[$$PROP_indexOf]("Opera")==0;goog$userAgent$detectedIe_=!goog$userAgent$detectedOpera_&&b[$$PROP_indexOf]("MSIE")!=-1;goog$userAgent$detectedMobile_=(goog$userAgent$detectedWebkit_=
!goog$userAgent$detectedOpera_&&b[$$PROP_indexOf]("WebKit")!=-1)&&b[$$PROP_indexOf]("Mobile")!=-1;goog$userAgent$detectedCamino_=(goog$userAgent$detectedGecko_=!goog$userAgent$detectedOpera_&&!goog$userAgent$detectedWebkit_&&c.product=="Gecko")&&c.vendor=="Camino"}};goog$userAgent$init_();
var goog$userAgent$OPERA=goog$userAgent$detectedOpera_,goog$userAgent$IE=goog$userAgent$detectedIe_,goog$userAgent$GECKO=goog$userAgent$detectedGecko_,goog$userAgent$WEBKIT=goog$userAgent$detectedWebkit_,goog$userAgent$determinePlatform_=function(){var b=goog$global.navigator;return b&&b.platform||""},goog$userAgent$PLATFORM=goog$userAgent$determinePlatform_(),goog$userAgent$initPlatform_=function(){goog$userAgent$detectedMac_=goog$userAgent$PLATFORM[$$PROP_indexOf]("Mac")!=-1;goog$userAgent$detectedWindows_=
goog$userAgent$PLATFORM[$$PROP_indexOf]("Win")!=-1;goog$userAgent$detectedLinux_=goog$userAgent$PLATFORM[$$PROP_indexOf]("Linux")!=-1};goog$userAgent$initPlatform_();
var goog$userAgent$determineVersion_=function(){var b="",c;if(goog$userAgent$OPERA&&goog$global.opera){var d=goog$global.opera.version;b=typeof d=="function"?d():d}else{if(goog$userAgent$GECKO)c=/rv\:([^\);]+)(\)|;)/;else if(goog$userAgent$IE)c=/MSIE\s+([^\);]+)(\)|;)/;else if(goog$userAgent$WEBKIT)c=/WebKit\/(\S+)/;if(c){var e=c[$$PROP_exec](goog$userAgent$getUserAgentString());b=e?e[1]:""}}return b},goog$userAgent$VERSION=goog$userAgent$determineVersion_();
var goog$userAgent$isVersionCache_={},goog$userAgent$isVersion=function(b){return goog$userAgent$isVersionCache_[b]||(goog$userAgent$isVersionCache_[b]=goog$string$compareVersions(goog$userAgent$VERSION,b)>=0)};var goog$dom$getElement=function(b){return goog$isString(b)?GLOBAL_document.getElementById(b):b};
var goog$dom$appendChild=function(b,c){b.appendChild(c)},goog$dom$removeNode=function(b){return b&&b[$$PROP_parentNode]?b[$$PROP_parentNode].removeChild(b):null},goog$dom$replaceNode=function(b,c){var d=c[$$PROP_parentNode];d&&d.replaceChild(b,c)},goog$dom$BAD_CONTAINS_WEBKIT_=goog$userAgent$WEBKIT&&goog$string$compareVersions(goog$userAgent$VERSION,"521")<=0,goog$dom$contains=function(b,c){if(typeof b[$$PROP_contains]!="undefined"&&!goog$dom$BAD_CONTAINS_WEBKIT_&&c.nodeType==1)return b==c||b[$$PROP_contains](c);
if(typeof b.compareDocumentPosition!="undefined")return b==c||Boolean(b.compareDocumentPosition(c)&16);for(;c&&b!=c;)c=c[$$PROP_parentNode];return c==b},goog$dom$TAGS_TO_IGNORE_={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},goog$dom$PREDEFINED_TAG_VALUES_={IMG:" ",BR:"\n"},goog$dom$getTextContent=function(b){var c;if(goog$userAgent$IE&&"innerText"in b)c=b.innerText[$$PROP_replace](/(\r\n|\r|\n)/g,"\n");else{var d=[];goog$dom$getTextContent_(b,d,true);c=d[$$PROP_join]("")}c=c[$$PROP_replace](/\xAD/g,
"");c=c[$$PROP_replace](/ +/g," ");if(c!=" ")c=c[$$PROP_replace](/^\s*/,"");return c},goog$dom$getTextContent_=function(b,c,d){if(!(b.nodeName in goog$dom$TAGS_TO_IGNORE_))if(b.nodeType==3)d?c[$$PROP_push](GLOBAL_String(b.nodeValue)[$$PROP_replace](/(\r\n|\r|\n)/g,"")):c[$$PROP_push](b.nodeValue);else if(b.nodeName in goog$dom$PREDEFINED_TAG_VALUES_)c[$$PROP_push](goog$dom$PREDEFINED_TAG_VALUES_[b.nodeName]);else{var e=b.firstChild;for(;e;){goog$dom$getTextContent_(e,c,d);e=e.nextSibling}}},goog$dom$DomHelper=
function(b){this.document_=b||goog$global[$$PROP_document]||GLOBAL_document};a=goog$dom$DomHelper[$$PROP_prototype];a.createElement=function(b){return this.document_[$$PROP_createElement](b)};a.createTextNode=function(b){return this.document_.createTextNode(b)};a.appendChild=goog$dom$appendChild;a.removeNode=goog$dom$removeNode;a.replaceNode=goog$dom$replaceNode;a.contains=goog$dom$contains;a.getTextContent=goog$dom$getTextContent;var goog$Disposable=function(){};goog$Disposable[$$PROP_prototype].disposed_=false;goog$Disposable[$$PROP_prototype].dispose=function(){if(!this.disposed_){this.disposed_=true;this.disposeInternal()}};goog$Disposable[$$PROP_prototype].disposeInternal=function(){};var goog$structs$SimplePool=function(b,c){goog$Disposable[$$PROP_call](this);this.maxCount_=c;this.freeQueue_=[];this.createInitial_(b)};goog$inherits(goog$structs$SimplePool,goog$Disposable);a=goog$structs$SimplePool[$$PROP_prototype];a.createObjectFn_=null;a.disposeObjectFn_=null;a.setCreateObjectFn=function(b){this.createObjectFn_=b};a.setDisposeObjectFn=function(b){this.disposeObjectFn_=b};a.getObject=function(){if(this.freeQueue_[$$PROP_length])return this.freeQueue_.pop();return this.createObject()};
a.releaseObject=function(b){this.freeQueue_[$$PROP_length]<this.maxCount_?this.freeQueue_[$$PROP_push](b):this.disposeObject(b)};a.createInitial_=function(b){if(b>this.maxCount_)throw GLOBAL_Error("[goog.structs.SimplePool] Initial cannot be greater than max");var c=0;for(;c<b;c++)this.freeQueue_[$$PROP_push](this.createObject())};a.createObject=function(){return this.createObjectFn_?this.createObjectFn_():{}};
a.disposeObject=function(b){if(this.disposeObjectFn_)this.disposeObjectFn_(b);else if(goog$typeOf(b.dispose)=="function")b.dispose();else for(var c in b)delete b[c]};a.disposeInternal=function(){goog$structs$SimplePool.superClass_.disposeInternal[$$PROP_call](this);var b=this.freeQueue_;for(;b[$$PROP_length];)this.disposeObject(b.pop());delete this.freeQueue_};var goog$events$Event=function(b,c){SETPROP_type(this,b);SETPROP_target(this,c);SETPROP_currentTarget(this,this[$$PROP_target])};goog$inherits(goog$events$Event,goog$Disposable);a=goog$events$Event[$$PROP_prototype];a.disposeInternal=function(){delete this[$$PROP_type];delete this[$$PROP_target];delete this.currentTarget};a.propagationStopped_=false;a.returnValue_=true;a.stopPropagation=function(){this.propagationStopped_=true};a.preventDefault=function(){this.returnValue_=false};var goog$events$BrowserEvent=function(b,c){b&&this.init(b,c)};goog$inherits(goog$events$BrowserEvent,goog$events$Event);a=goog$events$BrowserEvent[$$PROP_prototype];SETPROP_type(a,null);SETPROP_target(a,null);a.relatedTarget=null;a.offsetX=0;a.offsetY=0;a.clientX=0;a.clientY=0;a.screenX=0;a.screenY=0;a.button=0;SETPROP_keyCode(a,0);a.charCode=0;a.ctrlKey=false;a.altKey=false;a.shiftKey=false;a.metaKey=false;a.event_=null;
a.init=function(b,c){SETPROP_type(this,b[$$PROP_type]);SETPROP_target(this,b[$$PROP_target]||b.srcElement);SETPROP_currentTarget(this,c);this.relatedTarget=b.relatedTarget?b.relatedTarget:this[$$PROP_type]=="mouseover"?b.fromElement:this[$$PROP_type]=="mouseout"?b.toElement:null;this.offsetX=typeof b.layerX=="number"?b.layerX:b.offsetX;this.offsetY=typeof b.layerY=="number"?b.layerY:b.offsetY;this.clientX=typeof b.clientX=="number"?b.clientX:b.pageX;this.clientY=typeof b.clientY=="number"?b.clientY:
b.pageY;this.screenX=b.screenX||0;this.screenY=b.screenY||0;this.button=b[$$PROP_button];SETPROP_keyCode(this,b[$$PROP_keyCode]||0);this.charCode=b.charCode||(this[$$PROP_type]=="keypress"?b[$$PROP_keyCode]:0);this.ctrlKey=b.ctrlKey;this.altKey=b.altKey;this.shiftKey=b.shiftKey;this.metaKey=b.metaKey;this.event_=b;delete this.returnValue_;delete this.propagationStopped_};
a.stopPropagation=function(){this.propagationStopped_=true;if(this.event_.stopPropagation)this.event_.stopPropagation();else this.event_.cancelBubble=true};a.preventDefault=function(){this.returnValue_=false;if(this.event_.preventDefault)this.event_.preventDefault();else{this.event_.returnValue=false;try{SETPROP_keyCode(this.event_,-1)}catch(b){}}};a.disposeInternal=function(){goog$events$BrowserEvent.superClass_.disposeInternal[$$PROP_call](this);this.event_=null};var goog$events$Listener=function(){},goog$events$Listener$counter_=0;a=goog$events$Listener[$$PROP_prototype];a.isFunctionListener_=null;a.listener=null;a.proxy=null;a.src=null;SETPROP_type(a,null);a.capture=null;a.handler=null;a.key=0;a.removed=false;a.callOnce=false;
a.init=function(b,c,d,e,f,g){if(goog$typeOf(b)=="function")this.isFunctionListener_=true;else if(b&&b[$$PROP_handleEvent]&&goog$typeOf(b[$$PROP_handleEvent])=="function")this.isFunctionListener_=false;else throw GLOBAL_Error("Invalid listener argument");this.listener=b;this.proxy=c;this.src=d;SETPROP_type(this,e);this.capture=!!f;this.handler=g;this.callOnce=false;this.key=++goog$events$Listener$counter_;this.removed=false};
a.handleEvent=function(b){if(this.isFunctionListener_)return this.listener[$$PROP_call](this.handler||this.src,b);return this.listener[$$PROP_handleEvent][$$PROP_call](this.listener,b)};var goog$events$listeners_={},goog$events$listenerTree_={},goog$events$sources_={},goog$events$objectPool_=new goog$structs$SimplePool(0,600);goog$events$objectPool_.setCreateObjectFn(function(){return{count_:0,remaining_:0}});goog$events$objectPool_.setDisposeObjectFn(function(b){b.count_=0});var goog$events$arrayPool_=new goog$structs$SimplePool(0,600);goog$events$arrayPool_.setCreateObjectFn(function(){return[]});
goog$events$arrayPool_.setDisposeObjectFn(function(b){SETPROP_length(b,0);delete b.locked_;delete b.needsCleanup_});var goog$events$handleEventProxyPool_=new goog$structs$SimplePool(0,600);goog$events$handleEventProxyPool_.setCreateObjectFn(function(){var b=function(c){return goog$events$handleBrowserEvent_[$$PROP_call](b.src,b.key,c)};return b});var goog$events$createListenerFunction_=function(){return new goog$events$Listener},goog$events$listenerPool_=new goog$structs$SimplePool(0,600);goog$events$listenerPool_.setCreateObjectFn(goog$events$createListenerFunction_);
var goog$events$createEventFunction_=function(){return new goog$events$BrowserEvent},goog$events$createEventPool_=function(){var b=null;if(goog$userAgent$IE){b=new goog$structs$SimplePool(0,600);b.setCreateObjectFn(goog$events$createEventFunction_)}return b},goog$events$eventPool_=goog$events$createEventPool_(),goog$events$onString_="on",goog$events$onStringMap_={},goog$events$listen=function(b,c,d,e,f){if(c)if(goog$isArray(c)){var g=0;for(;g<c[$$PROP_length];g++)goog$events$listen(b,c[g],d,e,f);
return null}else{var h=!!e,i=goog$events$listenerTree_;c in i||(i[c]=goog$events$objectPool_.getObject());i=i[c];if(!(h in i)){i[h]=goog$events$objectPool_.getObject();i.count_++}i=i[h];var m=goog$getHashCode(b),k,j;i.remaining_++;if(i[m]){k=i[m];var g=0;for(;g<k[$$PROP_length];g++){j=k[g];if(j.listener==d&&j.handler==f){if(j.removed)break;return k[g].key}}}else{k=i[m]=goog$events$arrayPool_.getObject();i.count_++}var l=goog$events$handleEventProxyPool_.getObject();l.src=b;j=goog$events$listenerPool_.getObject();
j.init(d,l,b,c,h,f);var n=j.key;l.key=n;k[$$PROP_push](j);goog$events$listeners_[n]=j;goog$events$sources_[m]||(goog$events$sources_[m]=goog$events$arrayPool_.getObject());goog$events$sources_[m][$$PROP_push](j);if(b.addEventListener){if(b==goog$global||!b.customEvent_)b.addEventListener(c,l,h)}else b.attachEvent(goog$events$getOnString_(c),l);return n}else throw GLOBAL_Error("Invalid event type");},goog$events$unlisten=function(b,c,d,e,f){if(goog$isArray(c)){var g=0;for(;g<c[$$PROP_length];g++)goog$events$unlisten(b,
c[g],d,e,f);return null}var h=!!e,i=goog$events$getListeners_(b,c,h);if(!i)return false;var g=0;for(;g<i[$$PROP_length];g++)if(i[g].listener==d&&i[g].capture==h&&i[g].handler==f)return goog$events$unlistenByKey(i[g].key);return false},goog$events$unlistenByKey=function(b){if(!goog$events$listeners_[b])return false;var c=goog$events$listeners_[b];if(c.removed)return false;var d=c.src,e=c[$$PROP_type],f=c.proxy,g=c.capture;if(d.removeEventListener){if(d==goog$global||!d.customEvent_)d.removeEventListener(e,
f,g)}else d.detachEvent&&d.detachEvent(goog$events$getOnString_(e),f);var h=goog$getHashCode(d),i=goog$events$listenerTree_[e][g][h];if(goog$events$sources_[h]){var m=goog$events$sources_[h];goog$array$remove(m,c);m[$$PROP_length]==0&&delete goog$events$sources_[h]}c.removed=true;i.needsCleanup_=true;goog$events$cleanUp_(e,g,h,i);delete goog$events$listeners_[b];return true},goog$events$cleanUp_=function(b,c,d,e){if(!e.locked_)if(e.needsCleanup_){var f=0,g=0;for(;f<e[$$PROP_length];f++)if(e[f].removed)goog$events$listenerPool_.releaseObject(e[f]);
else{if(f!=g)e[g]=e[f];g++}SETPROP_length(e,g);e.needsCleanup_=false;if(g==0){goog$events$arrayPool_.releaseObject(e);delete goog$events$listenerTree_[b][c][d];goog$events$listenerTree_[b][c].count_--;if(goog$events$listenerTree_[b][c].count_==0){goog$events$objectPool_.releaseObject(goog$events$listenerTree_[b][c]);delete goog$events$listenerTree_[b][c];goog$events$listenerTree_[b].count_--}if(goog$events$listenerTree_[b].count_==0){goog$events$objectPool_.releaseObject(goog$events$listenerTree_[b]);
delete goog$events$listenerTree_[b]}}}},goog$events$removeAll=function(b,c,d){var e=0,f=b==null,g=c==null,h=d==null;d=!!d;if(f)goog$object$forEach(goog$events$sources_,function(l){var n=l[$$PROP_length]-1;for(;n>=0;n--){var o=l[n];if((g||c==o[$$PROP_type])&&(h||d==o.capture)){goog$events$unlistenByKey(o.key);e++}}});else{var i=goog$getHashCode(b);if(goog$events$sources_[i]){var m=goog$events$sources_[i],k=m[$$PROP_length]-1;for(;k>=0;k--){var j=m[k];if((g||c==j[$$PROP_type])&&(h||d==j.capture)){goog$events$unlistenByKey(j.key);
e++}}}}return e},goog$events$getListeners_=function(b,c,d){var e=goog$events$listenerTree_;if(c in e){e=e[c];if(d in e){e=e[d];var f=goog$getHashCode(b);if(e[f])return e[f]}}return null},goog$events$getOnString_=function(b){if(b in goog$events$onStringMap_)return goog$events$onStringMap_[b];return goog$events$onStringMap_[b]=goog$events$onString_+b},goog$events$fireListeners_=function(b,c,d,e,f){var g=1,h=goog$getHashCode(c);if(b[h]){b.remaining_--;var i=b[h];if(i.locked_)i.locked_++;else i.locked_=
1;try{var m=i[$$PROP_length],k=0;for(;k<m;k++){var j=i[k];if(j&&!j.removed)g&=goog$events$fireListener(j,f)!==false}}finally{i.locked_--;goog$events$cleanUp_(d,e,h,i)}}return Boolean(g)},goog$events$fireListener=function(b,c){var d=b[$$PROP_handleEvent](c);b.callOnce&&goog$events$unlistenByKey(b.key);return d},goog$events$dispatchEvent=function(b,c){if(goog$isString(c))c=new goog$events$Event(c,b);else if(c instanceof goog$events$Event)SETPROP_target(c,c[$$PROP_target]||b);else{var d=c;c=new goog$events$Event(c[$$PROP_type],
b);goog$object$extend(c,d)}var e=1,f,g=c[$$PROP_type],h=goog$events$listenerTree_;if(!(g in h))return true;h=h[g];var i=true in h,m=false in h,k;if(i){f=[];var j=b;for(;j;j=j.getParentEventTarget())f[$$PROP_push](j);k=h[true];k.remaining_=k.count_;var l=f[$$PROP_length]-1;for(;!c.propagationStopped_&&l>=0&&k.remaining_;l--){SETPROP_currentTarget(c,f[l]);e&=goog$events$fireListeners_(k,f[l],c[$$PROP_type],true,c)&&c.returnValue_!=false}}if(m){k=h[false];k.remaining_=k.count_;if(i){var l=0;for(;!c.propagationStopped_&&
l<f[$$PROP_length]&&k.remaining_;l++){SETPROP_currentTarget(c,f[l]);e&=goog$events$fireListeners_(k,f[l],c[$$PROP_type],false,c)&&c.returnValue_!=false}}else{var n=b;for(;!c.propagationStopped_&&n&&k.remaining_;n=n.getParentEventTarget()){SETPROP_currentTarget(c,n);e&=goog$events$fireListeners_(k,n,c[$$PROP_type],false,c)&&c.returnValue_!=false}}}return Boolean(e)},goog$events$handleBrowserEvent_=function(b,c){if(!goog$events$listeners_[b])return true;var d=goog$events$listeners_[b],e=d[$$PROP_type],
f=goog$events$listenerTree_;if(!(e in f))return true;f=f[e];var g,h;if(goog$userAgent$IE){var i=c||goog$getObjectByName("window.event"),m=true in f,k=false in f;if(m){if(i[$$PROP_keyCode]<0||i.returnValue!=undefined)return true;goog$events$markIeEvent_(i)}var j=goog$events$eventPool_.getObject();j.init(i,this);g=true;try{if(m){var l=goog$events$arrayPool_.getObject(),n=j.currentTarget;for(;n;n=n[$$PROP_parentNode])l[$$PROP_push](n);h=f[true];h.remaining_=h.count_;var o=l[$$PROP_length]-1;for(;!j.propagationStopped_&&
o>=0&&h.remaining_;o--){SETPROP_currentTarget(j,l[o]);g&=goog$events$fireListeners_(h,l[o],e,true,j)}if(k){h=f[false];h.remaining_=h.count_;var o=0;for(;!j.propagationStopped_&&o<l[$$PROP_length]&&h.remaining_;o++){SETPROP_currentTarget(j,l[o]);g&=goog$events$fireListeners_(h,l[o],e,false,j)}}}else g=goog$events$fireListener(d,j)}finally{if(l){SETPROP_length(l,0);goog$events$arrayPool_.releaseObject(l)}j.dispose();goog$events$eventPool_.releaseObject(j)}return g}var p=new goog$events$BrowserEvent(c,
this);try{g=goog$events$fireListener(d,p)}finally{p.dispose()}return g},goog$events$markIeEvent_=function(b){var c=false;if(b[$$PROP_keyCode]==0)try{SETPROP_keyCode(b,-1);return}catch(d){c=true}if(c||b.returnValue==undefined)b.returnValue=true};if("StopIteration"in goog$global)var goog$iter$StopIteration=goog$global.StopIteration;else goog$iter$StopIteration=GLOBAL_Error("StopIteration");var goog$iter$Iterator=function(){};goog$iter$Iterator[$$PROP_prototype].next=function(){throw goog$iter$StopIteration;};goog$iter$Iterator[$$PROP_prototype].__iterator__=function(){return this};var goog$structs$getValues=function(b){if(typeof b.getValues=="function")return b.getValues();if(goog$isString(b))return b[$$PROP_split]("");if(goog$isArrayLike(b)){var c=[],d=b[$$PROP_length],e=0;for(;e<d;e++)c[$$PROP_push](b[e]);return c}return goog$object$getValues(b)},goog$structs$getKeys=function(b){if(typeof b.getKeys=="function")return b.getKeys();if(typeof b.getValues=="function")return undefined;if(goog$isArrayLike(b)||goog$isString(b)){var c=[],d=b[$$PROP_length],e=0;for(;e<d;e++)c[$$PROP_push](e);
return c}return goog$object$getKeys(b)},goog$structs$forEach=function(b,c,d){if(typeof b[$$PROP_forEach]=="function")b[$$PROP_forEach](c,d);else if(goog$isArrayLike(b)||goog$isString(b))goog$array$forEach(b,c,d);else{var e=goog$structs$getKeys(b),f=goog$structs$getValues(b),g=f[$$PROP_length],h=0;for(;h<g;h++)c[$$PROP_call](d,f[h],e&&e[h],b)}};var goog$structs$Map=function(b){this.map_={};this.keys_=[];var c=arguments[$$PROP_length];if(c>1){if(c%2)throw GLOBAL_Error("Uneven number of arguments");var d=0;for(;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else b&&this.addAll(b)};a=goog$structs$Map[$$PROP_prototype];a.count_=0;a.version_=0;a.getCount=function(){return this.count_};a.getValues=function(){this.cleanupKeysArray_();var b=[],c=0;for(;c<this.keys_[$$PROP_length];c++){var d=this.keys_[c];b[$$PROP_push](this.map_[d])}return b};
a.getKeys=function(){this.cleanupKeysArray_();return this.keys_.concat()};a.containsKey=function(b){return goog$structs$Map$hasKey_(this.map_,b)};a.equals=function(b,c){if(this===b)return true;if(this.count_!=b.getCount())return false;var d=c||goog$structs$Map$defaultEquals;this.cleanupKeysArray_();var e,f=0;for(;e=this.keys_[f];f++)if(!d(this.get(e),b.get(e)))return false;return true};var goog$structs$Map$defaultEquals=function(b,c){return b===c};a=goog$structs$Map[$$PROP_prototype];
a.isEmpty=function(){return this.count_==0};a.clear=function(){this.map_={};SETPROP_length(this.keys_,0);this.version_=this.count_=0};a.remove=function(b){if(goog$structs$Map$hasKey_(this.map_,b)){delete this.map_[b];this.count_--;this.version_++;this.keys_[$$PROP_length]>2*this.count_&&this.cleanupKeysArray_();return true}return false};
a.cleanupKeysArray_=function(){if(this.count_!=this.keys_[$$PROP_length]){var b=0,c=0;for(;b<this.keys_[$$PROP_length];){var d=this.keys_[b];if(goog$structs$Map$hasKey_(this.map_,d))this.keys_[c++]=d;b++}SETPROP_length(this.keys_,c)}if(this.count_!=this.keys_[$$PROP_length]){var e={},b=0,c=0;for(;b<this.keys_[$$PROP_length];){var d=this.keys_[b];if(!goog$structs$Map$hasKey_(e,d)){this.keys_[c++]=d;e[d]=1}b++}SETPROP_length(this.keys_,c)}};
a.get=function(b,c){if(goog$structs$Map$hasKey_(this.map_,b))return this.map_[b];return c};a.set=function(b,c){if(!goog$structs$Map$hasKey_(this.map_,b)){this.count_++;this.keys_[$$PROP_push](b);this.version_++}this.map_[b]=c};a.addAll=function(b){var c,d;if(b instanceof goog$structs$Map){c=b.getKeys();d=b.getValues()}else{c=goog$object$getKeys(b);d=goog$object$getValues(b)}var e=0;for(;e<c[$$PROP_length];e++)this.set(c[e],d[e])};a.clone=function(){return new goog$structs$Map(this)};
a.__iterator__=function(b){this.cleanupKeysArray_();var c=0,d=this.keys_,e=this.map_,f=this.version_,g=this,h=new goog$iter$Iterator;h.next=function(){for(;true;){if(f!=g.version_)throw GLOBAL_Error("The map has changed since the iterator was created");if(c>=d[$$PROP_length])throw goog$iter$StopIteration;var i=d[c++];return b?i:e[i]}};return h};var goog$structs$Map$hasKey_=function(b,c){return GLOBAL_Object[$$PROP_prototype][$$PROP_hasOwnProperty][$$PROP_call](b,c)};var goog$debug$exposeException=function(b,c){try{var d=goog$debug$normalizeErrorObject(b),e="Message: "+goog$string$htmlEscape(d[$$PROP_message])+'\nUrl: <a href="view-source:'+d[$$PROP_fileName]+'" target="_new">'+d[$$PROP_fileName]+"</a>\nLine: "+d.lineNumber+"\n\nBrowser stack:\n"+goog$string$htmlEscape(d.stack+"-> ")+"[end]\n\nJS stack traversal:\n"+goog$string$htmlEscape(goog$debug$getStacktrace(c)+"-> ");return e}catch(f){return"Exception trying to expose exception! You win, we lose. "+f}},
goog$debug$normalizeErrorObject=function(b){var c=goog$getObjectByName("window.location.href");return typeof b=="string"?{message:b,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"}:!b.lineNumber||!b[$$PROP_fileName]||!b.stack?{message:b[$$PROP_message],name:b.name,lineNumber:b.lineNumber||b.line||"Not available",fileName:b[$$PROP_fileName]||b.filename||b.sourceURL||c,stack:b.stack||"Not available"}:b},goog$debug$getStacktrace=function(b){return goog$debug$getStacktraceHelper_(b||
arguments.callee.caller,[])},goog$debug$getStacktraceHelper_=function(b,c){var d=[];if(goog$array$contains(c,b))d[$$PROP_push]("[...circular reference...]");else if(b&&c[$$PROP_length]<50){d[$$PROP_push](goog$debug$getFunctionName(b)+"(");var e=b.arguments,f=0;for(;f<e[$$PROP_length];f++){f>0&&d[$$PROP_push](", ");var g,h=e[f];switch(typeof h){case "object":g=h?"object":"null";break;case "string":g=h;break;case "number":g=GLOBAL_String(h);break;case "boolean":g=h?"true":"false";break;case "function":g=
(g=goog$debug$getFunctionName(h))?g:"[fn]";break;case "undefined":default:g=typeof h;break}if(g[$$PROP_length]>40)g=g.substr(0,40)+"...";d[$$PROP_push](g)}c[$$PROP_push](b);d[$$PROP_push](")\n");try{d[$$PROP_push](goog$debug$getStacktraceHelper_(b.caller,c))}catch(i){d[$$PROP_push]("[exception trying to get caller]\n")}}else b?d[$$PROP_push]("[...long stack...]"):d[$$PROP_push]("[end]");return d[$$PROP_join]("")},goog$debug$getFunctionName=function(b){var c=GLOBAL_String(b);if(!goog$debug$fnNameCache_[c]){var d=
/function ([^\(]+)/[$$PROP_exec](c);if(d){var e=d[1];goog$debug$fnNameCache_[c]=e}else goog$debug$fnNameCache_[c]="[Anonymous]"}return goog$debug$fnNameCache_[c]},goog$debug$fnNameCache_={};var goog$debug$LogRecord=function(b,c,d,e,f){this.sequenceNumber_=typeof f=="number"?f:goog$debug$LogRecord$nextSequenceNumber_++;this.time_=e||goog$now();this.level_=b;this.msg_=c;this.loggerName_=d};goog$debug$LogRecord[$$PROP_prototype].exception_=null;goog$debug$LogRecord[$$PROP_prototype].exceptionText_=null;var goog$debug$LogRecord$nextSequenceNumber_=0;goog$debug$LogRecord[$$PROP_prototype].setException=function(b){this.exception_=b};
goog$debug$LogRecord[$$PROP_prototype].setExceptionText=function(b){this.exceptionText_=b};goog$debug$LogRecord[$$PROP_prototype].getLevel=function(){return this.level_};goog$debug$LogRecord[$$PROP_prototype].setLevel=function(b){this.level_=b};var goog$debug$Logger=function(b){this.name_=b;this.parent_=null;this.children_={};this.handlers_=[]};goog$debug$Logger[$$PROP_prototype].level_=null;var goog$debug$Logger$Level=function(b,c){this.name=b;this.value=c};goog$debug$Logger$Level[$$PROP_prototype].toString=function(){return this.name};new goog$debug$Logger$Level("OFF",Infinity);new goog$debug$Logger$Level("SHOUT",1200);new goog$debug$Logger$Level("SEVERE",1000);
var goog$debug$Logger$Level$WARNING=new goog$debug$Logger$Level("WARNING",900);new goog$debug$Logger$Level("INFO",800);var goog$debug$Logger$Level$CONFIG=new goog$debug$Logger$Level("CONFIG",700),goog$debug$Logger$Level$FINE=new goog$debug$Logger$Level("FINE",500);new goog$debug$Logger$Level("FINER",400);var goog$debug$Logger$Level$FINEST=new goog$debug$Logger$Level("FINEST",300);new goog$debug$Logger$Level("ALL",0);a=goog$debug$Logger[$$PROP_prototype];a.getName=function(){return this.name_};
a.getParent=function(){return this.parent_};a.setLevel=function(b){this.level_=b};a.getLevel=function(){return this.level_};a.isLoggable=function(b){if(this.level_)return b.value>=this.level_.value;if(this.parent_)return this.parent_.isLoggable(b);return false};a.log=function(b,c,d){this.isLoggable(b)&&this.logRecord(this.getLogRecord(b,c,d))};
a.getLogRecord=function(b,c,d){var e=new goog$debug$LogRecord(b,GLOBAL_String(c),this.name_);if(d){e.setException(d);e.setExceptionText(goog$debug$exposeException(d,arguments.callee.caller))}return e};a.warning=function(b,c){this.log(goog$debug$Logger$Level$WARNING,b,c)};a.fine=function(b,c){this.log(goog$debug$Logger$Level$FINE,b,c)};a.finest=function(b,c){this.log(goog$debug$Logger$Level$FINEST,b,c)};
a.logRecord=function(b){if(this.isLoggable(b.getLevel())){var c=this;for(;c;){c.callPublish_(b);c=c.getParent()}}};a.callPublish_=function(b){var c=0;for(;c<this.handlers_[$$PROP_length];c++)this.handlers_[c](b)};a.setParent_=function(b){this.parent_=b};a.addChild_=function(b,c){this.children_[b]=c};
var goog$debug$LogManager$loggers_={},goog$debug$LogManager$rootLogger_=null,goog$debug$LogManager$initialize=function(){if(!goog$debug$LogManager$rootLogger_){goog$debug$LogManager$rootLogger_=new goog$debug$Logger("");goog$debug$LogManager$loggers_[""]=goog$debug$LogManager$rootLogger_;goog$debug$LogManager$rootLogger_.setLevel(goog$debug$Logger$Level$CONFIG)}},goog$debug$LogManager$getLogger=function(b){goog$debug$LogManager$initialize();return b in goog$debug$LogManager$loggers_?goog$debug$LogManager$loggers_[b]:
goog$debug$LogManager$createLogger_(b)},goog$debug$LogManager$createLogger_=function(b){var c=new goog$debug$Logger(b),d=b[$$PROP_split]("."),e=d[d[$$PROP_length]-1];SETPROP_length(d,d[$$PROP_length]-1);var f=d[$$PROP_join]("."),g=goog$debug$LogManager$getLogger(f);g.addChild_(e,c);c.setParent_(g);return goog$debug$LogManager$loggers_[b]=c};var goog$events$EventTarget=function(){};goog$inherits(goog$events$EventTarget,goog$Disposable);a=goog$events$EventTarget[$$PROP_prototype];a.customEvent_=true;a.parentEventTarget_=null;a.getParentEventTarget=function(){return this.parentEventTarget_};a.addEventListener=function(b,c,d,e){goog$events$listen(this,b,c,d,e)};a.removeEventListener=function(b,c,d,e){goog$events$unlisten(this,b,c,d,e)};a.dispatchEvent=function(b){return goog$events$dispatchEvent(this,b)};
a.disposeInternal=function(){goog$events$EventTarget.superClass_.disposeInternal[$$PROP_call](this);goog$events$removeAll(this);this.parentEventTarget_=null};/\uffff/[$$PROP_test]("\uffff");var goog$Timer$defaultTimerObject=goog$global.window;var goog$net$XhrMonitor_=function(){if(!!goog$userAgent$GECKO){this.contextsToXhr_={};this.xhrToContexts_={};this.stack_=[]}};a=goog$net$XhrMonitor_[$$PROP_prototype];a.logger_=goog$debug$LogManager$getLogger("goog.net.xhrMonitor");a.pushContext=function(b){if(!!goog$userAgent$GECKO){var c=goog$isString(b)?b:goog$isObject(b)?goog$getHashCode(b):"";this.logger_.finest("Pushing context: "+b+" ("+c+")");this.stack_[$$PROP_push](c)}};
a.popContext=function(){if(!!goog$userAgent$GECKO){var b=this.stack_.pop();this.logger_.finest("Popping context: "+b);this.updateDependentContexts_(b)}};a.markXhrOpen=function(b){if(!!goog$userAgent$GECKO){var c=goog$getHashCode(b);this.logger_.fine("Opening XHR : "+c);var d=0;for(;d<this.stack_[$$PROP_length];d++){var e=this.stack_[d];this.addToMap_(this.contextsToXhr_,e,c);this.addToMap_(this.xhrToContexts_,c,e)}}};
a.markXhrClosed=function(b){if(!!goog$userAgent$GECKO){var c=goog$getHashCode(b);this.logger_.fine("Closing XHR : "+c);delete this.xhrToContexts_[c];for(var d in this.contextsToXhr_){goog$array$remove(this.contextsToXhr_[d],c);this.contextsToXhr_[d][$$PROP_length]==0&&delete this.contextsToXhr_[d]}}};
a.updateDependentContexts_=function(b){var c=this.xhrToContexts_[b],d=this.contextsToXhr_[b];if(c&&d){this.logger_.finest("Updating dependent contexts");goog$array$forEach(c,function(e){goog$array$forEach(d,function(f){this.addToMap_(this.contextsToXhr_,e,f);this.addToMap_(this.xhrToContexts_,f,e)},this)},this)}};a.addToMap_=function(b,c,d){b[c]||(b[c]=[]);goog$array$contains(b[c],d)||b[c][$$PROP_push](d)};var goog$net$xhrMonitor=new goog$net$XhrMonitor_;var goog$net$XmlHttp=function(){return goog$net$XmlHttp$factory_()};
var goog$net$XmlHttp$factory_=null,goog$net$XmlHttp$optionsFactory_=null,goog$net$XmlHttp$cachedOptions_=null,goog$net$XmlHttp$setFactory=function(b,c){goog$net$XmlHttp$factory_=b;goog$net$XmlHttp$optionsFactory_=c;goog$net$XmlHttp$cachedOptions_=null},goog$net$XmlHttp$defaultFactory_=function(){var b=goog$net$XmlHttp$getProgId_();return b?new ActiveXObject(b):new XMLHttpRequest},goog$net$XmlHttp$defaultOptionsFactory_=function(){var b=goog$net$XmlHttp$getProgId_(),c={};if(b){c[0]=true;c[1]=true}return c};
goog$net$XmlHttp$setFactory(goog$net$XmlHttp$defaultFactory_,goog$net$XmlHttp$defaultOptionsFactory_);
var goog$net$XmlHttp$ieProgId_=null,goog$net$XmlHttp$getProgId_=function(){if(!goog$net$XmlHttp$ieProgId_&&typeof XMLHttpRequest=="undefined"&&typeof ActiveXObject!="undefined"){var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;for(;c<b[$$PROP_length];c++){var d=b[c];try{new ActiveXObject(d);return goog$net$XmlHttp$ieProgId_=d}catch(e){}}throw GLOBAL_Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return goog$net$XmlHttp$ieProgId_};var goog$net$XhrIo=function(){goog$events$EventTarget[$$PROP_call](this);this.headers=new goog$structs$Map};goog$inherits(goog$net$XhrIo,goog$events$EventTarget);goog$net$XhrIo[$$PROP_prototype].logger_=goog$debug$LogManager$getLogger("goog.net.XhrIo");
var goog$net$XhrIo$sendInstances_=[],goog$net$XhrIo$send=function(b,c,d,e,f,g){var h=new goog$net$XhrIo;goog$net$XhrIo$sendInstances_[$$PROP_push](h);c&&goog$events$listen(h,"complete",c);goog$events$listen(h,"ready",goog$partial(goog$net$XhrIo$cleanupSend_,h));g&&h.setTimeoutInterval(g);h.send(b,d,e,f)},goog$net$XhrIo$cleanup=function(){var b=goog$net$XhrIo$sendInstances_;for(;b[$$PROP_length];)b.pop().dispose()},goog$net$XhrIo$protectEntryPoints=function(b,c){goog$net$XhrIo$prototype$onReadyStateChangeEntryPoint_=
goog$net$XhrIo[$$PROP_prototype].onReadyStateChangeEntryPoint_=b.protectEntryPoint(goog$net$XhrIo$prototype$onReadyStateChangeEntryPoint_,c)},goog$net$XhrIo$cleanupSend_=function(b){b.dispose();goog$array$remove(goog$net$XhrIo$sendInstances_,b)};a=goog$net$XhrIo[$$PROP_prototype];a.active_=false;a.xhr_=null;a.xhrOptions_=null;a.lastUri_="";a.lastMethod_="";a.lastErrorCode_=0;a.lastError_="";a.errorDispatched_=false;a.inSend_=false;a.inOpen_=false;a.inAbort_=false;a.timeoutInterval_=0;
a.timeoutId_=null;a.setTimeoutInterval=function(b){this.timeoutInterval_=Math.max(0,b)};
a.send=function(b,c,d,e){if(this.active_)throw GLOBAL_Error("[goog.net.XhrIo] Object is active with another request");var f=c||"GET";this.lastUri_=b;this.lastError_="";this.lastErrorCode_=0;this.lastMethod_=f;this.errorDispatched_=false;this.active_=true;this.xhr_=new goog$net$XmlHttp;this.xhrOptions_=goog$net$XmlHttp$cachedOptions_||(goog$net$XmlHttp$cachedOptions_=goog$net$XmlHttp$optionsFactory_());goog$net$xhrMonitor.markXhrOpen(this.xhr_);this.xhr_.onreadystatechange=goog$bind(this.onReadyStateChange_,
this);try{this.logger_.fine(this.formatMsg_("Opening Xhr"));this.inOpen_=true;this.xhr_.open(f,b,true);this.inOpen_=false}catch(g){this.logger_.fine(this.formatMsg_("Error opening Xhr: "+g[$$PROP_message]));this.error_(5,g);return}var h=d||"",i=this.headers.clone();e&&goog$structs$forEach(e,function(k,j){i.set(j,k)});f=="POST"&&!i.containsKey("Content-Type")&&i.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");goog$structs$forEach(i,function(k,j){this.xhr_.setRequestHeader(j,k)},
this);try{if(this.timeoutId_){goog$Timer$defaultTimerObject.clearTimeout(this.timeoutId_);this.timeoutId_=null}if(this.timeoutInterval_>0){this.logger_.fine(this.formatMsg_("Will abort after "+this.timeoutInterval_+"ms if incomplete"));this.timeoutId_=goog$Timer$defaultTimerObject.setTimeout(goog$bind(this.timeout_,this),this.timeoutInterval_)}this.logger_.fine(this.formatMsg_("Sending request"));this.inSend_=true;this.xhr_.send(h);this.inSend_=false}catch(m){this.logger_.fine(this.formatMsg_("Send error: "+
m[$$PROP_message]));this.error_(5,m)}};a.dispatchEvent=function(b){if(this.xhr_){goog$net$xhrMonitor.pushContext(this.xhr_);try{goog$net$XhrIo.superClass_[$$PROP_dispatchEvent][$$PROP_call](this,b)}finally{goog$net$xhrMonitor.popContext()}}else goog$net$XhrIo.superClass_[$$PROP_dispatchEvent][$$PROP_call](this,b)};
a.timeout_=function(){if(!(typeof goog=="undefined"))if(this.xhr_){this.lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting";this.lastErrorCode_=8;this.logger_.fine(this.formatMsg_(this.lastError_));this[$$PROP_dispatchEvent]("timeout");this[$$PROP_abort](8)}};a.error_=function(b,c){this.active_=false;if(this.xhr_){this.inAbort_=true;this.xhr_[$$PROP_abort]();this.inAbort_=false}this.lastError_=c;this.lastErrorCode_=b;this.dispatchErrors_();this.cleanUpXhr_()};
a.dispatchErrors_=function(){if(!this.errorDispatched_){this.errorDispatched_=true;this[$$PROP_dispatchEvent]("complete");this[$$PROP_dispatchEvent]("error")}};a.abort=function(b){if(this.xhr_){this.logger_.fine(this.formatMsg_("Aborting"));this.active_=false;this.inAbort_=true;this.xhr_[$$PROP_abort]();this.inAbort_=false;this.lastErrorCode_=b||7;this[$$PROP_dispatchEvent]("complete");this[$$PROP_dispatchEvent]("abort");this.cleanUpXhr_()}};
a.disposeInternal=function(){if(this.xhr_){if(this.active_){this.active_=false;this.inAbort_=true;this.xhr_[$$PROP_abort]();this.inAbort_=false}this.cleanUpXhr_(true)}goog$net$XhrIo.superClass_.disposeInternal[$$PROP_call](this)};a.onReadyStateChange_=function(){!this.inOpen_&&!this.inSend_&&!this.inAbort_?this.onReadyStateChangeEntryPoint_():this.onReadyStateChangeHelper_()};var goog$net$XhrIo$prototype$onReadyStateChangeEntryPoint_=function(){this.onReadyStateChangeHelper_()};a=goog$net$XhrIo[$$PROP_prototype];
a.onReadyStateChangeEntryPoint_=goog$net$XhrIo$prototype$onReadyStateChangeEntryPoint_;
a.onReadyStateChangeHelper_=function(){if(!!this.active_)if(!(typeof goog=="undefined"))if(this.xhrOptions_[1]&&this.getReadyState()==4&&this.getStatus()==2)this.logger_.fine(this.formatMsg_("Local request error detected and ignored"));else if(this.inSend_&&this.getReadyState()==4)goog$Timer$defaultTimerObject.setTimeout(goog$bind(this.onReadyStateChange_,this),0);else{this[$$PROP_dispatchEvent]("readystatechange");if(this.isComplete()){this.logger_.fine(this.formatMsg_("Request complete"));this.active_=
false;if(this.isSuccess()){this[$$PROP_dispatchEvent]("complete");this[$$PROP_dispatchEvent]("success")}else{this.lastErrorCode_=6;this.lastError_=this.getStatusText()+" ["+this.getStatus()+"]";this.dispatchErrors_()}this.cleanUpXhr_()}}};
a.cleanUpXhr_=function(b){if(this.xhr_){this.xhr_.onreadystatechange=this.xhrOptions_[0]?goog$nullFunction:null;var c=this.xhr_;this.xhrOptions_=this.xhr_=null;if(this.timeoutId_){goog$Timer$defaultTimerObject.clearTimeout(this.timeoutId_);this.timeoutId_=null}if(!b){goog$net$xhrMonitor.pushContext(c);this[$$PROP_dispatchEvent]("ready");goog$net$xhrMonitor.popContext()}goog$net$xhrMonitor.markXhrClosed(c)}};a.isComplete=function(){return this.getReadyState()==4};
a.isSuccess=function(){switch(this.getStatus()){case 0:case 200:case 204:case 304:return true;default:return false}};a.getReadyState=function(){return this.xhr_?this.xhr_.readyState:0};a.getStatus=function(){try{return this.getReadyState()>2?this.xhr_.status:-1}catch(b){this.logger_.warning("Can not get status: "+b[$$PROP_message]);return-1}};a.getStatusText=function(){try{return this.getReadyState()>2?this.xhr_.statusText:""}catch(b){this.logger_.fine("Can not get status: "+b[$$PROP_message]);return""}};
a.getResponseXml=function(){return this.xhr_?this.xhr_.responseXML:null};a.getResponseHeader=function(b){return this.xhr_&&this.isComplete()?this.xhr_.getResponseHeader(b):undefined};a.formatMsg_=function(b){return b+" ["+this.lastMethod_+" "+this.lastUri_+" "+this.getStatus()+"]"};var goog$net$XhrLite=goog$net$XhrIo;goog$net$XhrLite.send=goog$net$XhrIo$send;goog$net$XhrLite.cleanup=goog$net$XhrIo$cleanup;goog$net$XhrLite.protectEntryPoints=goog$net$XhrIo$protectEntryPoints;goog$net$XhrLite.cleanupSend_=goog$net$XhrIo$cleanupSend_;goog$net$XhrLite.CONTENT_TYPE_HEADER="Content-Type";goog$net$XhrLite.FORM_CONTENT_TYPE="application/x-www-form-urlencoded;charset=utf-8";goog$net$XhrLite.sendInstances_=goog$net$XhrIo$sendInstances_;var goog$userAgent$product$detectedFirefox_,goog$userAgent$product$detectedCamino_,goog$userAgent$product$detectedIphone_,goog$userAgent$product$detectedAndroid_,goog$userAgent$product$detectedChrome_,goog$userAgent$product$detectedSafari_,goog$userAgent$product$init_=function(){goog$userAgent$product$detectedSafari_=goog$userAgent$product$detectedChrome_=goog$userAgent$product$detectedAndroid_=goog$userAgent$product$detectedIphone_=goog$userAgent$product$detectedCamino_=goog$userAgent$product$detectedFirefox_=
false;var b=goog$userAgent$getUserAgentString();if(!!b)if(b[$$PROP_indexOf]("Firefox")!=-1)goog$userAgent$product$detectedFirefox_=true;else if(b[$$PROP_indexOf]("Camino")!=-1)goog$userAgent$product$detectedCamino_=true;else if(b[$$PROP_indexOf]("iPhone")!=-1||b[$$PROP_indexOf]("iPod")!=-1)goog$userAgent$product$detectedIphone_=true;else if(b[$$PROP_indexOf]("Android")!=-1)goog$userAgent$product$detectedAndroid_=true;else if(b[$$PROP_indexOf]("Chrome")!=-1)goog$userAgent$product$detectedChrome_=true;
else if(b[$$PROP_indexOf]("Safari")!=-1)goog$userAgent$product$detectedSafari_=true};goog$userAgent$product$init_();var goog$style$setStyle=function(b,c,d){goog$isString(c)?goog$style$setStyle_(b,d,c):goog$object$forEach(c,goog$partial(goog$style$setStyle_,b))},goog$style$setStyle_=function(b,c,d){b.style[goog$style$toCamelCase(d)]=c},goog$style$toCamelCaseCache_={},goog$style$toCamelCase=function(b){return goog$style$toCamelCaseCache_[b]||(goog$style$toCamelCaseCache_[b]=GLOBAL_String(b)[$$PROP_replace](/\-([a-z])/g,function(c,d){return d.toUpperCase()}))},goog$style$showElement=function(b,c){b.style.display=
c?"":"none"};goog$userAgent$GECKO&&goog$userAgent$isVersion("1.9");var goog$uri$utils$splitRe_=/^(?:([^:\/?#]+):)?(?:\/\/(?:([^\/?#]*)@)?([^\/?#:@]*)(?::([0-9]+))?)?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,goog$uri$utils$split=function(b){return b.match(goog$uri$utils$splitRe_)};var goog$Uri=function(b,c){var d;if(b instanceof goog$Uri){this.setIgnoreCase(c==null?b.getIgnoreCase():c);this.setScheme(b.getScheme());this.setUserInfo(b.getUserInfo());this.setDomain(b.getDomain());this.setPort(b.getPort());this.setPath(b.getPath());this.setQueryData(b.getQueryData().clone());this.setFragment(b.getFragment())}else if(b&&(d=goog$uri$utils$split(GLOBAL_String(b)))){this.setIgnoreCase(!!c);this.setScheme(d[1],true);this.setUserInfo(d[2],true);this.setDomain(d[3],true);this.setPort(d[4]);
this.setPath(d[5],true);this.setQueryData(d[6]);this.setFragment(d[7],true)}else{this.setIgnoreCase(!!c);this.queryData_=new goog$Uri$QueryData(null,this,this.ignoreCase_)}};a=goog$Uri[$$PROP_prototype];a.scheme_="";a.userInfo_="";a.domain_="";a.port_=null;a.path_="";a.fragment_="";a.isReadOnly_=false;a.ignoreCase_=false;
a.toString=function(){if(this.cachedToString_)return this.cachedToString_;var b=[];this.scheme_&&b[$$PROP_push](goog$Uri$encodeSpecialChars_(this.scheme_,goog$Uri$reDisallowedInSchemeOrUserInfo_),":");if(this.domain_){b[$$PROP_push]("//");this.userInfo_&&b[$$PROP_push](goog$Uri$encodeSpecialChars_(this.userInfo_,goog$Uri$reDisallowedInSchemeOrUserInfo_),"@");b[$$PROP_push](goog$Uri$encodeString_(this.domain_));this.port_!=null&&b[$$PROP_push](":",GLOBAL_String(this.getPort()))}this.path_&&b[$$PROP_push](goog$Uri$encodeSpecialChars_(this.path_,
goog$Uri$reDisallowedInPath_));var c=GLOBAL_String(this.queryData_);c&&b[$$PROP_push]("?",c);this.fragment_&&b[$$PROP_push]("#",goog$Uri$encodeSpecialChars_(this.fragment_,goog$Uri$reDisallowedInFragment_));return this.cachedToString_=b[$$PROP_join]("")};a.clone=function(){return goog$Uri$create(this.scheme_,this.userInfo_,this.domain_,this.port_,this.path_,this.queryData_.clone(),this.fragment_,this.ignoreCase_)};a.getScheme=function(){return this.scheme_};
a.setScheme=function(b,c){this.enforceReadOnly();delete this.cachedToString_;if(this.scheme_=c?b?GLOBAL_decodeURIComponent(b):"":b)this.scheme_=this.scheme_[$$PROP_replace](/:$/,"");return this};a.getUserInfo=function(){return this.userInfo_};a.setUserInfo=function(b,c){this.enforceReadOnly();delete this.cachedToString_;this.userInfo_=c?b?GLOBAL_decodeURIComponent(b):"":b;return this};a.getDomain=function(){return this.domain_};
a.setDomain=function(b,c){this.enforceReadOnly();delete this.cachedToString_;this.domain_=c?b?GLOBAL_decodeURIComponent(b):"":b;return this};a.getPort=function(){return this.port_};a.setPort=function(b){this.enforceReadOnly();delete this.cachedToString_;if(b){b=Number(b);if(isNaN(b)||b<0)throw GLOBAL_Error("Bad port number "+b);this.port_=b}else this.port_=null;return this};a.hasPort=function(){return this.port_!=null};a.getPath=function(){return this.path_};
a.setPath=function(b,c){this.enforceReadOnly();delete this.cachedToString_;this.path_=c?b?GLOBAL_decodeURIComponent(b):"":b;return this};a.setQueryData=function(b){this.enforceReadOnly();delete this.cachedToString_;if(b instanceof goog$Uri$QueryData){this.queryData_=b;this.queryData_.uri_=this;this.queryData_.setIgnoreCase(this.ignoreCase_)}else this.queryData_=new goog$Uri$QueryData(b,this,this.ignoreCase_);return this};a.getQueryData=function(){return this.queryData_};a.getFragment=function(){return this.fragment_};
a.setFragment=function(b,c){this.enforceReadOnly();delete this.cachedToString_;this.fragment_=c?b?GLOBAL_decodeURIComponent(b):"":b;return this};a.removeParameter=function(b){this.enforceReadOnly();this.queryData_.remove(b);return this};a.enforceReadOnly=function(){if(this.isReadOnly_)throw GLOBAL_Error("Tried to modify a read-only Uri");};a.setIgnoreCase=function(b){this.ignoreCase_=b;this.queryData_&&this.queryData_.setIgnoreCase(b)};a.getIgnoreCase=function(){return this.ignoreCase_};
var goog$Uri$create=function(b,c,d,e,f,g,h,i){var m=new goog$Uri(null,i);b&&m.setScheme(b);c&&m.setUserInfo(c);d&&m.setDomain(d);e&&m.setPort(e);f&&m.setPath(f);g&&m.setQueryData(g);h&&m.setFragment(h);return m};
var goog$Uri$encodeString_=function(b){if(goog$isString(b))return GLOBAL_encodeURIComponent(b);return null},goog$Uri$encodeSpecialRegExp_=/^[a-zA-Z0-9\-_.!~*'():\/;?]*$/,goog$Uri$encodeSpecialChars_=function(b,c){var d=null;if(goog$isString(b)){d=b;goog$Uri$encodeSpecialRegExp_[$$PROP_test](d)||(d=encodeURI(b));if(d.search(c)>=0)d=d[$$PROP_replace](c,goog$Uri$encodeChar_)}return d},goog$Uri$encodeChar_=function(b){var c=b.charCodeAt(0);return"%"+(c>>4&15).toString(16)+(c&15).toString(16)},goog$Uri$reDisallowedInSchemeOrUserInfo_=
/[#\/\?@]/g,goog$Uri$reDisallowedInPath_=/[\#\?]/g,goog$Uri$reDisallowedInFragment_=/#/g,goog$Uri$QueryData=function(b,c,d){this.keyMap_=new goog$structs$Map;this.uri_=c||null;this.ignoreCase_=!!d;if(b){var e=b[$$PROP_split]("&"),f=0;for(;f<e[$$PROP_length];f++){var g=e[f][$$PROP_indexOf]("="),h=null,i=null;if(g>=0){h=e[f].substring(0,g);i=e[f].substring(g+1)}else h=e[f];h=GLOBAL_decodeURIComponent(h[$$PROP_replace](/\+/g," "));h=this.getKeyName_(h);this.add(h,i?GLOBAL_decodeURIComponent(i[$$PROP_replace](/\+/g,
" ")):"")}}};a=goog$Uri$QueryData[$$PROP_prototype];a.count_=0;a.getCount=function(){return this.count_};a.add=function(b,c){this.invalidateCache_();b=this.getKeyName_(b);if(this.containsKey(b)){var d=this.keyMap_.get(b);goog$isArray(d)?d[$$PROP_push](c):this.keyMap_.set(b,[d,c])}else this.keyMap_.set(b,c);this.count_++;return this};
a.remove=function(b){b=this.getKeyName_(b);if(this.keyMap_.containsKey(b)){this.invalidateCache_();var c=this.keyMap_.get(b);if(goog$isArray(c))this.count_-=c[$$PROP_length];else this.count_--;return this.keyMap_.remove(b)}return false};a.clear=function(){this.invalidateCache_();this.keyMap_.clear();this.count_=0};a.isEmpty=function(){return this.count_==0};a.containsKey=function(b){b=this.getKeyName_(b);return this.keyMap_.containsKey(b)};
a.getKeys=function(){var b=this.keyMap_.getValues(),c=this.keyMap_.getKeys(),d=[],e=0;for(;e<c[$$PROP_length];e++){var f=b[e];if(goog$isArray(f)){var g=0;for(;g<f[$$PROP_length];g++)d[$$PROP_push](c[e])}else d[$$PROP_push](c[e])}return d};
a.getValues=function(b){var c;if(b){var d=this.getKeyName_(b);if(this.containsKey(d)){var e=this.keyMap_.get(d);if(goog$isArray(e))return e;else{c=[];c[$$PROP_push](e)}}else c=[]}else{var f=this.keyMap_.getValues();c=[];var g=0;for(;g<f[$$PROP_length];g++){var h=f[g];goog$isArray(h)?goog$array$extend(c,h):c[$$PROP_push](h)}}return c};
a.set=function(b,c){this.invalidateCache_();b=this.getKeyName_(b);if(this.containsKey(b)){var d=this.keyMap_.get(b);if(goog$isArray(d))this.count_-=d[$$PROP_length];else this.count_--}this.keyMap_.set(b,c);this.count_++;return this};a.get=function(b,c){b=this.getKeyName_(b);if(this.containsKey(b)){var d=this.keyMap_.get(b);return goog$isArray(d)?d[0]:d}else return c};
a.toString=function(){if(this.cachedToString_)return this.cachedToString_;var b=[],c=0,d=this.keyMap_.getKeys(),e=0;for(;e<d[$$PROP_length];e++){var f=d[e],g=goog$string$urlEncode(f),h=this.keyMap_.get(f);if(goog$isArray(h)){var i=0;for(;i<h[$$PROP_length];i++){c>0&&b[$$PROP_push]("&");b[$$PROP_push](g,"=",goog$string$urlEncode(h[i]));c++}}else{c>0&&b[$$PROP_push]("&");b[$$PROP_push](g,"=",goog$string$urlEncode(h));c++}}return this.cachedToString_=b[$$PROP_join]("")};
a.invalidateCache_=function(){delete this.cachedToString_;this.uri_&&delete this.uri_.cachedToString_};a.clone=function(){var b=new goog$Uri$QueryData;b.keyMap_=this.keyMap_.clone();return b};a.getKeyName_=function(b){var c=GLOBAL_String(b);if(this.ignoreCase_)c=c.toLowerCase();return c};
a.setIgnoreCase=function(b){var c=b&&!this.ignoreCase_;if(c){this.invalidateCache_();goog$structs$forEach(this.keyMap_,function(d,e){var f=e.toLowerCase();if(e!=f){this.remove(e);this.add(f,d)}},this)}this.ignoreCase_=b};a.extend=function(){var b=0;for(;b<arguments[$$PROP_length];b++){var c=arguments[b];goog$structs$forEach(c,function(d,e){this.add(e,d)},this)}};goog$exportSymbol("getElement",goog$dom$getElement);var hostednews$initializeMap=function(b,c,d,e,f,g,h){var i=new GClientGeocoder,m=function(k){if(k){var j=GLOBAL_document[$$PROP_createElement]("a");j.href="http://maps.google.com/maps?z=5&q="+GLOBAL_encodeURIComponent(c)+"&hl="+e;var l=GLOBAL_document[$$PROP_createElement]("img");l.src="http://maps.google.com/staticmap?center="+k.lat()+","+k.lng()+"&markers="+k.lat()+","+k.lng()+",red&zoom="+d+"&size="+f+"x"+g+"&key="+h;goog$dom$appendChild(b,j);goog$dom$appendChild(j,l)}else goog$style$showElement(b,
false)};i.getLatLng(c,m)};goog$exportSymbol("HNS_initializeMap",hostednews$initializeMap);var hostednews$RelatedNews=function(b,c,d,e,f){this.moreCoverageUri_=c;this.locale_=d;this.articleUri_=e;this.seeMoreItemAttributes_=f;var g=goog$global[$$PROP_document].location instanceof goog$Uri?goog$global[$$PROP_document].location.clone():new goog$Uri(goog$global[$$PROP_document].location,undefined),h=g.getDomain()+(g.hasPort()?":"+g.getPort():""),i="http://"+h+"/hostednews/relatedArticles?hl="+d+"&ncl="+e,m=this;goog$net$XhrLite.send(i,function(){var k=this.getResponseXml();if(k!=null){var j=
m.renderXmlResponse_(k);if(j!=""){SETPROP_innerHTML(b,j);return}}b&&b[$$PROP_parentNode]&&b[$$PROP_parentNode].removeChild(b)})};
hostednews$RelatedNews[$$PROP_prototype].renderXmlResponse_=function(b){var c=this.extractResults_(b);if(c[$$PROP_length]==0)return"";var d=this.getElementValueByTagName(b,"M"),e=['<h4 id="rn-header">Related articles</h4>',"<ul>"],f=0,g;for(;g=c[f];f++){if(f>=5)break;e[$$PROP_push]("<li>");e[$$PROP_push]('<a href="');e[$$PROP_push](g.uri);e[$$PROP_push]('" ');e[$$PROP_push]('onclick="pageTracker._trackPageview(');e[$$PROP_push]("'/outgoing/related_news');\"");e[$$PROP_push](">");e[$$PROP_push](g.title);
e[$$PROP_push]("</a><br/>");e[$$PROP_push]('<span class="source">');e[$$PROP_push](g.source);e[$$PROP_push](" - </span>");e[$$PROP_push](g.crawldate);e[$$PROP_push]("</li>")}if(this.seeMoreItemAttributes_!=null){e[$$PROP_push]("<li ");e[$$PROP_push](this.seeMoreItemAttributes_);e[$$PROP_push](">");e[$$PROP_push]('<a href="');e[$$PROP_push](this.moreCoverageUri_);e[$$PROP_push]('" ');e[$$PROP_push]('onclick="pageTracker._trackPageview(');e[$$PROP_push]("'/outgoing/full_coverage');\"");e[$$PROP_push](">");
e[$$PROP_push]("More coverage");e[$$PROP_push](" (");e[$$PROP_push](d);e[$$PROP_push](") ");e[$$PROP_push]("&#x00bb;");e[$$PROP_push]("</a>");e[$$PROP_push]("</li>")}e[$$PROP_push]("</ul>");return e[$$PROP_join]("")};
hostednews$RelatedNews[$$PROP_prototype].extractResults_=function(b){var c=[],d=b.getElementsByTagName("R"),e=0,f;for(;f=d[e];e++){var g={};g.uri=this.getElementValueByTagName(f,"U");SETPROP_title(g,this.getElementValueByTagName(f,"T"));g.crawldate=this.getElementValueByTagName(f,"CRAWLDATE");var h=this.getAttributeofElement(f,"MT","N","source");if(h!=null)g.source=h.getAttribute("V");g.uri!=null&&g.title!=null&&g.crawldate!=null&&g.source!=null&&c[$$PROP_push](g)}return c};
hostednews$RelatedNews[$$PROP_prototype].getElementValueByTagName=function(b,c){var d=goog$dom$defaultDomHelper_||(goog$dom$defaultDomHelper_=new goog$dom$DomHelper),e=b.getElementsByTagName(c);return e[$$PROP_length]>0?d.getTextContent(e[0]):null};hostednews$RelatedNews[$$PROP_prototype].getAttributeofElement=function(b,c,d,e){var f=b.getElementsByTagName(c),g=0,h;for(;h=f[g];g++)if(h.getAttribute(d)==e)return h;return null};goog$exportSymbol("RelatedNews",hostednews$RelatedNews);var hostednews$SlideshowImage=function(b,c){this.source=b;this.caption=c};hostednews$SlideshowImage[$$PROP_prototype].getSource=function(b){return this.source+"?size="+b};
var hostednews$Slideshow=function(b,c,d,e,f,g,h){this.presentation_=b;this.resizables_=c;this.images_=d;this.slideshowUri_=e;this.rightToLeft_=f;this.index_=g;this.ned_=h;this.preloadedImages_=[];if(!(this.images_[$$PROP_length]<1)){var i='<table id="ss" cellspacing="0">';i+='<tr id="ss-navigation">';i+=this.images_[$$PROP_length]>1?'<td id="ss-message"></td><td id="ss-buttons"></td><td id="ss-zoom">':'<td id="ss-zoom-single" colspan="3">';i+='<a id="ss-zoom-anchor" href="">';i+='<img alt="" title="Zoom in" id="ss-zoom-img" src="';
i+=this.getHelperImagePath_("zoom-in.gif");i+='"/><a/></td></tr>';i+='<tr><td colspan="3"><div id="ss-image-container" class="clickable"><a id="ss-image-anchor" href=""><img id="ss-image" src="'+this.getCurrentThumbnailPath()+'" alt=""/></a></div></td></tr><tr><td id="ss-caption" colspan="3"><p>'+this.getCurrentCaption()+"</p></td></tr>";if(this.images_[$$PROP_length]>1)i+='<tr><td id="ss-thumbnails" colspan="3"></td></tr>';i+="</table>";SETPROP_innerHTML(this.presentation_,i);goog$userAgent$IE&&
goog$style$setStyle(goog$dom$getElement("ss-zoom-img"),"marginTop","0px");if(this.images_[$$PROP_length]>1){SETPROP_innerHTML(goog$dom$getElement("ss-buttons"),'<img id="ss-previous-img" alt="" src="'+this.getHelperImagePath_(this.getPreviousButtonFilename_(false))+'"/><img id="ss-next-img" alt="" src="'+this.getHelperImagePath_(this.getNextButtonFilename_(false))+'"/>');var m=function(o){return function(p){if(p[$$PROP_button]<2){this.setIndex_(o);this.update()}}},k=goog$dom$getElement("ss-thumbnails"),
j=0;for(;j<this.images_[$$PROP_length];j++){var l=GLOBAL_document[$$PROP_createElement]("img");l.src=this.images_[j].getSource("xs");var n=GLOBAL_document[$$PROP_createElement]("div");n.className="ss-thumbnail-container-"+(j%2?"r":"l");goog$dom$appendChild(n,l);this.setLink_(l,m(j));goog$dom$appendChild(k,n)}}this.redraw_()}};a=hostednews$Slideshow[$$PROP_prototype];a.update=function(){this.redraw_()};
a.redraw_=function(){if(goog$userAgent$WEBKIT)this.redrawImmediately_();else{var b=new Image;goog$events$listen(b,"load",this.redrawImmediately_,null,this);b.src=this.getCurrentThumbnailPath()}};
a.redrawImmediately_=function(){if(this.images_[$$PROP_length]>1){var b="Photo "+(this.index_+1+(" of "+this.images_[$$PROP_length]));SETPROP_innerHTML(goog$dom$getElement("ss-message"),"<span>"+b+"</span>")}var c=goog$dom$getElement("ss-image");c.src=this.getCurrentThumbnailPath();SETPROP_innerHTML(goog$dom$getElement("ss-caption"),"<p>"+this.getCurrentCaption()+"</p>");goog$dom$getElement("ss-image-container").className="clickable";var d=goog$dom$getElement("ss-image-anchor");this.setHref_(d,this.slideshowCurrentUri_());
var e=goog$dom$getElement("ss-previous-img"),f=goog$dom$getElement("ss-next-img");if(this.images_[$$PROP_length]>1){if(this.index_>0){this.setHelperImageSrc_(e,this.getPreviousButtonFilename_(true));this.setLink_(e,this.previous);SETPROP_title(e,"Previous image")}else{this.setHelperImageSrc_(e,this.getPreviousButtonFilename_(false));this.removeLinks_(e);SETPROP_title(e,"")}if(this.index_<this.images_[$$PROP_length]-1){this.setHelperImageSrc_(f,this.getNextButtonFilename_(true));this.setLink_(f,this.next);
SETPROP_title(f,"Next image")}else{this.setHelperImageSrc_(f,this.getNextButtonFilename_(false));this.removeLinks_(f);SETPROP_title(f,"")}}var g=goog$dom$getElement("ss-zoom-anchor");this.setHref_(g,this.slideshowCurrentUri_());this.presentation_.style.width="188px";this.preloadedImages_=[new Image,new Image,new Image,new Image];this.preloadedImages_[0].src=this.getCurrentImage().getSource("s2");if(this.index_+1<this.images_[$$PROP_length])this.preloadedImages_[1].src=this.images_[this.index_+1].getSource("s2")};
a.slideshowCurrentUri_=function(){var b=this.slideshowUri_+"?index="+this.index_;if(this.ned_!="")b+="&ned="+this.ned_;return b};a.setHref_=function(b,c){b.href=c};a.previous=function(b){if(b[$$PROP_button]<2){this.setIndex_(this.index_-1);this.update()}};a.next=function(b){if(b[$$PROP_button]<2){this.setIndex_(this.index_+1);this.update()}};
a.setLink_=function(b,c){goog$events$removeAll(b);goog$events$listen(b,"click",c,null,this);if(goog$userAgent$IE)goog$userAgent$isVersion("6.0")&&goog$style$setStyle(b,"cursor","pointer");else goog$style$setStyle(b,"cursor","pointer")};a.removeLinks_=function(b){goog$events$removeAll(b);if(goog$userAgent$IE)goog$userAgent$isVersion("6.0")&&goog$style$setStyle(b,"cursor","");else goog$style$setStyle(b,"cursor","")};a.getHelperImagePath_=function(b){return"/hostednews/img/"+b};
a.setHelperImageSrc_=function(b,c){b.src=this.getHelperImagePath_(c)};a.getNextButtonFilename_=function(b){return this.getDirectionalButtonPath_("right","left",b)};a.getPreviousButtonFilename_=function(b){return this.getDirectionalButtonPath_("left","right",b)};a.getDirectionalButtonPath_=function(b,c,d){var e=d?"active":"inactive",f=this.rightToLeft_?c:b;return e+"-"+f+".gif"};a.setIndex_=function(b){if(!(b<0||b>=this.images_[$$PROP_length]))this.index_=b};a.getCurrentImage=function(){return this.images_[this.index_]};
a.getCurrentThumbnailPath=function(){return this.getCurrentImage().getSource("s2")};a.getCurrentCaption=function(){return this.getCurrentImage().caption};goog$exportSymbol("Slideshow",hostednews$Slideshow);goog$exportSymbol("SlideshowImage",hostednews$SlideshowImage);
