var mediabox;(function(){var a,h,p,h,o,n,f,l,m,k,j,y,t,z=new image(),v=new image(),r=false,w=false,s,b,j,c,u,e,m,t,w,e,d,q,g,x,b,o,i="none",f,d="mediabox",c;window.addevent("domready",function(){document.id(document.body).adopt($$([s=new element("div",{id:"mboverlay"}).addevent("click",n),b=new element("div",{id:"mbcenter"})]).setstyle("display","none"));j=new element("div",{id:"mbimage"}).injectinside(b); c=new element("div",{id:"mbbottom"}).injectinside(b).adopt(new element("a",{id:"mbcloselink",href:"#"}).addevent("click",n),e=new element("a",{id:"mbnextlink",href:"#"}).addevent("click",g),t=new element("a",{id:"mbprevlink",href:"#"}).addevent("click",k),e=new element("div",{id:"mbtitle"}),w=new element("div",{id:"mbnumber"}),m=new element("div",{id:"mbcaption"}));y={overlay:new fx.tween(s,{property:"opacity",duration:360}).set(0),image:new fx.tween(j,{property:"opacity",duration:360,oncomplete:i}),bottom:new fx.tween(c,{property:"opacity",duration:240}).set(0)} });mediabox={close:function(){n()},open:function(z,y,x){a=$extend({loop:false,keyboard:true,alpha:true,stopkey:false,overlayopacity:0.7,resizeopening:true,resizeduration:240,resizetransition:false,initialwidth:320,initialheight:180,defaultwidth:640,defaultheight:360,showcaption:true,showcounter:true,countertext:"{x} / {y}",imgbackground:false,imgpadding:70,scriptaccess:"true",fullscreen:"true",fullscreennum:"1",autoplay:"true",autoplaynum:"1",autoplayyes:"yes",volume:"100",medialoop:"true",bgcolor:"#000000",wmode:"opaque",usenb:true,playerpath:"plugins/mediabox/nonverblaster.swf",controlcolor:"0xffffff",controlbackcolor:"0x000000",showtimecode:"false",jwplayerpath:"plugins/mediabox/player.swf",backcolor:"000000",frontcolor:"999999",lightcolor:"000000",screencolor:"000000",controlbar:"over",controller:"true",flinfo:"true",revverid:"187866",revverfullscreen:"true",revverback:"000000",revverfront:"ffffff",revvergrad:"000000",usviewers:"true",ytborder:"0",ytcolor1:"000000",ytcolor2:"333333",ytquality:"&ap=%2526fmt%3d18",ytrel:"0",ytinfo:"1",ytsearch:"0",vuplayer:"basic",vmtitle:"1",vmbyline:"1",vmportrait:"1",vmcolor:"ffffff"},x||{}); if((browser.engine.gecko)&&(browser.engine.version<19)){r=true;a.overlayopacity=1;s.classname="mboverlayff"}if(typeof z=="string"){z=[[z,y,x]];y=0}h=z;a.loop=a.loop&&(h.length>1);if((browser.engine.trident)&&(browser.engine.version<5)){w=true;s.classname="mboverlayie";s.setstyle("position","absolute");l()}q();s(true);n=window.getscrolltop()+(window.getheight()/2);l=window.getscrollleft()+(window.getwidth()/2); y.resize=new fx.morph(b,$extend({duration:a.resizeduration,oncomplete:r},a.resizetransition?{transition:a.resizetransition}:{}));b.setstyles({top:n,left:l,width:a.initialwidth,height:a.initialheight,margintop:-(a.initialheight/2),marginleft:-(a.initialwidth/2),display:""});y.overlay.start(a.overlayopacity);return a(y)}};element.implement({mediabox:function(x,y){$$(this).mediabox(x,y);return this}}); elements.implement({mediabox:function(x,aa,z){aa=aa||function(ab){x=ab.rel.split(/[\[\]]/);x=x[1];return[ab.href,ab.title,x]};z=z||function(){return true};var y=this;y.removeevents("click").addevent("click",function(){var ac=y.filter(z,this);var ad=[];var ab=[];ac.each(function(af,ae){if(ab.indexof(af.tostring())<0){ad.include(ac[ae]);ab.include(ac[ae].tostring())}});return mediabox.open(ad.map(aa),ab.indexof(this.tostring()),x) });return y}});function l(){s.setstyles({top:window.getscrolltop(),left:window.getscrollleft()})}function q(){k=window.getwidth();j=window.getheight();s.setstyles({width:k,height:j})}function s(x){if(browser.engine.gecko){["object",window.ie?"select":"embed"].foreach(function(z){array.foreach(document.getelementsbytagname(z),function(aa){if(x){aa._mediabox=aa.style.visibility}aa.style.visibility=x?"hidden":aa._mediabox })})}s.style.display=x?"":"none";var y=x?"addevent":"removeevent";if(w){window[y]("scroll",l)}window[y]("resize",q);if(a.keyboard){document[y]("keydown",u)}}function u(x){if(a.alpha){switch(x.code){case 27:case 88:case 67:n();break;case 37:case 80:k();break;case 39:case 78:g()}}else{switch(x.code){case 27:n();break;case 37:k();break;case 39:g()}}if(a.stopkey){return false}}function k(){return a(h)}function g(){return a(o) }function a(x){if(x>=0){j.set("html","");p=x;h=((p||!a.loop)?p:h.length)-1;o=p+1;if(o==h.length){o=a.loop?0:-1}v();b.classname="mbloading";if(!h[x][2]){h[x][2]=""}q=h[x][2].split(" ");g=q.length;if(g>1){b=(q[g-2].match("%"))?(window.getwidth()*((q[g-2].replace("%",""))*0.01))+"px":q[g-2]+"px";o=(q[g-1].match("%"))?(window.getheight()*((q[g-1].replace("%",""))*0.01))+"px":q[g-1]+"px"}else{b="";o=""}d=h[x][0]; u=h[p][1].split("::");if(d.match(/quietube\.com/i)){f=d.split("v.php/");d=f[1]}else{if(d.match(/\/\/yfrog/i)){i=(d.substring(d.length-1));if(i.match(/b|g|j|p|t/i)){i="image"}if(i=="s"){i="flash"}if(i.match(/f|z/i)){i="video"}d=d+":iphone"}}if(d.match(/\.gif|\.jpg|\.jpeg|\.png|twitpic\.com/i)||i=="image"){i="img";d=d.replace(/twitpic\.com/i,"twitpic.com/show/full");t=new image();t.onload=p;t.src=d}else{if(d.match(/\.flv|\.mp4/i)||i=="video"){var y=new uri(d); d="../../"+y.torelative();i="obj";b=b||a.defaultwidth;o=o||a.defaultheight;if(a.usenb){t=new swiff(""+a.playerpath+"?mediaurl="+d+"&allowsmoothing=true&autoplay="+a.autoplay+"&buffer=6&showtimecode="+a.showtimecode+"&loop="+a.medialoop+"&controlcolor="+a.controlcolor+"&controlbackcolor="+a.controlbackcolor+"&defaultvolume="+a.volume+"&scaleiffullscreen=true&showscalingbutton=true&crop=false",{id:"mediaboxswf",width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}) }else{t=new swiff(""+a.jwplayerpath+"?file="+d+"&backcolor="+a.backcolor+"&frontcolor="+a.frontcolor+"&lightcolor="+a.lightcolor+"&screencolor="+a.screencolor+"&autostart="+a.autoplay+"&controlbar="+a.controlbar,{id:"mediaboxswf",width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}})}p()}else{if(d.match(/\.mp3|\.aac|tweetmic\.com|tmic\.fm/i)||i=="audio"){var y=new uri(d); d="../../"+y.torelative();i="obj";b=b||a.defaultwidth;o=o||"20px";if(d.match(/tweetmic\.com|tmic\.fm/i)){d=d.split("/");d[4]=d[4]||d[3];d="http://media4.fjarnet.net/tweet/tweetmicapp-"+d[4]+".mp3"}if(a.usenb){t=new swiff(""+a.playerpath+"?mediaurl="+d+"&allowsmoothing=true&autoplay="+a.autoplay+"&buffer=6&showtimecode="+a.showtimecode+"&loop="+a.medialoop+"&controlcolor="+a.controlcolor+"&controlbackcolor="+a.controlbackcolor+"&defaultvolume="+a.volume+"&scaleiffullscreen=true&showscalingbutton=true&crop=false",{id:"mediaboxswf",width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}) }else{t=new swiff(""+a.jwplayerpath+"?file="+d+"&backcolor="+a.backcolor+"&frontcolor="+a.frontcolor+"&lightcolor="+a.lightcolor+"&screencolor="+a.screencolor+"&autostart="+a.autoplay,{id:"mediaboxswf",width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}})}p()}else{if(d.match(/\.swf/i)||i=="flash"){i="obj";b=b||a.defaultwidth;o=o||a.defaultheight; t=new swiff(d,{id:"mediaboxswf",width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/\.mov|\.m4v|\.m4a|\.aiff|\.avi|\.caf|\.dv|\.mid|\.m3u|\.mp3|\.mp2|\.mp4|\.qtz/i)||i=="qt"){i="qt";b=b||a.defaultwidth;o=(parseint(o)+16)+"px"||a.defaultheight;t=new quickie(d,{id:"mediaboxqt",width:b,height:o,container:"mbimage",attributes:{controller:a.controller,autoplay:a.autoplay,volume:a.volume,loop:a.medialoop,bgcolor:a.bgcolor}}); p()}else{if(d.match(/blip\.tv/i)){i="obj";b=b||"640px";o=o||"390px";t=new swiff(d,{src:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/break\.com/i)){i="obj";b=b||"464px";o=o||"376px";d=d.match(/\d{6}/g);t=new swiff("http://embed.break.com/"+d,{width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/dailymotion\.com/i)){i="obj";b=b||"480px";o=o||"381px";t=new swiff(d,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/facebook\.com/i)){i="obj";b=b||"320px";o=o||"240px";f=d.split("v=");f=f[1].split("&");d=f[0];t=new swiff("http://www.facebook.com/v/"+d,{movie:"http://www.facebook.com/v/"+d,classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/flickr\.com/i)){i="obj";b=b||"500px";o=o||"375px";f=d.split("/");d=f[5];t=new swiff("http://www.flickr.com/apps/video/stewart.swf",{id:d,classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",width:b,height:o,params:{flashvars:"photo_id="+d+"&show_info_box="+a.flinfo,wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/gametrailers\.com/i)){i="obj"; b=b||"480px";o=o||"392px";d=d.match(/\d{5}/g);t=new swiff("http://www.gametrailers.com/remote_wrap.php?mid="+d,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/google\.com\/videoplay/i)){i="obj";b=b||"400px";o=o||"326px";f=d.split("=");d=f[1];t=new swiff("http://video.google.com/googleplayer.swf?docid="+d+"&autoplay="+a.autoplaynum,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/megavideo\.com/i)){i="obj";b=b||"640px";o=o||"360px";f=d.split("=");d=f[1];t=new swiff("http://wwwstatic.megavideo.com/mv_player.swf?v="+d,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/metacafe\.com\/watch/i)){i="obj";b=b||"400px";o=o||"345px";f=d.split("/");d=f[4];t=new swiff("http://www.metacafe.com/fplayer/"+d+"/.swf?playervars=autoplay="+a.autoplayyes,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/vids\.myspace\.com/i)){i="obj";b=b||"425px";o=o||"360px";t=new swiff(d,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/revver\.com/i)){i="obj";b=b||"480px";o=o||"392px";f=d.split("/");d=f[4];t=new swiff("http://flash.revver.com/player/1.0/player.swf?mediaid="+d+"&affiliateid="+a.revverid+"&allowfullscreen="+a.revverfullscreen+"&autostart="+a.autoplay+"&backcolor=#"+a.revverback+"&frontcolor=#"+a.revverfront+"&gradcolor=#"+a.revvergrad+"&shareurl=revver",{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/rutube\.ru/i)){i="obj";b=b||"470px";o=o||"353px";f=d.split("=");d=f[1];t=new swiff("http://video.rutube.ru/"+d,{movie:"http://video.rutube.ru/"+d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/seesmic\.com/i)){i="obj";b=b||"435px";o=o||"355px";f=d.split("/");d=f[5];t=new swiff("http://seesmic.com/standalone.swf?video="+d,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/tudou\.com/i)){i="obj";b=b||"400px";o=o||"340px";f=d.split("/");d=f[5];t=new swiff("http://www.tudou.com/v/"+d,{width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/twitcam\.com/i)){i="obj";b=b||"320px";o=o||"265px";f=d.split("/");d=f[3];t=new swiff("http://static.livestream.com/chromelessplayer/wrappers/twitcamplayer.swf?hash="+d,{width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/twitvid\.com/i)){i="obj";b=b||"600px";o=o||"338px";f=d.split("/");d=f[3];t=new swiff("http://www.twitvid.com/player/"+d,{width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/ustream\.tv/i)){i="obj";b=b||"400px";o=o||"326px";t=new swiff(d+"&viewcount="+a.usviewers+"&autoplay="+a.autoplay,{width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/youku\.com/i)){i="obj";b=b||"480px";o=o||"400px";f=d.split("id_");d=f[1];t=new swiff("http://player.youku.com/player.php/sid/"+d+"=/v.swf",{width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/youtube\.com\/watch/i)){i="obj";f=d.split("v=");d=f[1];if(d.match(/fmt=18/i)){c="&ap=%2526fmt%3d18"; b=b||"560px";o=o||"345px"}else{if(d.match(/fmt=22/i)){c="&ap=%2526fmt%3d22";b=b||"640px";o=o||"385px"}else{c=a.ytquality;b=b||"480px";o=o||"295px"}}t=new swiff("http://www.youtube.com/v/"+d+"&autoplay="+a.autoplaynum+"&fs="+a.fullscreennum+c+"&border="+a.ytborder+"&color1=0x"+a.ytcolor1+"&color2=0x"+a.ytcolor2+"&rel="+a.ytrel+"&showinfo="+a.ytinfo+"&showsearch="+a.ytsearch,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/youtube\.com\/view/i)){i="obj";f=d.split("p=");d=f[1];b=b||"480px";o=o||"385px";t=new swiff("http://www.youtube.com/p/"+d+"&autoplay="+a.autoplaynum+"&fs="+a.fullscreennum+c+"&border="+a.ytborder+"&color1=0x"+a.ytcolor1+"&color2=0x"+a.ytcolor2+"&rel="+a.ytrel+"&showinfo="+a.ytinfo+"&showsearch="+a.ytsearch,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/veoh\.com/i)){i="obj";b=b||"410px";o=o||"341px";d=d.replace("%3d","/");f=d.split("watch/");d=f[1];t=new swiff("http://www.veoh.com/static/swf/webplayer/webplayer.swf?version=afrontend.5.5.2.1001&permalinkid="+d+"&player=videodetailsembedded&videoautoplay="+a.autoplaynum+"&id=anonymous",{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/viddler\.com/i)){i="obj";b=b||"437px";o=o||"370px";f=d.split("/");d=f[4];t=new swiff(d,{id:"viddler_"+d,movie:d,classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000",width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen,id:"viddler_"+d,movie:d}});p()}else{if(d.match(/viddyou\.com/i)){i="obj";b=b||"416px";o=o||"312px"; f=d.split("=");d=f[1];t=new swiff("http://www.viddyou.com/get/v2_"+a.vuplayer+"/"+d+".swf",{id:d,movie:"http://www.viddyou.com/get/v2_"+a.vuplayer+"/"+d+".swf",width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/vimeo\.com/i)){i="obj";b=b||"640px";o=o||"360px";f=d.split("/");d=f[3];t=new swiff("http://www.vimeo.com/moogaloop.swf?clip_id="+d+"&server=www.vimeo.com&fullscreen="+a.fullscreennum+"&autoplay="+a.autoplaynum+"&show_title="+a.vmtitle+"&show_byline="+a.vmbyline+"&show_portrait="+a.vmportrait+"&color="+a.vmcolor,{id:d,width:b,height:o,params:{wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}}); p()}else{if(d.match(/12seconds\.tv/i)){i="obj";b=b||"430px";o=o||"360px";f=d.split("/");d=f[5];t=new swiff("http://embed.12seconds.tv/players/remoteplayer.swf",{id:d,width:b,height:o,params:{flashvars:"vid="+d+"",wmode:a.wmode,bgcolor:a.bgcolor,allowscriptaccess:a.scriptaccess,allowfullscreen:a.fullscreen}});p()}else{if(d.match(/\#mb_/i)){i="inline";b=b||a.defaultwidth;o=o||a.defaultheight;urlsplit=d.split("#"); t=document.id(urlsplit[1]).get("html");p()}else{i="url";b=b||a.defaultwidth;o=o||a.defaultheight;d="mediaid_"+new date().gettime();t=new element("iframe",{src:d,id:d,width:b,height:o,frameborder:0});p()}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return false}function p(){if(i=="img"){b=t.width;o=t.height;if(a.imgbackground){j.setstyles({backgroundimage:"url("+d+")",display:""})}else{if(o>=j-a.imgpadding&&(o/j)>=(b/k)){o=j-a.imgpadding; b=t.width=parseint((o/t.height)*b);t.height=o}else{if(b>=k-a.imgpadding&&(o/j)<(b/k)){b=k-a.imgpadding;o=t.height=parseint((b/t.width)*o);t.width=b}}if(browser.engine.trident){t=document.id(t)}t.addevent("mousedown",function(x){x.stop()}).addevent("contextmenu",function(x){x.stop()});j.setstyles({backgroundimage:"none",display:""});t.inject(j)}}else{if(i=="obj"){if(browser.plugins.flash.version<8){j.setstyles({backgroundimage:"none",display:""}); j.set("html",'
error
adobe flash is either not installed or not up to date, please visit adobe.com to download the free player.
');b=a.defaultwidth;o=a.defaultheight}else{j.setstyles({backgroundimage:"none",display:""});t.inject(j)}}else{if(i=="qt"){j.setstyles({backgroundimage:"none",display:""}); t}else{if(i=="inline"){j.setstyles({backgroundimage:"none",display:""});j.set("html",t)}else{if(i=="url"){j.setstyles({backgroundimage:"none",display:""});t.inject(j)}else{j.setstyles({backgroundimage:"none",display:""});j.set("html",'
error
a file type error has occoured, please visit iaian7.com or contact the website author for more information.
'); b=a.defaultwidth;o=a.defaultheight}}}}}j.setstyles({width:b,height:o});e.set("html",(a.showcaption)?u[0]:"");m.set("html",(a.showcaption&&(u.length>1))?u[1]:"");w.set("html",(a.showcounter&&(h.length>1))?a.countertext.replace(/{x}/,p+1).replace(/{y}/,h.length):"");if((h>=0)&&(h[h][0].match(/\.gif|\.jpg|\.jpeg|\.png|twitpic\.com/i))){z.src=h[h][0].replace(/twitpic\.com/i,"twitpic.com/show/full")}if((o>=0)&&(h[o][0].match(/\.gif|\.jpg|\.jpeg|\.png|twitpic\.com/i))){v.src=h[o][0].replace(/twitpic\.com/i,"twitpic.com/show/full") }b=j.offsetwidth;o=j.offsetheight+c.offsetheight;if(o>=n+n-10){f=-(n-10)}else{f=-(o/2)}if(b>=l+l-10){m=-(l-10)}else{m=-(b/2)}if(a.resizeopening){y.resize.start({width:b,height:o,margintop:f,marginleft:m})}else{b.setstyles({width:b,height:o,margintop:f,marginleft:m});r()}}function r(){y.image.start(1)}function i(){b.classname="";if(h>=0){t.style.display=""}if(o>=0){e.style.display=""}y.bottom.start(1) }function v(){if(t){t.onload=$empty}y.resize.cancel();y.image.cancel().set(0);y.bottom.cancel().set(0);$$(t,e).setstyle("display","none")}function n(){if(p>=0){t.onload=$empty;j.set("html","");for(var x in y){y[x].cancel()}b.setstyle("display","none");y.overlay.chain(s).start(0)}return false}})();