(function(A){A.browser=A.extend({chrome:/chrome/.test(navigator.userAgent.toLowerCase())},A.browser);A.fn.lightpop=function(y){var f="lightpop";var B="js/images/";var D=B+f+"-",X=B+"icon-";y=A.extend(true,{overlayBgColor:"#000",overlayOpacity:0.7,contentFrameType:"border",contentBorder:"none",boxBorderSize:6,containerBorderSize:10,containerResizeSpeed:"normal",contentBgColor:"#FFF",imageBox:D+"box.gif",imageBorderL:D+"border-l.gif",imageBorderR:D+"border-r.gif",imageLoading:D+"ico-loading.gif",imageBtnPrev:D+"btn-prev.gif",imageBtnNext:D+"btn-next.gif",imageBtnClose:B+"close.gif",imageBlank:D+"blank.gif",imageBtnPrevWidth:63,imageBtnNextWidth:63,imageBtnCloseWidth:13,txtImage:null,txtOf:"of",setLinkToTitle:false,keyToClose:"c",keyToPrev:"p",keyToNext:"n",flvplayer:"mediaplayer.swf",iconAdd:true,detailsEnabled:true,initSize:250,defaultLater:1500,Image:{enabled:true,icon:X+"image.png",param:{},size:new Array(0,0)},Contents:{enabled:true,icon:X+"contents.png",param:{},size:new Array(0,0),iframeEnabled:true},Video:{enabled:true,icon:X+"video.png",param:{},size:new Array(320,240)},YouTube:{enabled:true,icon:X+"youtube.png",param:{hl:"ja"},size:new Array(425,355)},Metacafe:{enabled:true,icon:X+"metacafe.png",param:{},size:new Array(400,345)},LiveLeak:{enabled:true,icon:X+"liveleak.png",param:{},size:new Array(450,370)},GoogleVideo:{enabled:true,icon:X+"googlevideo.png",param:{hl:"ja"},size:new Array(400,326)},ifilm:{enabled:true,icon:X+"ifilm.png",param:{},size:new Array(448,365)},Dailymotion:{enabled:true,icon:X+"dailymotion.png",param:{},size:new Array(420,330)},superdeluxe:{enabled:true,icon:X+"superdeluxe.png",param:{},size:new Array(400,350)},nicovideo:{enabled:true,icon:X+"nicovideo.png",param:{},size:new Array(312,176)},captionPrefix:"",captionSuffix:"",pageNavigation:false,displayTypes:false},y);if(y.imageMaxWidth||y.imageMaxHeight){y=A.extend(true,y,{Image:{size:new Array((y.imageMaxWidth||0),(y.imageMaxHeight||0))}})}var H=(/^border$/i).test(y.contentFrameType);var m=new Array();m.length=0;var Ac=document,l=window;var Ad=Ac.body,Ab=Ac.documentElement,I=Ac.images;var J=A.browser.msie,k=A.browser.mozilla,j=A.browser.opera,L=A.browser.safari||A.browser.chrome,T=!(Ac.compatMode&&Ac.compatMode!=="BackCompat");var i={Image:{match:function(b){return(y.Image.enabled&&(/\.(jpe?g|gif|png|bmp)$/i).test(b))},base:"/",defaultSize:y.Image.size,set:function(b){a(b,true)},preload:function(b){a(b,false)}},Video:{match:function(b){return(y.Video.enabled&&(/\.(flv|swf|rm|mov|3gp|mp4|asf|avi|mpg|wmv)$/i).test(b))},defaultSize:y.Video.size,getInfo:function(Ai,Ah,d,Aj,w){var b={};var e=Ai.replace(/\?.*$/,"");switch(e.toLowerCase().match(/\.(flv|swf|rm|mov|3gp|mp4|asf|avi|mpg|wmv)$/i)[1]){case"flv":d+=22;e=y.flvplayer+"?file="+e;case"swf":b={quality:"high",bgcolor:"#000"};e=Z(e,Ah,d,b);break;case"rm":b={autostart:"true",controls:"imagewindow,controlpanel"};e=Ag(e,"CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA","audio/x-pn-realaudio-plugin",Ah,d,b,"");break;case"mov":case"mp4":case"3gp":d+=20;b={href:e,controller:"true",pluginspage:"http://www.apple.com/quicktime/download/",autoplay:"true",bgcolor:"000000"};e=Ag(e,"02BF25D5-8C17-4B23-BC80-D3488ABDDC6B","video/quicktime",Ah,d,b,' codebase="http://www.apple.com/qtactivex/qtplugin.cab"');break;default:d+=20;b={href:e,autostart:"true",uiMode:"full"};e=Ag(e,"6BF52A52-394A-11d3-B153-00C04F79FAA6","application/x-oleobject",Ah,d,b,"");break}return{content:e,width:Ah,height:d,later:Math.round(y.defaultLater*2/3)}}},YouTube:{match:function(b){return(y.YouTube.enabled&&(/\.youtube\.com\/watch/i).test(b))},base:"http://www.youtube.com/v/",defaultSize:y.YouTube.size,getInfo:function(Ah,d,Ai,Aj,b){var e={};var Ak=Ah.replace(/^.*\?v=(.*)$/i,"$1");var w=b.base+Ak;for(var Al in Aj){w+="&"+(Al!=="fmt"?Al+"="+Aj[Al]:"&ap=%2526fmt%3D"+Aj[Al])}w=Z(w,d,Ai,e);return{content:w,width:d,height:Ai,later:y.defaultLater}}},Metacafe:{match:function(b){return(y.Metacafe.enabled&&(/\.metacafe\.com\/watch/i).test(b))},base:"http://www.metacafe.com/fplayer/",defaultSize:y.Metacafe.size,getInfo:function(Aj,Ai,e,Ak,Ah){var d={};var b=Aj.replace(/^.*\/watch\/([\d]+\/[^\/]*)\/?.*$/i,"$1");var w=Ah.base+b+".swf";w=Z(w,Ai,e,d,Ak);return{content:w,width:Ai,height:e,later:y.defaultLater}}},LiveLeak:{match:function(b){return(y.LiveLeak.enabled&&(/\.liveleak\.com\/view/i).test(b))},base:"http://www.liveleak.com/player.swf?autostart=false&amp;token=",defaultSize:y.LiveLeak.size,getInfo:function(Aj,Ai,e,Ak,Ah){var d={quality:"high"};var b=Aj.replace(/^.*\?i=(.*)$/i,"$1");var w=Ah.base+b;w=Z(w,Ai,e,d,Ak);return{content:w,width:Ai,height:e,later:y.defaultLater}}},GoogleVideo:{match:function(b){return(y.GoogleVideo.enabled&&(/video\.google\.com\/videoplay/i).test(b))},base:"http://video.google.com/googleplayer.swf?docId=",defaultSize:y.GoogleVideo.size,getInfo:function(Aj,Ai,e,Ak,Ah){var d={flashvars:""};var b=Aj.replace(/^.*\?docid=([a-z\d\-]+).*$/i,"$1");var w=Ah.base+b;w=Z(w,Ai,e,d,Ak);return{content:w,width:Ai,height:e,later:y.defaultLater}}},ifilm:{match:function(b){return(y.ifilm.enabled&&(/\.ifilm\.com\/video/i).test(b))},base:"http://www.ifilm.com/efp",defaultSize:y.ifilm.size,getInfo:function(Aj,Ai,e,Ak,Ah){var d={flashvars:"flvbaseclip="+b+"&",quality:"high",bgcolor:"000000"};var b=Aj.replace(/\?.*$/,"").replace(/^.*\/video\/([^\/]*)[\/]?$/i,"$1");var w=Ah.base;w=Z(w,Ai,e,d,Ak);return{content:w,width:Ai,height:e,later:y.defaultLater}}},Dailymotion:{match:function(b){return(y.Dailymotion.enabled&&(/\.dailymotion\.com\/video/i).test(b))},base:"http://www.dailymotion.com/swf/",defaultSize:y.Dailymotion.size,getInfo:function(Aj,Ai,e,Ak,Ah){var d={allowFullScreen:"true",allowScriptAccess:"always"};var b=Aj.replace(/^.*\/video\/([^_]*).*$/i,"$1");var w=Ah.base+b;w=Z(w,Ai,e,d,Ak);return{content:w,width:Ai,height:e,later:y.defaultLater}}},superdeluxe:{match:function(b){return(y.superdeluxe.enabled&&(/\.superdeluxe\.com\/sd/i).test(b))},base:"http://i.cdn.turner.com/sdx/static/swf/share_vidplayer.swf",defaultSize:y.superdeluxe.size,getInfo:function(Aj,Ai,e,Ak,Ah){var d={allowFullScreen:"true",FlashVars:"id="+b};var b=Aj.replace(/^.*\?id=(.*)$/i,"$1");var w=Ah.base;w=Z(w,Ai,e,d,Ak);return{content:w,width:Ai,height:e,later:y.defaultLater}}},nicovideo:{match:function(b){return(y.nicovideo.enabled&&(/\.nicovideo\.jp\/watch/i).test(b))},base:"http://www.nicovideo.jp/watch/",defaultSize:y.nicovideo.size,getInfo:function(Ai,Ah,d,Aj,w){var b=Ai.replace(/^.*\/watch\/(.*)$/i,"$1");var e=w.base+b;e='<iframe width="'+Ah+'" height="'+d+'" src="http://www.nicovideo.jp/thumb/'+b+'" scrolling="no" style="border:solid 1px #CCC;" frameborder="0"><a href="'+e+'">'+w.tytle+"</iframe>";return{content:e,width:Ah,height:d,later:Math.round(y.defaultLater/3)}}},Contents:{match:function(b){return(y.Contents.enabled&&RegExp(l.location.host,"i").test(b)&&!(/\.(jpe?g|gif|png|bmp)$/i).test(b))},defaultSize:y.Contents.size,set:function(e){var b;var w=R(m[e].href,y.Contents.size);var d='width="'+w[0]+'" height="'+w[1]+'"';if(y.Contents.iframeEnabled){b="<iframe "+d+' src="'+m[e].href+'" scrolling="no" style="border:solid 1px #CCC;" frameborder="0"><a href="'+m[e].href+'">'+m[e].tytle+"</a></iframe>";m[e]=A.extend(m[e],{content:b,width:w[0],height:w[1],later:500});x(e)}else{A.get(m[e].href,function(Ai,Ah){b="<div "+d+">"+Ai.replace(/[\r\n]/g,"").replace(/.*<body.*?>(.*?)<\/body>.*$/,"$1").replace(/<script.*?>.*<\/script>/g,"")+"</div>";m[e]=A.extend(m[e],{content:b,width:w[0],height:w[1],later:500});x(e)})}},preload:function(b){},content_css:{textAlign:"left",lineHeight:"1.2em"}}};var t="overlay",M=f,z=f+"-box",u=f+"-content",K=f+"-nav",q=f+"-data",W=f+"-details",V=f+"-loading";var U="#"+t,g="#"+M,S="#"+z,r="#"+u,o="#"+K,C="#"+q,E="#"+W,p="#"+V;var v=function(b){Af(y.imageBtnPrev,function(Aj,Ah,Ai){y.imageBtnPrevWidth=(Ah>0?Ah:y.imageBtnPrevWidth);Af(y.imageBtnNext,function(Am,Ak,Al){y.imageBtnNextWidth=(Ak>0?Ak:y.imageBtnNextWidth);Af(y.imageBtnClose,function(Ap,An,Ao){y.imageBtnCloseWidth=(An>0?An:y.imageBtnCloseWidth);if(!H){Af(y.imageBox,function(As,Aq,Ar){Af(y.imageBorderL,function(Av,At,Au){Af(y.imageBorderR,function(Ay,Aw,Ax){y.contentBorder="none"})})})}})})});var e=new Array();var d=0;b.filter("a").each(function(){var w=l.location;var Ak=A(this);if(!(/^https?:/i).test(Ak.attr("href"))&&(/^https?:/i).test(w.protocol)){Ak.attr("href",((/^\//i).test(Ak.attr("href"))?w.protocol+"//"+w.hostname+"/"+Ak.attr("href"):w.href.replace(/^(.*\/).*$/i,"$1")+Ak.attr("href").replace(/^\/?(.*)$/i,"$1")))}for(var Ai in i){var Ah=i[Ai];if(Ah.match(Ak.attr("href").replace(/\?.*$/,""))){var Aj=y[Ai];if(y.iconAdd&&Ak.children("img").length===0){Ak.css({background:"transparent url("+Aj.icon+") no-repeat scroll 1px 0pt",paddingLeft:"20px"})}m.push({type:Ai,href:Ak.attr("href"),title:Ak.attr("title")||Ak.html().replace(/<[^>]*>/ig,""),base:(Ah.base?Ah.base:"/")});Ak.unbind("click").click((function(Al){return function(){Y(Al);return false}})(d));e.push(this);d++;break}}});return new A(e)};var Y=function(Ak){G(A("embed, object, select"),false);var Aj='<div id="'+u+'-wrap"><div id="'+u+'" /></div>';var w=(y.detailsEnabled?'<div id="'+q+'-wrap"><div id="'+q+'"><div id="'+W+'"><div id="'+W+'-caption" /><div id="'+W+'-number" /></div><div id="'+q+'-nav"><a href="#" id="'+q+'-nav-close"><img src="'+y.imageBtnClose+'" /></a></div></div></div>':"");var Ai='<div id="'+K+'"><a href="#" id="'+K+'-prev" /><a href="#" id="'+K+'-next" /></div><div id="'+V+'"><a href="#" id="'+V+'-link"><img src="'+y.imageLoading+'" /></a></div>';var e='<div id="'+t+'" /><div id="'+M+'"><div id="'+z+'"><div id="'+z+'-inner">'+(H?Aj+"</div>"+w:'<div id="'+z+'-hd"><div id="'+z+'-hdc" /></div><div id="'+z+'-bd"><div id="'+z+'-bdc">'+Aj+w+'</div></div><div id="'+z+'-ft"><div id="'+z+'-ftc" /></div></div>')+Ai+"</div></div>";A("body").append(A(e).hide());var Al=O();var b=F();var d=y.containerBorderSize;A(U+","+g+","+o+","+p).css({position:"absolute"});A(S+","+C).css({position:"relative"});A(U).css({top:0,left:0,backgroundColor:y.overlayBgColor,opacity:y.overlayOpacity,width:Al[0],height:Al[1],zIndex:90});A(g).css({top:b[1]+Math.round(Al[3]/10),left:b[0],width:"100%",height:0,overflow:"visible",textAlign:"center",lineHeight:0,border:"none",zIndex:100});A(g+" a img").css({border:"none"});A(S).css({width:y.initSize,height:y.initSize,top:0,margin:"0 auto",padding:0,backgroundColor:y.contentBgColor,border:y.contentBorder,overflow:(H?"hidden":"visible")});A(S+"-inner").css({width:y.initSize,height:y.initSize,backgroundColor:"transparent",margin:"0 auto",padding:(H?d:0),overflow:(H?"hidden":"visible")});A(r+"-wrap").css({backgroundColor:"transparent"});A(r).css({margin:(H?0:"0 auto"),padding:(H?0:d+"px 0"),zIndex:110});if(!H){var Ah=y.boxBorderSize;c(false).css({position:"relative"}).hide();A(S+"-hd,"+S+"-hdc").css({height:Ah,top:0});A(S+"-ft,"+S+"-ftc").css({height:Ah,bottom:0});A(S+"-hd,"+S+"-ft").css({margin:"0 "+Ah+"px 0 0"});A(S+"-hdc,"+S+"-ftc").css({margin:"0 "+Ah*-1+"px 0 "+Ah+"px"})}A(o).css({top:0,left:0,height:"10px",width:"100%",padding:0,margin:(H?"0":y.boxBorderSize+"px")+" auto",zIndex:10});A(o+" a").css({display:"block",height:"100%",zoom:1,margin:(H?0:"0 "+y.boxBorderSize+"px"),outline:"none"});A(o+"-prev").css({width:y.imageBtnPrevWidth,left:0,styleFloat:"left"});A(o+"-next").css({width:y.imageBtnNextWidth,right:0,styleFloat:"right"});A(p).css({top:"40%",left:0,height:"20%",width:"100%",margin:"0 auto",textAlign:"center",lineHeight:0});if(y.detailsEnabled){A(C+"-wrap").css({font:"10px Verdana, Helvetica, sans-serif",backgroundColor:y.contentBgColor,lineHeight:"1.4em",width:"100%",margin:"0 auto",padding:"0 "+d+"px 0",overflow:"hidden"}).hide();A(C).css({padding:"0 "+d+"px",color:"#666",left:0,bottom:0});A(E).css({width:"70%",styleFloat:"left",textAlign:"left"});A(E+"-caption").css({styleFloat:"left","font-weight":"bold",width:"100%"});A(E+"-number").css({styleFloat:"left",clear:"left",width:"100%","padding-bottom":"1em"});A(C+"-nav-close").css({styleFloat:"right",width:y.imageBtnCloseWidth,padding:".35em 0"})}A(U).fadeIn(y.containerResizeSpeed,function(){A(g).show()});A(U+","+p+"-link,"+C+"-nav-close").click(function(){h();return false});Ae(true);Q(Ak)};var Q=function(b){G(A(C+","+E+","+E+"-caption,"+E+"-number,"+C+"-nav-close"),false);A(o+","+o+"-prev,"+o+"-next").hide();A(r).hide().children().remove();A(p+","+S+","+S+"-inner").show();c(false);if(y.detailsEnabled&&!H&&L){A(C+"-wrap").height("auto")}x(b)};var x=function(b){(m[b].content?function(d){A(r).append(A(m[d].content));setTimeout(function(){Aa(d)},m[d].later)}:(i[m[b].type].set?i[m[b].type].set:(function(d){N(d);x(d)})))(b)};var s=function(e,d,b,w){if(y.detailsEnabled){w=(w<28?28:w);b+=w}(H?(function(Ah){A(S).animate({width:d,height:b},"fast",function(){G(Ah,true)})}):(function(Ah){if(y.detailsEnabled&&L){A(C+"-wrap").height(w)}G(Ah,true)}))(e)};var Aa=function(Ak){var e=y.containerBorderSize,Aj=y.boxBorderSize;var b=m[Ak];var w=b.width+(e+(H?0:Aj))*2;var d=b.height+e*2;var Ah=O();var Ai=F();A(g).animate({top:Ai[1]+Math.round(Ah[3]/10),left:Ai[0]},y.containerResizeSpeed,function(){A(S).animate({width:w,height:d},y.containerResizeSpeed,function(){var Ao=i[b.type];A(S+"-inner").css({width:(H?b.width:w),height:b.height});A(r).css({width:b.width,height:b.height});if(y.detailsEnabled){A(C+"-wrap").css({width:b.width})}if(Ao.content_css){A(r).children().css(Ao.content_css)}A(p).hide();if((/<object.*>/i).test(b.content)){A(r).show()}else{A(r).fadeIn()}c(true);A(E+"-caption").html((y.captionPrefix?y.captionPrefix:"")+(y.setLinkToTitle?'<a href="'+b.href+'" title="'+b.title+'">'+b.title+"</a>":b.title)+(y.captionSuffix?y.captionSuffix:""));if(y.pageNavigation&&m.length>1){var An="";An+='<div class="navi_page" id="navi_page_prev">prev</div>';for(var Am=0;Am<m.length;Am++){An+='<div class="navi_page" id="navi_page'+(Am+1)+'">'+(Am+1)+"</div>"}An+='<div class="navi_page" id="navi_page_next">next</div>';An+='<div class="navi_page" id="navi_exit"><img src="'+B+'close.gif"></div>';A(C+"-nav").html('<div style="float:right;">'+An+'</div><div style="clear:both;"></div>');for(var Al=0;Al<m.length;Al++){A(C+"-nav #navi_page"+(Al+1)).css("float","left").css("width","14px").css("height","15px").css("cursor","pointer").css("textIndent","-9999px");if(Ak==Al){A(C+"-nav #navi_page"+(Al+1)).unbind().css("backgroundImage","url("+B+"page"+(Al+1)+"-over.gif)")}else{A(C+"-nav #navi_page"+(Al+1)).css("backgroundImage","url("+B+"page"+(Al+1)+".gif)").click((function(Aq){return function(){Q(Aq);A(this).css("backgroundImage","url("+B+"page"+(Aq+1)+"_over.gif)");return false}})(Al)).mouseover((function(Aq){return function(){if(Aq!=Ak){A(this).css("backgroundImage","url("+B+"page"+(Aq+1)+"-over.gif)")}return false}})(Al)).mouseout((function(Aq){return function(){if(Aq!=Ak){A(this).css("backgroundImage","url("+B+"page"+(Aq+1)+".gif)")}return false}})(Al))}}A(C+"-nav #navi_page_prev ,"+C+"-nav #navi_page_next").css("float","left").css("width","14px").css("height","15px").css("cursor","pointer").css("textIndent","-9999px");if(Ak==0){A(C+"-nav #navi_page_prev").unbind().css("cursor","default").css("backgroundImage","url("+B+"pageprev-nothing.gif)")}else{A(C+"-nav #navi_page_prev").css("backgroundImage","url("+B+"pageprev.gif)").click((function(Aq){return function(){Q(Aq);return false}})(Ak-1)).mouseover(function(){A(this).css("backgroundImage","url("+B+"pageprev-over.gif)")}).mouseout(function(){A(this).css("backgroundImage","url("+B+"pageprev.gif)")})}if((Ak+1)>=m.length){A(C+"-nav #navi_page_next").unbind().css("cursor","default").css("backgroundImage","url("+B+"pagenext-nothing.gif)")}else{A(C+"-nav #navi_page_next").css("backgroundImage","url("+B+"pagenext.gif)").click((function(Aq){return function(){Q(Aq);return false}})(Ak+1)).mouseover(function(){A(this).css("backgroundImage","url("+B+"pagenext-over.gif)")}).mouseout(function(){A(this).css("backgroundImage","url("+B+"pagenext.gif)")})}A(C+"-nav #navi_exit").css("float","left").css("paddingLeft","5px").css("cursor","pointer").css("width","14px").css("height","15px").click(function(){h();return false})}else{A(E+"-number").html((y.displayTypes?(y.txtImage||b.type):"")+(m.length>1?" "+(Ak+1)+" "+y.txtOf+" "+m.length:""))}var Ap=G(A(C+","+E+","+E+"-caption,"+E+"-number,"+C+"-nav-close"),false).show();(y.detailsEnabled?function(As,Aq,Ar){A(C+"-wrap").slideDown("fast",function(){s(As,Aq,Ar,(!L?A(this).height():this.scrollHeight))})}:function(As,Aq,Ar){s(As,Aq,Ar)})(Ap,w,d);A(o).css({width:w}).show(function(){A(o+"-prev,"+o+"-next").css({height:Math.round(d/3),background:"transparent url("+y.imageBlank+") no-repeat"}).unbind();if(Ak!=0){A(o+"-prev").hover(function(){A(this).css({background:"url("+y.imageBtnPrev+") left 30% no-repeat"})},function(){A(this).css({background:"transparent url("+y.imageBlank+") no-repeat"})}).show().click((function(Aq){return function(){Q(Aq);return false}})(Ak-1))}if(Ak!=(m.length-1)){A(o+"-next").hover(function(){A(this).css({background:"url("+y.imageBtnNext+") right 30% no-repeat"})},function(){A(this).css({background:"transparent url("+y.imageBlank+") no-repeat"})}).show().click((function(Aq){return function(){Q(Aq);return false}})(Ak+1))}n(true,Ak)});if(m.length-1>Ak){P(Ak+1)}if(Ak>0){P(Ak-1)}})})};var P=function(b){if(!m[b].content){(i[m[b].type].preload?i[m[b].type].preload:(function(d){N(d)}))(b)}};var R=function(e,d,Aj){var Ai=0,b=0;var w=e.toLowerCase().replace(/[\r\n]/g,"").replace(/["']/g,"").match(/(width|height)=(\d+)/ig);if(w){A.each(w,function(){if((/^width=\d+$/i).test(this)){Ai=Number(this.replace(/^width=(\d+)$/,"$1"))}if((/^height=\d+$/i).test(this)){b=Number(this.replace(/^height=(\d+)$/,"$1"))}})}if(Ai===0||b===0){if(d){Ai=d[0];b=d[1]}else{var Ah=O();Ai=Ah[0]/4;b=Ah[1]/4}}if(Aj){if(Aj[0]!=0&&Ai>Aj[0]){b=b*(Aj[0]/Ai);Ai=Aj[0]}if(Aj[1]!=0&&b>Aj[1]){Ai=Ai*(Aj[1]/b);b=Aj[1]}}return new Array(Math.round(Ai),Math.round(b))};var N=function(Al){var e=m[Al];var b=y[e.type];var w=i[e.type];var Ai=e.href.replace(/&.*$/i,"");var d,Aj={};var Ak,Ah=null;if((/\?.*$/).test(e.href)){var Am=e.href.replace(/^.*\?/,"").split("&");if(Am.length>0){A.each(Am,function(){var Ao,An=this.toString();if(!(/^(width|height|v|i|docid|id)\=.*$/i).test(An)){Ao=(An).match(/^([^=]*)=(.*)$/i);if(Ao.length>2){Aj[Ao[1]]=Ao[2]}}})}}Aj=A.extend(Aj,b.param);d=R(e.href,w.defaultSize);m[Al]=A.extend(e,w.getInfo(Ai,d[0],d[1],Aj,e))};var Z=function(d,Ah,b,Aj,Ai){var w="";if(typeof Ai==="object"){A.each(Ai,function(Ak){if(d.indexOf(Ak+"=")<0){d+=(d.indexOf("?")<0?"?":"&")+Ak+"="+this}})}var e={movie:d,wmode:"transparent"};Aj=(Aj?A.extend(e,Aj):e);w='<object width="'+Ah+'" height="'+b+'" data="'+d+'" type="application/x-shockwave-flash" wmode="'+Aj.wmode+'">';A.each(Aj,function(Ak){w+='<param name="'+Ak+'" value="'+this+'" />'});w+="</object>";return w};var Ag=function(d,Ai,Al,e,Am,Ah,An,b){var Ak="",w="";var Aj={src:d,width:e,height:Am,type:Al};Ah=(Ah?A.extend(Aj,Ah):Aj);Ak+='<object width="'+e+'" height="'+Am+'"'+(Ai!=" "?'classid="clsid:'+Ai+'"':"")+' type="'+Al+'" '+b+">";w+='<embed width="'+e+'" height="'+Am+'"';A.each(Ah,function(Ao){Ak+='<param name="'+Ao+'" value="'+this+'" />';w+=" "+Ao+'="'+this+'"'});w+='><noembed><a href="'+d+'">'+d+"</a></noembed></embed>";Ak+=w+"</object>";return Ak};var c=function(Ai){if(!H){var Ah=A(S+"-hd, "+S+"-hdc, "+S+"-bd, "+S+"-bdc, "+S+"-ft, "+S+"-ftc");var e="transparent",d=y.contentBgColor;if(Ai){var b=y.imageBox,Aj=y.imageBorderL,w=y.imageBorderR;A(S).css({backgroundColor:e});A(S+"-hd").css({background:e+" url("+b+") left top no-repeat"});A(S+"-hdc").css({background:e+" url("+b+") right top no-repeat"});A(S+"-bd").css({background:d+" url("+Aj+") left top repeat-y"});A(S+"-bdc").css({background:e+" url("+w+") right top repeat-y"});A(S+"-ft").css({background:e+" url("+b+") left bottom no-repeat"});A(S+"-ftc").css({background:e+" url("+b+") right bottom no-repeat"});Ah.show()}else{A(S).css({backgroundColor:d});Ah.css({background:e})}return Ah}};var a=function(d,b){Af(m[d].href,(function(w,e){return function(Aj,Ai,Ah){var Ak=R(Aj,new Array(Ai,Ah),y.Image.size);m[w]=A.extend(m[w],{content:'<img src="'+Aj.replace(/\?.*$/,"")+'" width="'+Ak[0]+'" height="'+Ak[1]+'" />',width:Ak[0],height:Ak[1],later:(J?250:100)});if(e){x(w)}}})(d,b))};var Af=function(b,Ak,Ai,e,Al){Ak=Ak||function(){};Ai=Ai||function(){};e=e||10;Al=Al||2000;for(var d=0,Aj=I.length;d<Aj;++d){if(I[d].src===b&&I[d].complete){Ak(b,I[d].width,I[d].height);return}}var w=new Image(),Ah=0;w.finish=false;w.onabort=w.onerror=function(){if(w.finish){return}w.finish=true;Ai(b)};w.onload=function(){w.finish=true;if(j&&!w.complete){Ai(b);return}Ak(b,w.width,w.height)};w.src=b;if(!w.finish&&Al){setTimeout(function(){if(w.finish){return}if(w.complete){w.finish=true;if(w.width){return}Ai(b);return}if((Ah+=e)>Al){w.finish=true;Ai(b);return}setTimeout(arguments.callee,e)},0)}};var G=function(d,b){return d.css({visibility:(b?"visible":"hidden")})};var n=function(b,d){A(Ac).unbind("keydown");if(b){A(Ac).keydown(function(Ah){var e=(Ah||event).keyCode;var w=(Ah?Ah.DOM_VK_ESCAPE:27);var Ai=String.fromCharCode(e).toLowerCase();if((Ai==y.keyToClose)||(Ai=="x")||(e==w)){h()}else{if(((Ai==y.keyToPrev)||(e==37))&&d!=0){Q(d-1)}else{if(((Ai==y.keyToNext)||(e==39))&&d!=(m.length-1)){Q(d+1)}}}})}};var Ae=function(b){A(l).unbind("resize");if(b){A(l).resize(function(){var d=O();var e=F();A(U).css({width:d[0],height:d[1]});A(g).css({top:e[1]+Math.round(d[3]/10),left:e[0]})})}};var O=function(){var b=(Ab&&Ab.scrollWidth?Ab:Ad).scrollWidth;var e=(Ab&&Ab.scrollHeight?Ab:Ad).scrollHeight;var d=(T?Ad:Ab).clientWidth;var w=(T?Ad:Ab).clientHeight;b=(b<d?b:d);e=(e<w?w:e);return new Array(b,e,d,w)};var F=function(){var b=(Ab&&Ab.scrollLeft?Ab:Ad).scrollLeft;var d=(Ab&&Ab.scrollTop?Ab:Ad).scrollTop;return new Array(b,d)};var h=function(){G(A("object",A(g)),false).remove();A(g).height(A(S).height()).fadeOut("fast",function(){A(this).remove();A(U).fadeOut(function(){A(this).remove();G(A("embed, object, select"),true)})});n(false);Ae(false)};return v(this)}})(jQuery);