if(!window['googleLT_']){window['googleLT_']=(new Date()).getTime();}if(!window['google']){window['google']={};}
if(!window['google']['loader']){window['google']['loader']={};google.loader.ServiceBase='http://www.google.com/uds';google.loader.GoogleApisBase='http://ajax.googleapis.com/ajax';google.loader.ApiKey='notsupplied';google.loader.KeyVerified=true;google.loader.LoadFailure=false;google.loader.Secure=false;google.loader.GoogleLocale='www.google.com';google.loader.ClientLocation=null;google.loader.AdditionalParams='';(function(){var d=void 0,g=!0,h=null,j=!1,k=encodeURIComponent,l=window,m=document;function n(a,b){return a.load=b}var p="push",q="replace",r="charAt",t="indexOf",u="ServiceBase",v="name",w="getTime",x="length",y="prototype",z="setTimeout",A="loader",B="substring",C="join",D="toLowerCase";function E(a){return a in F?F[a]:F[a]=-1!=navigator.userAgent[D]()[t](a)}var F={};function G(a,b){var c=function(){};c.prototype=b[y];a.S=b[y];a.prototype=new c}
function H(a,b,c){var e=Array[y].slice.call(arguments,2)||[];return function(){var c=e.concat(Array[y].slice.call(arguments));return a.apply(b,c)}}function I(a){a=Error(a);a.toString=function(){return this.message};return a}function J(a,b){for(var c=a.split(/\./),e=l,f=0;f<c[x]-1;f++)e[c[f]]||(e[c[f]]={}),e=e[c[f]];e[c[c[x]-1]]=b}function K(a,b,c){a[b]=c}if(!L)var L=J;if(!M)var M=K;google[A].v={};L("google.loader.callbacks",google[A].v);var N={},O={};google[A].eval={};L("google.loader.eval",google[A].eval);n(google,function(a,b,c){function e(a){var b=a.split(".");if(2<b[x])throw I("Module: '"+a+"' not found!");"undefined"!=typeof b[1]&&(f=b[0],c.packages=c.packages||[],c.packages[p](b[1]))}var f=a,c=c||{};if(a instanceof Array||a&&"object"==typeof a&&"function"==typeof a[C]&&"function"==typeof a.reverse)for(var i=0;i<a[x];i++)e(a[i]);else e(a);if(a=N[":"+f]){c&&!c.language&&c.locale&&(c.language=c.locale);c&&"string"==typeof c.callback&&(i=c.callback,i.match(/^[[\]A-Za-z0-9._]+$/)&&(i=l.eval(i),c.callback=i));if((i=c&&c.callback!=h)&&!a.s(b))throw I("Module: '"+f+"' must be loaded before DOM onLoad!");i?a.m(b,c)?l[z](c.callback,0):a.load(b,c):a.m(b,c)||a.load(b,c)}else throw I("Module: '"+f+"' not found!");});L("google.load",google.load);google.R=function(a,b){b?(0==P[x]&&(Q(l,"load",R),!E("msie")&&!E("safari")&&!E("konqueror")&&E("mozilla")||l.opera?l.addEventListener("DOMContentLoaded",R,j):E("msie")?m.write("<script defer onreadystatechange='google.loader.domReady()' src=//:><\/script>"):(E("safari")||E("konqueror"))&&l[z](T,10)),P[p](a)):Q(l,"load",a)};L("google.setOnLoadCallback",google.R);function Q(a,b,c){if(a.addEventListener)a.addEventListener(b,c,j);else if(a.attachEvent)a.attachEvent("on"+b,c);else{var e=a["on"+b];a["on"+b]=e!=h?aa([c,e]):c}}function aa(a){return function(){for(var b=0;b<a[x];b++)a[b]()}}var P=[];google[A].N=function(){var a=l.event.srcElement;"complete"==a.readyState&&(a.onreadystatechange=h,a.parentNode.removeChild(a),R())};L("google.loader.domReady",google[A].N);var ba={loaded:g,complete:g};function T(){ba[m.readyState]?R():0<P[x]&&l[z](T,10)}
function R(){for(var a=0;a<P[x];a++)P[a]();P.length=0}google[A].d=function(a,b,c){if(c){var e;"script"==a?(e=m.createElement("script"),e.type="text/javascript",e.src=b):"css"==a&&(e=m.createElement("link"),e.type="text/css",e.href=b,e.rel="stylesheet");(a=m.getElementsByTagName("head")[0])||(a=m.body.parentNode.appendChild(m.createElement("head")));a.appendChild(e)}else"script"==a?m.write('<script src="'+b+'" type="text/javascript"><\/script>'):"css"==a&&m.write('<link href="'+b+'" type="text/css" rel="stylesheet"></link>')};L("google.loader.writeLoadTag",google[A].d);google[A].O=function(a){O=a};L("google.loader.rfm",google[A].O);google[A].Q=function(a){for(var b in a)"string"==typeof b&&b&&":"==b[r](0)&&!N[b]&&(N[b]=new U(b[B](1),a[b]))};L("google.loader.rpl",google[A].Q);google[A].P=function(a){if((a=a.specs)&&a[x])for(var b=0;b<a[x];++b){var c=a[b];"string"==typeof c?N[":"+c]=new V(c):(c=new W(c[v],c.baseSpec,c.customSpecs),N[":"+c[v]]=c)}};L("google.loader.rm",google[A].P);google[A].loaded=function(a){N[":"+a.module].l(a)};L("google.loader.loaded",google[A].loaded);google[A].M=function(){return"qid="+((new Date)[w]().toString(16)+Math.floor(1E7*Math.random()).toString(16))};L("google.loader.createGuidArg_",google[A].M);J("google_exportSymbol",J);J("google_exportProperty",K);google[A].b={};L("google.loader.themes",google[A].b);google[A].b.H="//www.google.com/cse/style/look/bubblegum.css";M(google[A].b,"BUBBLEGUM",google[A].b.H);google[A].b.J="//www.google.com/cse/style/look/greensky.css";M(google[A].b,"GREENSKY",google[A].b.J);google[A].b.I="//www.google.com/cse/style/look/espresso.css";M(google[A].b,"ESPRESSO",google[A].b.I);google[A].b.L="//www.google.com/cse/style/look/shiny.css";M(google[A].b,"SHINY",google[A].b.L);google[A].b.K="//www.google.com/cse/style/look/minimalist.css";M(google[A].b,"MINIMALIST",google[A].b.K);function V(a){this.a=a;this.o=[];this.n={};this.e={};this.f={};this.j=g;this.c=-1}
V[y].g=function(a,b){var c="";b!=d&&(b.language!=d&&(c+="&hl="+k(b.language)),b.nocss!=d&&(c+="&output="+k("nocss="+b.nocss)),b.nooldnames!=d&&(c+="&nooldnames="+k(b.nooldnames)),b.packages!=d&&(c+="&packages="+k(b.packages)),b.callback!=h&&(c+="&async=2"),b.style!=d&&(c+="&style="+k(b.style)),b.noexp!=d&&(c+="&noexp=true"),b.other_params!=d&&(c+="&"+b.other_params));if(!this.j){google[this.a]&&google[this.a].JSHash&&(c+="&sig="+k(google[this.a].JSHash));var e=[],f;for(f in this.n)":"==f[r](0)&&e[p](f[B](1));for(f in this.e)":"==f[r](0)&&this.e[f]&&e[p](f[B](1));c+="&have="+k(e[C](","))}return google[A][u]+"/?file="+this.a+"&v="+a+google[A].AdditionalParams+c};V[y].t=function(a){var b=h;a&&(b=a.packages);var c=h;if(b)if("string"==typeof b)c=[a.packages];else if(b[x]){c=[];for(a=0;a<b[x];a++)"string"==typeof b[a]&&c[p](b[a][q](/^\s*|\s*$/,"")[D]())}c||(c=["default"]);b=[];for(a=0;a<c[x];a++)this.n[":"+c[a]]||b[p](c[a]);return b};n(V[y],function(a,b){var c=this.t(b),e=b&&b.callback!=h;if(e)var f=new X(b.callback);for(var i=[],o=c[x]-1;0<=o;o--){var s=c[o];e&&f.A(s);if(this.e[":"+s])c.splice(o,1),e&&this.f[":"+s][p](f);else i[p](s)}if(c[x]){b&&b.packages&&(b.packages=c.sort()[C](","));for(o=0;o<i[x];o++)s=i[o],this.f[":"+s]=[],e&&this.f[":"+s][p](f);if(!b&&O[":"+this.a]!=h&&O[":"+this.a].versions[":"+a]!=h&&!google[A].AdditionalParams&&this.j){c=O[":"+this.a];google[this.a]=google[this.a]||{};for(var S in c.properties)S&&":"==S[r](0)&&(google[this.a][S[B](1)]=c.properties[S]);google[A].d("script",google[A][u]+c.path+c.js,e);c.css&&google[A].d("css",google[A][u]+c.path+c.css,e)}else(!b||!b.autoloaded)&&google[A].d("script",this.g(a,b),e);this.j&&(this.j=j,this.c=(new Date)[w](),1!=this.c%100&&(this.c=-1));for(o=0;o<i[x];o++)s=i[o],this.e[":"+s]=g}});V[y].l=function(a){-1!=this.c&&(ca("al_"+this.a,"jl."+((new Date)[w]()-this.c),g),this.c=-1);this.o=this.o.concat(a.components);google[A][this.a]||(google[A][this.a]={});google[A][this.a].packages=this.o.slice(0);for(var b=0;b<a.components[x];b++){this.n[":"+a.components[b]]=g;this.e[":"+a.components[b]]=j;var c=this.f[":"+a.components[b]];if(c){for(var e=0;e<c[x];e++)c[e].B(a.components[b]);delete this.f[":"+a.components[b]]}}};V[y].m=function(a,b){return 0==this.t(b)[x]};V[y].s=function(){return g};function X(a){this.D=a;this.q={};this.r=0}X[y].A=function(a){this.r++;this.q[":"+a]=g};X[y].B=function(a){this.q[":"+a]&&(this.q[":"+a]=j,this.r--,0==this.r&&l[z](this.D,0))};function W(a,b,c){this.name=a;this.C=b;this.p=c;this.u=this.h=j;this.k=[];google[A].v[this[v]]=H(this.l,this)}G(W,V);n(W[y],function(a,b){var c=b&&b.callback!=h;c?(this.k[p](b.callback),b.callback="google.loader.callbacks."+this[v]):this.h=g;(!b||!b.autoloaded)&&google[A].d("script",this.g(a,b),c)});W[y].m=function(a,b){return b&&b.callback!=h?this.u:this.h};W[y].l=function(){this.u=g;for(var a=0;a<this.k[x];a++)l[z](this.k[a],0);this.k=[]};var Y=function(a,b){return a.string?k(a.string)+"="+k(b):a.regex?b[q](/(^.*$)/,a.regex):""};W[y].g=function(a,b){return this.F(this.w(a),a,b)};W[y].F=function(a,b,c){var e="";a.key&&(e+="&"+Y(a.key,google[A].ApiKey));a.version&&(e+="&"+Y(a.version,b));b=google[A].Secure&&a.ssl?a.ssl:a.uri;if(c!=h)for(var f in c)a.params[f]?e+="&"+Y(a.params[f],c[f]):"other_params"==f?e+="&"+c[f]:"base_domain"==f&&(b="http://"+c[f]+a.uri[B](a.uri[t]("/",7)));google[this[v]]={};-1==b[t]("?")&&e&&(e="?"+e[B](1));return b+e};W[y].s=function(a){return this.w(a).deferred};W[y].w=function(a){if(this.p)for(var b=0;b<this.p[x];++b){var c=this.p[b];if(RegExp(c.pattern).test(a))return c}return this.C};function U(a,b){this.a=a;this.i=b;this.h=j}G(U,V);n(U[y],function(a,b){this.h=g;google[A].d("script",this.g(a,b),j)});U[y].m=function(){return this.h};U[y].l=function(){};U[y].g=function(a,b){if(!this.i.versions[":"+a]){if(this.i.aliases){var c=this.i.aliases[":"+a];c&&(a=c)}if(!this.i.versions[":"+a])throw I("Module: '"+this.a+"' with version '"+a+"' not found!");}return google[A].GoogleApisBase+"/libs/"+this.a+"/"+a+"/"+this.i.versions[":"+a][b&&b.uncompressed?"uncompressed":"compressed"]};U[y].s=function(){return j};var da=j,Z=[],ea=(new Date)[w](),ca=function(a,b,c){da||(Q(l,"unload",fa),da=g);if(c){if(!google[A].Secure&&(!google[A].Options||google[A].Options.csi===j))a=a[D]()[q](/[^a-z0-9_.]+/g,"_"),b=b[D]()[q](/[^a-z0-9_.]+/g,"_"),l[z](H($,h,"//gg.google.com/csi?s=uds&v=2&action="+k(a)+"&it="+k(b)),1E4)}else Z[p]("r"+Z[x]+"="+k(a+(b?"|"+b:""))),l[z](fa,5<Z[x]?0:15E3)},fa=function(){if(Z[x]){var a=google[A][u];0==a[t]("http:")&&(a=a[q](/^http:/,"https:"));$(a+"/stats?"+Z[C]("&")+"&nc="+(new Date)[w]()+"_"+
((new Date)[w]()-ea));Z.length=0}},$=function(a){var b=new Image,c=$.G++;$.z[c]=b;b.onload=b.onerror=function(){delete $.z[c]};b.src=a;b=h};$.z={};$.G=0;J("google.loader.recordStat",ca);J("google.loader.createImageForLogging",$);})();google.loader.rm({"specs":["feeds","spreadsheets","gdata","visualization",{"name":"sharing","baseSpec":{"uri":"http://www.google.com/s2/sharing/js","ssl":null,"key":{"string":"key"},"version":{"string":"v"},"deferred":false,"params":{"language":{"string":"hl"}}}},"search","orkut","ads","elements",{"name":"books","baseSpec":{"uri":"http://books.google.com/books/api.js","ssl":null,"key":{"string":"key"},"version":{"string":"v"},"deferred":true,"params":{"callback":{"string":"callback"},"language":{"string":"hl"}}}},{"name":"friendconnect","baseSpec":{"uri":"http://www.google.com/friendconnect/script/friendconnect.js","ssl":null,"key":{"string":"key"},"version":{"string":"v"},"deferred":false,"params":{}}},"identitytoolkit","ima",{"name":"maps","baseSpec":{"uri":"http://maps.google.com/maps?file\u003dgoogleapi","ssl":"https://maps-api-ssl.google.com/maps?file\u003dgoogleapi","key":{"string":"key"},"version":{"string":"v"},"deferred":true,"params":{"callback":{"regex":"callback\u003d$1\u0026async\u003d2"},"language":{"string":"hl"}}},"customSpecs":[{"uri":"http://maps.googleapis.com/maps/api/js","ssl":"https://maps.googleapis.com/maps/api/js","version":{"string":"v"},"deferred":true,"params":{"callback":{"string":"callback"},"language":{"string":"hl"}},"pattern":"^(3|3..*)$"}]},"payments","wave","annotations_v2","earth","language",{"name":"annotations","baseSpec":{"uri":"http://www.google.com/reviews/scripts/annotations_bootstrap.js","ssl":null,"key":{"string":"key"},"version":{"string":"v"},"deferred":true,"params":{"callback":{"string":"callback"},"language":{"string":"hl"},"country":{"string":"gl"}}}},"picker"]});google.loader.rfm({":search":{"versions":{":1":"1",":1.0":"1"},"path":"/api/search/1.0/d5bfa7bfa86e35ff8d5f01bfd012a255/","js":"default+en.I.js","css":"default+en.css","properties":{":JSHash":"d5bfa7bfa86e35ff8d5f01bfd012a255",":NoOldNames":false,":Version":"1.0"}},":language":{"versions":{":1":"1",":1.0":"1"},"path":"/api/language/1.0/a0bd458876c67d6b4272493cc004a8ff/","js":"default+en.I.js","properties":{":JSHash":"a0bd458876c67d6b4272493cc004a8ff",":Version":"1.0"}},":feeds":{"versions":{":1":"1",":1.0":"1"},"path":"/api/feeds/1.0/efe8f95c5756111c3e36c06dab50fd12/","js":"default+en.I.js","css":"default+en.css","properties":{":JSHash":"efe8f95c5756111c3e36c06dab50fd12",":Version":"1.0"}},":spreadsheets":{"versions":{":0":"1",":0.4":"1"},"path":"/api/spreadsheets/0.4/87ff7219e9f8a8164006cbf28d5e911a/","js":"default.I.js","properties":{":JSHash":"87ff7219e9f8a8164006cbf28d5e911a",":Version":"0.4"}},":ima":{"versions":{":3":"1",":3.0":"1"},"path":"/api/ima/3.0/ddabefdbdb889c32eb9526c7c2f48912/","js":"default.I.js","properties":{":JSHash":"ddabefdbdb889c32eb9526c7c2f48912",":Version":"3.0"}},":wave":{"versions":{":1":"1",":1.0":"1"},"path":"/api/wave/1.0/3b6f7573ff78da6602dda5e09c9025bf/","js":"default.I.js","properties":{":JSHash":"3b6f7573ff78da6602dda5e09c9025bf",":Version":"1.0"}},":annotations":{"versions":{":1":"1",":1.0":"1"},"path":"/api/annotations/1.0/35a28186b721d9e08b0c0b439b3c55b8/","js":"default+en.I.js","properties":{":JSHash":"35a28186b721d9e08b0c0b439b3c55b8",":Version":"1.0"}},":earth":{"versions":{":1":"1",":1.0":"1"},"path":"/api/earth/1.0/109c7b2bae7fe6cc34ea875176165d81/","js":"default.I.js","properties":{":JSHash":"109c7b2bae7fe6cc34ea875176165d81",":Version":"1.0"}},":picker":{"versions":{":1":"1",":1.0":"1"},"path":"/api/picker/1.0/5f01fa9c8a50be2d0100ffeff28be62b/","js":"default.I.js","css":"default.css","properties":{":JSHash":"5f01fa9c8a50be2d0100ffeff28be62b",":Version":"1.0"}}});google.loader.rpl({":scriptaculous":{"versions":{":1.8.3":{"uncompressed":"scriptaculous.js","compressed":"scriptaculous.js"},":1.9.0":{"uncompressed":"scriptaculous.js","compressed":"scriptaculous.js"},":1.8.2":{"uncompressed":"scriptaculous.js","compressed":"scriptaculous.js"},":1.8.1":{"uncompressed":"scriptaculous.js","compressed":"scriptaculous.js"}},"aliases":{":1.8":"1.8.3",":1":"1.9.0",":1.9":"1.9.0"}},":yui":{"versions":{":2.6.0":{"uncompressed":"build/yuiloader/yuiloader.js","compressed":"build/yuiloader/yuiloader-min.js"},":2.9.0":{"uncompressed":"build/yuiloader/yuiloader.js","compressed":"build/yuiloader/yuiloader-min.js"},":2.7.0":{"uncompressed":"build/yuiloader/yuiloader.js","compressed":"build/yuiloader/yuiloader-min.js"},":2.8.0r4":{"uncompressed":"build/yuiloader/yuiloader.js","compressed":"build/yuiloader/yuiloader-min.js"},":2.8.2r1":{"uncompressed":"build/yuiloader/yuiloader.js","compressed":"build/yuiloader/yuiloader-min.js"},":2.8.1":{"uncompressed":"build/yuiloader/yuiloader.js","compressed":"build/yuiloader/yuiloader-min.js"},":3.3.0":{"uncompressed":"build/yui/yui.js","compressed":"build/yui/yui-min.js"}},"aliases":{":3":"3.3.0",":2":"2.9.0",":2.7":"2.7.0",":2.8.2":"2.8.2r1",":2.6":"2.6.0",":2.9":"2.9.0",":2.8":"2.8.2r1",":2.8.0":"2.8.0r4",":3.3":"3.3.0"}},":swfobject":{"versions":{":2.1":{"uncompressed":"swfobject_src.js","compressed":"swfobject.js"},":2.2":{"uncompressed":"swfobject_src.js","compressed":"swfobject.js"}},"aliases":{":2":"2.2"}},":ext-core":{"versions":{":3.1.0":{"uncompressed":"ext-core-debug.js","compressed":"ext-core.js"},":3.0.0":{"uncompressed":"ext-core-debug.js","compressed":"ext-core.js"}},"aliases":{":3":"3.1.0",":3.0":"3.0.0",":3.1":"3.1.0"}},":webfont":{"versions":{":1.0.12":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.13":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.14":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.15":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.10":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.11":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.2":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.1":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.0":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.19":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.6":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.18":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.5":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.17":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.4":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.16":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.3":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.9":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.21":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.22":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.25":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.26":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.23":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"},":1.0.24":{"uncompressed":"webfont_debug.js","compressed":"webfont.js"}},"aliases":{":1":"1.0.26",":1.0":"1.0.26"}},":mootools":{"versions":{":1.3.1":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.1.1":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.3.0":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.3.2":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.1.2":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.2.3":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.2.4":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.2.1":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.2.2":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.2.5":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.4.0":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.4.1":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"},":1.4.2":{"uncompressed":"mootools.js","compressed":"mootools-yui-compressed.js"}},"aliases":{":1":"1.1.2",":1.11":"1.1.1",":1.4":"1.4.2",":1.3":"1.3.2",":1.2":"1.2.5",":1.1":"1.1.2"}},":jqueryui":{"versions":{":1.8.0":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.2":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.1":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.15":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.14":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.13":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.12":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.11":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.10":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.17":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.16":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.6.0":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.9":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.7":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.8":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.7.2":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.5":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.7.3":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.6":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.7.0":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.7.1":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.8.4":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.5.3":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"},":1.5.2":{"uncompressed":"jquery-ui.js","compressed":"jquery-ui.min.js"}},"aliases":{":1.8":"1.8.17",":1.7":"1.7.3",":1.6":"1.6.0",":1":"1.8.17",":1.5":"1.5.3",":1.8.3":"1.8.4"}},":chrome-frame":{"versions":{":1.0.2":{"uncompressed":"CFInstall.js","compressed":"CFInstall.min.js"},":1.0.1":{"uncompressed":"CFInstall.js","compressed":"CFInstall.min.js"},":1.0.0":{"uncompressed":"CFInstall.js","compressed":"CFInstall.min.js"}},"aliases":{":1":"1.0.2",":1.0":"1.0.2"}},":dojo":{"versions":{":1.3.1":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.3.0":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.6.1":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.1.1":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.3.2":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.6.0":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.2.3":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.7.2":{"uncompressed":"dojo/dojo.js.uncompressed.js","compressed":"dojo/dojo.js"},":1.7.0":{"uncompressed":"dojo/dojo.js.uncompressed.js","compressed":"dojo/dojo.js"},":1.7.1":{"uncompressed":"dojo/dojo.js.uncompressed.js","compressed":"dojo/dojo.js"},":1.4.3":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.5.1":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.5.0":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.2.0":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.4.0":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"},":1.4.1":{"uncompressed":"dojo/dojo.xd.js.uncompressed.js","compressed":"dojo/dojo.xd.js"}},"aliases":{":1.7":"1.7.2",":1":"1.6.1",":1.6":"1.6.1",":1.5":"1.5.1",":1.4":"1.4.3",":1.3":"1.3.2",":1.2":"1.2.3",":1.1":"1.1.1"}},":jquery":{"versions":{":1.6.2":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.3.1":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.6.1":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.3.0":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.6.4":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.6.3":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.3.2":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.6.0":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.2.3":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.7.0":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.7.1":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.2.6":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.4.3":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.4.4":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.5.1":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.5.0":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.4.0":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.5.2":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.4.1":{"uncompressed":"jquery.js","compressed":"jquery.min.js"},":1.4.2":{"uncompressed":"jquery.js","compressed":"jquery.min.js"}},"aliases":{":1.7":"1.7.1",":1.6":"1.6.4",":1":"1.7.1",":1.5":"1.5.2",":1.4":"1.4.4",":1.3":"1.3.2",":1.2":"1.2.6"}},":prototype":{"versions":{":1.7.0.0":{"uncompressed":"prototype.js","compressed":"prototype.js"},":1.6.0.2":{"uncompressed":"prototype.js","compressed":"prototype.js"},":1.6.1.0":{"uncompressed":"prototype.js","compressed":"prototype.js"},":1.6.0.3":{"uncompressed":"prototype.js","compressed":"prototype.js"}},"aliases":{":1.7":"1.7.0.0",":1.6.1":"1.6.1.0",":1":"1.7.0.0",":1.6":"1.6.1.0",":1.7.0":"1.7.0.0",":1.6.0":"1.6.0.3"}}});};function GFslideShow(photoFeed,container,options){this.feedUrl=null;this.directEntries=null;if(typeof photoFeed=='string'){this.feedUrl=photoFeed;}else if(photoFeed&&photoFeed.length&&photoFeed.length>1){this.directEntries=photoFeed;}else{throw"invalid argument: photoFeed";}
if(typeof container=="string"){container=document.getElementById(container);}
this.container=container;this.parseOptions(options);this.setup();}
GFslideShow.THUMBNAILS_SMALL="small";GFslideShow.THUMBNAILS_MEDIUM="medium";GFslideShow.THUMBNAILS_LARGE="large";GFslideShow.MRSS_THUMBNAIL_TAG="thumbnail";GFslideShow.MRSS_THUMBNAIL_NS="http://search.yahoo.com/mrss/";GFslideShow.ITMS_THUMBNAIL_TAG="coverArt";GFslideShow.ITMS_THUMBNAIL_NS="http://phobos.apple.com/rss/1.0/modules/itms/";GFslideShow.DEFAULT_THUMBNAIL_TAG=GFslideShow.MRSS_THUMBNAIL_TAG;GFslideShow.DEFAULT_THUMBNAIL_NS=GFslideShow.MRSS_THUMBNAIL_NS;GFslideShow.DEFAULT_DISPLAY_TIME=3000;GFslideShow.DEFAULT_TRANSISTION_TIME=1000;GFslideShow.DEFAULT_TRANSISTION_STEP=40;GFslideShow.DEFAULT_PAUSE_PNG=google.loader.ServiceBase+"/solutions/slideshow/pause.png";GFslideShow.DEFAULT_PLAY_PNG=google.loader.ServiceBase+"/solutions/slideshow/play.png";GFslideShow.FC_PAUSE_PNG={small:google.loader.ServiceBase+"/solutions/slideshow/btn_pause_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_pause.png"};GFslideShow.FC_PLAY_PNG={small:google.loader.ServiceBase+"/solutions/slideshow/btn_play_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_play.png"};GFslideShow.FC_PREV_PNG={small:google.loader.ServiceBase+"/solutions/slideshow/btn_prev_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_prev.png"};GFslideShow.FC_NEXT_PNG={small:google.loader.ServiceBase+"/solutions/slideshow/btn_next_small.png",big:google.loader.ServiceBase+"/solutions/slideshow/btn_next.png"};GFslideShow.DEFAULT_FC_FADEOUT_TIME=5000;GFslideShow.DEFAULT_FC_OPACITY=0.65;GFslideShow.prototype.parseOptions=function(options){var maxEntries;if(google!=undefined&&google.feeds!=undefined){maxEntries=google.feeds.Feed.MAX_ENTRIES;}else{maxEntries=20;}
this.options={numResults:maxEntries,scaleImages:false,thumbnailTag:GFslideShow.DEFAULT_THUMBNAIL_TAG,thumbnailNamespace:GFslideShow.DEFAULT_THUMBNAIL_NS,thumbnailSize:GFslideShow.THUMBNAILS_LARGE,linkTarget:null,displayTime:GFslideShow.DEFAULT_DISPLAY_TIME,transitionTime:GFslideShow.DEFAULT_TRANSISTION_TIME,transitionStep:GFslideShow.DEFAULT_TRANSISTION_STEP,pauseOnHover:true,pauseImage:GFslideShow.DEFAULT_PAUSE_PNG,pauseStateCallback:null,scalePauseImage:true,autoCleanup:true,thumbnailUrlResolver:null,transitionCallback:null,transitionAnimationCallback:null,feedLoadCallback:null,feedProcessedCallback:null,imageClickCallback:null,centerBias:{topBias:0,leftBias:0},pauseCenterBias:{topBias:0,leftBias:0},fullControlPanel:false,fullControlPanelCursor:false,fullControlPanelFadeOutTime:GFslideShow.DEFAULT_FC_FADEOUT_TIME,fullControlPanelPlayCallback:null,fullControlPanelSmallIcons:false,maintainAspectRatio:true};if(options){for(o in this.options){if(typeof options[o]!="undefined"){this.options[o]=options[o];}}}
if(this.options.displayTime<100){this.options.displayTime=100;}
var ts=(this.options.transitionTime/this.options.transitionStep);this.delta=Math.min(1,(1.0/ts));this.started=false;};GFslideShow.prototype.setup=function(){if(this.container==null)return;if(window.ActiveXObject){this.ie=this[window.XMLHttpRequest?'ie7':'ie6']=true;}else if(window.opera){this.opera=true;}else if(document.childNodes&&!document.all&&!navigator.taintEnabled){this.safari=true;if(navigator.userAgent.indexOf('iPhone')>0){this.iphone=true;}}else if(document.getBoxObjectFor!=null){this.gecko=true;}
if(this.feedUrl){this.feed=new google.feeds.Feed(this.feedUrl);this.feed.setResultFormat(google.feeds.Feed.MIXED_FORMAT);this.feed.setNumEntries(this.options.numResults);this.feed.load(this.bind(this.feedLoaded));}else if(this.directEntries){this.feedLoaded(this.directEntries);}};GFslideShow.prototype.addEntries=function(newEntries){this.processEntries(newEntries);if(!this.thumb_timer){this.processThumbs();}};GFslideShow.prototype.bind=function(method){var self=this;var opt_args=[].slice.call(arguments,1);return function(){var args=opt_args.concat([].slice.call(arguments));return method.apply(self,args);}};GFslideShow.prototype.mouseOver=function(e){var event=e||window.event;var relatedTarget=event.relatedTarget||event.fromElement;while(relatedTarget!=null){if(relatedTarget==this.container){return;}
relatedTarget=relatedTarget.parentNode;}
if(this.options.fullControlPanel){if(this.options.pauseOnHover&&!this.display_paused){this.pauseOrPlayFullControl();}
this.fadeInFullControl();}else{this.display_paused=true;if(this.pauseImage){this.pauseImage.style.visibility="visible";}}
if(this.options.pauseStateCallback){this.options.pauseStateCallback(this.display_paused);}};GFslideShow.prototype.mouseOut=function(e){var event=e||window.event;var relatedTarget=event.relatedTarget||event.toElement;while(relatedTarget!=null){if(relatedTarget==this.container){return;}
relatedTarget=relatedTarget.parentNode;}
if(this.options.fullControlPanel){this.fadeOutFullControl();this.container.onmousemove=null;if(this.options.pauseOnHover&&this.display_paused){this.pauseOrPlayFullControl();}}else{this.display_paused=false;if(this.pauseImage){this.pauseImage.style.visibility="hidden";}}
if(this.options.pauseStateCallback){this.options.pauseStateCallback(this.display_paused);}
if(this.display_timer==null&&this.transition_timer==null){this.displayNextPhoto();}};GFslideShow.prototype.operaClickAndCallout=function(){var entry=this.entries[this.photo_index];var tmpLink=this.createLink(entry.link);tmpLink.click();};GFslideShow.prototype.pause=function(opt_suppressPauseImage){var pi=this.pauseImage;if(opt_suppressPauseImage){this.pauseImage=null;}
this.pauseAndCallout();this.pauseImage=pi;};GFslideShow.prototype.resume=function(){this.resumeSlideShow();};GFslideShow.prototype.pauseAndCallout=function(){this.display_paused=true;if(this.pauseImage){this.pauseImage.style.visibility="visible";}
this.container.onmouseout=null;if(this.options.imageClickCallback){this.options.imageClickCallback(this.entries[this.photo_index]);}};GFslideShow.prototype.resumeSlideShow=function(){if(this.options.pauseOnHover||this.options.fullControlPanel){this.container.onmouseover=this.bind(this.mouseOver);this.container.onmouseout=this.bind(this.mouseOut);}
this.display_paused=false;if(this.pauseImage){this.pauseImage.style.visibility="hidden";}
if(this.display_timer==null&&this.transition_timer==null){this.displayNextPhoto();}};GFslideShow.prototype.clearNode=function(node){if(node==null)return;var child;while(child=node.firstChild){node.removeChild(child);}};GFslideShow.prototype.createSubContainer=function(){var div=document.createElement("div");div.style.width="100%";div.style.height="100%";div.style.position="relative";div.style.overflow="hidden";this.clearNode(this.container);this.container.appendChild(div);this.container=div;};GFslideShow.prototype.grabThumb=function(thumbNodes){var ti=0;if(thumbNodes.length>1){if(this.options.thumbnailSize==GFslideShow.THUMBNAILS_LARGE){ti=thumbNodes.length-1;}else if(this.options.thumbnailSize==GFslideShow.THUMBNAILS_MEDIUM){ti=Math.floor(thumbNodes.length/2);}}
var node=thumbNodes[ti];var thumb=null;var thumb=node.getAttribute("url");if(!thumb){thumb=node.firstChild.nodeValue;}
return thumb;};GFslideShow.prototype.processThumbs=function(opt_chunk,opt_timeout){this.thumb_timer=null;var start=this.thumbs_index;var num=this.entries.length;var chunk=opt_chunk||4;if(num>(start+chunk)){num=(start+chunk);var cb=this.bind(this.processThumbs);var to=opt_timeout||Math.round(this.options.displayTime/4);this.thumb_timer=window.setTimeout(cb,to);}
for(var i=start;i<num;i++){var thumbUrl=this.entries[i].thumbUrl;var image=this.createImage(thumbUrl);this.images.push(image);if(this.options.linkTarget){if(!this.opera){var link=this.createLink(this.entries[i].link);link.appendChild(image);this.container.appendChild(link);}else{image.onclick=this.bind(this.operaClickAndCallout);image.style.cursor='pointer';this.container.appendChild(image);}}else{this.container.appendChild(image);}
if(image.complete){this.imageLoaded(image);}else{image.onerror=this.bind(this.imageError,image);image.onload=this.bind(this.imageLoaded,image);}
this.thumbs_index++;}};GFslideShow.prototype.processEntries=function(entries){for(var i=0;i<entries.length;i++){var thumbUrl=null;if(this.options.thumbnailUrlResolver){thumbUrl=this.options.thumbnailUrlResolver(entries[i]);}else{var thumbNodes=google.feeds.getElementsByTagNameNS(entries[i].xmlNode,this.options.thumbnailNamespace,this.options.thumbnailTag);if(thumbNodes&&thumbNodes.length>0){thumbUrl=this.grabThumb(thumbNodes);}}
if(thumbUrl){entries[i].thumbUrl=thumbUrl;this.entries.push(entries[i]);}}};GFslideShow.prototype.feedLoaded=function(result){if(this.options.feedLoadCallback){this.options.feedLoadCallback(result);}
if((this.feedUrl&&result.error)||(this.directEntries&&this.directEntries.length==0)){if(!this.options.feedLoadCallback){this.container.innerHTML='<center style="color: gray">feed could not be loaded.</center>';}
return;}
this.createSubContainer();if(this.container.offsetWidth){this.width=this.container.offsetWidth;this.height=this.container.offsetHeight;}
this.createPauseImage();this.images=[];this.entries=[];this.thumbs_index=0;var entries;if(this.feedUrl){entries=result.feed.entries;}else{entries=this.directEntries;}
this.processEntries(entries);if(this.options.feedProcessedCallback){this.options.feedProcessedCallback(result);}
if(this.options.fullControlPanel&&this.entries.length>0){this.createFullControlPanel();}
if((this.options.pauseOnHover||this.options.fullControlPanel)&&this.entries.length>0){this.container.onmouseover=this.bind(this.mouseOver);this.container.onmouseout=this.bind(this.mouseOut);}
if(this.options.imageClickCallback){this.container.onclick=this.bind(this.pauseAndCallout);}
this.processThumbs(1,100+(Math.random()*100));};GFslideShow.prototype.imageLoaded=function(image){image.__gfloaded=true;this.adjustImage(image);if(!this.started){for(var i=0;i<this.images.length;i++){if(image==this.images[i]){this.beginSlideShow(i);}
break;}}};GFslideShow.prototype.imageError=function(image){image.__gferror=true;};GFslideShow.prototype.adjustImage=function(image){if(this.options.scaleImages){if(this.options.maintainAspectRatio){this.scaleImage(image);}else{image.style.height=this.height+"px";image.style.width=this.width+"px";}}
this.centerImage(image);};GFslideShow.prototype.scaleImage=function(image,opt_width,opt_height){var width=opt_width||this.width;var height=opt_height||this.height;var imgW=image.offsetWidth;var imgH=image.offsetHeight;if(imgW<=0||imgH<=0)return;var scaleH=height/imgH;var scaleW=width/imgW;if(scaleH<scaleW){image.style.height=height+"px";image.style.width=Math.round(imgW*scaleH)+"px";}else{image.style.width=width+"px";image.style.height=Math.round(imgH*scaleW)+"px";}};GFslideShow.prototype.centerImage=function(image){var oh=this.height-image.offsetHeight;var ow=this.width-image.offsetWidth;image.style.top="0px";image.style.left="0px";if(oh>0){var ah=Math.round(oh/2);image.style.top=image.offsetTop+ah+
this.options.centerBias.topBias+"px";}
if(ow>0){var aw=Math.round(ow/2);image.style.left=image.offsetLeft+aw+
this.options.centerBias.leftBias+"px";}};GFslideShow.prototype.createLink=function(href){var link=document.createElement('a');link.setAttribute('href',href);if(this.options.linkTarget){link.setAttribute('target',this.options.linkTarget);}
return link;};GFslideShow.prototype.createImage=function(src){var image=document.createElement("img");image.style.position="absolute";image.setAttribute("src",src);this.setOpacity(image,0);return image;};GFslideShow.prototype.adjustPauseImage=function(image){if(this.options.scalePauseImage){var height=Math.round(this.height*0.33);var width=Math.round(this.width*0.33);this.scaleImage(image,width,height);}
this.placePauseImage(image);};GFslideShow.prototype.placePauseImage=function(image){var oh=this.height-image.offsetHeight;var ow=this.width-image.offsetWidth;image.style.top="0px";image.style.left="0px";if(oh>0){var off=Math.round(this.height*0.10);if(off<15)off=10;var ah=this.height-(image.offsetHeight+off);if(ah<0)ah=0;image.style.top=image.offsetTop+ah+
this.options.pauseCenterBias.topBias+"px";}
if(ow>0){var aw=Math.round(ow/2);image.style.left=image.offsetLeft+aw+
this.options.pauseCenterBias.leftBias+"px";}};GFslideShow.prototype.createAlphaPauseImage=function(image){this.adjustPauseImage(image);var imgW=image.offsetWidth;var imgH=image.offsetHeight;var imgT=image.style.top;var imgL=image.style.left;var element=null;if(this.ie){var src=this.options.pauseImage;element=document.createElement("div");element.style.filter="progid:DXImageTransform.Microsoft."+"AlphaImageLoader(src='"+src+"', sizingMethod='scale')";element.style.position="absolute";element.style.width=imgW+"px";element.style.height=imgH+"px";element.style.left=imgL;element.style.top=imgT;}else{element=image;element.style.opacity="";}
element.style.visibility="hidden";element.style.zIndex=222;if(element!=image){this.container.appendChild(element);this.container.removeChild(image);}
this.pauseImage=element;};GFslideShow.prototype.pauseImageLoaded=function(image){this.createAlphaPauseImage(image);};GFslideShow.prototype.createPauseImage=function(src){if(!this.options.pauseOnHover)return;var pauseOff=this.createImage(this.options.pauseImage);this.container.appendChild(pauseOff);if(pauseOff.complete){this.createAlphaPauseImage(pauseOff);}else{pauseOff.onload=this.bind(this.pauseImageLoaded,pauseOff);}};GFslideShow.prototype.createFullControlPanel=function(){var h=(this.options.fullControlPanelSmallIcons?25:45);if(this.options.fullControlPanelCursor)h+=10;var padTop=(this.options.fullControlPanelSmallIcons?5:10);var padBottom=5;var div=document.createElement('div');div.style.backgroundColor='#000000';div.style.height=h+'px';div.style.top=(this.height-(h+padBottom+padTop))+'px';div.style.width='100%';div.style.zIndex='222';div.style.position='relative';div.style.textAlign='center';div.style.direction='ltr';div.style.paddingTop=padTop+'px';div.style.paddingBottom=padBottom+'px';var iconSize=this.options.fullControlPanelSmallIcons?'small':'big';var handCursor=this.ie?'hand':'pointer';var pause=document.createElement("img");pause.src=GFslideShow.FC_PAUSE_PNG[iconSize];pause.style.cursor=handCursor;var next=document.createElement("img");next.src=GFslideShow.FC_NEXT_PNG[iconSize];next.style.cursor=handCursor;var prev=document.createElement("img");prev.src=GFslideShow.FC_PREV_PNG[iconSize];prev.style.cursor=handCursor;pause.style.marginLeft='5px';pause.style.marginRight='5px';div.appendChild(prev);div.appendChild(pause);div.appendChild(next);var cursor=null;if(this.options.fullControlPanelCursor){cursor=document.createElement('div');cursor.style.height='1.3em';cursor.style.fontSize='11px';cursor.style.color='#bbbbbb';div.appendChild(cursor);}
this.fc={};this.fc.container=div;this.fc.pause=pause;this.fc.next=next;this.fc.prev=prev;this.fc.cursor=cursor;next.onclick=this.bind(this.goForward);prev.onclick=this.bind(this.goBackward);pause.onclick=this.bind(this.pauseOrPlayClick);this.fc.container.style.visibility="hidden";this.container.appendChild(div);};GFslideShow.prototype.clearTransitionTimer=function(){if(this.transition_timer){clearInterval(this.transition_timer);this.transition_timer=null;}};GFslideShow.prototype.setTransitionTimer=function(){this.clearTransitionTimer();this.lastTick=GFslideShow.timeNow();var cb=this.bind(this.transitionAnimation);this.transition_timer=window.setInterval(cb,this.options.transitionStep);};GFslideShow.prototype.clearDisplayTimer=function(){if(this.display_timer){clearTimeout(this.display_timer);this.display_timer=null;}};GFslideShow.prototype.setDisplayTimer=function(){if(this.display_timer)return;var cb=this.bind(this.displayNextPhoto);this.display_timer=window.setTimeout(cb,this.options.displayTime);};GFslideShow.prototype.clearThumbTimer=function(){if(this.thumb_timer){clearTimeout(this.thumb_timer);this.thumb_timer=null;}};GFslideShow.prototype.beginSlideShow=function(index){this.photo_index=index;this.next=this.images[this.photo_index];this.snapToNextPhoto();this.started=true;};GFslideShow.timeNow=function(){var d=new Date();return d.getTime();};GFslideShow.prototype.goForward=function(){this.finishTransition();this.setNextPhoto();this.snapToNextPhoto();this.clearFullControlTimeoutTimer();};GFslideShow.prototype.goBackward=function(){this.finishTransition();this.setPreviousPhoto();this.snapToNextPhoto();this.clearFullControlTimeoutTimer();};GFslideShow.prototype.gotoIndex=function(index){if(index==this.photo_index){return;}
this.clearTransitionTimer();this.setPhotoIndex(index);this.snapToNextPhoto();this.clearFullControlTimeoutTimer();}
GFslideShow.prototype.pauseOrPlayClick=function(){if(this.options.fullControlPanelPlayCallback&&this.display_paused){this.container.onmouseover=null;this.container.onmouseout=null;this.options.fullControlPanelPlayCallback(this.entries[this.photo_index]);this.fadeOutFullControl();}else{this.pauseOrPlayFullControl();}}
GFslideShow.prototype.pauseOrPlayFullControl=function(){var iconSize=this.options.fullControlPanelSmallIcons?'small':'big';if(this.display_paused){this.display_paused=false;this.fc.pause.src=GFslideShow.FC_PAUSE_PNG[iconSize];if(this.display_timer==null&&this.transition_timer==null){this.displayNextPhoto();}}else{this.display_paused=true;this.fc.pause.src=GFslideShow.FC_PLAY_PNG[iconSize];}};GFslideShow.prototype.fullControlMotion=function(){var op=this.fc.container.opacity;if(op<GFslideShow.DEFAULT_FC_OPACITY){this.container.onmousemove=null;this.clearFullControlTimeoutTimer();this.fadeInFullControl();}else{this.setFullControlTimeoutTimer();}}
GFslideShow.prototype.clearFullControlTimeoutTimer=function(){if(!this.fc){return;}
if(this.fc.timeout){clearTimeout(this.fc.timeout);this.fc.timeout=null;}}
GFslideShow.prototype.setFullControlTimeoutTimer=function(){if(this.fc.timeout){clearTimeout(this.fc.timeout);this.fc.timeout=null;}
if(this.options.fullControlPanelFadeOutTime>0){var cb=this.bind(this.fadeOutFullControl);this.fc.timeout=setTimeout(cb,this.options.fullControlPanelFadeOutTime);}}
GFslideShow.prototype.setFullControlTimeout=function(){this.container.onmousemove=this.bind(this.fullControlMotion);this.setFullControlTimeoutTimer();}
GFslideShow.prototype.fadeInFullControl=function(){this.setOpacity(this.fc.container,0);var cb=this.bind(this.fadeInFullControlAnimation);this.setFullControlFadeTimer(cb);}
GFslideShow.prototype.fadeInFullControlAnimation=function(){var op=this.fc.container.opacity;op+=0.075;op=Math.min(GFslideShow.DEFAULT_FC_OPACITY,op);this.setOpacity(this.fc.container,op);if(op>=GFslideShow.DEFAULT_FC_OPACITY){this.setFullControlFadeTimer();this.setFullControlTimeout();}}
GFslideShow.prototype.fadeOutFullControl=function(){var cb=this.bind(this.fadeOutFullControlAnimation);this.setFullControlFadeTimer(cb);}
GFslideShow.prototype.fadeOutFullControlAnimation=function(){var op=this.fc.container.opacity;op-=0.075;this.setOpacity(this.fc.container,op);if(op<=0){this.setFullControlFadeTimer();}}
GFslideShow.prototype.setFullControlFadeTimer=function(opt_callback){if(this.fc.fade_timer){clearInterval(this.fc.fade_timer);this.fc.fade_timer=null;}
if(opt_callback){this.fc.fade_timer=window.setInterval(opt_callback,40);}}
GFslideShow.prototype.transitionAnimation=function(){if(this.current&&this.next){var delta=this.delta;var ts=this.options.transitionStep;var now=GFslideShow.timeNow();var tick=now-this.lastTick;this.lastTick=now;delta*=(tick/ts);if(delta<0)return;var cur_op=this.current.opacity-delta;var next_op=this.next.opacity+delta;this.setOpacity(this.current,cur_op);this.setOpacity(this.next,next_op);if(this.options.transitionAnimationCallback){this.options.transitionAnimationCallback(this.next.opacity);}
if(cur_op>0){return;}}
this.finishTransition();};GFslideShow.prototype.setNextPhoto=function(){if(this.images.length==0){return;}
var ci=this.photo_index;if(++this.photo_index>=this.images.length){this.photo_index=0;}
var image=this.images[this.photo_index];if(image&&image.__gfloaded){this.next=image;}else{if(this.photo_index==ci){this.next=this.images[0];}}};GFslideShow.prototype.setPreviousPhoto=function(){var ci=this.photo_index;if(this.images.length!=0){if(--this.photo_index<0){this.photo_index=this.images.length-1;}
var image=this.images[this.photo_index];if(image&&image.__gfloaded){this.next=image;}else{if(this.photo_index==ci){this.next=this.images[0];}}}};GFslideShow.prototype.setPhotoIndex=function(index){if(index<0||index>=this.images.length){return;}
var image=this.images[index];if(image&&image.__gfloaded){this.next=image;this.photo_index=index;}};GFslideShow.prototype.clearPauseEvents=function(){this.container.onmouseover=null;this.container.onmouseout=null;};GFslideShow.prototype.cleanup=function(){this.clearTransitionTimer();this.clearDisplayTimer();this.clearThumbTimer();this.clearPauseEvents();this.clearNode(this.container);this.container=null;};GFslideShow.prototype.displayNextPhoto=function(){this.display_timer=null;if(!this.started){return false;}
if(this.display_paused)return;if((!this.container||!this.container.parentNode)&&this.options.autoCleanup){this.cleanup();return;}
this.setNextPhoto();this.beginTransition();};GFslideShow.prototype.snapToNextPhoto=function(){this.setOpacity(this.next,1);this.setOpacity(this.current,0);this.current=this.next;this.setDisplayTimer();if(this.options.transitionCallback){this.options.transitionCallback(this.entries[this.photo_index],this.options.transitionTime);}
if(this.options.fullControlPanel&&this.options.fullControlPanelCursor){var index=(this.photo_index+1)+' / '+this.images.length;this.fc.cursor.innerHTML=index;}}
GFslideShow.prototype.beginTransition=function(){if(!this.current||!this.next||(this.current==this.next)){this.setDisplayTimer();return;}
if(this.options.transitionTime>=this.options.transitionStep){this.setTransitionTimer();}else{this.snapToNextPhoto();}};GFslideShow.prototype.finishTransition=function(){this.clearTransitionTimer();this.snapToNextPhoto();};GFslideShow.prototype.setOpacity=function(image,opacity){if(image==null)return;opacity=Math.max(0,Math.min(1,opacity));if(opacity==0){if(image.style.visibility!="hidden"){image.style.visibility="hidden";}}else{if(image.style.visibility!="visible"){image.style.visibility="visible";}}
if(this.ie)image.style.filter="alpha(opacity="+opacity*100+")";image.style.opacity=image.opacity=opacity;};
