var b=b||{};b.global=this;b.r=null;b.provide=function(a){b.sa(a)};b.sa=function(a,c){var d=a.split("."),e=b.global,f;if(!(d[0]in e)&&e.execScript)e.execScript("var "+d[0]);while(d.length&&(f=d.shift()))if(!d.length&&b.isDef(c))e[f]=c;else if(e[f])e=e[f];else e=(e[f]={})};b.getObjectByName=function(a,c){var d=a.split("."),e=c||b.global;for(var f;f=d.shift();)if(e[f])e=e[f];else return null;return e};b.globalize=function(a,c){var d=c||b.global;for(var e in a)d[e]=a[e]};b.addDependency=function(a,c,
d){};b.require=function(a){};b.useStrictRequires=false;b.basePath="";b.nullFunction=function(){};b.identityFunction=function(){return arguments[0]};b.abstractMethod=function(){throw Error("unimplemented abstract method");};b.addSingletonGetter=function(a){a.getInstance=function(){return a.Ua||(a.Ua=new a)}};b.typeOf=function(a){var c=typeof a;if(c=="object")if(a){if(typeof a.length=="number"&&typeof a.splice!="undefined"&&!b.za(a,"length"))return"array";if(typeof a.call!="undefined")return"function"}else return"null";
else if(c=="function"&&typeof a.call=="undefined")return"object";return c};if(Object.prototype.propertyIsEnumerable)b.za=function(a,c){return Object.prototype.propertyIsEnumerable.call(a,c)};else b.za=function(a,c){if(c in a)for(var d in a)if(d==c&&Object.prototype.hasOwnProperty.call(a,c))return true;return false};b.isDef=function(a){return typeof a!="undefined"};b.isNull=function(a){return a===null};b.isDefAndNotNull=function(a){return b.isDef(a)&&!b.isNull(a)};b.isArray=function(a){return b.typeOf(a)==
"array"};b.isArrayLike=function(a){var c=b.typeOf(a);return c=="array"||c=="object"&&typeof a.length=="number"};b.isDateLike=function(a){return b.isObject(a)&&typeof a.getFullYear=="function"};b.isString=function(a){return typeof a=="string"};b.isBoolean=function(a){return typeof a=="boolean"};b.isNumber=function(a){return typeof a=="number"};b.isFunction=function(a){return b.typeOf(a)=="function"};b.isObject=function(a){var c=b.typeOf(a);return c=="object"||c=="array"||c=="function"};b.getHashCode=
function(a){if(a.hasOwnProperty&&a.hasOwnProperty(b.g)){var c=a[b.g];if(c)return c}if(!a[b.g])a[b.g]=++b.Sa;return a[b.g]};b.removeHashCode=function(a){if("removeAttribute"in a)a.removeAttribute(b.g);try{delete a[b.g]}catch(c){}};b.g="closure_hashCode_";b.Sa=0;b.cloneObject=function(a){var c=b.typeOf(a);if(c=="object"||c=="array"){if(a.clone)return a.clone();var d=c=="array"?[]:{};for(var e in a)d[e]=b.cloneObject(a[e]);return d}return a};b.bind=function(a,c){var d=a.Na;if(arguments.length>2){var e=
Array.prototype.slice.call(arguments,2);if(d)e.unshift.apply(e,d);d=e}c=a.Pa||c;a=a.Oa||a;var f,g=c||b.global;if(d)f=function(){var h=Array.prototype.slice.call(arguments);h.unshift.apply(h,d);return a.apply(g,h)};else f=function(){return a.apply(g,arguments)};f.Na=d;f.Pa=c;f.Oa=a;return f};b.partial=function(a){var c=Array.prototype.slice.call(arguments,1);c.unshift(a,null);return b.bind.apply(null,c)};b.mixin=function(a,c){for(var d in c)a[d]=c[d]};b.now=Date.now||function(){return(new Date).getTime()};
b.globalEval=function(a){if(b.global.execScript)b.global.execScript(a,"JavaScript");else if(b.global.eval){if(b.r==null){b.global.eval("var _et_ = 1;");if(typeof b.global._et_!="undefined"){delete b.global._et_;b.r=true}else b.r=false}if(b.r)b.global.eval(a);else{var c=b.global.document,d=c.createElement("script");d.type="text/javascript";d.defer=false;d.appendChild(c.createTextNode(a));c.body.appendChild(d);c.body.removeChild(d)}}else throw Error("goog.globalEval not available");};b.getMsg=function(a,
c){var d=c||{};for(var e in d)a=a.replace(new RegExp("\\{\\$"+e+"\\}","gi"),d[e]);return a};b.exportSymbol=function(a,c){b.sa(a,c)};b.exportProperty=function(a,c,d){a[c]=d};b.inherits=function(a,c){function d(){}d.prototype=c.prototype;a.Ya=c.prototype;a.prototype=new d;a.prototype.constructor=a};Function.prototype.bind=function(a){if(arguments.length>1){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return b.bind.apply(null,c)}else return b.bind(this,a)};Function.prototype.partial=
function(){var a=Array.prototype.slice.call(arguments);a.unshift(this,null);return b.bind.apply(null,a)};Function.prototype.inherits=function(a){b.inherits(this,a)};Function.prototype.mixin=function(a){b.mixin(this.prototype,a)};var n;b.array={};b.array.peek=function(a){return a[a.length-1]};b.array.indexOf=function(a,c,d){if(a.indexOf)return a.indexOf(c,d);if(Array.indexOf)return Array.indexOf(a,c,d);var e=d==null?0:(d<0?Math.max(0,a.length+d):d);for(var f=e;f<a.length;f++)if(f in a&&a[f]===c)return f;return-1};b.array.lastIndexOf=function(a,c,d){var e=d==null?a.length-1:d;if(a.lastIndexOf)return a.lastIndexOf(c,e);if(Array.lastIndexOf)return Array.lastIndexOf(a,c,e);if(e<0)e=Math.max(0,a.length+e);for(var f=e;f>=0;f--)if(f in
a&&a[f]===c)return f;return-1};b.array.forEach=function(a,c,d){if(a.forEach)a.forEach(c,d);else if(Array.forEach)Array.forEach(a,c,d);else{var e=a.length,f=b.isString(a)?a.split(""):a;for(var g=0;g<e;g++)if(g in f)c.call(d,f[g],g,a)}};b.array.forEachRight=function(a,c,d){var e=a.length,f=b.isString(a)?a.split(""):a;for(var g=e-1;g>=0;--g)if(g in f)c.call(d,f[g],g,a)};b.array.filter=function(a,c,d){if(a.filter)return a.filter(c,d);if(Array.filter)return Array.filter(a,c,d);var e=a.length,f=[],g=0,
h=b.isString(a)?a.split(""):a;for(var i=0;i<e;i++)if(i in h){var j=h[i];if(c.call(d,j,i,a))f[g++]=j}return f};b.array.map=function(a,c,d){if(a.map)return a.map(c,d);if(Array.map)return Array.map(a,c,d);var e=a.length,f=[],g=0,h=b.isString(a)?a.split(""):a;for(var i=0;i<e;i++)if(i in h)f[g++]=c.call(d,h[i],i,a);return f};b.array.reduce=function(a,c,d,e){if(a.reduce)if(e)return a.reduce(b.bind(c,e),d);else return a.reduce(c,d);var f=d;b.array.forEach(a,function(g,h){f=c.call(e,f,g,h,a)});return f};
b.array.reduceRight=function(a,c,d,e){if(a.reduceRight)if(e)return a.reduceRight(b.bind(c,e),d);else return a.reduceRight(c,d);var f=d;b.array.forEachRight(a,function(g,h){f=c.call(e,f,g,h,a)});return f};b.array.some=function(a,c,d){if(a.some)return a.some(c,d);if(Array.some)return Array.some(a,c,d);var e=a.length,f=b.isString(a)?a.split(""):a;for(var g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return true;return false};b.array.every=function(a,c,d){if(a.every)return a.every(c,d);if(Array.every)return Array.every(a,
c,d);var e=a.length,f=b.isString(a)?a.split(""):a;for(var g=0;g<e;g++)if(g in f&&!c.call(d,f[g],g,a))return false;return true};b.array.find=function(a,c,d){var e=b.array.findIndex(a,c,d);return e<0?null:(b.isString(a)?a.charAt(e):a[e])};b.array.findIndex=function(a,c,d){var e=a.length,f=b.isString(a)?a.split(""):a;for(var g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,a))return g;return-1};b.array.findRight=function(a,c,d){var e=a.length,f=b.isString(a)?a.split(""):a;for(var g=e-1;g>=0;g--)if(g in f&&c.call(d,
f[g],g,a))return f[g];return null};b.array.contains=function(a,c){if(a.contains)return a.contains(c);return b.array.indexOf(a,c)>-1};b.array.n=function(a){return a.length==0};b.array.clear=function(a){if(!b.isArray(a))for(var c=a.length-1;c>=0;c--)delete a[c];a.length=0};b.array.insert=function(a,c){if(!b.array.contains(a,c))a.push(c)};b.array.insertAt=function(a,c,d){b.array.splice(a,d,0,c)};b.array.insertBefore=function(a,c,d){var e;if(arguments.length==2||(e=b.array.indexOf(a,d))==-1)a.push(c);
else b.array.insertAt(a,c,e)};b.array.remove=function(a,c){var d=b.array.indexOf(a,c),e;if(e=d!=-1)b.array.removeAt(a,d);return e};b.array.removeAt=function(a,c){return Array.prototype.splice.call(a,c,1).length==1};b.array.removeIf=function(a,c,d){var e=b.array.findIndex(a,c,d);if(e>=0){b.array.removeAt(a,e);return true}return false};b.array.clone=function(a){if(b.isArray(a))return a.concat();else{var c=[];for(var d=0,e=a.length;d<e;d++)c[d]=a[d];return c}};b.array.toArray=function(a){if(b.isArray(a))return a.concat();
return b.array.clone(a)};b.array.extend=function(a,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(!b.isArray(e))a.push(e);else a.push.apply(a,e)}};b.array.splice=function(a,c,d,e){return Array.prototype.splice.apply(a,b.array.slice(arguments,1))};b.array.slice=function(a,c,d){if(arguments.length<=2)return Array.prototype.slice.call(a,c);else return Array.prototype.slice.call(a,c,d)};b.array.removeDuplicates=function(a,c){var d=c||a,e={},f=0,g=0;while(g<a.length){var h=a[g++],i=b.isObject(h)?
b.getHashCode(h):h;if(!(i in e)){e[i]=true;d[f++]=h}}d.length=f};b.array.binarySearch=function(a,c,d){var e=0,f=a.length-1,g=d||b.array.defaultCompare;while(e<=f){var h=e+f>>1,i=g(c,a[h]);if(i>0)e=h+1;else if(i<0)f=h-1;else return h}return-(e+1)};b.array.sort=function(a,c){Array.prototype.sort.call(a,c||b.array.defaultCompare)};b.array.sortObjectsByKey=function(a,c,d){var e=d||b.array.defaultCompare;b.array.sort(a,function(f,g){return e(f[c],g[c])})};b.array.compare=function(a,c,d){if(!b.isArrayLike(a)||
!b.isArrayLike(c)||a.length!=c.length)return false;var e=a.length,f=d||b.array.defaultCompareEquality;for(var g=0;g<e;g++)if(!f.call(null,a[g],c[g]))return false;return true};b.array.defaultCompare=function(a,c){return a>c?1:(a<c?-1:0)};b.array.defaultCompareEquality=function(a,c){return a===c};b.array.binaryInsert=function(a,c,d){var e=b.array.binarySearch(a,c,d);if(e<0){b.array.insertAt(a,c,-(e+1));return true}return false};b.array.binaryRemove=function(a,c,d){var e=b.array.binarySearch(a,c,d);
return e>=0?b.array.removeAt(a,e):false};b.array.bucket=function(a,c){var d={};for(var e=0;e<a.length;e++){var f=a[e],g=c(f,e,a);if(b.isDef(g)){var h=d[g]||(d[g]=[]);h.push(f)}}return d};b.array.repeat=function(a,c){var d=[];for(var e=0;e<c;e++)d[e]=a;return d};b.array.flatten=function(){var a=[];for(var c=0;c<arguments.length;c++){var d=arguments[c];if(b.isArray(d))a.push.apply(a,b.array.flatten.apply(null,d));else a.push(d)}return a};b.dom={};b.dom.TagName={A:"A",ABBR:"ABBR",ACRONYM:"ACRONYM",ADDRESS:"ADDRESS",APPLET:"APPLET",AREA:"AREA",B:"B",BASE:"BASE",BASEFONT:"BASEFONT",BDO:"BDO",BIG:"BIG",BLOCKQUOTE:"BLOCKQUOTE",BODY:"BODY",BR:"BR",BUTTON:"BUTTON",CAPTION:"CAPTION",CENTER:"CENTER",CITE:"CITE",CODE:"CODE",COL:"COL",COLGROUP:"COLGROUP",DD:"DD",DEL:"DEL",DFN:"DFN",DIR:"DIR",DIV:"DIV",DL:"DL",DT:"DT",EM:"EM",FIELDSET:"FIELDSET",FONT:"FONT",FORM:"FORM",FRAME:"FRAME",FRAMESET:"FRAMESET",H1:"H1",H2:"H2",H3:"H3",H4:"H4",H5:"H5",
H6:"H6",HEAD:"HEAD",HR:"HR",HTML:"HTML",I:"I",IFRAME:"IFRAME",IMG:"IMG",INPUT:"INPUT",INS:"INS",ISINDEX:"ISINDEX",KBD:"KBD",LABEL:"LABEL",LEGEND:"LEGEND",LI:"LI",LINK:"LINK",MAP:"MAP",MENU:"MENU",META:"META",NOFRAMES:"NOFRAMES",NOSCRIPT:"NOSCRIPT",OBJECT:"OBJECT",OL:"OL",OPTGROUP:"OPTGROUP",OPTION:"OPTION",P:"P",PARAM:"PARAM",PRE:"PRE",Q:"Q",S:"S",SAMP:"SAMP",SCRIPT:"SCRIPT",SELECT:"SELECT",SMALL:"SMALL",SPAN:"SPAN",STRIKE:"STRIKE",STRONG:"STRONG",STYLE:"STYLE",SUB:"SUB",SUP:"SUP",TABLE:"TABLE",TBODY:"TBODY",
TD:"TD",TEXTAREA:"TEXTAREA",TFOOT:"TFOOT",TH:"TH",THEAD:"THEAD",TITLE:"TITLE",TR:"TR",TT:"TT",U:"U",UL:"UL",VAR:"VAR"};b.dom.classes={};b.dom.classes.set=function(a,c){a.className=c};b.dom.classes.get=function(a){var c=a.className;return c&&typeof c.split=="function"?c.split(" "):[]};b.dom.classes.add=function(a,c){var d=b.dom.classes.get(a),e=1;for(var f=1;f<arguments.length;f++)if(!b.array.contains(d,arguments[f])){d.push(arguments[f]);e&=1}else e&=0;a.className=d.join(" ");return Boolean(e)};b.dom.classes.remove=function(a,c){var d=b.dom.classes.get(a),e=b.array.slice(arguments,1),f=0;for(var g=0;g<d.length;g++)if(b.array.contains(e,
d[g])){b.array.splice(d,g--,1);f++}a.className=d.join(" ");return f==e.length};b.dom.classes.swap=function(a,c,d){var e=b.dom.classes.get(a),f=false;for(var g=0;g<e.length;g++)if(e[g]==c){b.array.splice(e,g--,1);f=true}if(f){e.push(d);a.className=e.join(" ")}return f};b.dom.classes.has=function(a,c){return b.array.contains(b.dom.classes.get(a),c)};b.dom.classes.enable=function(a,c,d){if(d)b.dom.classes.add(a,c);else b.dom.classes.remove(a,c)};b.dom.classes.toggle=function(a,c){var d=!b.dom.classes.has(a,
c);b.dom.classes.enable(a,c,d);return d};b.math={};b.math.Coordinate=function(a,c){this.x=b.isDef(a)?Number(a):undefined;this.y=b.isDef(c)?Number(c):undefined};b.math.Coordinate.prototype.clone=function(){return new b.math.Coordinate(this.x,this.y)};b.math.Coordinate.prototype.toString=function(){return"("+this.x+", "+this.y+")"};b.math.Coordinate.equals=function(a,c){if(a==c)return true;if(!a||!c)return false;return a.x==c.x&&a.y==c.y};b.math.Coordinate.distance=function(a,c){var d=a.x-c.x,e=a.y-c.y;return Math.sqrt(d*d+e*e)};b.math.Coordinate.squaredDistance=
function(a,c){var d=a.x-c.x,e=a.y-c.y;return d*d+e*e};b.math.Coordinate.difference=function(a,c){return new b.math.Coordinate(a.x-c.x,a.y-c.y)};b.math.Size=function(a,c){this.width=b.isDef(a)?Number(a):undefined;this.height=b.isDef(c)?Number(c):undefined};b.math.Size.equals=function(a,c){if(a==c)return true;if(!a||!c)return false;return a.width==c.width&&a.height==c.height};b.math.Size.prototype.clone=function(){return new b.math.Size(this.width,this.height)};b.math.Size.prototype.toString=function(){return"("+this.width+" x "+this.height+")"};b.math.Size.prototype.area=function(){return this.width*this.height};b.math.Size.prototype.n=function(){return!this.area()};
b.math.Size.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};b.math.Size.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};b.math.Size.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};b.math.Size.prototype.scale=function(a){this.width*=a;this.height*=a;return this};b.object={};b.object.forEach=function(a,c,d){for(var e in a)c.call(d,a[e],e,a)};b.object.filter=function(a,c,d){var e={};for(var f in a)if(c.call(d,a[f],f,a))e[f]=a[f];return e};b.object.map=function(a,c,d){var e={};for(var f in a)e[f]=c.call(d,a[f],f,a);return e};b.object.some=function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return true;return false};b.object.every=function(a,c,d){for(var e in a)if(!c.call(d,a[e],e,a))return false;return true};b.object.getCount=function(a){var c=0;for(var d in a)c++;
return c};b.object.getAnyKey=function(a){for(var c in a)return c};b.object.getAnyValue=function(a){for(var c in a)return a[c]};b.object.contains=function(a,c){return b.object.containsValue(a,c)};b.object.getValues=function(a){var c=[],d=0;for(var e in a)c[d++]=a[e];return c};b.object.getKeys=function(a){var c=[],d=0;for(var e in a)c[d++]=e;return c};b.object.containsKey=function(a,c){return c in a};b.object.containsValue=function(a,c){for(var d in a)if(a[d]==c)return true;return false};b.object.findKey=
function(a,c,d){for(var e in a)if(c.call(d,a[e],e,a))return e;return undefined};b.object.findValue=function(a,c,d){var e=b.object.findKey(a,c,d);return e&&a[e]};b.object.n=function(a){for(var c in a)return false;return true};b.object.clear=function(a){var c=b.object.getKeys(a);for(var d=c.length-1;d>=0;d--)b.object.remove(a,c[d])};b.object.remove=function(a,c){var d;if(d=c in a)delete a[c];return d};b.object.add=function(a,c,d){if(c in a)throw Error('The object already contains the key "'+c+'"');
b.object.set(a,c,d)};b.object.get=function(a,c,d){if(c in a)return a[c];return d};b.object.set=function(a,c,d){a[c]=d};b.object.setIfUndefined=function(a,c,d){return c in a?a[c]:(a[c]=d)};b.object.clone=function(a){var c={};for(var d in a)c[d]=a[d];return c};b.object.transpose=function(a){var c={},d=b.object.getKeys(a);for(var e=0,f=d.length;e<f;e++){var g=d[e];c[a[g]]=g}return c};b.object.ma=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];
b.object.extend=function(a,c){var d,e;for(var f=1;f<arguments.length;f++){e=arguments[f];for(d in e)a[d]=e[d];for(var g=0;g<b.object.ma.length;g++){d=b.object.ma[g];if(Object.prototype.hasOwnProperty.call(e,d))a[d]=e[d]}}};b.object.create=function(){var a=arguments.length;if(a==1&&b.isArray(arguments[0]))return b.object.create.apply(null,arguments[0]);if(a%2)throw Error("Uneven number of arguments");var c={};for(var d=0;d<a;d+=2)c[arguments[d]]=arguments[d+1];return c};b.object.createSet=function(){var a=
arguments.length;if(a==1&&b.isArray(arguments[0]))return b.object.createSet.apply(null,arguments[0]);var c={};for(var d=0;d<a;d++)c[arguments[d]]=true;return c};b.string={};b.string.startsWith=function(a,c){return a.indexOf(c)==0};b.string.endsWith=function(a,c){var d=a.length-c.length;return d>=0&&a.lastIndexOf(c,d)==d};b.string.caseInsensitiveStartsWith=function(a,c){return b.string.caseInsensitiveCompare(c,a.substr(0,c.length))==0};b.string.caseInsensitiveEndsWith=function(a,c){return b.string.caseInsensitiveCompare(c,a.substr(a.length-c.length,c.length))==0};b.string.subs=function(a){for(var c=1;c<arguments.length;c++){var d=String(arguments[c]).replace(/\$/g,
"$$$$");a=a.replace(/\%s/,d)}return a};b.string.collapseWhitespace=function(a){return a.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")};b.string.n=function(a){return/^[\s\xa0]*$/.test(a)};b.string.isEmptySafe=function(a){return b.string.n(b.string.makeSafe(a))};b.string.isBreakingWhitespace=function(a){return!/[^\t\n\r ]/.test(a)};b.string.isAlpha=function(a){return!/[^a-zA-Z]/.test(a)};b.string.isNumeric=function(a){return!/[^0-9]/.test(a)};b.string.isAlphaNumeric=function(a){return!/[^a-zA-Z0-9]/.test(a)};
b.string.isSpace=function(a){return a==" "};b.string.isUnicodeChar=function(a){return a.length==1&&a>=" "&&a<="~"||a>="\u0080"&&a<="\ufffd"};b.string.stripNewlines=function(a){return a.replace(/(\r\n|\r|\n)+/g," ")};b.string.canonicalizeNewlines=function(a){return a.replace(/(\r\n|\r|\n)/g,"\n")};b.string.normalizeWhitespace=function(a){return a.replace(/\xa0|\s/g," ")};b.string.normalizeSpaces=function(a){return a.replace(/\xa0|[ \t]+/g," ")};b.string.trim=function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,
"")};b.string.trimLeft=function(a){return a.replace(/^[\s\xa0]+/,"")};b.string.trimRight=function(a){return a.replace(/[\s\xa0]+$/,"")};b.string.caseInsensitiveCompare=function(a,c){var d=String(a).toLowerCase(),e=String(c).toLowerCase();if(d<e)return-1;else if(d==e)return 0;else return 1};b.string.ya=/(\.\d+)|(\d+)|(\D+)/g;b.string.numerateCompare=function(a,c){if(a==c)return 0;if(!a)return-1;if(!c)return 1;var d=a.toLowerCase().match(b.string.ya),e=c.toLowerCase().match(b.string.ya),f=Math.min(d.length,
e.length);for(var g=0;g<f;g++){var h=d[g],i=e[g];if(h!=i){var j=parseInt(h,10);if(!isNaN(j)){var k=parseInt(i,10);if(!isNaN(k)&&j-k)return j-k}return h<i?-1:1}}if(d.length!=e.length)return d.length-e.length;return a<c?-1:1};b.string.Ra=/^[a-zA-Z0-9\-_.!~*'()]*$/;b.string.urlEncode=function(a){a=String(a);if(!b.string.Ra.test(a))return encodeURIComponent(a);return a};b.string.urlDecode=function(a){return decodeURIComponent(a.replace(/\+/g," "))};b.string.newLineToBr=function(a,c){return a.replace(/(\r\n|\r|\n)/g,
c?"<br />":"<br>")};b.string.htmlEscape=function(a,c){if(c)return a.replace(b.string.oa,"&amp;").replace(b.string.xa,"&lt;").replace(b.string.ua,"&gt;").replace(b.string.Aa,"&quot;");else{if(!b.string.Ma.test(a))return a;if(a.indexOf("&")!=-1)a=a.replace(b.string.oa,"&amp;");if(a.indexOf("<")!=-1)a=a.replace(b.string.xa,"&lt;");if(a.indexOf(">")!=-1)a=a.replace(b.string.ua,"&gt;");if(a.indexOf('"')!=-1)a=a.replace(b.string.Aa,"&quot;");return a}};b.string.oa=/&/g;b.string.xa=/</g;b.string.ua=/>/g;
b.string.Aa=/\"/g;b.string.Ma=/[&<>\"]/;b.string.unescapeEntities=function(a){if(b.string.contains(a,"&"))if("document"in b.global&&!b.string.contains(a,"<"))return b.string.Va(a);else return b.string.Wa(a);return a};b.string.Va=function(a){var c=b.global.document.createElement("a");c.innerHTML=a;if(c[b.string.la])c[b.string.la]();a=c.firstChild.nodeValue;c.innerHTML="";return a};b.string.Wa=function(a){return a.replace(/&([^;]+);/g,function(c,d){switch(d){case "amp":return"&";case "lt":return"<";
case "gt":return">";case "quot":return'"';default:if(d.charAt(0)=="#"){var e=Number("0"+d.substr(1));if(!isNaN(e))return String.fromCharCode(e)}return c}})};b.string.la="normalize";b.string.whitespaceEscape=function(a,c){return b.string.newLineToBr(a.replace(/  /g," &#160;"),c)};b.string.stripQuotes=function(a,c){var d=c.length;for(var e=0;e<d;e++){var f=d==1?c:c.charAt(e);if(a.charAt(0)==f&&a.charAt(a.length-1)==f)return a.substring(1,a.length-1)}return a};b.string.truncate=function(a,c,d){if(d)a=
b.string.unescapeEntities(a);if(a.length>c)a=a.substring(0,c-3)+"...";if(d)a=b.string.htmlEscape(a);return a};b.string.truncateMiddle=function(a,c,d){if(d)a=b.string.unescapeEntities(a);if(a.length>c){var e=Math.floor(c/2),f=a.length-e;e+=c%2;a=a.substring(0,e)+"..."+a.substring(f)}if(d)a=b.string.htmlEscape(a);return a};b.string.da={"\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"'":"\\'","\\":"\\\\"};b.string.quote=function(a){a=String(a);if(a.quote)return a.quote();
else{var c=['"'];for(var d=0;d<a.length;d++)c[d+1]=b.string.escapeChar(a.charAt(d));c.push('"');return c.join("")}};b.string.escapeChar=function(a){if(a in b.string.da)return b.string.da[a];var c=a,d=a.charCodeAt(0);if(d>31&&d<127)c=a;else{if(d<256){c="\\x";if(d<16||d>256)c+="0"}else{c="\\u";if(d<4096)c+="0"}c+=d.toString(16).toUpperCase()}return b.string.da[a]=c};b.string.toMap=function(a){var c={};for(var d=0;d<a.length;d++)c[a.charAt(d)]=true;return c};b.string.contains=function(a,c){return a.indexOf(c)!=
-1};b.string.removeAt=function(a,c,d){var e=a;if(c>=0&&c<a.length&&d>0)e=a.substr(0,c)+a.substr(c+d,a.length-c-d);return e};b.string.remove=function(a,c){var d=new RegExp(b.string.regExpEscape(c),"");return a.replace(d,"")};b.string.removeAll=function(a,c){var d=new RegExp(b.string.regExpEscape(c),"g");return a.replace(d,"")};b.string.regExpEscape=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};b.string.repeat=function(a,c){return(new Array(c+
1)).join(a)};b.string.padNumber=function(a,c,d){var e=b.isDef(d)?a.toFixed(d):String(a),f=e.indexOf(".");if(f==-1)f=e.length;return b.string.repeat("0",Math.max(0,c-f))+e};b.string.makeSafe=function(a){return a==null?"":String(a)};b.string.buildString=function(){return Array.prototype.join.call(arguments,"")};b.string.getRandomString=function(){return Math.floor(Math.random()*2147483648).toString(36)+(Math.floor(Math.random()*2147483648)^(new Date).getTime()).toString(36)};b.string.compareVersions=
function(a,c){var d=0,e=b.string.trim(String(a)).split("."),f=b.string.trim(String(c)).split("."),g=Math.max(e.length,f.length);for(var h=0;d==0&&h<g;h++){var i=e[h]||"",j=f[h]||"",k=new RegExp("(\\d*)(\\D*)","g"),p=new RegExp("(\\d*)(\\D*)","g");do{var l=k.exec(i)||["","",""],m=p.exec(j)||["","",""];if(l[0].length==0&&m[0].length==0)break;var o=l[1].length==0?0:parseInt(l[1],10),q=m[1].length==0?0:parseInt(m[1],10);d=b.string.J(o,q)||b.string.J(l[2].length==0,m[2].length==0)||b.string.J(l[2],m[2])}while(d==
0)}return d};b.string.J=function(a,c){if(a<c)return-1;else if(a>c)return 1;return 0};b.string.La=4294967296;b.string.hashCode=function(a){var c=0;for(var d=0;d<a.length;++d){c=31*c+a.charCodeAt(d);c%=b.string.La}return c};b.string.Xa=b.now();b.string.createUniqueString=function(){return"goog_"+b.string.Xa++};b.userAgent={};b.userAgent.ASSUME_IE=false;b.userAgent.ASSUME_GECKO=false;b.userAgent.ASSUME_WEBKIT=false;b.userAgent.ASSUME_MOBILE_WEBKIT=false;b.userAgent.ASSUME_OPERA=false;b.userAgent.p=b.userAgent.ASSUME_IE||b.userAgent.ASSUME_GECKO||b.userAgent.ASSUME_MOBILE_WEBKIT||b.userAgent.ASSUME_WEBKIT||b.userAgent.ASSUME_OPERA;b.userAgent.Ta=function(){var a=false,c=false,d=false,e=false,f=false,g=false,h=false,i=false,j=false,k="";if(b.global.navigator){var p=b.global.navigator,l=p.userAgent;a=l.indexOf("Opera")==
0;c=!a&&l.indexOf("MSIE")!=-1;d=!a&&l.indexOf("WebKit")!=-1;j=d&&l.indexOf("Mobile")!=-1;e=!a&&!d&&p.product=="Gecko";f=e&&p.vendor=="Camino";var m,o;if(a)m=b.global.opera.version();else{if(e)o=/rv\:([^\);]+)(\)|;)/;else if(c)o=/MSIE\s+([^\);]+)(\)|;)/;else if(d)o=/WebKit\/(\S+)/;if(o){o.test(l);m=RegExp.$1}}k=p.platform||"";g=k.indexOf("Mac")!=-1;h=k.indexOf("Win")!=-1;i=k.indexOf("Linux")!=-1}b.userAgent.Ja=a;b.userAgent.Ha=c;b.userAgent.Ga=e;b.userAgent.CAMINO=f;b.userAgent.Ka=d;b.userAgent.Ia=
j;b.userAgent.VERSION=m;b.userAgent.PLATFORM=k;b.userAgent.MAC=g;b.userAgent.WINDOWS=h;b.userAgent.LINUX=i};b.userAgent.Ta();b.userAgent.OPERA=b.userAgent.p?b.userAgent.ASSUME_OPERA:b.userAgent.Ja;b.userAgent.IE=b.userAgent.p?b.userAgent.ASSUME_IE:b.userAgent.Ha;b.userAgent.GECKO=b.userAgent.p?b.userAgent.ASSUME_GECKO:b.userAgent.Ga;b.userAgent.WEBKIT=b.userAgent.p?b.userAgent.ASSUME_WEBKIT||b.userAgent.ASSUME_MOBILE_WEBKIT:b.userAgent.Ka;b.userAgent.MOBILE=b.userAgent.ASSUME_MOBILE_WEBKIT||b.userAgent.Ia;
b.userAgent.SAFARI=b.userAgent.WEBKIT;b.userAgent.compare=function(a,c){return b.string.compareVersions(a,c)};b.userAgent.isVersion=function(a){return b.string.compareVersions(b.userAgent.VERSION,a)>=0};b.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12};b.dom.d=function(){if(!b.dom.ra)b.dom.ra=new b.dom.DomHelper;return b.dom.ra};b.dom.e=function(a){return a?new b.dom.DomHelper(b.dom.a(a)):b.dom.d()};b.dom.k=function(){return b.dom.d().k()};b.dom.l=function(a){return b.isString(a)?document.getElementById(a):a};b.dom.ha=b.dom.l;b.dom.i=function(a,c,d){return b.dom.d().i(a,
c,d)};b.dom.o=b.dom.i;b.dom.G=function(a,c){b.object.forEach(c,function(d,e){if(e=="style")a.style.cssText=d;else if(e=="class")a.className=d;else if(e=="for")a.htmlFor=d;else if(e in b.dom.ka)a.setAttribute(b.dom.ka[e],d);else a[e]=d})};b.dom.ka={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder"};b.dom.C=function(a){var c=a||b.global||window,d=c.document;if(b.userAgent.WEBKIT&&
!b.userAgent.isVersion("500")&&!b.userAgent.MOBILE){if(typeof c.innerHeight=="undefined")c=window;var e=c.innerHeight,f=c.document.documentElement.scrollHeight;if(c==c.top)if(f<e)e-=15;return new b.math.Size(c.innerWidth,e)}var g=b.dom.e(d),h=g.t()=="CSS1Compat"&&(!b.userAgent.OPERA||b.userAgent.OPERA&&b.userAgent.isVersion("9.50"))?d.documentElement:d.body;return new b.math.Size(h.clientWidth,h.clientHeight)};b.dom.getPageScroll=function(a){var c=a||b.global||window;return b.dom.e(c.document).h()};
b.dom.h=function(){return b.dom.d().h()};b.dom.D=function(a){return b.dom.e(a).D()};b.dom.c=function(a,c){var d=b.dom.d();return d.c.apply(d,arguments)};b.dom.ia=b.dom.c;b.dom.createElement=function(a){return b.dom.d().createElement(a)};b.dom.createTextNode=function(a){return b.dom.d().createTextNode(a)};b.dom.aa=function(a){return b.dom.d().aa(a)};b.dom.t=function(){return b.dom.d().t()};b.dom.canHaveChildren=function(a){if(a.nodeType!=b.dom.NodeType.ELEMENT)return false;if("canHaveChildren"in a)return a.canHaveChildren;
switch(a.tagName){case b.dom.TagName.APPLET:case b.dom.TagName.AREA:case b.dom.TagName.BR:case b.dom.TagName.COL:case b.dom.TagName.FRAME:case b.dom.TagName.HR:case b.dom.TagName.IMG:case b.dom.TagName.INPUT:case b.dom.TagName.IFRAME:case b.dom.TagName.ISINDEX:case b.dom.TagName.LINK:case b.dom.TagName.NOFRAMES:case b.dom.TagName.NOSCRIPT:case b.dom.TagName.META:case b.dom.TagName.OBJECT:case b.dom.TagName.PARAM:case b.dom.TagName.SCRIPT:case b.dom.TagName.STYLE:return false}return true};b.dom.appendChild=
function(a,c){a.appendChild(c)};b.dom.ea=function(a){var c;while(c=a.firstChild)a.removeChild(c)};b.dom.ca=function(a,c){if(c.parentNode)c.parentNode.insertBefore(a,c)};b.dom.ba=function(a,c){if(c.parentNode)c.parentNode.insertBefore(a,c.nextSibling)};b.dom.removeNode=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};b.dom.replaceNode=function(a,c){var d=c.parentNode;if(d)d.replaceChild(a,c)};b.dom.N=function(a){var c,d=a.parentNode;if(d&&d.nodeType!=b.dom.NodeType.DOCUMENT_FRAGMENT){while(c=
a.firstChild)d.insertBefore(c,a);return b.dom.removeNode(a)}};b.dom.R=function(a){return b.dom.z(a.firstChild,true)};b.dom.V=function(a){return b.dom.z(a.lastChild,false)};b.dom.W=function(a){return b.dom.z(a.nextSibling,true)};b.dom.Z=function(a){return b.dom.z(a.previousSibling,false)};b.dom.z=function(a,c){while(a&&a.nodeType!=b.dom.NodeType.ELEMENT)a=c?a.nextSibling:a.previousSibling;return a};b.dom.F=function(a){return b.isObject(a)&&a.nodeType>0};b.dom.Ea=b.userAgent.WEBKIT&&b.userAgent.compare(b.userAgent.VERSION,
"521")<=0;b.dom.contains=function(a,c){if(typeof a.contains!="undefined"&&!b.dom.Ea&&c.nodeType==b.dom.NodeType.ELEMENT)return a==c||a.contains(c);if(typeof a.compareDocumentPosition!="undefined")return a==c||Boolean(a.compareDocumentPosition(c)&16);while(c&&a!=c)c=c.parentNode;return c==a};b.dom.compareNodeOrder=function(a,c){if(a==c)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(c)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var d=a.nodeType==
b.dom.NodeType.ELEMENT,e=c.nodeType==b.dom.NodeType.ELEMENT;if(d&&e)return a.sourceIndex-c.sourceIndex;else{var f=a.parentNode,g=c.parentNode;if(f==g)return b.dom.qa(a,c);if(!d&&b.dom.contains(f,c))return-1*b.dom.pa(a,c);if(!e&&b.dom.contains(g,a))return b.dom.pa(c,a);return(d?a.sourceIndex:f.sourceIndex)-(e?c.sourceIndex:g.sourceIndex)}}var h=b.dom.a(a),i,j;i=h.createRange();i.selectNode(a);i.collapse(true);j=h.createRange();j.selectNode(c);j.collapse(true);return i.compareBoundaryPoints(b.global.Range.START_TO_END,
j)};b.dom.pa=function(a,c){var d=a.parentNode;if(d==c)return-1;var e=c;while(e.parentNode!=d)e=e.parentNode;return b.dom.qa(e,a)};b.dom.qa=function(a,c){var d=c;while(d=d.previousSibling)if(d==a)return-1;return 1};b.dom.findCommonAncestor=function(){var a,c=arguments.length;if(!c)return null;else if(c==1)return arguments[0];var d=[],e=Infinity;for(a=0;a<c;a++){var f=[],g=arguments[a];while(g){f.unshift(g);g=g.parentNode}d.push(f);e=Math.min(e,f.length)}var h=null;for(a=0;a<e;a++){var i=d[0][a];for(var j=
1;j<c;j++)if(i!=d[j][a])break;if(j!=c)return h;h=i}};b.dom.a=function(a){return a.nodeType==b.dom.NodeType.DOCUMENT?a:a.ownerDocument||a.document};b.dom.u=function(a){var c;if(b.userAgent.WEBKIT)c=a.document||a.contentWindow.document;else c=a.contentDocument||a.contentWindow.document;return c};b.dom.T=function(a){return a.contentWindow||b.dom.D(b.dom.u(a))};b.dom.fa=function(a,c){if("textContent"in a)a.textContent=c;else if(a.firstChild&&a.firstChild.nodeType==b.dom.NodeType.TEXT){while(a.lastChild!=
a.firstChild)a.removeChild(a.lastChild);a.firstChild.data=c}else{while(a.hasChildNodes())a.removeChild(a.lastChild);var d=b.dom.a(a);a.appendChild(d.createTextNode(c))}};b.dom.getOuterHtml=function(a){if("outerHTML"in a)return a.outerHTML;else{var c=b.dom.a(a),d=c.createElement("div");d.appendChild(a.cloneNode(true));return d.innerHTML}};b.dom.K=function(a,c){var d=[];b.dom.M(a,c,d,true);return d.length?d[0]:undefined};b.dom.L=function(a,c){var d=[];b.dom.M(a,c,d,false);return d};b.dom.M=function(a,
c,d,e){if(a!=null)for(var f=0,g;g=a.childNodes[f];f++){if(c(g)){d.push(g);if(e)return}b.dom.M(g,c,d,e)}};b.dom.na={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};b.dom.q={IMG:" ",BR:"\n"};b.dom.isFocusableTabIndex=function(a){var c=a.getAttributeNode("tabindex");if(c&&c.specified){var d=a.tabIndex;return b.isNumber(d)&&d>=0}return false};b.dom.setFocusableTabIndex=function(a,c){if(c)a.tabIndex=0;else a.removeAttribute("tabIndex")};b.dom.m=function(a){var c;if(b.userAgent.IE&&"innerText"in a)c=b.string.canonicalizeNewlines(a.innerText);
else{var d=[];b.dom.$(a,d,true);c=d.join("")}c=c.replace(/\xAD/g,"");c=c.replace(/ +/g," ");if(c!=" ")c=c.replace(/^\s*/,"");return c};b.dom.getRawTextContent=function(a){var c=[];b.dom.$(a,c,false);return c.join("")};b.dom.$=function(a,c,d){if(a.nodeName in b.dom.na){}else if(a.nodeType==b.dom.NodeType.TEXT)if(d)c.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,""));else c.push(a.nodeValue);else if(a.nodeName in b.dom.q)c.push(b.dom.q[a.nodeName]);else{var e=a.firstChild;while(e){b.dom.$(e,c,d);
e=e.nextSibling}}};b.dom.X=function(a){return b.dom.m(a).length};b.dom.Y=function(a,c){var d=c||b.dom.a(a).body,e=[];while(a&&a!=d){var f=a;while(f=f.previousSibling)e.unshift(b.dom.m(f));a=a.parentNode}return b.string.trimLeft(e.join("")).replace(/ +/g," ").length};b.dom.getNodeAtOffset=function(a,c,d){var e=[a],f=0,g;while(e.length>0&&f<c){g=e.pop();var h=f;if(g.nodeName in b.dom.na){}else if(g.nodeType==b.dom.NodeType.TEXT){var i=g.nodeValue.replace(/(\r\n|\r|\n)/g,"").replace(/ +/g," ");f+=i.length}else if(g.nodeName in
b.dom.q)f+=b.dom.q[g.nodeName].length;else for(var j=g.childNodes.length-1;j>=0;j--)e.push(g.childNodes[j])}if(b.isObject(d)){d.remainder=g?g.nodeValue.length+c-f-1:0;d.node=g}return g};b.dom.isNodeList=function(a){if(a&&typeof a.length=="number")if(b.isObject(a))return typeof a.item=="function"||typeof a.item=="string";else if(b.isFunction(a))return typeof a.item=="function";return false};b.dom.O=function(a,c,d){return b.dom.s(a,function(e){return(!c||e.nodeName==c)&&(!d||b.dom.classes.has(e,d))},
true)};b.dom.s=function(a,c,d){if(!d)a=a.parentNode;while(a){if(c(a))return a;a=a.parentNode}return null};b.dom.DomHelper=function(a){this.b=a||b.global.document||document};b.dom.DomHelper.prototype.e=b.dom.e;b.dom.DomHelper.prototype.k=function(){return this.b};b.dom.DomHelper.prototype.l=function(a){if(b.isString(a))return this.b.getElementById(a);else return a};b.dom.DomHelper.prototype.ha=b.dom.DomHelper.prototype.l;b.dom.DomHelper.prototype.i=function(a,c,d){var e=a||"*",f=d||this.b,g=f.getElementsByTagName(e);
if(c){var h=[];for(var i=0,j;j=g[i];i++){var k=j.className;if(typeof k.split=="function"&&b.array.contains(k.split(" "),c))h.push(j)}return h}else return g};b.dom.DomHelper.prototype.o=b.dom.DomHelper.prototype.i;b.dom.DomHelper.prototype.G=b.dom.G;b.dom.DomHelper.prototype.C=b.dom.C;b.dom.DomHelper.prototype.c=function(a,c){if(b.userAgent.IE&&c&&c.name)a="<"+a+' name="'+b.string.htmlEscape(c.name)+'">';var d=this.createElement(a);if(c)b.dom.G(d,c);if(arguments.length>2){function e(h){if(h)this.appendChild(d,
b.isString(h)?this.createTextNode(h):h)}for(var f=2;f<arguments.length;f++){var g=arguments[f];if(b.isArrayLike(g)&&!b.dom.F(g))b.array.forEach(b.dom.isNodeList(g)?b.array.clone(g):g,e,this);else e.call(this,g)}}return d};b.dom.DomHelper.prototype.ia=b.dom.DomHelper.prototype.c;b.dom.DomHelper.prototype.createElement=function(a){return this.b.createElement(a)};b.dom.DomHelper.prototype.createTextNode=function(a){return this.b.createTextNode(a)};b.dom.DomHelper.prototype.aa=function(a){var c=this.b.createElement("div");
c.innerHTML=a;if(c.childNodes.length==1)return c.firstChild;else{var d=this.b.createDocumentFragment();while(c.firstChild)d.appendChild(c.firstChild);return d}};b.dom.DomHelper.prototype.t=function(){if(this.b.compatMode)return this.b.compatMode;if(b.userAgent.WEBKIT){var a=this.c("div",{style:"position:absolute;width:0;height:0;width:1"}),c=a.style.width=="1px"?"BackCompat":"CSS1Compat";return this.b.compatMode=c}return"BackCompat"};b.dom.DomHelper.prototype.D=function(){var a=this.b;if(a.parentWindow)return a.parentWindow;
if(b.userAgent.WEBKIT&&!b.userAgent.isVersion("500")&&!b.userAgent.MOBILE){var c=a.createElement("script");c.innerHTML="document.parentWindow=window";var d=a.documentElement;d.appendChild(c);d.removeChild(c);return a.parentWindow}return a.defaultView};b.dom.DomHelper.prototype.h=function(){var a=this.b,c,d;if(!b.userAgent.WEBKIT&&a.compatMode=="CSS1Compat"){c=a.documentElement.scrollLeft;d=a.documentElement.scrollTop}else{c=a.body.scrollLeft;d=a.body.scrollTop}return new b.math.Coordinate(c,d)};b.dom.DomHelper.prototype.appendChild=
b.dom.appendChild;b.dom.DomHelper.prototype.ea=b.dom.ea;b.dom.DomHelper.prototype.ca=b.dom.ca;b.dom.DomHelper.prototype.ba=b.dom.ba;b.dom.DomHelper.prototype.removeNode=b.dom.removeNode;b.dom.DomHelper.prototype.N=b.dom.N;b.dom.DomHelper.prototype.R=b.dom.R;b.dom.DomHelper.prototype.V=b.dom.V;b.dom.DomHelper.prototype.W=b.dom.W;b.dom.DomHelper.prototype.Z=b.dom.Z;b.dom.DomHelper.prototype.F=b.dom.F;b.dom.DomHelper.prototype.contains=b.dom.contains;b.dom.DomHelper.prototype.a=b.dom.a;b.dom.DomHelper.prototype.u=
b.dom.u;b.dom.DomHelper.prototype.T=b.dom.T;b.dom.DomHelper.prototype.fa=b.dom.fa;b.dom.DomHelper.prototype.K=b.dom.K;b.dom.DomHelper.prototype.L=b.dom.L;b.dom.DomHelper.prototype.m=b.dom.m;b.dom.DomHelper.prototype.X=b.dom.X;b.dom.DomHelper.prototype.Y=b.dom.Y;b.dom.DomHelper.prototype.O=b.dom.O;b.dom.DomHelper.prototype.s=b.dom.s;b.math.Box=function(a,c,d,e){this.top=b.isDef(a)?Number(a):undefined;this.right=b.isDef(c)?Number(c):undefined;this.bottom=b.isDef(d)?Number(d):undefined;this.left=b.isDef(e)?Number(e):undefined};b.math.Box.boundingBox=function(){var a=new b.math.Box(arguments[0].y,arguments[0].x,arguments[0].y,arguments[0].x);for(var c=1;c<arguments.length;c++){var d=arguments[c];a.top=Math.min(a.top,d.y);a.right=Math.max(a.right,d.x);a.bottom=Math.max(a.bottom,d.y);a.left=Math.min(a.left,d.x)}return a};b.math.Box.prototype.clone=
function(){return new b.math.Box(this.top,this.right,this.bottom,this.left)};b.math.Box.prototype.toString=function(){return"("+this.top+"t, "+this.right+"r, "+this.bottom+"b, "+this.left+"l)"};b.math.Box.prototype.contains=function(a){return b.math.Box.contains(this,a)};b.math.Box.prototype.expand=function(a,c,d,e){if(b.isObject(a)){this.top-=a.top;this.right+=a.right;this.bottom+=a.bottom;this.left-=a.left}else{this.top-=a;this.right+=c;this.bottom+=d;this.left-=e}return this};b.math.Box.equals=
function(a,c){if(a==c)return true;if(!a||!c)return false;return a.top==c.top&&a.right==c.right&&a.bottom==c.bottom&&a.left==c.left};b.math.Box.contains=function(a,c){if(!a||!c)return false;return c.x>=a.left&&c.x<=a.right&&c.y>=a.top&&c.y<=a.bottom};b.math.Box.distance=function(a,c){if(c.x>=a.left&&c.x<=a.right){if(c.y>=a.top&&c.y<=a.bottom)return 0;return c.y<a.top?a.top-c.y:c.y-a.bottom}if(c.y>=a.top&&c.y<=a.bottom)return c.x<a.left?a.left-c.x:c.x-a.right;return b.math.Coordinate.distance(c,new b.math.Coordinate(c.x<
a.left?a.left:a.right,c.y<a.top?a.top:a.bottom))};b.math.Rect=function(a,c,d,e){this.left=b.isDef(a)?Number(a):undefined;this.top=b.isDef(c)?Number(c):undefined;this.width=b.isDef(d)?Number(d):undefined;this.height=b.isDef(e)?Number(e):undefined};b.math.Rect.prototype.clone=function(){return new b.math.Rect(this.left,this.top,this.width,this.height)};b.math.Rect.prototype.toString=function(){return"("+this.left+", "+this.top+" - "+this.width+"w x "+this.height+"h)"};b.math.Rect.equals=function(a,c){if(a==c)return true;if(!a||!c)return false;return a.left==
c.left&&a.width==c.width&&a.top==c.top&&a.height==c.height};b.math.Rect.prototype.intersection=function(a){var c=Math.max(this.left,a.left),d=Math.min(this.left+this.width,a.left+a.width);if(c<=d){var e=Math.max(this.top,a.top),f=Math.min(this.top+this.height,a.top+a.height);if(e<=f){this.left=c;this.top=e;this.width=d-c;this.height=f-e;return true}}return false};b.math.Rect.intersection=function(a,c){var d=Math.max(a.left,c.left),e=Math.min(a.left+a.width,c.left+c.width);if(d<=e){var f=Math.max(a.top,
c.top),g=Math.min(a.top+a.height,c.top+c.height);if(f<=g)return new b.math.Rect(d,f,e-d,g-f)}return null};b.math.Rect.intersects=function(a,c){var d=Math.max(a.left,c.left),e=Math.min(a.left+a.width,c.left+c.width);if(d<=e){var f=Math.max(a.top,c.top),g=Math.min(a.top+a.height,c.top+c.height);if(f<=g)return true}return false};b.math.Rect.prototype.intersects=function(a){return b.math.Rect.intersects(this,a)};b.math.Rect.difference=function(a,c){if(!b.math.Rect.intersection(a,c))return[a.clone()];
var d=[],e=a.top,f=a.height,g=a.left+a.width,h=a.top+a.height,i=c.left+c.width,j=c.top+c.height;if(c.top>a.top){d.push(new b.math.Rect(a.left,a.top,a.width,c.top-a.top));e=c.top}if(j<h){d.push(new b.math.Rect(a.left,j,a.width,h-j));f=j-e}if(c.left>a.left)d.push(new b.math.Rect(a.left,e,c.left-a.left,f));if(i<g)d.push(new b.math.Rect(i,e,g-i,f));return d};b.math.Rect.prototype.difference=function(a){return b.math.Rect.difference(this,a)};b.math.Rect.prototype.H=function(a){var c=Math.max(this.left+
this.width,a.left+a.width),d=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=c-this.left;this.height=d-this.top};b.math.Rect.H=function(a,c){if(!a||!c)return null;var d=a.clone();d.H(c);return d};b.math.Rect.prototype.contains=function(a){return this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};b.style={};b.style.setStyle=function(a,c,d){if(b.isString(c))b.style.Ca(a,d,c);else b.object.forEach(c,b.partial(b.style.Ca,a))};b.style.Ca=function(a,c,d){a.style[b.style.toCamelCase(d)]=c};b.style.getStyle=function(a,c){return a.style[b.style.toCamelCase(c)]};b.style.getComputedStyle=function(a,c){var d=b.dom.a(a);if(d.defaultView&&d.defaultView.getComputedStyle){var e=d.defaultView.getComputedStyle(a,"");if(e)return e[c]}return null};b.style.getCascadedStyle=function(a,c){return a.currentStyle?
a.currentStyle[c]:null};b.style.f=function(a,c){return b.style.getComputedStyle(a,c)||b.style.getCascadedStyle(a,c)||a.style[c]};b.style.getBackgroundColor=function(a){return b.style.f(a,"backgroundColor")};b.style.setPosition=function(a,c,d){var e,f;if(c instanceof b.math.Coordinate){e=c.x;f=c.y}else{e=c;f=d}a.style.left=typeof e=="number"?Math.round(e)+"px":e;a.style.top=typeof f=="number"?Math.round(f)+"px":f};b.style.getPosition=function(a){return new b.math.Coordinate(a.offsetLeft,a.offsetTop)};
b.style.getClientViewportElement=function(a){var c;if(a)if(a.nodeType==b.dom.NodeType.DOCUMENT)c=a;else c=b.dom.a(a);else c=b.dom.k();if(b.userAgent.IE&&c.compatMode!="CSS1Compat")return c.body;return c.documentElement};b.style.getPageOffset=function(a){var c=b.dom.a(a),d=b.userAgent.GECKO&&c.getBoxObjectFor&&b.style.f(a,"position")=="absolute"&&(a.style.top==""||a.style.left=="");if(typeof b.style.ja=="undefined")b.style.ja=b.userAgent.CAMINO&&!b.userAgent.isVersion("1.8.0.11");var e=new b.math.Coordinate(0,
0),f=b.style.getClientViewportElement(c);if(a==f)return e;var g=null,h;if(a.getBoundingClientRect&&!d){h=a.getBoundingClientRect();var i=b.dom.e(c).h();e.x=h.left+i.x;e.y=h.top+i.y}else if(c.getBoxObjectFor&&!d&&!b.style.ja){h=c.getBoxObjectFor(a);var j=c.getBoxObjectFor(f);e.x=h.screenX-j.screenX;e.y=h.screenY-j.screenY}else{g=a;do{e.x+=g.offsetLeft;e.y+=g.offsetTop;if(b.userAgent.WEBKIT&&b.style.f(g,"position")=="fixed"){e.x+=c.body.scrollLeft;e.y+=c.body.scrollTop;break}g=g.offsetParent}while(g&&
g!=a);if(b.userAgent.OPERA||b.userAgent.WEBKIT&&b.style.f(a,"position")=="absolute")e.y-=c.body.offsetTop;g=a.offsetParent;while(g&&g!=c.body){e.x-=g.scrollLeft;if(!b.userAgent.OPERA||g.tagName!="TR")e.y-=g.scrollTop;g=g.offsetParent}}if(b.userAgent.GECKO&&a.getBoundingClientRect){var k=b.style.f(a,"position");if(k=="static"||k=="relative"){e.x=Math.floor(e.x);e.y=Math.floor(e.y)}}return e};b.style.getPageOffsetLeft=function(a){return b.style.getPageOffset(a).x};b.style.getPageOffsetTop=function(a){return b.style.getPageOffset(a).y};
b.style.getRelativePosition=function(a,c){var d=b.style.getClientPosition(a),e=b.style.getClientPosition(c);return new b.math.Coordinate(d.x-e.x,d.y-e.y)};b.style.getClientPosition=function(a){var c=new b.math.Coordinate;if(a.nodeType==b.dom.NodeType.ELEMENT)if(a.getBoundingClientRect){var d=a.getBoundingClientRect();c.x=d.left;c.y=d.top}else{var e=b.dom.e(a).h(),f=b.style.getPageOffset(a);c.x=f.x-e.x;c.y=f.y-e.y}else{c.x=a.clientX;c.y=a.clientY}return c};b.style.setPageOffset=function(a,c,d){var e=
b.style.getPageOffset(a);if(c instanceof b.math.Coordinate){d=c.y;c=c.x}var f=c-e.x,g=d-e.y;b.style.setPosition(a,a.offsetLeft+f,a.offsetTop+g)};b.style.setSize=function(a,c,d){var e;if(c instanceof b.math.Size){e=c.height;c=c.width}else{if(d==undefined)throw Error("missing height argument");e=d}a.style.width=typeof c=="number"?Math.round(c)+"px":c;a.style.height=typeof e=="number"?Math.round(e)+"px":e};b.style.getSize=function(a){if(b.style.f(a,"display")!="none")return new b.math.Size(a.offsetWidth,
a.offsetHeight);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="";var g=a.offsetWidth,h=a.offsetHeight;c.display=d;c.position=f;c.visibility=e;return new b.math.Size(g,h)};b.style.getBounds=function(a){var c=b.style.getPageOffset(a),d=b.style.getSize(a);return new b.math.Rect(c.x,c.y,d.width,d.height)};b.style.toCamelCase=function(a){return String(a).replace(/\-([a-z])/g,function(c,d){return d.toUpperCase()})};b.style.toSelectorCase=function(a){return a.replace(/([A-Z])/g,
"-$1").toLowerCase()};b.style.setOpacity=function(a,c){var d=a.style;if("opacity"in d)d.opacity=c;else if("MozOpacity"in d)d.MozOpacity=c;else if("filter"in d)d.filter="alpha(opacity="+c*100+")"};b.style.setTransparentBackgroundImage=function(a,c){var d=a.style;if(b.userAgent.IE)d.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+c+'", sizingMethod="crop")';else{d.backgroundImage="url("+c+")";d.backgroundPosition="top left";d.backgroundRepeat="no-repeat"}};b.style.clearTransparentBackgroundImage=
function(a){var c=a.style;if("filter"in c)c.filter="";else c.backgroundImage="none"};b.style.showElement=function(a,c){a.style.display=c?"":"none"};b.style.isElementShown=function(a){return a.style.display!="none"};b.style.installStyles=function(a,c){var d=b.dom.e(c),e=null;if(b.userAgent.IE)e=d.k().createStyleSheet();else{var f=d.o("head")[0];if(!f){var g=d.o("body")[0];f=d.c("head");g.parentNode.insertBefore(f,g)}e=d.c("style");d.appendChild(f,e)}b.style.setStyles(e,a);return e};b.style.setStyles=
function(a,c){if(b.userAgent.IE)a.cssText=c;else{var d=b.userAgent.WEBKIT?"innerText":"innerHTML";a[d]=c}};b.style.setPreWrap=function(a){var c=a.style;if(b.userAgent.IE){c.whiteSpace="pre";c.wordWrap="break-word"}else if(b.userAgent.GECKO)c.whiteSpace="-moz-pre-wrap";else if(b.userAgent.OPERA)c.whiteSpace="-o-pre-wrap";else c.whiteSpace="pre-wrap"};b.style.setInlineBlock=function(a){var c=a.style;c.position="relative";if(b.userAgent.IE){c.zoom="1";c.display="inline"}else if(b.userAgent.GECKO)c.display=
b.userAgent.isVersion("1.9a")?"inline-block":"-moz-inline-box";else c.display="inline-block"};b.style.needsInlineBlockWrapper=function(a){return b.style.Qa&&b.style.va(a)};b.style.va=function(a){if(!a)return false;else if(b.isString(a)||a.nodeType==b.dom.NodeType.TEXT)return true;else return b.array.some(a,b.style.va)};b.style.Qa=b.userAgent.GECKO&&!b.userAgent.isVersion("1.9");b.style.isRightToLeft=function(a){return"rtl"==b.style.f(a,"direction")};b.style.ga=b.userAgent.GECKO?"MozUserSelect":(b.userAgent.WEBKIT?
"WebkitUserSelect":null);b.style.isUnselectable=function(a){if(b.style.ga)return a.style[b.style.ga].toLowerCase()=="none";else if(b.userAgent.IE||b.userAgent.OPERA)return a.getAttribute("unselectable")=="on";return false};b.style.setUnselectable=function(a,c,d){var e=!d?a.getElementsByTagName("*"):null,f=b.style.ga;if(f){var g=c?"none":"";a.style[f]=g;if(e)for(var h=0,i;i=e[h];h++)i.style[f]=g}else if(b.userAgent.IE||b.userAgent.OPERA){var g=c?"on":"";a.setAttribute("unselectable",g);if(e)for(var h=
0,i;i=e[h];h++)i.setAttribute("unselectable",g)}};b.style.getBorderBoxSize=function(a){return new b.math.Size(a.offsetWidth,a.offsetHeight)};b.style.setBorderBoxSize=function(a,c){if(b.userAgent.IE){var d=b.dom.a(a),e=a.style;if(d.compatMode=="CSS1Compat"){var f=b.style.getPaddingBox(a),g=b.style.getBorderBox(a);e.pixelWidth=c.width-g.left-f.left-f.right-g.right;e.pixelHeight=c.height-g.top-f.top-f.bottom-g.bottom}else{e.pixelWidth=c.width;e.pixelHeight=c.height}}else b.style.Ba(a,c,"border-box")};
b.style.getContentBoxSize=function(a){var c=b.dom.a(a),d=b.userAgent.IE&&a.currentStyle;if(d&&c.compatMode=="CSS1Compat"&&d.width!="auto"&&d.height!="auto"){var e=b.style.j(a,d.width,"width","pixelWidth"),f=b.style.j(a,d.height,"height","pixelHeight");return new b.math.Size(e,f)}else{var g=b.style.getBorderBoxSize(a),h=b.style.getPaddingBox(a),i=b.style.getBorderBox(a);return new b.math.Size(g.width-i.left-h.left-h.right-i.right,g.height-i.top-h.top-h.bottom-i.bottom)}};b.style.setContentBoxSize=
function(a,c){if(b.userAgent.IE){var d=b.dom.a(a),e=a.style;if(d.compatMode=="CSS1Compat"){e.pixelWidth=c.width;e.pixelHeight=c.height}else{var f=b.style.getPaddingBox(a),g=b.style.getBorderBox(a);e.pixelWidth=c.width+g.left+f.left+f.right+g.right;e.pixelHeight=c.height+g.top+f.top+f.bottom+g.bottom}}else b.style.Ba(a,c,"content-box")};b.style.Ba=function(a,c,d){var e=a.style;if(b.userAgent.GECKO)e.MozBoxSizing=d;else if(b.userAgent.WEBKIT)e.WebkitBoxSizing=d;else if(b.userAgent.OPERA&&!b.userAgent.isVersion("9.50"))if(d)e.setProperty("box-sizing",
d);else e.removeProperty("box-sizing");else e.boxSizing=d;e.width=c.width+"px";e.height=c.height+"px"};b.style.j=function(a,c,d,e){if(/^\d+px?$/.test(c))return parseInt(c,10);else{var f=a.style[d],g=a.runtimeStyle[d];a.runtimeStyle[d]=a.currentStyle[d];a.style[d]=c;var h=a.style[e];a.style[d]=f;a.runtimeStyle[d]=g;return h}};b.style.w=function(a,c){return b.style.j(a,b.style.getCascadedStyle(a,c),"left","pixelLeft")};b.style.ta=function(a,c){if(b.userAgent.IE){var d=b.style.w(a,c+"Left"),e=b.style.w(a,
c+"Right"),f=b.style.w(a,c+"Top"),g=b.style.w(a,c+"Bottom");return new b.math.Box(f,e,g,d)}else{var d=b.style.getComputedStyle(a,c+"Left"),e=b.style.getComputedStyle(a,c+"Right"),f=b.style.getComputedStyle(a,c+"Top"),g=b.style.getComputedStyle(a,c+"Bottom");return new b.math.Box(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d))}};b.style.getPaddingBox=function(a){return b.style.ta(a,"padding")};b.style.getMarginBox=function(a){return b.style.ta(a,"margin")};b.style.wa={thin:2,medium:4,thick:6};
b.style.v=function(a,c){if(b.style.getCascadedStyle(a,c+"Style")=="none")return 0;var d=b.style.getCascadedStyle(a,c+"Width");if(d in b.style.wa)return b.style.wa[d];return b.style.j(a,d,"left","pixelLeft")};b.style.getBorderBox=function(a){if(b.userAgent.IE){var c=b.style.v(a,"borderLeft"),d=b.style.v(a,"borderRight"),e=b.style.v(a,"borderTop"),f=b.style.v(a,"borderBottom");return new b.math.Box(e,d,f,c)}else{var c=b.style.getComputedStyle(a,"borderLeftWidth"),d=b.style.getComputedStyle(a,"borderRightWidth"),
e=b.style.getComputedStyle(a,"borderTopWidth"),f=b.style.getComputedStyle(a,"borderBottomWidth");return new b.math.Box(parseFloat(e),parseFloat(d),parseFloat(f),parseFloat(c))}};b.style.getFontFamily=function(a){var c=b.dom.a(a),d="";if(c.createTextRange){var e=c.body.createTextRange();e.moveToElementText(a);d=e.queryCommandValue("FontName")}if(!d){d=b.style.f(a,"fontFamily");if(b.userAgent.OPERA&&b.userAgent.LINUX)d=d.replace(/ \[[^\]]*\]/,"")}var f=d.split(",");if(f.length>1)d=f[0];return b.string.stripQuotes(d,
"\"'")};b.style.getLengthUnits=function(a){var c=a.match(/[^\d]+$/);return c&&c[0]||null};b.style.Da={cm:1,"in":1,mm:1,pc:1,pt:1};b.style.Fa={em:1,ex:1};b.style.getFontSize=function(a){var c=b.style.f(a,"fontSize"),d=b.style.getLengthUnits(c);if(c&&"px"==d)return parseInt(c,10);if(b.userAgent.IE)if(d in b.style.Da)return b.style.j(a,c,"left","pixelLeft");else if(a.parentNode&&d in b.style.Fa)return b.style.j(a.parentNode,c,"left","pixelLeft");var e=b.dom.c("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});
b.dom.appendChild(a,e);c=e.offsetHeight;b.dom.removeNode(e);return c};b.style.parseStyleAttribute=function(a){var c={};b.array.forEach(a.split(/\s*;\s*/),function(d){var e=d.split(/\s*:\s*/);if(e.length==2)c[b.style.toCamelCase(e[0].toLowerCase())]=e[1]});return c};b.style.toStyleAttribute=function(a){var c=[];b.object.forEach(a,function(d,e){c.push(b.style.toSelectorCase(e),":",d,";")});return c.join("")};b.style.setFloat=function(a,c){a.style[b.userAgent.IE?"styleFloat":"cssFloat"]=c};b.style.getFloat=
function(a){return a.style[b.userAgent.IE?"styleFloat":"cssFloat"]||""};var r=r||{};if(r.EventManager===undefined){r.EventManager=new function(){var a={};this.fireEvent=function(c,d){if(a[c]==null)return;var e=a[c];for(var f=0;f<e.length;f++)e[f](d)};this.addHandler=function(c,d){if(a[c]==null)a[c]=[];a[c].push(d);return d}};b.exportSymbol("yt.EventManager",r.EventManager)}if(r.AdSenseVideoBar===undefined){r.AdSenseVideoBar=function(a){this.queuedVideoIndex=null;this.id=(a.id||"unspecified").toString();this.color1=a.color1||"#ccc";this.color2=a.color2||"#ddd";this.orientation=
a.orientation||"h";this.displayCount=a.displayCount||5;this.showLogo=a.showLogo;var c=[],d=0;this.write=function(e){var f=[];if(this.orientation=="v"){f.push('<div id="'+this.id+'-player" style="background-color: #'+this.color1+'; position: absolute; display: block; left: -2000px; z-index: 9999; width: 488px; margin: 40px 0 0 160px; padding: 0; border: 0;">');f.push('<div id="'+this.id+'-swf" style="width: 488px; height: 485px; margin: 0; padding: 0; border: 0;"></div>');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBClosePlayer-"+
this.id+'\', null);" style="display: block; padding: 5px 10px; color: #'+this.color2+'; font-weight: bold;">Close</a>');f.push("</div>");f.push('<table id="'+this.id+'-table" border="0" cellspacing="0" cellpadding="0" width="160" style="background-color: #'+this.color1+';">');f.push("<tr>");f.push('<td id="'+this.id+'-prev">');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBPrevVideos-"+this.id+'\', null);" style="display: block; width: 150px; height: 18px; margin: 3px 5px 3px 5px;">');
f.push('<img src="http://www.youtube.com/none.gif" style="display: block; height: 18px; width: 150px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -186px 0; border: 0; padding: 0; margin: 0;" />');f.push("</td>");f.push("</tr>");for(var g=0;g<this.displayCount;g++){f.push("<tr>");f.push("<td>");if(this.showLogo==true)f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBPlayVideo-"+this.id+"', '"+g.toString()+'\');" style="display: block; width: 150px; height: 102px; margin: 0 5px 3px 5px;">');
else f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBPlayVideo-"+this.id+"', '"+g.toString()+'\');" style="display: block; width: 150px; height: 102px; margin: 3px 5px 6px 5px;">');f.push('<img src="http://www.youtube.com/none.gif" style="display: block; position: absolute; z-index: 1; width: 28px; height: 20px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -235px -59px; padding: 0; border: 0; margin: 80px 0 0 2px;" />');f.push('<img id="'+this.id+
"-image-"+g.toString()+'" src="http://www.youtube.com/none.gif" style="background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif); display: block; height: 102px; width: 150px; border: 0; padding: 0; margin: 0;" />');f.push("</a>");f.push("</td>");f.push("</tr>")}f.push("<tr>");f.push('<td id="'+this.id+'-next">');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBNextVideos-"+this.id+'\', null);" style="display: block; width: 150px; height: 18px; margin: 0 5px 3px 5px;">');f.push('<img src="http://www.youtube.com/none.gif" style="display: block; height: 18px; width: 150px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -186px -18px; border: 0; padding: 0; margin: 0;" />');
f.push("</td>");f.push("</tr>");if(this.showLogo==true){f.push("<tr>");f.push('<td id="'+this.id+'-logo">');f.push('<a href="http://www.youtube.com" style="display: block; padding: 0; margin: 2px 33px 5px 33px;"><img src="http://www.youtube.com/none.gif" style="display: block; height: 23px; width: 93px; padding: 0; border: 0; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -186px -36px; margin: 0;" /></a>');f.push("</td>");f.push("</tr>")}f.push("</table>")}else if(this.showLogo==
true){f.push('<div id="'+this.id+'-player" style="background-color: #'+this.color1+'; position: absolute; display: block; left: -2000px; top: 0px; z-index: 9999; width: 488px; margin: 90px 0 0 124px; padding: 0; border: 0;">');f.push('<div id="'+this.id+'-swf" style="width: 488px; height: 485px; margin: 0; padding: 0; border: 0;"></div>');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBClosePlayer-"+this.id+'\', null);" style="display: block; padding: 5px 10px; color: #'+this.color2+'; font-weight: bold;">Close</a>');
f.push("</div>");f.push('<table id="'+this.id+'-table" border="0" cellspacing="0" cellpadding="0" width="728" style="background-color: #'+this.color1+';">');f.push("<tr>");f.push('<td id="'+this.id+'-prev">');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBPrevVideos-"+this.id+'\', null);" style="display: block; width: 18px; height: 84px; margin: 3px 0 3px 3px;">');f.push('<img src="http://www.youtube.com/none.gif" style="display: block; height: 84px; width: 18px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -150px 0; border: 0; padding: 0; margin: 0;" />');
f.push("</td>");for(var g=0;g<this.displayCount;g++){f.push("<td>");f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBPlayVideo-"+this.id+"', '"+g.toString()+'\');" style="display: block; width: 120px; height: 84px; margin: 3px 0 3px 3px;">');f.push('<img src="http://www.youtube.com/none.gif" style="display: block; position: absolute; z-index: 1; width: 28px; height: 20px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -235px -59px; padding: 0; border: 0; margin: 62px 0 0 2px;" />');
f.push('<img id="'+this.id+"-image-"+g.toString()+'" src="http://www.youtube.com/none.gif" style="background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif); display: block; height: 84px; width: 120px; border: 0; padding: 0; margin: 0;" />');f.push("</a>");f.push("</td>")}f.push('<td id="'+this.id+'-prev">');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBNextVideos-"+this.id+'\', null);" style="display: block; width: 18px; height: 84px; margin: 3px 0 3px 3px;">');f.push('<img src="http://www.youtube.com/none.gif" style="display: block; height: 84px; width: 18px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -168px 0; border: 0; padding: 0; margin: 0;" />');
f.push("</td>");f.push('<td id="'+this.id+'-logo">');f.push('<a href="http://www.youtube.com" style="display: block; padding: 0; margin: 23px 12px;"><img src="http://www.youtube.com/none.gif" style="display: block; height: 43px; width: 49px; padding: 0; border: 0; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -186px -59px; margin: 0;" /></a>');f.push("</td>");f.push("</tr>");f.push("</table>")}else{f.push('<div id="'+this.id+'-player" style="background-color: #'+
this.color1+'; position: absolute; display: block; left: -2000px; top: 0px; z-index: 9999; width: 488px; margin: 90px 0 0 124px; padding: 0; border: 0;">');f.push('<div id="'+this.id+'-swf" style="width: 488px; height: 485px; margin: 0; padding: 0; border: 0;"></div>');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBClosePlayer-"+this.id+'\', null);" style="display: block; padding: 5px 10px; color: #'+this.color2+'; font-weight: bold;">Close</a>');f.push("</div>");f.push('<table id="'+this.id+
'-table" border="0" cellspacing="0" cellpadding="0" style="background-color: #'+this.color1+';">');f.push("<tr>");f.push('<td id="'+this.id+'-prev">');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBPrevVideos-"+this.id+'\', null);" style="display: block; width: 18px; height: 84px; margin: 3px 0 3px 3px;">');f.push('<img src="http://www.youtube.com/none.gif" style="display: block; height: 84px; width: 18px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -150px 0; border: 0; padding: 0; margin: 0;" />');
f.push("</td>");for(var g=0;g<this.displayCount;g++){f.push("<td>");f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBPlayVideo-"+this.id+"', '"+g.toString()+'\');" style="display: block; width: 120px; height: 84px; margin: 3px 0 3px 3px;">');f.push('<img src="http://www.youtube.com/none.gif" style="display: block; position: absolute; z-index: 1; width: 28px; height: 20px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -235px -59px; padding: 0; border: 0; margin: 62px 0 0 2px;" />');
f.push('<img id="'+this.id+"-image-"+g.toString()+'" src="http://www.youtube.com/none.gif" style="background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif); display: block; height: 84px; width: 120px; border: 0; padding: 0; margin: 0;" />');f.push("</a>");f.push("</td>")}f.push('<td id="'+this.id+'-prev">');f.push("<a href=\"javascript:yt.EventManager.fireEvent('VBNextVideos-"+this.id+'\', null);" style="display: block; width: 18px; height: 84px; margin: 3px;">');f.push('<img src="http://www.youtube.com/none.gif" style="display: block; height: 84px; width: 18px; background: transparent url(http://www.youtube.com/img/acdcvb_sprite.gif) no-repeat scroll -168px 0; border: 0; padding: 0; margin: 0;" />');
f.push("</td>");f.push("</tr>");f.push("</table>")}var h=typeof e=="string"?document.getElementById(e):e,i=f.join("");if(h)h.innerHTML=i};this.addHandler=function(e,f){r.EventManager.addHandler(e+"-"+this.id.toString(),f)};this.updateVideos=function(){if(this.videos.length==0)return;for(var e=0;e<this.displayCount;e++){var f=document.getElementById(this.id.toString()+"-image-"+e.toString());if(f)f.src="http://i.ytimg.com/vi/"+this.videos[(this.offset+e)%this.videos.length]+"/default.jpg"}};this.loadVideos=
function(e){this.videos=e;this.offset=0;this.updateVideos()};this.nextVideos=function(){this.offset+=this.displayCount;this.offset%=this.videos.length;this.updateVideos()};this.prevVideos=function(){this.offset-=this.displayCount;if(this.offset<0)this.offset+=this.videos.length;this.updateVideos()};this.getVideoByIndex=function(e){if(typeof e=="string")e=window.parseInt(e);return this.videos[(this.offset+e)%this.videos.length]};this.showPlayer=function(){var e=document.getElementById(this.id.toString()+
"-player"),f=b.dom.C(window),g=document.getElementById(this.id.toString()+"-table"),h=b.style.getClientPosition(g);e.style.left="auto";e.style.top="auto";if(this.orientation=="v")if(h.x-648<0)e.style.marginLeft="160px";else e.style.marginLeft="-648px";else if(h.y-510<0)e.style.marginTop="90px";else e.style.marginTop="-510px"};this.hidePlayer=function(){var e=document.getElementById(this.id.toString()+"-player");e.style.left="-2000px";e.style.top="0px"};this.queueVideoIndex=function(e){this.queuedVideoIndex=
e}};b.exportSymbol("yt.AdSenseVideoBar",r.AdSenseVideoBar)}b.exportSymbol("__ytAdSenseVideoBar",r.AdSenseVideoBar);
