fx.Scroll=Class.create();fx.Scroll.prototype=Object.extend(new fx.Base(),{initialize:function(_1){this.setOptions(_1);},scrollTo:function(el){var _3=Position.cumulativeOffset($(el))[1];var _4=window.innerHeight||document.documentElement.clientHeight;var _5=document.documentElement.scrollHeight;var _6=window.pageYOffset||document.body.scrollTop||document.documentElement.scrollTop;if(_3+_4>_5){this.custom(_6,_3-_4+(_5-_3));}else{this.custom(_6,_3);}},increase:function(){window.scrollTo(0,this.now);}});fx.Alert=Class.create();fx.Alert.prototype=Object.extend(new fx.Base(),{setOptions:function(_7){this.options={opacity:true,height:false,width:false,offsetX:10,offsetY:20,boxWidth:"lite",alertTitle:"",duration:400,waitTime:9200,onClick:true,onMouseOver:false,onMouseOut:false};Object.extend(this.options,_7||{});},initialize:function(_8){this.setOptions(_8);el=this.buildAlert("No content yet.");var _9=this;this.options.onComplete=function(){switch(el.fxStatus){case "shown":case "toShow":el.style.visibility="visible";el.fxStatus="shown";if(_9.options.waitTime!="none"){setTimeout(function(){_9.hideAlert();}.bind(this),_9.options.waitTime);}break;case "hidden":case "toHide":default:el.style.visibility="hidden";el.fxStatus="hidden";break;}if(document.all){var _a=$("ieComboFixTooltip");if(el.style.visibility!="visible"){_a.style.display="none";}else{_a.style.display="inline";}}};el.fx=new fx.Combo(el,this.options);el.style.visibility="hidden";el.fxStatus="hidden";el.fx.hide();if(document.all){new Insertion.After("alertContainer42","<IFRAME src=\"images/tool/blank.html\" id=\"ieComboFixTooltip\" class=\"ieComboFixTooltip\" />");}preloadImages("/sivuelasV2/images/tool/top-a.jpg;/sivuelasV2/images/tool/top-b.jpg;/sivuelasV2/images/tool/top-c.jpg;/sivuelasV2/images/tool/topArrow-a.gif;/sivuelasV2/images/tool/topArrow-b.gif;/sivuelasV2/images/tool/topArrow-c.gif;/sivuelasV2/images/tool/center-a.jpg;/sivuelasV2/images/tool/center-b.jpg;/sivuelasV2/images/tool/center-c.jpg;/sivuelasV2/images/tool/bottom-a.jpg;/sivuelasV2/images/tool/bottom-b.jpg;/sivuelasV2/images/tool/bottom-c.jpg");},buildAlert:function(_b,_c){var el=$("alertContainer42");var _e="tooltip-a";var _f="superior";var _10="inferior";var _11=193;switch(_c){case "top":_f="superior";_10="inferiorArrow";break;case "bottom":_f="superiorArrow";_10="inferior";break;default:_f="superior";_10="inferior";break;}switch(this.options.boxWidth){case "big":cssStyleWidth="tooltip-c";_11=477;break;case "middle":cssStyleWidth="tooltip-b";_11=293;break;case "lite":default:cssStyleWidth="tooltip-a";_11=193;break;}tBox="<div id=\"alertContent42\" class=\""+cssStyleWidth+"\" style=\"width: "+_11.toString()+"px;\">"+" <div id=\""+_f+"\"></div>"+" <div id=\"center\">"+"  <div class=\"textos\">";if(this.options.alertTitle){tBox+="   <h4>"+this.options.alertTitle+"</h4>";}tBox+="   <p>"+_b+"</p>"+"  </div>"+"  </div>"+" <div id=\""+_10+"\"></div>"+"</div>";if(!el){el=document.createElement("DIV");el.id="alertContainer42";el.className="ieOverComboTooltip";document.body.appendChild(el);}el.innerHTML=tBox;return el;},getConfirm:function(){return $("alertConatiner42").estado;},showConfirm:function(_12,tog,_14){el=$("alertContainer42");confirmHTML="<br/><input INPUT type=\"button\" value=\"SI\" id=\"confirmYES\" />"+"&nbsp;<input INPUT type=\"button\" value=\"NO\" id=\"confirmNO\" />";_12=_12+confirmHTML;this.showAlert(_12,tog,_14);Event.observe("confirmYES","click",function(_15){$("alertContainer42").estado=true;confirmCallback(true);});Event.observe("confirmNO","click",function(_16){$("alertContainer42").estado=false;confirmCallback(false);});},showAlert:function(_17,tog,_19){el=$("alertContainer42");if(typeof (tog)=="object"){_19=tog;tog=null;}if(_19){this.setOptions(_19);}var _1a=new Array(300,300);var _1b=getScrollOffset();var _1c=getInnerSize();var _1d=7;var _1e="none";if((tog)&&(tog!=null)){tog=$(tog);tog.focus();_1a=Position.cumulativeOffset(tog);if(_1a[1]-_1b[1]>_1c[1]/2){this.buildAlert(_17,"top");_1a[0]=_1a[0]+this.options.offsetX;_1a[1]=_1a[1]-this.options.offsetY-Element.getHeight("alertContent42");_1e="bottom";}else{this.buildAlert(_17,"bottom");_1a[0]=_1a[0]-this.options.offsetX;_1a[1]=_1a[1]-this.options.offsetY+tog.offsetHeight;_1e="top";}}else{this.buildAlert(_17);var _1f=new Array((_1c[0]/2)-($("alertContent42").offsetWidth/2),(_1c[1]/2)-Element.getHeight("alertContent42"));_1a=new Array(_1f[0]+_1b[0],_1f[1]+_1b[1]);_1e="none";}el.fx.clearTimer();el.fxStatus="toShow";el.style.left=_1a[0]+"px";el.style.top=_1a[1]+"px";if(el.style.visibility!="visible"){el.style.visibility="visible";el.fxStatus="toShow";if(document.all){var _20=$("ieComboFixTooltip");_20.style.display="inline";posE=$("alertContent42");switch(_1e){case "top":_20.style.left=(_1a[0]+20)+"px";_20.style.top=(_1a[1]+20+_1d)+"px";_20.style.width=(posE.offsetWidth)+"px";_20.style.height=(posE.offsetHeight-_1d*2)+"px";break;case "bottom":_20.style.left=(_1a[0]+20)+"px";_20.style.top=(_1a[1]+20)+"px";_20.style.width=(posE.offsetWidth)+"px";_20.style.height=(posE.offsetHeight-_1d)+"px";break;case "none":default:_20.style.left=(parseFloat(_1a[0])+20)+"px";_20.style.top=(parseFloat(_1a[1])+20)+"px";_20.style.width=(posE.offsetWidth)+"px";_20.style.height=(posE.offsetHeight-_1d)+"px";break;}}if(this.options.onClick){el.onclick=function(){this.hideAlert();}.bind(this);}el.fx.toggle();}},hideAlert:function(){el=$("alertContainer42");el.fxStatus="toHide";if(el.style.visibility!="hidden"){el.style.visibility="visible";el.fx.toggle();}},toggleAlert:function(_21,tog,_23){el=$("alertContainer42");if(el.style.visibility!="visible"){this.showAlert(_21,tog);}else{this.hideAlert();}},toggleConfirm:function(_24,tog,_26){el=$("alertContainer42");if(el.style.visibility!="visible"){this.showConfirm(_24,tog);}else{this.hideAlert();}}});fx.Combo=Class.create();fx.Combo.prototype={setOptions:function(_27){this.options={opacity:true,height:true,width:false};Object.extend(this.options,_27||{});},initialize:function(el,_29){this.el=$(el);this.setOptions(_29);if(this.options.opacity){this.el.o=new fx.Opacity(el,_29);_29.onComplete=null;}if(this.options.height){this.el.h=new fx.Height(el,_29);_29.onComplete=null;}if(this.options.width){this.el.w=new fx.Width(el,_29);}},toggle:function(){this.checkExec("toggle");},hide:function(){this.checkExec("hide");},clearTimer:function(){this.checkExec("clearTimer");},checkExec:function(_2a){if(this.el.o){this.el.o[_2a]();}if(this.el.h){this.el.h[_2a]();}if(this.el.w){this.el.w[_2a]();}},resizeTo:function(hto,wto){if(this.el.h&&this.el.w){this.h.custom(this.el.offsetHeight,this.el.offsetHeight+hto);this.w.custom(this.el.offsetWidth,this.el.offsetWidth+wto);}},customSize:function(hto,wto){if(this.el.h&&this.el.w){this.h.custom(this.el.offsetHeight,hto);this.w.custom(this.el.offsetWidth,wto);}}};fx.Showtime=Class.create();fx.Showtime.prototype={setOptions:function(_2f){this.options={delay:100,opacity:true};Object.extend(this.options,_2f||{});},initialize:function(_30,_31,_32){this.elements=_31;this.setOptions(_32);_31.each(function(el,i){el.fx=new fx.Height(el,_32);el.style.display="block";});_30.each(function(tog,i){tog.onclick=function(){this.toggleItem(_31[i]);}.bind(this);}.bind(this));},hideAll:function(_37,_38){this.elements.each(function(el,i){el.fx=new fx.Height(el,_38);el.fx.setHide();});},showAll:function(_3b,_3c){this.elements.each(function(el,i){el.fx=new fx.Height(el,_3c);el.fx.setShow();});},toggleAll:function(_3f,_40){this.elements.each(function(el,i){el.fx=new fx.Height(el,_40);el.fx.toggle();});},toggleItem:function(el){el.fx.toggle();}};var Remember=new Object();Remember=function(){};Remember.prototype={initialize:function(el,_45){this.el=$(el);this.days=365;this.options=_45;this.effect();var _46=this.readCookie();if(_46){this.fx.now=_46;this.fx.increase();}},setCookie:function(_47){var _48=new Date();_48.setTime(_48.getTime()+(this.days*24*60*60*1000));var _49="; expires="+_48.toGMTString();document.cookie=this.el+this.el.id+this.prefix+"="+_47+_49+"; path=/";},readCookie:function(){var _4a=this.el+this.el.id+this.prefix+"=";var ca=document.cookie.split(";");for(var i=0;c=ca[i];i++){while(c.charAt(0)==" "){c=c.substring(1,c.length);}if(c.indexOf(_4a)==0){return c.substring(_4a.length,c.length);}}return false;},custom:function(_4d,to){if(this.fx.now!=to){this.setCookie(to);this.fx.custom(_4d,to);}}};fx.RememberHeight=Class.create();fx.RememberHeight.prototype=Object.extend(new Remember(),{effect:function(){this.fx=new fx.Height(this.el,this.options);this.prefix="height";},toggle:function(){this.fx.toggle();},resize:function(to){this.fx.custom(this.el.offsetHeight,this.el.offsetHeight+to);},hide:function(){if(!this.readCookie()){this.fx.hide();}},setHide:function(){if(this.el.offsetHeight!=0){this.fx.toggle();}},setShow:function(){if(this.el.offsetHeight==0){this.fx.toggle();}}});fx.expoIn=function(pos){return Math.pow(2,10*(pos-1));};fx.expoOut=function(pos){return (-Math.pow(2,-10*pos)+1);};fx.quadIn=function(pos){return Math.pow(pos,2);};fx.quadOut=function(pos){return -(pos)*(pos-2);};fx.circOut=function(pos){return Math.sqrt(1-Math.pow(pos-1,2));};fx.circIn=function(pos){return -(Math.sqrt(1-Math.pow(pos,2))-1);};fx.backIn=function(pos){return (pos)*pos*((2.7)*pos-1.7);};fx.backOut=function(pos){return ((pos-1)*(pos-1)*((2.7)*(pos-1)+1.7)+1);};fx.sineOut=function(pos){return Math.sin(pos*(Math.PI/2));};fx.sineIn=function(pos){return -Math.cos(pos*(Math.PI/2))+1;};fx.sineInOut=function(pos){return -(Math.cos(Math.PI*pos)-1)/2;};function getScrollOffset(){var _5b;if(self.pageYOffset){_5b=self.pageYOffset;}else{if(document.documentElement&&document.documentElement.scrollTop){_5b=document.documentElement.scrollTop;}else{if(document.body){_5b=document.body.scrollTop;}}}arrayPageScroll=new Array("",_5b);return arrayPageScroll;}function getInnerSize(){var _5c,yInner;if(self.innerHeight){_5c=self.innerWidth;yInner=self.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){_5c=document.documentElement.clientWidth;yInner=document.documentElement.clientHeight;}else{if(document.body){_5c=document.body.clientWidth;yInner=document.body.clientHeight;}}}arrayPageInner=new Array(_5c,yInner);return arrayPageInner;}function isArray(obj){if(obj.constructor.toString().indexOf("Array")==-1){return false;}else{return true;}}function preloadImages(_5e){if(!_5e){if(document.images){for(var i=0;i<preloadImages.arguments.length;i++){(new Image()).src=preloadImages.arguments[i];}}}else{tImages=_5e.split(";");for(var i=0;i<tImages.length;i++){(new Image()).src=tImages[i];}}}Event.observe(window,"load",initAlerts,false);function initAlerts(){eAlert=new fx.Alert({offsetX:10,offsetY:20,boxWidth:"lite",alertTitle:"",waitTime:4200,duration:400,onClick:true});}