Warning: file_get_contents(/home/eleconomista/js/flowplayer.js) [function.file-get-contents]: failed to open stream: No such file or directory in /home/eleconomista/cache/combine.php on line 121

Warning: Cannot modify header information - headers already sent by (output started at /home/eleconomista/cache/combine.php:121) in /home/eleconomista/cache/combine.php on line 106

Warning: Cannot modify header information - headers already sent by (output started at /home/eleconomista/cache/combine.php:121) in /home/eleconomista/cache/combine.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at /home/eleconomista/cache/combine.php:121) in /home/eleconomista/cache/combine.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/eleconomista/cache/combine.php:121) in /home/eleconomista/cache/combine.php on line 109

Warning: Cannot modify header information - headers already sent by (output started at /home/eleconomista/cache/combine.php:121) in /home/eleconomista/cache/combine.php on line 110
flp_galeria_videos=Class.create();flp_galeria_videos.prototype={initialize:function(A,B,C){this.idModulo=A;this.width=B;this.height=C;this.modo="video";this.flplay=$f("flp_player_"+A,"/vVideos/flowplayer-3.0.7.swf",{clip:{autoBuffering:false,autoPlay:false},plugins:{myContent:{url:"/vVideos/flowplayer.content-3.0.2.swf",stylesheet:"/css3/flowplayer.content.css",padding:0,top:0,left:0,backgroundColor:"#000000",borderRadius:0,height:C,width:B}}});this.flplay.onStart(function(){var D=this.getPlugin("myContent");D.hide()});this.flplay.onLoad(function(){this.inicio()}.bind(this))},inicio:function(){if($("modulo_tipo_"+this.idModulo+"_1").innerHTML=="video"){this.modo="imagen";this.ponerImagen_Video(1)}else{this.modo="video";this.ponerImagen(1)}},ponerImagen:function(D){var A=$("modulo_imagen_"+this.idModulo+"_"+D).src;var C="";var B=this.flplay.getPlugin("myContent");if(this.modo=="video"){this.flplay.getControls().hide();this.flplay.getPlugin("play").hide();B.animate({height:"300",opacity:1})}B.setHtml(C);B.show();this.modo="imagen";$("gal_titulo_"+this.idModulo).update($("modulo_titulo_"+this.idModulo+"_"+D).innerHTML);$("gal_texto_"+this.idModulo).update($("modulo_texto_"+this.idModulo+"_"+D).innerHTML)},ponerImagen_Video:function(D){var A=$("modulo_imagen_"+this.idModulo+"_"+D).src;var C="";var B=this.flplay.getPlugin("myContent");if(this.modo=="imagen"){B.animate({height:this.height-25,opacity:1});this.flplay.getControls().show();this.flplay.getPlugin("play").show()}B.setHtml(C);B.show();this.modo="video";$("gal_titulo_"+this.idModulo).update($("modulo_titulo_"+this.idModulo+"_"+D).innerHTML);$("gal_texto_"+this.idModulo).update($("modulo_texto_"+this.idModulo+"_"+D).innerHTML)},startVideo:function(B){var A=this.flplay.getPlugin("myContent");A.hide();this.flplay.play(B)}};if(typeof Prototype=="undefined"||!Prototype.Version.match("1.6")){throw ("Prototype-UI library require Prototype library >= 1.6.0")}if(Prototype.Browser.WebKit){Prototype.Browser.WebKitVersion=parseFloat(navigator.userAgent.match(/AppleWebKit\/([\d\.\+]*)/)[1]);Prototype.Browser.Safari2=(Prototype.Browser.WebKitVersion<420)}if(Prototype.Browser.IE){Prototype.Browser.IEVersion=parseFloat(navigator.appVersion.split(";")[1].strip().split(" ")[1]);Prototype.Browser.IE6=Prototype.Browser.IEVersion==6;Prototype.Browser.IE7=Prototype.Browser.IEVersion==7}Prototype.falseFunction=function(){return false};Prototype.trueFunction=function(){return true};var UI={Abstract:{},Ajax:{}};Object.extend(Class.Methods,{extend:Object.extend.methodize(),addMethods:Class.Methods.addMethods.wrap(function(B,A){if(!A){return this}if(!A.hasOwnProperty("methodsAdded")){return B(A)}var C=A.methodsAdded;delete A.methodsAdded;B(A);C.call(A,this);A.methodsAdded=C;return this}),addMethod:function(B,C){var A={};A[B]=C;return this.addMethods(A)},method:function(A){return this.prototype[A].valueOf()},classMethod:function(){$A(arguments).flatten().each(function(A){this[A]=(function(){return this[A].apply(this,arguments)}).bind(this.prototype)},this);return this},undefMethod:function(A){this.prototype[A]=undefined;return this},removeMethod:function(A){delete this.prototype[A];return this},aliasMethod:function(A,B){this.prototype[A]=this.prototype[B];return this},aliasMethodChain:function(B,A){A=A.camelcase();this.aliasMethod(B+"Without"+A,B);this.aliasMethod(B,B+"With"+A);return this}});Object.extend(Number.prototype,{snap:function(A){return parseInt(A==1?this:(this/A).floor()*A)}});Object.extend(String.prototype,{camelcase:function(){var A=this.dasherize().camelize();return A.charAt(0).toUpperCase()+A.slice(1)},makeElement:function(){var A=new Element("div");A.innerHTML=this;return A.down()}});Object.extend(Array.prototype,{empty:function(){return !this.length},extractOptions:function(){return this.last().constructor===Object?this.pop():{}},removeAt:function(A){var B=this[A];this.splice(A,1);return B},remove:function(B){var A;while((A=this.indexOf(B))!=-1){this.removeAt(A)}return B},insert:function(B){var A=$A(arguments);A.shift();this.splice.apply(this,[B,0].concat(A));return this}});Element.addMethods({getScrollDimensions:function(A){return{width:A.scrollWidth,height:A.scrollHeight}},getScrollOffset:function(A){return Element._returnOffset(A.scrollLeft,A.scrollTop)},setScrollOffset:function(A,B){A=$(A);if(arguments.length==3){B={left:B,top:arguments[2]}}A.scrollLeft=B.left;A.scrollTop=B.top;return A},getNumStyle:function(A,B){var C=parseFloat($(A).getStyle(B));return isNaN(C)?null:C},appendText:function(A,B){A=$(A);B=String.interpret(B);A.appendChild(document.createTextNode(B));return A}});document.whenReady=function(A){if(document.loaded){A.call(document)}else{document.observe("dom:loaded",A)}};Object.extend(document.viewport,{getScrollOffset:document.viewport.getScrollOffsets,setScrollOffset:function(A){Element.setScrollOffset(Prototype.Browser.WebKit?document.body:document.documentElement,A)},getScrollDimensions:function(){return Element.getScrollDimensions(Prototype.Browser.WebKit?document.body:document.documentElement)}});(function(){UI.Options={methodsAdded:function(B){B.classMethod($w(" setOptions allOptions optionsGetter optionsSetter optionsAccessor "))},setOptions:function(B){if(!this.hasOwnProperty("options")){this.options=this.allOptions()}this.options=Object.extend(this.options,B||{})},allOptions:function(){var C=this.constructor.superclass,B=C&&C.prototype;return(B&&B.allOptions)?Object.extend(B.allOptions(),this.options):Object.clone(this.options)},optionsGetter:function(){A(this,arguments,false)},optionsSetter:function(){A(this,arguments,true)},optionsAccessor:function(){this.optionsGetter.apply(this,arguments);this.optionsSetter.apply(this,arguments)}};function A(C,D,B){D=$A(D).flatten();if(D.empty()){D=Object.keys(C.allOptions())}D.each(function(E){var F=(B?"set":"get")+E.camelcase();C[F]=C[F]||(B?function(G){return this.options[E]=G}:function(){return this.options[E]})})}})();UI.Carousel=Class.create(UI.Options,{options:{direction:"horizontal",previousButton:".previous_button",nextButton:".next_button",container:".container",scrollInc:"auto",disabledButtonSuffix:"_disabled",overButtonSuffix:"_over"},initialize:function(A,B){this.setOptions(B);this.element=$(A);this.id=this.element.id;this.container=this.element.down(this.options.container).firstDescendant();this.elements=this.container.childElements();this.previousButton=this.options.previousButton==false?null:this.element.down(this.options.previousButton);this.nextButton=this.options.nextButton==false?null:this.element.down(this.options.nextButton);this.posAttribute=(this.options.direction=="horizontal"?"left":"top");this.dimAttribute=(this.options.direction=="horizontal"?"width":"height");this.elementSize=this.computeElementSize();this.nbVisible=this.currentSize()/this.elementSize;var C=this.options.scrollInc;if(C=="auto"){C=Math.floor(this.nbVisible)}[this.previousButton,this.nextButton].each(function(E){if(!E){return }var D=(E==this.nextButton?"next_button":"previous_button")+this.options.overButtonSuffix;E.clickHandler=this.scroll.bind(this,(E==this.nextButton?-1:1)*C*this.elementSize);E.observe("click",E.clickHandler).observe("mouseover",function(){E.addClassName(D)}.bind(this)).observe("mouseout",function(){E.removeClassName(D)}.bind(this))},this);this.updateButtons()},destroy:function($super){[this.previousButton,this.nextButton].each(function(A){if(!A){return }A.stopObserving("click",A.clickHandler)},this);this.element.remove();this.fire("destroyed")},fire:function(B,A){A=A||{};A.carousel=this;return this.element.fire("carousel:"+B,A)},observe:function(A,B){this.element.observe("carousel:"+A,B.bind(this));return this},stopObserving:function(A,B){this.element.stopObserving("carousel:"+A,B);return this},checkScroll:function(A,D){if(A>0){A=0}else{var B=this.elements.last().positionedOffset()[this.posAttribute]+this.elementSize;var C=this.currentSize();if(A+Bthis.elements.length||A==this.currentIndex()||isNaN(parseInt(A))){return this}return this.scroll((this.currentIndex()-A)*this.elementSize)},updateButtons:function(){this.updatePreviousButton();this.updateNextButton();return this},updatePreviousButton:function(){var A=this.currentPosition();var B="previous_button"+this.options.disabledButtonSuffix;if(this.previousButton.hasClassName(B)&&A!=0){this.previousButton.removeClassName(B);this.fire("previousButton:enabled")}if(!this.previousButton.hasClassName(B)&&A==0){this.previousButton.addClassName(B);this.fire("previousButton:disabled")}},updateNextButton:function(){var C=this.currentLastPosition();var A=this.currentSize();var B="next_button"+this.options.disabledButtonSuffix;if(this.nextButton.hasClassName(B)&&C!=A){this.nextButton.removeClassName(B);this.fire("nextButton:enabled")}if(!this.nextButton.hasClassName(B)&&C==A){this.nextButton.addClassName(B);this.fire("nextButton:disabled")}},computeElementSize:function(){return this.elements.first().getDimensions()[this.dimAttribute]},currentIndex:function(){return -this.currentPosition()/this.elementSize},currentLastPosition:function(){if(this.container.childElements().empty()){return 0}return this.currentPosition()+this.elements.last().positionedOffset()[this.posAttribute]+this.elementSize},currentPosition:function(){return this.container.getNumStyle(this.posAttribute)},currentSize:function(){return this.container.parentNode.getDimensions()[this.dimAttribute]},updateSize:function(){this.nbVisible=this.currentSize()/this.elementSize;var A=this.options.scrollInc;if(A=="auto"){A=Math.floor(this.nbVisible)}[this.previousButton,this.nextButton].each(function(B){if(!B){return }B.stopObserving("click",B.clickHandler);B.clickHandler=this.scroll.bind(this,(B==this.nextButton?-1:1)*A*this.elementSize);B.observe("click",B.clickHandler)},this);this.checkScroll(this.currentPosition(),true);this.updateButtons().fire("sizeUpdated");return this}});UI.Ajax.Carousel=Class.create(UI.Carousel,{options:{elementSize:-1,url:null},initialize:function($super,A,B){if(!B.url){throw ("url option is required for UI.Ajax.Carousel")}if(!B.elementSize){throw ("elementSize option is required for UI.Ajax.Carousel")}$super(A,B);this.endIndex=0;this.hasMore=true;this.updateHandler=this.update.bind(this);this.updateAndScrollHandler=function(D,E,C){this.update(E,C);this.scroll(D)}.bind(this);this.runRequest.bind(this).defer({parameters:{from:0,to:Math.ceil(this.nbVisible)-1},onSuccess:this.updateHandler})},runRequest:function(A){this.requestRunning=true;new Ajax.Request(this.options.url,Object.extend({method:"GET"},A));this.fire("request:started");return this},scroll:function($super,A){if(this.animating||this.requestRunning){return this}var B=(-A)/this.elementSize;if(this.hasMore&&B>0&&this.currentIndex()+this.nbVisible+B-1>this.endIndex){var D=this.endIndex+1;var C=Math.ceil(D+this.nbVisible-1);this.runRequest({parameters:{from:D,to:C},onSuccess:this.updateAndScrollHandler.curry(A).bind(this)});return this}else{$super(A)}},update:function(B,A){this.requestRunning=false;this.fire("request:ended");if(!A){A=B.responseJSON}this.hasMore=A.more;this.endIndex=Math.max(this.endIndex,A.to);this.elements=this.container.insert({bottom:A.html}).childElements();return this.updateButtons()},computeElementSize:function(){return this.options.elementSize},updateSize:function($super){var B=this.nbVisible;$super();if(Math.floor(this.nbVisible)-Math.floor(B)>=1&&this.hasMore){if(this.currentIndex()+Math.floor(this.nbVisible)>=this.endIndex){var A=Math.floor(this.currentIndex()+Math.floor(this.nbVisible)-this.endIndex);this.runRequest({parameters:{from:this.endIndex+1,to:this.endIndex+A},onSuccess:this.updateHandler})}}return this},updateNextButton:function($super){var C=this.currentLastPosition();var A=this.currentSize();var B="next_button"+this.options.disabledButtonSuffix;if(this.nextButton.hasClassName(B)&&C!=A){this.nextButton.removeClassName(B);this.fire("nextButton:enabled")}if(!this.nextButton.hasClassName(B)&&C==A&&!this.hasMore){this.nextButton.addClassName(B);this.fire("nextButton:disabled")}}});sneaker_UltimosComentarios=Class.create({initialize:function(A){this.id=A;this.div="sneaker-ultimos-comentarios-"+A;this.interval=null;this.intervalName="";this.todoList=new Array();this.doneList=new Array()},addComment:function(A){this.todoList.push(A)},closeComment:function(A){this.doneList.push(A)},checkCommentIsClosed:function(B){for(var A=0;A0){var comment=this.todoList.pop();Effect.SlideDown("sneaker-comentario-"+comment,{duration:1});this.closeComment(comment)}else{var div=this.div+"-wraper";var fncAddComment=this.addComment.bind(this);var fncCheck=this.checkCommentIsClosed.bind(this);var fncResetInterval=this.resetInterval.bind(this);new Ajax.Request("/portada/index.php?ModoAjax="+this.id+"&comentario="+this.doneList[this.doneList.length-1],{onSuccess:function(transport){fncResetInterval(30000);var objJSON=eval("("+transport.responseText+")");objJSON.comentarios.reverse();for(var i=0;i