
function ventana(url, titulo, tam) {Mediabox.open(url, titulo, tam);}
function ventana_close() {Mediabox.close();}


//SWFOBJECT 1.5
	if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexOf("="))==_2b){return _2d[i].substring((_2d[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2f=document.getElementsByTagName("OBJECT");for(var i=_2f.length-1;i>=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

// MEDIABOX
var Mediabox;(function(){var N=0,s,h,E,y,D,k,q,n,r=new Image(),L=new Image(),I,b,j,F,c,K,w,B,J,M,e,v,G,x,p,t,l,i="none",f,d="mediaBox",u;window.addEvent("domready",function(){$(document.body).adopt($$([I=new Element("div",{id:"mbOverlay"}).addEvent("click",C),b=new Element("div",{id:"mbCenter"}),F=new Element("div",{id:"mbBottomContainer"})]).setStyle("display","none"));j=new Element("div",{id:"mbImage"}).injectInside(b);c=new Element("div",{id:"mbBottom"}).injectInside(F).adopt(new Element("div",{id:"texto_overlay"}).adopt(w=new Element("div",{id:"mbTitle"}),M=new Element("div",{id:"mbNumber"}),B=new Element("div",{id:"mbCaption"})),new Element("div",{id:"botones_overlay"}).adopt(cerrar=new Element("a",{id:"mbCloseLink",href:"#"}).addEvent("click",C),e=new Element("a",{id:"mbNextLink",href:"#"}).addEvent("click",g),J=new Element("a",{id:"mbPrevLink",href:"#"}).addEvent("click",z)),new Element("div",{styles:{clear:"both"}}));q={overlay:new Fx.Tween(I,{property:"opacity",duration:360}).set(0),image:new Fx.Tween(j,{property:"opacity",duration:360,onComplete:H}),bottom:new Fx.Tween(c,{property:"margin-top",duration:240})}});Mediabox={close:function(){C()},open:function(Q,P,O){s=$extend({loop:false,stopKey:true,overlayOpacity:0.7,resizeDuration:240,resizeTransition:false,initialWidth:360,initialHeight:240,showCaption:true,animateCaption:true,showCounter:true,counterText:"",scriptaccess:"true",fullscreen:"true",fullscreenNum:"1",autoplay:"true",autoplayNum:"1",bgcolor:"#000000",playerpath:"../js/player.swf",backcolor:"000000",frontcolor:"999999",lightcolor:"000000",screencolor:"000000",controlbar:"over",useNB:true,NBpath:"../js/NonverBlaster.swf",controllerColor:"0x777777",showTimecode:"false",flInfo:"true",revverID:"187866",revverFullscreen:"true",revverBack:"000000",revverFront:"ffffff",revverGrad:"000000",ytColor1:"000000",ytColor2:"333333",ytQuality:"&ap=%2526fmt%3D18",vdPlayer:"false",vmTitle:"1",vmByline:"1",vmPortrait:"1",vmColor:"ffffff"},O||{});if(typeof Q=="string"){Q=[[Q,P,O]];P=0}if((Browser.Engine.gecko)&&(Browser.Engine.version<19)){s.overlayOpacity=1;I.className="mbOverlayFF"}h=Q;s.loop=s.loop&&(h.length>1);A();m(true);k=window.getScrollTop()+(window.getHeight()/15);q.resize=new Fx.Morph(b,$extend({duration:s.resizeDuration,onComplete:H},s.resizeTransition?{transition:s.resizeTransition}:{}));b.setStyles({top:k,width:s.initialWidth,height:s.initialHeight,marginLeft:-(s.initialWidth/2),display:""});q.overlay.start(s.overlayOpacity);N=1;return a(P)}};Element.implement({mediabox:function(O,P){$$(this).mediabox(O,P);return this}});Elements.implement({mediabox:function(O,R,Q){R=R||function(S){p=S.rel.split(/[\[\]]/);p=p[1];return[S.href,S.title,p]};Q=Q||function(){return true};var P=this;P.removeEvents("click").addEvent("click",function(){var T=P.filter(Q,this);var U=[];var S=[];T.each(function(W,V){if(S.indexOf(W.toString())<0){U.include(T[V]);S.include(T[V].toString())}});return Mediabox.open(U.map(R),S.indexOf(this.toString()),O)});return P}});function A(){I.setStyles({top:window.getScrollTop(),height:window.getHeight()})}function m(O){["object",window.ie?"select":"embed"].forEach(function(Q){Array.forEach(document.getElementsByTagName(Q),function(R){if(O){R._mediabox=R.style.visibility}R.style.visibility=O?"hidden":R._mediabox})});I.style.display=O?"":"none";var P=O?"addEvent":"removeEvent";window[P]("scroll",A)[P]("resize",A);document[P]("keydown",o)}function o(O){switch(O.code){case 27:case 88:case 67:C();break;case 37:case 80:z();break;case 39:case 78:g()}if(s.stopKey){return false}}function z(){return a(y)}function g(){return a(D)}function a(O){if((N==1)&&(O>=0)){N=2;j.set("html","");E=O;y=((E||!s.loop)?E:h.length)-1;D=E+1;if(D==h.length){D=s.loop?0:-1}$$(J,e,j,F).setStyle("display","none");q.bottom.cancel().set(0);q.image.set(0);b.className="mbLoading";G=h[O][2].split(" ");x=G.length;if(x>1){t=(G[x-2].match("%"))?(window.getWidth()*("0."+(G[x-2].replace("%",""))))+"px":G[x-2]+"px";l=(G[x-1].match("%"))?(window.getHeight()*("0."+(G[x-1].replace("%",""))))+"px":G[x-1]+"px"}else{t="";l=""}v=h[O][0];K=h[E][1].split("::");if(v.match(/\.gif|\.jpg|\.png/i)){i="img";n=new Image();n.onload=H;n.src=h[O][0]}else{if(v.match(/\.flv|\.mp4/i)){i="obj";t=t||s.initialWidth;l=l||s.initialHeight;if(s.useNB){n=new Swiff(""+s.NBpath+"?videoURL="+v+"&allowSmoothing=true&autoPlay="+s.autoplay+"&buffer=6&showTimecode="+s.showTimecode+"&loop=true&controlColour="+s.controllerColor+"&scaleIfFullScreen=true&showScalingButton=false",{id:"MediaboxSWF",width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}})}else{n=new Swiff(""+s.playerpath+"?file="+v+"&backcolor="+s.backcolor+"&frontcolor="+s.frontcolor+"&lightcolor="+s.lightcolor+"&screencolor="+s.screencolor+"&autostart="+s.autoplay+"&controlbar="+s.controlbar,{id:"MediaboxSWF",width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}})}H()}else{if(v.match(/\.mp3|\.aac/i)){i="obj";t=t||s.initialWidth;l=l||s.initialHeight;n=new Swiff(""+s.playerpath+"?file="+v+"&backcolor="+s.backcolor+"&frontcolor="+s.frontcolor+"&lightcolor="+s.lightcolor+"&screencolor="+s.screencolor+"&autostart="+s.autoplay,{id:"MediaboxSWF",width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/\.swf/i)){i="obj";t=t||s.initialWidth;l=l||s.initialHeight;n=new Swiff(v,{id:"MediaboxSWF",width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/blip\.tv/i)){i="obj";t=t||"640px";l=l||"390px";n=new Swiff(v,{src:v,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/dailymotion\.com/i)){i="obj";t=t||"480px";l=l||"381px";n=new Swiff(v,{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/flickr\.com/i)){i="obj";t=t||"500px";l=l||"375px";f=v.split("/");d=f[5];n=new Swiff("http://www.flickr.com/apps/video/stewart.swf",{id:d,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:t,height:l,params:{flashvars:"photo_id="+d+"&amp;show_info_box="+s.flInfo,wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/google\.com\/videoplay/i)){i="obj";t=t||"400px";l=l||"326px";f=v.split("=");d=f[1];n=new Swiff("http://video.google.com/googleplayer.swf?docId="+d+"&autoplay="+s.autoplayNum,{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/metacafe\.com\/watch/i)){i="obj";t=t||"400px";l=l||"345px";f=v.split("/");d=f[4];n=new Swiff("http://www.metacafe.com/fplayer/"+d+"/.swf",{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/myspacetv\.com|vids\.myspace\.com/i)){i="obj";t=t||"425px";l=l||"360px";f=v.split("=");d=f[2];n=new Swiff("http://lads.myspace.com/videos/vplayer.swf?m="+d+"&v=2&type=video",{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/revver\.com/i)){i="obj";t=t||"480px";l=l||"392px";f=v.split("/");d=f[4];n=new Swiff("http://flash.revver.com/player/1.0/player.swf?mediaId="+d+"&affiliateId="+s.revverID+"&allowFullScreen="+s.revverFullscreen+"&backColor=#"+s.revverBack+"&frontColor=#"+s.revverFront+"&gradColor=#"+s.revverGrad+"&shareUrl=revver",{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/rutube\.ru/i)){i="obj";t=t||"470px";l=l||"353px";f=v.split("=");d=f[1];n=new Swiff("http://video.rutube.ru/"+d,{movie:"http://video.rutube.ru/"+d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/seesmic\.com/i)){i="obj";t=t||"435px";l=l||"355px";f=v.split("/");d=f[5];n=new Swiff("http://seesmic.com/Standalone.swf?video="+d,{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/tudou\.com/i)){i="obj";t=t||"400px";l=l||"340px";f=v.split("/");d=f[5];n=new Swiff("http://www.tudou.com/v/"+d,{width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/youku\.com/i)){i="obj";t=t||"480px";l=l||"400px";f=v.split("id_");d=f[1];n=new Swiff("http://player.youku.com/player.php/sid/"+d+"=/v.swf",{width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/youtube\.com/i)){i="obj";f=v.split("v=");d=f[1];if(d.match(/fmt=18/i)){u="&ap=%2526fmt%3D18";t=t||"560px";l=l||"345px"}else{if(d.match(/fmt=22/i)){u="&ap=%2526fmt%3D22";t=t||"640px";l=l||"385px"}else{u=s.ytQuality;t=t||"480px";l=l||"295px"}}n=new Swiff("http://www.youtube.com/v/"+d+"&autoplay="+s.autoplayNum+"&fs="+s.fullscreenNum+u+"&color1=0x"+s.ytColor1+"&color2=0x"+s.ytColor2,{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/veoh\.com/i)){i="obj";t=t||"410px";l=l||"341px";f=v.split("videos/");d=f[1];n=new Swiff("http://www.veoh.com/videodetails2.swf?permalinkId="+d+"&player=videodetailsembedded&videoAutoPlay="+s.AutoplayNum,{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/viddler\.com/i)){i="obj";t=t||"437px";l=l||"370px";f=v.split("/");d=f[4];n=new Swiff(v,{id:"viddler_"+d,movie:v,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen,id:"viddler_"+d,movie:v}});H()}else{if(v.match(/vimeo\.com/i)){i="obj";t=t||"400px";l=l||"225px";f=v.split("/");d=f[3];n=new Swiff("http://www.vimeo.com/moogaloop.swf?clip_id="+d+"&amp;server=www.vimeo.com&amp;fullscreen="+s.fullscreenNum+"&amp;show_title="+s.vmTitle+"&amp;show_byline="+s.vmByline+"&amp;show_portrait="+s.vmPortrait+"&amp;color="+s.vmColor,{id:d,width:t,height:l,params:{wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/12seconds\.tv/i)){i="obj";t=t||"430px";l=l||"360px";f=v.split("/");d=f[5];n=new Swiff("http://embed.12seconds.tv/players/remotePlayer.swf",{id:d,width:t,height:l,params:{flashvars:"vid="+d+"",wmode:"opaque",bgcolor:s.bgcolor,allowscriptaccess:s.scriptaccess,allowfullscreen:s.fullscreen}});H()}else{if(v.match(/\#mb_/i)){i="inline";t=t||s.initialWidth;l=l||s.initialHeight;URLsplit=v.split("#");n=$(URLsplit[1]).get("html");H()}else{i="url";t=t||s.initialWidth;l=l||s.initialHeight;d="mediaId_"+new Date().getTime();n=new Element("iframe",{src:v,id:d,width:t,height:l,frameborder:0});H()}}}}}}}}}}}}}}}}}}}}}}return false}function H(){switch(N++){case 2:if(i=="img"){t=n.width;l=n.height;j.setStyles({backgroundImage:"url("+v+")",display:""})}else{if(i=="obj"){if(Browser.Plugins.Flash.version<8){j.setStyles({backgroundImage:"none",display:""});j.set("html",'<div id="mbError"><b>Error</b><br/>Adobe Flash is either not installed or not up to date,<br/>please visit <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" title="Get Flash" target="_new">Adobe.com</a> to download the free player.</div>')}else{j.setStyles({backgroundImage:"none",display:""});n.inject(j)}}else{if(i=="inline"){j.setStyles({backgroundImage:"none",display:""});j.set("html",n)}else{if(i=="url"){j.setStyles({backgroundImage:"none",display:""});n.inject(j)}else{alert("this file type is not supported\n"+v+"\nplease visit iaian7.com/webcode/Mediabox for more information")}}}}$$(j,c).setStyle("width",t);j.setStyle("height",l);w.set("html",(s.showCaption)?K[0]:"");B.set("html",(s.showCaption&&(K.length>1))?K[1]:"");M.set("html",(s.showCounter&&(h.length>1))?s.counterText.replace(/{x}/,E+1).replace(/{y}/,h.length):"");if((y>=0)&&(h[y][0].match(/\.gif|\.jpg|\.png/i))){r.src=h[y][0]}if((D>=0)&&(h[D][0].match(/\.gif|\.jpg|\.png/i))){L.src=h[D][0]}N++;case 3:b.className="";q.resize.start({height:j.offsetHeight,width:j.offsetWidth,marginLeft:-j.offsetWidth/2});break;N++;case 4:F.setStyles({top:k+b.clientHeight,marginLeft:b.style.marginLeft,visibility:"hidden",display:""});q.image.start(1);break;case 5:if(y>=0){J.style.display=""}if(D>=0){e.style.display=""}if(s.animateCaption){q.bottom.set(-c.offsetHeight).start(0)}F.style.visibility="";N=1}}function C(){if(N){N=0;n.onload=$empty;j.set("html","");for(var O in q){q[O].cancel()}$$(b,F).setStyle("display","none");q.overlay.chain(m).start(0)}return false}})();Mediabox.scanPage=function(){var a=$$("a").filter(function(b){return b.rel&&b.rel.test(/^lightbox/i)});$$(a).mediabox({},null,function(c){var b=this.rel.replace(/[[]|]/gi," ");var d=b.split(" ");return(this==c)||((this.rel.length>8)&&c.rel.match(d[1]))})};window.addEvent("domready",Mediabox.scanPage);



