var cookie_prefix='';
(function(){
function d(a,b){return a.className=b}var g=false,h=true,j=window,k=document,l=Array,m="push",o="length",p="prototype",q="replace",r="split",t="stopPropagation",v="indexOf",w="style",x="call",y="forEach",C="contains",D="parentNode",E="event";var aa=aa||{},G=this,ba=function(a,b){var c=a[r]("."),e=G,f;!(c[0]in e)&&e.execScript&&e.execScript("var "+c[0]);while(c[o]&&(f=c.shift()))if(!c[o]&&typeof b!="undefined")e[f]=b;else e=e[f]?e[f]:(e[f]={})};var I=function(a){var b=typeof a;if(b=="object")if(a){if(typeof a[o]=="number"&&typeof a.splice!="undefined"&&!H(a,"length"))return"array";if(typeof a[x]!="undefined")return"function"}else return"null";else if(b=="function"&&typeof a[x]=="undefined")return"object";return b};if(Object[p].propertyIsEnumerable)var H=
function(a,b){return Object[p].propertyIsEnumerable[x](a,b)};else H=function(a,b){if(b in a)for(var c in a)if(c==b&&Object[p].hasOwnProperty[x](a,b))return h;return g};var ca=function(a){var b=I(a);return b=="array"||b=="object"&&typeof a[o]=="number"};var J=function(a){var b=I(a);return b=="object"||b=="array"||b=="function"},da=Date.now||function(){return(new Date).getTime()},K=function(a,b){ba(a,b)};var L={};L.g=j.yt&&j.yt.msgs_||{};K("yt.msgs_",L.g);L.J=function(){var a=arguments[o];if(a>1&&typeof arguments[0]=="string")L.g[arguments[0]]=arguments[1];else for(var b=0;b<a;b++)for(var c in arguments[b])L.g[c]=arguments[b][c]};L.V=function(a){return a in L.g};L.D=function(a,b,c){var e=b||{},f=a in L.g?L.g[a]:c;if(f)for(var i in e)f=f[q](new RegExp("\\$"+i,"gi"),e[i]);return f};var ea=function(a,b,c){if(a[v])return a[v](b,c);if(l[v])return l[v](a,b,c);var e=c==null?0:c<0?Math.max(0,a[o]+c):c;for(var f=e;f<a[o];f++)if(f in a&&a[f]===b)return f;return-1},M=function(a,b,c){if(a[y])a[y](b,c);else if(l[y])l[y](a,b,c);else{var e=a[o],f=typeof a=="string"?a[r](""):a;for(var i=0;i<e;i++)i in f&&b[x](c,f[i],i,a)}},N=function(a,b){if(a[C])return a[C](b);return ea(a,b)>-1},fa=function(a){if(I(a)=="array")return a.concat();else{var b=[];for(var c=0,e=a[o];c<e;c++)b[c]=a[c];return b}},
ga=function(a){return l[p].splice.apply(a,O(arguments,1))},O=function(a,b,c){return arguments[o]<=2?l[p].slice[x](a,b):l[p].slice[x](a,b,c)};var P;var Q=function(a){var b=a.className;return b&&typeof b[r]=="function"?b[r](" "):[]},S=function(a){var b=Q(a),c=1;for(var e=1;e<arguments[o];e++)if(N(b,arguments[e]))c&=0;else{b[m](arguments[e]);c&=1}d(a,b.join(" "));return Boolean(c)},T=function(a){var b=Q(a),c=O(arguments,1),e=0;for(var f=0;f<b[o];f++)if(N(c,b[f])){ga(b,f--,1);e++}d(a,b.join(" "));return e==c[o]},U=function(a,b){return N(Q(a),b)},ha=function(a,b,c){c?S(a,b):T(a,b)},ia=function(a,b){var c=!U(a,b);ha(a,b,c);return c};var ja=function(a,b,c){for(var e in a)b[x](c,a[e],e,a)};var ka=function(a){return a[q](/^[\s\xa0]+|[\s\xa0]+$/g,"")},qa=function(a,b){if(b)return a[q](la,"&amp;")[q](ma,"&lt;")[q](na,"&gt;")[q](oa,"&quot;");else{if(!pa.test(a))return a;if(a[v]("&")!=-1)a=a[q](la,"&amp;");if(a[v]("<")!=-1)a=a[q](ma,"&lt;");if(a[v](">")!=-1)a=a[q](na,"&gt;");if(a[v]('"')!=-1)a=a[q](oa,"&quot;");return a}},la=/&/g,ma=/</g,na=/>/g,oa=/\"/g,pa=/[&<>\"]/,ta=function(a){if(a[v]("&")!=-1)return"document"in G&&!(a[v]("<")!=-1)?ra(a):sa(a);return a},ra=function(a){var b=G.document.createElement("a");
b.innerHTML=a;b.normalize&&b.normalize();a=b.firstChild.nodeValue;b.innerHTML="";return a},sa=function(a){return a[q](/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if(c.charAt(0)=="#"){var e=Number("0"+c.substr(1));if(!isNaN(e))return String.fromCharCode(e)}return b}})},ua=function(a,b,c){if(c)a=ta(a);if(a[o]>b)a=a.substring(0,b-3)+"...";if(c)a=qa(a);return a};var va=function(a,b){var c=0,e=ka(String(a))[r]("."),f=ka(String(b))[r]("."),
i=Math.max(e[o],f[o]);for(var n=0;c==0&&n<i;n++){var z=e[n]||"",R=f[n]||"",A=new RegExp("(\\d*)(\\D*)","g"),F=new RegExp("(\\d*)(\\D*)","g");do{var s=A.exec(z)||["","",""],u=F.exec(R)||["","",""];if(s[0][o]==0&&u[0][o]==0)break;var B=s[1][o]==0?0:parseInt(s[1],10),Aa=u[1][o]==0?0:parseInt(u[1],10);c=V(B,Aa)||V(s[2][o]==0,u[2][o]==0)||V(s[2],u[2])}while(c==0)}return c},V=function(a,b){if(a<b)return-1;else if(a>b)return 1;return 0};da();var wa,xa,ya,za,Ba,Ca,W,Da,Ea,Fa,Ga;(function(){var a=g,b=g,c=g,e=g,f=g,i=g,n=g,z=g,R=g,A="";if(G.navigator){var F=G.navigator,s=F.userAgent;a=s[v]("Opera")==0;b=!a&&s[v]("MSIE")!=-1;c=!a&&s[v]("WebKit")!=-1;R=c&&s[v]("Mobile")!=-1;e=!a&&!c&&F.product=="Gecko";f=e&&F.vendor=="Camino";var u,B;if(a)u=G.opera.version();else{if(e)B=/rv\:([^\);]+)(\)|;)/;else if(b)B=/MSIE\s+([^\);]+)(\)|;)/;else if(c)B=/WebKit\/(\S+)/;if(B){B.test(s);u=RegExp.$1}}A=F.platform||"";i=A[v]("Mac")!=-1;n=A[v]("Win")!=-1;z=
A[v]("Linux")!=-1}wa=a;xa=b;ya=e;za=f;Ba=c;Ca=R;W=u;Da=A;Ea=i;Fa=n;Ga=z})();var Ha=xa,Ia=ya;var Y=function(){P||(P=new X);return P},Z=function(a){return typeof a=="string"?k.getElementById(a):a},Ja=function(a,b,c){return Y().p(a,b,c)},La=function(a,b){ja(b,function(c,e){if(e=="style")a[w].cssText=c;else if(e=="class")d(a,c);else if(e=="for")a.htmlFor=c;else if(e in Ka)a.setAttribute(Ka[e],c);else a[e]=c})},Ka={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",height:"height",width:"width",usemap:"useMap",frameborder:"frameBorder"},Ma=
function(){var a=Y();return a.w.apply(a,arguments)},Na=function(a,b){a.appendChild(b)};var Oa=Ba&&va(W,"521")<=0,Pa=function(a,b){if(typeof a[C]!="undefined"&&!Oa&&b.nodeType==1)return a==b||a[C](b);if(typeof a.compareDocumentPosition!="undefined")return a==b||Boolean(a.compareDocumentPosition(b)&16);while(b&&a!=b)b=b[D];return b==a},Qa=function(a){if(a&&typeof a[o]=="number")if(J(a))return typeof a.item=="function"||typeof a.item=="string";else if(I(a)=="function")return typeof a.item=="function";
return g},Ra=function(a,b,c){if(!c)a=a[D];while(a){if(b(a))return a;a=a[D]}return null},X=function(a){this.l=a||G.document||k};X[p].p=function(a,b,c){var e=(c||this.l).getElementsByTagName(a||"*");if(b){var f=[];for(var i=0,n;n=e[i];i++){var z=n.className;typeof z[r]=="function"&&N(z[r](" "),b)&&f[m](n)}return f}else return e};X[p].w=function(a,b){if(Ha&&b&&b.name)a="<"+a+' name="'+qa(b.name)+'">';var c=this.createElement(a);b&&La(c,b);if(arguments[o]>2){function e(n){if(n)this.appendChild(c,typeof n==
"string"?this.createTextNode(n):n)}for(var f=2;f<arguments[o];f++){var i=arguments[f];ca(i)&&!(J(i)&&i.nodeType>0)?M(Qa(i)?fa(i):i,e,this):e[x](this,i)}}return c};X[p].createElement=function(a){return this.l.createElement(a)};X[p].createTextNode=function(a){return this.l.createTextNode(a)};X[p].appendChild=Na;X[p].contains=Pa;L.f={};L.f.q=function(a,b){a=Z(a);b=Z(b);return!!Ra(a,function(c){return c===b},h)};L.f.C=function(a,b,c){var e=Y().p(a,b,c);return e[o]?e[e[o]-1]:null};L.f.U=function(a,b,c,e){var f=L.f.C(a,b,c);if(!f){var i=e||{};d(i,b);f=Ma(a,i);c.appendChild(f)}return f};L.c={};L.c.n=(function(){return j.addEventListener?function(a,b,c){a.addEventListener(b,c,g)}:j.attachEvent?function(a,b,c){var e=function(){c[x](a,j[E])};if(!a.e)a.e={};a.e[b]||(a.e[b]={});a.e[b][c]=e;a.attachEvent("on"+b,e)}:function(a,b,c){a["on"+b]=c}})();L.c.R=(function(){return j.removeEventListener?function(a,b,c){a.removeEventListener(b,c,g)}:j.detachEvent?function(a,b,c){a.e&&a.e[b]&&a.e[b][c]&&a.detachEvent("on"+b,a.e[b][c])}:function(){}})();L.c.F=function(a){var b=a||j[E],c=b.target||
b.srcElement;if(c.nodeType==3)c=c[D];return c};L.c.stopPropagation=function(a){var b=a||j[E];b.cancelBubble=h;b[t]&&b[t]()};L.c.preventDefault=function(a){var b=a||j[E];b.preventDefault&&b.preventDefault();return g};L.d={};L.d.j=function(a,b,c){var e=j.deconcept,f=e.SWFObjectUtil.getPlayerVersion();if(f.major==9)if(navigator.userAgent[v]("Sony/COM2")>-1){var i=new e.PlayerVersion([9,1,58]);f.versionIsValid(i)||(f=new e.PlayerVersion([8,0,0]))}var n=new e.PlayerVersion([a,b,c]);return f.versionIsValid(n)};L.d.v=function(){return L.d.j(9,0,0)};L.d.u=function(){return L.d.j(9,0,115)};L.d.M=function(){return L.d.j(10,0,0)};var $=function(a,b){a[w].display=b?"":"none"};Ia&&!(va(W,"1.9")>=0);L.style={};L[w].k=function(a,b){a=Z(a);if(!a)return;$(a,b);ha(a,"hid",!b)};L[w].r=function(a){a=Z(a);if(!a)return g;return!(!(a[w].display!="none")||U(a,"hid"))};L[w].N=function(a){a=Z(a);if(!a)return;if(L[w].r(a)){$(a,g);S(a,"hid")}else{$(a,h);T(a,"hid")}};L[w].K=function(a,b){a=Z(a);if(!a)return;a[w].visibility=b?"visible":"hidden"};L[w].s=function(){M(arguments,function(a){L[w].k(a,h)})};L[w].m=function(){M(arguments,function(a){L[w].k(a,g)})};L[w].t=function(){M(arguments,L[w].N)};L[w].G=function(a,
b){j.setTimeout(function(){L[w].m(a)},b)};L.a={};L.a.b={};K("yt",L);K("_gel",Z);K("ref",Z);K("getElementsByTagNameAndClass",Ja);K("each",M);K("arrayEach",M);K("hasAncestor",L.f.q);K("_setmsg",L.J);K("_getmsg",L.D);j.onLoadFunctionList=j.onLoadFunctionList||[];j.onUnloadFunctionList=j.onUnloadFunctionList||[];j.gLoadedPage=g;L.a.b.A=function(){for(var a=0,b=j.onLoadFunctionList[o];a<b;a++)try{j.onLoadFunctionList[a][x]()}catch(c){j.setTimeout(function(){throw c;},0)}j.gLoadedPage=h};L.a.b.B=function(){for(var a=j.onUnloadFunctionList[o]-1;a>=
0;a--)try{j.onUnloadFunctionList[a][x]()}catch(b){}};K("performOnLoadFunctions",L.a.b.A);K("performOnUnloadFunctions",L.a.b.B);K("addListener",L.c.n);K("removeListener",L.c.R);K("stopPropagation",L.c[t]);K("preventDefault",L.c.preventDefault);K("hasClass",U);K("addClass",S);K("removeClass",T);K("toggleClass",ia);K("showDiv",L[w].s);K("hideDiv",L[w].m);K("hideDivAfter",L[w].G);K("setDisplay",L[w].k);K("isDisplayed",L[w].r);K("toggleDisplay",L[w].t);K("toggleDisplay2",L[w].t);K("setVisible",L[w].K);
L.a.b.o=function(a,b){var c=[],e=a;if(b){for(var f in b)c[m](f+"="+encodeURIComponent(b[f].toString()));if(c[o])e+="?"+c.join("&")}return e};L.a.b.I=function(a,b,c){var e=c||"";k.location.href=L.a.b.o(a,b)+e};L.a.b.H=function(a,b,c,e,f){var i=j.open(a,b,"height="+c+(",width="+e)+(f?",scrollbars=1":""));if(i&&!i.opener)i.opener=j;j.focus&&i.focus();return g};K("buildUrl",L.a.b.o);K("redirect",L.a.b.I);K("openPopup",L.a.b.H);j.__eventsPageTracker=null;j.__gaTrackers={};L.a.b.S=function(){};L.a.b.T=
function(a){if(!j.gIsGoogleAnalyticsEnabled)return;j.gLoadedPage?j.urchinTracker(a):j.onLoadFunctionList[m](function(){j.urchinTracker(a)})};L.a.b.P=function(a,b,c,e){var f=j.__gaTrackers[a];if(!f){if(!j.__eventsPageTracker)return;f=j.__eventsPageTracker._createEventTracker(a);j.__gaTrackers[a]=f}f._trackEvent(b,c||undefined,e||undefined)};K("urchinTracker",L.a.b.S);K("urchinTrackerDefer",L.a.b.T);K("trackEvent",L.a.b.P);K("isFlashVersionSupported",L.d.j);K("canPlayV9Swf",L.d.v);K("canPlayH264Videos",
L.d.u);K("supportsPixelBender",L.d.M);L.a.b.h={};L.a.b.L=function(a,b,c,e){L.a.b.i();var f=L.a.b.h;f.id=b;f.parentId=c||Z(b)[D].id;f.eventType=e||"click";L.c[t](a);L[w].s(f.id);S(Z(f.parentId),"show-dropdown")};L.a.b.i=function(){var a=L.a.b.h;if(a.id){L[w].m(a.id);T(Z(a.parentId),"show-dropdown");L.a.b.h={}}};L.c.n(k,"click",L.a.b.i);L.c.n(k,"mouseover",function(a){var b=L.c.F(a),c=L.a.b.h;c&&c.eventType&&c.parentId&&a.type[v](c.eventType)!=-1&&!L.f.q(b,c.parentId)&&L.a.b.i()});K("dropdown",L.a.b.L);
K("hideDropdown",L.a.b.i);L.a.b.O=function(a,b){a=Z(a);a[D][w].zIndex=b?"100":"0";while(a){if(U(a,"tooltip-wrapper-box")||U(a,"reverse-tooltip-wrapper-box")){L[w].k(a,b);var c=a.firstChild;while(c){if(U(c,"tooltip-box")||U(c,"tooltip-box-bot"))c[w].backgroundImage="url(/img/tooltip.gif)";if(U(c,"reverse-tooltip-box")||U(c,"reverse-tooltip-box-bot"))c[w].backgroundImage="url(/img/tooltip-reverse.gif)";c=c.nextSibling}break}a=a.nextSibling}};K("toggleSimpleTooltip",L.a.b.O);L.a.b.z=function(a,b){a=
Z(a);if(a){a.disabled=h;if(b)a.onclick=null}};L.a.b.Q=function(a,b){return ua(a,b||30)};K("disableButton",L.a.b.z);K("truncate",L.a.b.Q);
})();



var session_excluded_forms=new Array();
//function populate_session_token()

function loadFlagImgs(el){
showDiv('masthead-region-and-language-picker-box');
showAjaxDivLoggedIn('masthead-region-and-language-picker-box','/masthead_ajax?action_get_region_and_language_picker=1',callback);
}
var gDidSearchBarFocusTest=false;

function isPanelExpanded(panel){
return hasClass(panel,'expanded');
}
function expandPanel(panel){
if(!isPanelExpanded(panel)){
addClass(panel,'expanded');
fireInlineEvent(panel,'expanded');
}
}
function collapsePanel(panel){
if(isPanelExpanded(panel)){
removeClass(panel,'expanded');
fireInlineEvent(panel,'collapsed');
}
}
function togglePanel(panel){
if(isPanelExpanded(panel)){
collapsePanel(panel);
}else{
expandPanel(panel);
}
}
function fireInlineEvent(element,eventName){
var target=ref(element);
if(target[eventName]==null){
var attributeName='on'+eventName.toLowerCase();
var attribute=target.attributes.getNamedItem(attributeName);
if(attribute){
target[eventName]=function(){
eval(attribute.value);
}
}
}
if(target[eventName])target[eventName]();
}
var MooFx={
create:function(){
return function(){
this.initialize.apply(this,arguments);
}
},
extend:function(destination,source){
for(var property in source)destination[property]=source[property];
return destination;
},
bind:function(__method,object){
return function(){
return __method.apply(object,arguments);
}
}
};
MooFx.Base=function(){};
MooFx.Base.prototype={
setOptions:function(options){
this.options=MooFx.extend({
onStart:function(){},
onComplete:function(){},
transition:function(t,b,c,d){return c*(t/=d)*t+b;},
transitionOut:function(t,b,c,d){return-c*(t/=d)*(t-2)+b;},
duration:500,
unit:'px',
wait:true,
fps:50
},options||{});
},


compute:function(from,to){
var change=to-from;
if(change<0){
return this.options.transition(this.cTime,from,change,this.options.duration);
}else{
return this.options.transitionOut(this.cTime,from,change,this.options.duration);
}
},
clearTimer:function(){
clearInterval(this.timer);
this.timer=null;
return this;
},
_start:function(from,to){
if(!this.options.wait)this.clearTimer();
if(this.timer)return;
setTimeout(MooFx.bind(this.options.onStart,this,this.element),10);
this.from=from;
this.to=to;
this.time=new Date().getTime();
this.timer=setInterval(MooFx.bind(this.step,this),Math.round(1000/this.options.fps));
return this;
},
custom:function(from,to){
return this._start(from,to);
},
set:function(to){
this.now=to;
this.increase();
return this;
},
show:function(){
return this.set(1);
},
hide:function(){
return this.set(0);
},
setStyle:function(e,p,v){
if(p=='opacity'){
if(v==0)e.style.visibility="hidden";
else if(e.style.visibility!="visible")e.style.visibility="visible";
if(window.ActiveXObject)e.style.filter="alpha(opacity="+v*100+")";
e.style.opacity=v;
}else e.style[p]=v+this.options.unit;
}
};
MooFx.BasicEffect=MooFx.create();
MooFx.BasicEffect.prototype=MooFx.extend(new MooFx.Base(),{
initialize:function(el,cssProperty,options){
this.element=ref(el);
this.setOptions(options);
this.cssProperty=cssProperty;
},
increase:function(){
this.setStyle(this.element,this.cssProperty,this.now);
}
});
MooFx.Opacity=MooFx.create();
MooFx.Opacity.prototype=MooFx.extend(new MooFx.Base(),{
initialize:function(el,options){
this.element=ref(el);
this.setOptions(options);
this.now=1;
},
toggle:function(){
if(this.now>0)return this.custom(1,0);
else return this.custom(0,1);
},
hide:function(){
return this.set(0);
},
increase:function(){
this.setStyle(this.element,'opacity',this.now);
}
});
var thumbnailDelayLoad=function(){
var htmlElement=document.getElementsByTagName('html')[0];
function isBody(element){
return(/^(?:body|html)$/i).test(element.tagName);
};
function getWindowScrollY(){
var doc=(!document.compatMode||document.compatMode=='CSS1Compat')?htmlElement:document.body;
return window.pageYOffset||doc.scrollTop;
};
function getWindowSizeY(){
if(window.opera||(!window.ActiveXObject&&!navigator.taintEnabled))return window.innerHeight;
var doc=(!document.compatMode||document.compatMode=='CSS1Compat')?htmlElement:document.body;
return doc.clientHeight;
};
function getScrollY(element){
var position=0;
while(element&&!isBody(element)){
position+=element.scrollTop;
element=element.parentNode;
}
return position;
};
function getOffsetY(element){
if(document.documentElement["getBoundingClientRect"]){
var bound=element.getBoundingClientRect(),html=document.documentElement;
return bound.top+html.scrollTop-html.clientTop;
}else{
return 0;
}
};
function getPositionY(element){
if(document.documentElement["getBoundingClientRect"]){
var offsetY=getOffsetY(element),scrollY=getScrollY(element);
return offsetY-scrollY;
}else{
return 0;
}
};
return{
fudgeFactor:175,
loadAllAtOnce:false,
testImage:function(img,windowPositionY){
windowPositionY=windowPositionY||(getWindowScrollY()+getWindowSizeY());

},
loadImages:function(){
var windowPositionY=getWindowScrollY()+getWindowSizeY();
}
};
}();

