/* Copyright  2007 - 2010 YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

function addHover(b,c){if(c==undefined)c="hovered";$$(b).addEvents({mouseenter:function(){this.addClass(c)},mouseleave:function(){this.removeClass(c)}})}function addFocus(b,c){if(c==undefined)c="focused";$$(b).addEvents({focus:function(){this.addClass(c)},blur:function(){this.removeClass(c)}})}
function correctPngInline(){var b=navigator.appVersion.split("MSIE");if(parseFloat(b[1])>=5.5&&document.body.filters){b=document.getElementsByTagName("img");for(var c=/\bcorrect-png\b/,d=0;d<b.length;d++){var a=b[d],f=a.src.toUpperCase();if(f.substring(f.length-3,f.length)=="PNG"&&c.test(a.className)){f=a.id?"id='"+a.id+"' ":"";var g=a.className?"class='"+a.className+"' ":"",h=a.title?"title='"+a.title+"' ":"title='"+a.alt+"' ",e="display:inline-block;"+a.style.cssText;if(a.align=="left")e="float:left;"+
e;if(a.align=="right")e="float:right;"+e;if(a.parentElement.href)e="cursor:hand;"+e;filterSizingMethod="crop";b[d].outerHTML="<span "+f+g+h+' style="width:'+a.width+"px; height:"+a.height+"px;"+e+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a.src+"', sizingMethod='"+filterSizingMethod+"');\"></span>";d-=1}}}}
function correctPngBackground(b,c){var d=c||"scale";$ES(b).each(function(a){if(a.getTag()!="img"&&a.getStyle("background-image").match(/\.png/i)!=null){fnFixPng(a,d);a.attachEvent("onpropertychange",fnPropertyChanged)}})}function fnFixPng(b,c){var d=b.currentStyle.backgroundImage;d=d.substring(5,d.length-2);b.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d+"', sizingMethod='"+c+"')";b.style.backgroundImage="url(x.gif)"}
function fnPropertyChanged(){if(window.event.propertyName=="style.backgroundImage"){var b=window.event.srcElement;if(!b.currentStyle.backgroundImage.match(/x\.gif/i)){var c=b.currentStyle.backgroundImage;c=c.substring(5,c.length-2);b.filters.item(0).src=c;b.style.backgroundImage="url(x.gif)"}}};
