if(typeof (iventa)=="undefined"){var iventa={};}iventa.events={};iventa.events.addOnLoad=function(_1){var _2=window.onload;if(typeof window.onload!="function"){window.onload=_1;}else{window.onload=function(){if(_2){_2();}_1();};}};iventa.events.addEvent=function(_3,_4,fn){if(!_3||!_4||!fn){throw ("iventa.events.addEvent called with wrong parameters. Parameters were: obj = "+_3+", type = "+_4+", fn = "+fn);}if(_3.attachEvent){_3["e"+_4+fn]=fn;_3[_4+fn]=function(){_3["e"+_4+fn](window.event);};_3.attachEvent("on"+_4,_3[_4+fn]);}else{_3.addEventListener(_4,fn,false);}};iventa.events.removeEvent=function(_6,_7,fn){if(!_6||!_7||!fn){throw ("iventa.events.removeEvent called with wrong parameters. Parameters were: obj = "+_6+", type = "+_7+", fn = "+fn);}if(_6.detachEvent){_6.detachEvent("on"+_7,_6[_7+fn]);_6[_7+fn]=null;}else{_6.removeEventListener(_7,fn,false);}};var IventaImagesManager=function(){this.fixBgPngs=function(){var _9=navigator.appVersion.match(/MSIE (\d+\.\d+)/,"");var _a=(_9!=null&&Number(_9[1])>=5.5);for(var i=document.all.length-1,obj=null;(obj=document.all[i]);i--){if(_a&&obj.currentStyle.backgroundImage.match(/\.png/i)!=null){fnFixPng(obj);obj.attachEvent("onpropertychange",fnPropertyChanged);}}};function fnPropertyChanged(){if(window.event.propertyName=="style.backgroundImage"){var el=window.event.srcElement;if(!el.currentStyle.backgroundImage.match(/x\.gif/i)){var bg=el.currentStyle.backgroundImage;var _e=bg.substring(5,bg.length-2);el.filters.item(0).src=_e;el.style.backgroundImage="url(x.gif)";}}}function fnFixPng(_f){var bg=_f.currentStyle.backgroundImage;var src=bg.substring(5,bg.length-2);_f.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+src+"', sizingMethod='scale')";_f.style.backgroundImage="url(x.gif)";}};iventa.images=new IventaImagesManager();iventa.dom={};iventa.dom.addClass=function(_12,_13){if(!_12){throw ("iventa.dom.addClass was called for an element that is not specified or does not exist. className specified is "+_13);}if(!iventa.dom.hasClass(_12,_13)){if(_12.className){_12.className+=" "+_13;}else{_12.className=_13;}}};iventa.dom.removeClass=function(_14,_15){if(!_14){throw ("iventa.dom.removeClass was called for an element that is not specified or does not exist. className specified is "+_15);}var _16=new RegExp("(^|\\s)"+_15+"(\\s|$)");_14.className=_14.className.replace(_16,"$2");};iventa.dom.hasClass=function(_17,_18){if(!_17){throw ("iventa.dom.hasClass was called for an element that is not specified or does not exist. className specified is "+_18);}var _19=new RegExp("(^|\\s)"+_18+"(\\s|$)");return _19.test(_17.className);};iventa.dom.hasAttribute=function(_1a,_1b){if(!_1a){throw ("iventa.dom.hasAttribute was called for an element that is not specified or does not exist. attributeName specified is "+className);}if(_1a.attributes[_1b]){return (true);}else{return (false);}};iventa.dom.createElem=function(_1c,_1d){if(!document.createElement){return false;}if(typeof _1d!="object"){return false;}try{_1c=document.createElement(_1c);for(property in _1d){if(property=="content"){if(typeof _1d.content=="object"){if(_1d.content.length){for(var i=0;i<_1d.content.length;i++){var _1f=_1d.content[i];if(typeof _1f=="string"){_1c.appendChild(document.createTextNode(_1f));}else{if(typeof _1f=="object"){_1c.appendChild(_1f);}}}}else{_1c.appendChild(_1d.content);}}else{_1c.appendChild(document.createTextNode(_1d.content));}}else{if(property=="cssClass"){if(typeof _1d.cssClass=="object"){for(var j=0;j<_1d.cssClass.length;j++){var _21=_1d.cssClass[j];addClass(_1c,_21);}}else{addClass(_1c,_1d.cssClass);}}else{_1c.setAttribute(property,_1d[property]);}}}return (_1c);}catch(e){var _22="iventa.dom.createElem was called with incorrect parameters. The element to be created is "+_1c+" and the rest of the options were: ";for(key in _1d){_22+=key+" = "+_1d[key]+", ";}_22+=" and the browser error message was "+e.msg;throw (_22);}};iventa.dom.insertAfter=function(_23,_24){if(!_23||!_24){throw ("iventa.dom.insertAfter called with incorrect parameters.");}var _25=_24.parentNode;if(_25.lastChild==_24){_25.appendChild(_23);}else{_25.insertBefore(_23,_24.nextSibling);}};iventa.dom.removeChildren=function(_26){if(!_26){throw ("iventa.dom.removeChildren called for a node that doesn't exist.");}while(_26.firstChild){_26.removeChild(_26.firstChild);}};iventa.dom.showElement=function(_27){if(!_27){throw ("iventa.dom.showElement called for an element that doesn't exist");}_27.style.display="";};iventa.dom.hideElement=function(_28){if(!_28){throw ("iventa.dom.hideElement called for an element that doesn't exist");}_28.style.display="none";};if(document.all){iventa.events.addOnLoad(iventa.images.fixBgPngs);}
