if(typeof IEPNGFIX=="undefined"){var IEPNGFIX={blank:"/image/iepngfix.gif",filter:"DXImageTransform.Microsoft.AlphaImageLoader",fixit:function(b,c,d){if(b.filters[this.filter]){var a=b.filters[this.filter];a.enabled=true;a.src=c;a.sizingMethod=d}else{b.style.filter="progid:"+this.filter+'(src="'+c+'",sizingMethod="'+d+'")'}},fixwidth:function(a){if(a.currentStyle.width=="auto"&&a.currentStyle.height=="auto"){a.style.width=a.offsetWidth+"px"}},fixchild:function(d,a){if(!/MSIE (5\.5|6\.)/.test(navigator.userAgent)){return}for(var c=0,e=d.childNodes.length;c<e;c++){var b=d.childNodes[c];if(b.style){if(b.style.position){b.style.position=b.style.position}else{b.style.position="relative"}}if(a&&b.hasChildNodes()){this.fixchild(b,a)}}},fix:function(c){if(!/MSIE (5\.5|6\.)/.test(navigator.userAgent)){return}var a=c.currentStyle.backgroundImage||c.style.backgroundImage;if(c.tagName=="IMG"){this.fixwidth(c);this.fixit(c,c.src,"scale");c.src=this.blank;c.runtimeStyle.behavior="none"}else{if(a&&a!="none"){if(a.match(/^url[("']+(.*\.png)[)"']+$/i)){var b=RegExp.$1;this.fixwidth(c);c.style.backgroundImage="none";this.fixit(c,b,"scale");if(c.tagName=="A"&&c.style){if(!c.style.cursor){c.style.cursor="pointer"}}this.fixchild(c);c.runtimeStyle.behavior="none"}}}},hover:function(c,b){var a=c.style.backgroundImage;if(!a&&c.currentStyle){a=c.currentStyle.backgroundImage}if(c.tagName=="IMG"&&b){var d=c.src;c.onmouseover=function(){c.src=b;IEPNGFIX.fix(c)};c.onmouseout=function(){c.src=d;IEPNGFIX.fix(c)}}else{if(a&&a!="none"&&b){c.onmouseover=function(){c.style.backgroundImage="url("+b+")";IEPNGFIX.fix(c)};c.onmouseout=function(){c.style.backgroundImage=a;IEPNGFIX.fix(c)}}}IEPNGFIX.fix(c)}}}function hilightNotification(){if(document.URL.match(/#_(\w+)$/)){var a=$(RegExp.$1);if(a){hilightNotificationElement(a)}}}function hilightNotificationElement(a){$(document.body).select(".notify").each(Element.hide);a.show();(function(){dimElement(a,Element.hide)}).delay(10)}function redirectBySuccess(b,a){return function(){window.location.href=b;if(!a){window.location.reload(true)}}}function showErrors(b,a){$(document.body).select(".notify").each(Element.hide);$(document.body).select(".error").each(Element.hide);$A(b).each(function(d){var c=$("e_"+d.sub(/^error\./,""));if(c){c.show()}else{error([d])}});if(a){$(a).contentWindow.location.href="/resource/empty.html"}}function flashElement(b){var a=["#ffff99","#ffffaa","#ffffbb","#ffffcc","#ffffdd","#ffffee","#ffffff"];var d=0;var c=function(){b.setStyle({backgroundColor:a[d]});++d;if(d<a.length){c.delay(0.1)}};c()}function removeElementWithEffect(a){a.addClassName("removeEffect");dimElement(a,Element.remove)}function dimElement(b,a){var d=1;var c=function(){d-=0.1;b.setOpacity(d);if(d>0){c.delay(0.1)}else{b.setOpacity(1);a(b)}};c()}function selectItem(b,a,c){if(b.hasClassName("selected")){return}b.up(".selector").select("li").each(function(d){d.removeClassName("selected")});b.addClassName("selected");$(document.documentElement).select("."+a).each(Element.hide);$(c).show()}function error(a){showErrorDialog(a)}function createLikeButton(b){var c="facebook-jssdk";if(document.getElementById(c)){return}var a=document.createElement("script");a.id=c;a.src="//connect.facebook.net/"+getLocale()+"/all.js#xfbml=1&appId="+b;document.body.appendChild(a)};