1var Mediabox;!function(e){function t(){N=e(window).width(),z=e(window).height(),W.isMobileEnable&&"resolution"==W.mobileDetection&&(N<=parseInt(W.mobileResolution)?(X.addClass("mediaboxckmobile"),ie.addClass("mediaboxckmobile")):(X.removeClass("mediaboxckmobile"),ie.removeClass("mediaboxckmobile")));var t=i();X.css({width:t.width,height:t.height,top:t.top,marginTop:t.marginTop,marginLeft:t.marginLeft}),a(),o()}function i(){N=e(window).width(),z=e(window).height(),void 0==te&&(te=W.defaultHeight),te>=z-W.imgPadding&&me/z>=he/N&&!X.hasClass("mediaboxckmobile")?(F=e(window).scrollTop()+e(window).height()/2,tmpHeight=z-W.imgPadding,tmpWidth=parseInt(tmpHeight/te*ee,10),q.css({width:tmpWidth,height:tmpHeight}),Y.css({width:tmpWidth-we+"px"}),$.css({width:tmpWidth-we+"px"}),tmpWidth=q.outerWidth(),tmpHeight=q.outerHeight()+Y.outerHeight()):ee>=N-W.imgPadding&&ee/N>te/z&&!X.hasClass("mediaboxckmobile")?(F=e(window).scrollTop()+e(window).height()/2,tmpWidth=N-W.imgPadding,tmpHeight=parseInt(tmpWidth/ee*te,10),q.css({width:tmpWidth,height:tmpHeight}),Y.css({width:tmpWidth-we+"px"}),$.css({width:tmpWidth-we+"px"}),tmpWidth=q.outerWidth(),tmpHeight=q.outerHeight()+Y.outerHeight()):ee<N-W.imgPadding&&!X.hasClass("mediaboxckmobile")&&(F=e(window).scrollTop()+e(window).height()/2,tmpWidth=ee,tmpHeight=te,q.css({width:tmpWidth,height:tmpHeight}),Y.css({width:tmpWidth-we+"px"}),$.css({width:tmpWidth-we+"px"}),tmpWidth=q.outerWidth(),tmpHeight=q.outerHeight()+Y.outerHeight());var t=new Array;return centerw=q.outerWidth(),centerh=q.outerHeight()+Y.outerHeight(),t.width=centerw,t.height=centerh,t.top=e(window).scrollTop()+e(window).height()/2,t.marginTop=-(centerh/2),t.marginLeft=-(centerw/2),t}function o(){X.hasClass("mediaboxckmobile")?q.find("object,iframe, video, audio").height("calc(100% - "+parseInt(Y.height())+"px)"):q.find("object, iframe, video, audio").height(q.height())}function a(){var e=q.find("img");e.css({position:"relative",top:"50%",marginTop:-(e.height()/2)})}function s(t){U.css("display",t?"":"none"),e(window).off("keydown",l),W.keyboard&&e(window).bind("keydown",l),W.isMobileEnable&&W.isMobile&&("tablet"==W.mobileDetection||"phone"==W.mobileDetection)&&(X.addClass("mediaboxckmobile"),ie.addClass("mediaboxckmobile"))}function l(e){if(W.keyboardAlpha)switch(e.code){case 27:case 88:case 67:y();break;case 37:case 80:r();break;case 39:case 78:c()}else switch(e.keyCode){case 27:y();break;case 37:r();break;case 39:c()}return W.keyboardStop?!1:void 0}function r(){return h(),w(D)}function c(){return h(),w(S)}function n(){return q.hasClass("paused")&&(q.removeClass("paused"),pauseLink.show(),playLink.hide()),d(),!1}function d(){q.hasClass("paused")||(clearInterval(se),se=setInterval(function(){1>le&&!q.hasClass("paused")?(le+=ye,le>1&&(le=1),ae.css({width:100*le+"%"})):1>=le&&q.hasClass("paused")?le=le:(clearInterval(se),q.hasClass("paused")||(h(),c()))},W.diapoTime*ye))}function h(){clearInterval(se),le=0,ae.css("width","0")}function m(){return clearInterval(se),ae.stop(!0,!0),q.addClass("paused"),pauseLink.hide(),playLink.show(),!1}function p(){e(document.body).append(ie),ie.delay(200).css("opacity",0).fadeTo(360,1)}function u(t,i,o){var a="";if(o||(o=""),o){o=o.split(".");var s=o[1];o=o[0];var l=W.medialoop?"loop":"",r=W.autoplay?"autoplay":"",c="mp3"==s||"ogg"==s||"aac"==s||"wav"==s;a+=c?"<audio "+l+" "+r+' controls="controls" style="width:100%"><source src="'+o+'.mp3" type="audio/mp3" /><source src="'+o+'.ogg" type="audio/ogg" /><source src="'+o+'.aac" type="audio/aac" /><source src="'+o+'.wav" type="audio/wav" />':"<video "+l+" "+r+' controls="controls" poster="'+o+'.jpg" width="'+i.width+'" height="'+i.height+'"><source src="'+o+'.mp4" type="video/mp4" /><source src="'+o+'.webm" type="video/webm" /><source src="'+o+'.ogv" type="video/ogg" />'}return o&&(a+=c?"</audio>":"</video>"),"1"==W.addmediadownloadbutton&&(a+=c?'<p><strong>Download audio file:</strong> <a href="'+o+'.mp3">MP3 format</a> | <a href=" '+o+'.ogg">Ogg format</a> | <a href=" '+o+'.aac">Aac format</a></p>':'<p><strong>Download video:</strong> <a href="'+o+'.mp4">MP4 format</a> | <a href=" '+o+'.ogv">Ogg format</a> | <a href=" '+o+'.webm">WebM format</a></p>'),e(a)}function w(t){return t>=0&&(q.html(""),_=t,D=(_||!W.loop?_:H.length)-1,S=_+1,S==H.length&&(S=W.loop?0:-1),v(),X.addClass("mbLoading"),R&&"inline"==be&&!W.inlineClone&&R.adopt(q.getChildren()),H[t][2]||(H[t][2]=""),ce=H[t][2].split(" "),ne=ce.length,ne>1?(he=ce[ne-2].match("%")?e(window).width()*(.01*ce[ne-2].replace("%","")):ce[ne-2],me=ce[ne-1].match("%")?e(window).height()*(.01*ce[ne-1].replace("%","")):ce[ne-1]):(he="",me=""),re=H[t][0],G=void 0!=H[_][1]?H[_][1].split("::"):"",re.match(/quietube\.com/i)?(pe=re.split("v.php/"),re=pe[1]):re.match(/\/\/https:\/\/yfrog/i)&&(be=re.substring(re.length-1),be.match(/b|g|j|p|t/i)&&(be="image"),"s"==be&&(be="flash"),be.match(/f|z/i)&&(be="video"),re+=":iphone"),re.match(/\.gif|\.jpg|\.jpeg|\.png|twitpic\.com/i)||"image"==be?(be="img",re=re.replace(/twitpic\.com/i,"twitpic.com/show/full"),R=new Image,R.onload=g,R.src=re):re.match(/\.flv|\.mp4/i)||"video"==be?(be="video",he=he||W.defaultWidth,me=me||W.defaultHeight,R=u(""+W.playerpath+"?mediaURL="+re+"&allowSmoothing=true&autoPlay="+W.autoplay+"&buffer=6&showTimeco
1de="+W.showTimecode+"&loop="+W.medialoop+"&controlColor="+W.controlColor+"&controlBackColor="+W.controlBackColor+"&playerBackColor="+W.playerBackColor+"&defaultVolume="+W.volume+"&scaleIfFullScreen=true&showScalingButton=true&crop=false",{id:"mbVideo",width:he,height:me,params:{wmode:W.wmodeNB,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}},re),g()):re.match(/\.mp3|\.aac|tweetmic\.com|tmic\.fm/i)||"audio"==be?(be="audio",he=he||W.defaultWidth,me=me||"17",re.match(/tweetmic\.com|tmic\.fm/i)&&(re=re.split("/"),re[4]=re[4]||re[3],re="http://media4.fjarnet.net/tweet/tweetmicapp-"+re[4]+".mp3"),R=u(""+W.playerpath+"?mediaURL="+re+"&allowSmoothing=true&autoPlay="+W.autoplay+"&buffer=6&showTimecode="+W.showTimecode+"&loop="+W.medialoop+"&controlColor="+W.controlColor+"&controlBackColor="+W.controlBackColor+"&defaultVolume="+W.volume+"&scaleIfFullScreen=true&showScalingButton=true&crop=false",{id:"mbAudio",width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}},re),g()):re.match(/\.swf/i)||"flash"==be?(be="obj",he=he||W.defaultWidth,me=me||W.defaultHeight,R=u(re,{id:"mbFlash",width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/blip\.tv/i)?(be="obj",he=he||"640",me=me||"390",R=u(re,{src:re,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/break\.com/i)?(be="obj",he=he||"464",me=me||"376",ve=re.match(/\d{6}/g),R=u("http://embed.break.com/"+ve,{width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/dailymotion\.com/i)?(mediaSplit_video=re.split("video/"),mediaSplit_swf=re.split("swf/"),W.html5&&(mediaSplit_video.length>1||mediaSplit_swf.length>1)?(be="url",he=he||"640",me=me||"381",ve=mediaSplit_video[1]||mediaSplit_swf[1],R=e("<iframe />",{src:"http://www.dailymotion.com/embed/video/"+ve,id:ve,width:he,height:me,frameborder:0}),g()):(be="obj",ve=mediaSplit_swf[1],he=he||"480",me=me||"381",R=u("http://www.dailymotion.com/swf/"+ve,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g())):re.match(/facebook\.com/i)?(be="obj",he=he||"320",me=me||"240",pe=re.split("v="),pe=pe[1].split("&"),ve=pe[0],R=u("http://www.facebook.com/v/"+ve,{movie:"http://www.facebook.com/v/"+ve,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/flickr\.com(?!.+\/show\/)/i)?(be="obj",he=he||"500",me=me||"375",pe=re.split("/"),ve=pe[5],R=u("http://www.flickr.com/apps/video/stewart.swf",{id:ve,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:he,height:me,params:{flashvars:"photo_id="+ve+"&show_info_box="+W.flInfo,wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/gametrailers\.com/i)?(be="obj",he=he||"480",me=me||"392",ve=re.match(/\d{5}/g),R=u("http://www.gametrailers.com/remote_wrap.php?mid="+ve,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/google\.com\/videoplay/i)?(be="obj",he=he||"400",me=me||"326",pe=re.split("="),ve=pe[1],R=u("http://video.google.com/googleplayer.swf?docId="+ve+"&autoplay="+W.autoplayNum,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/megavideo\.com/i)?(be="obj",he=he||"640",me=me||"360",pe=re.split("="),ve=pe[1],R=u("http://wwwstatic.megavideo.com/mv_player.swf?v="+ve,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/metacafe\.com\/watch/i)?(be="obj",he=he||"400",me=me||"345",pe=re.split("/"),ve=pe[4],R=u("http://www.metacafe.com/fplayer/"+ve+"/.swf?playerVars=autoPlay="+W.autoplayYes,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/vids\.myspace\.com/i)?(be="obj",he=he||"425",me=me||"360",R=u(re,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/revver\.com/i)?(be="obj",he=he||"480",me=me||"392",pe=re.split("/"),ve=pe[4],R=u("http://flash.revver.com/player/1.0/player.swf?mediaId="+ve+"&affiliateId="+W.revverID+"&allowFullScreen="+W.revverFullscreen+"&autoStart="+W.autoplay+"&backColor=#"+W.revverBack+"&frontColor=#"+W.revverFront+"&gradColor=#"+W.revverGrad+"&shareUrl=revver",{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/rutube\.ru/i)?(be="obj",he=he||"470",me=me||"353",pe=re.split("="),ve=pe[1],R=u("http://video.rutube.ru/"+ve,{movie:"http://video.rutube.ru/"+ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/tudou\.com/i)?(be="obj",he=he||"400",me=me||"340",pe=re.split("/"),ve=pe[5],R=u("http://www.tudou.com/v/"+ve,{width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/twitcam\.com/i)?(be="obj",he=he||"320",me=me||"265",pe=re.split("/"),ve=pe[3],R=u("http://static.livestream.com/chromelessPlayer/wrappers/TwitcamPlayer.swf?hash="+ve,{width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/twitvid\.com/i)?(be="obj",he=he||"600",me=me||"338",pe=re.split("/"),ve=pe[3],R=u("http://www.twitvid.com/player/"+ve,{width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/ustream\.tv/i)?(be="obj",he=he||"400",me=me||"326",R=u(re+"&viewcount="+W.usViewers+"&
1autoplay="+W.autoplay,{width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/youku\.com/i)?(be="obj",he=he||"480",me=me||"400",pe=re.split("id_"),ve=pe[1],R=u("http://player.youku.com/player.php/sid/"+ve+"=/v.swf",{width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/youtube\.com\/watch/i)?(pe=re.split("v="),W.html5?(be="url",he=he||W.defaultWidth,me=me||W.defaultHeight,ve="mediaId_"+(new Date).getTime(),R=e("<iframe />",{src:"http://www.youtube.com/embed/"+pe[1],id:ve,width:he,height:me,allowfullscreen:W.fullscreen,frameborder:0}),g()):(be="obj",ve=pe[1],he=he||"480",me=me||"385",R=u("http://www.youtube.com/v/"+ve+"&autoplay="+W.autoplayNum+"&fs="+W.fullscreenNum+"&border="+W.ytBorder+"&color1=0x"+W.ytColor1+"&color2=0x"+W.ytColor2+"&rel="+W.ytRel+"&showinfo="+W.ytInfo+"&showsearch="+W.ytSearch,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g())):re.match(/youtube\.com\/view/i)?(be="obj",pe=re.split("p="),ve=pe[1],he=he||"480",me=me||"385",R=u("http://www.youtube.com/p/"+ve+"&autoplay="+W.autoplayNum+"&fs="+W.fullscreenNum+"&border="+W.ytBorder+"&color1=0x"+W.ytColor1+"&color2=0x"+W.ytColor2+"&rel="+W.ytRel+"&showinfo="+W.ytInfo+"&showsearch="+W.ytSearch,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/veoh\.com/i)?(be="obj",he=he||"410",me=me||"341",re=re.replace("%3D","/"),pe=re.split("watch/"),ve=pe[1],R=u("http://www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.5.2.1001&permalinkId="+ve+"&player=videodetailsembedded&videoAutoPlay="+W.AutoplayNum+"&id=anonymous",{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g()):re.match(/viddler\.com/i)?(be="obj",he=he||"437",me=me||"370",pe=re.split("/"),ve=pe[4],R=u(re,{id:"viddler_"+ve,movie:re,classid:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen,id:"viddler_"+ve,movie:re}}),g()):re.match(/vimeo\.com/i)?(he=he||"640",me=me||"360",pe=re.split("/"),ve=pe[3],W.html5?(be="url",ve="mediaId_"+(new Date).getTime(),R=e("<iframe />",{src:"http://player.vimeo.com/video/"+pe[3]+"?portrait="+W.vmPortrait,id:ve,width:he,height:me,frameborder:0}),g()):(be="obj",R=u("http://www.vimeo.com/moogaloop.swf?clip_id="+ve+"&server=www.vimeo.com&fullscreen="+W.fullscreenNum+"&autoplay="+W.autoplayNum+"&show_title="+W.vmTitle+"&show_byline="+W.vmByline+"&show_portrait="+W.vmPortrait+"&color="+W.vmColor,{id:ve,width:he,height:me,params:{wmode:W.wmode,bgcolor:W.bgcolor,allowscriptaccess:W.scriptaccess,allowfullscreen:W.fullscreen}}),g())):re.match(/\#mb_/i)?(be="inline",he=he||W.defaultWidth,me=me||W.defaultHeight,URLsplit=re.split("#"),R=e("#"+URLsplit[1]),g()):re.match(/googleusercontent/i)?(be="img",R=new Image,R.onload=g,R.src=re):(be="url",he=he||W.defaultWidth,me=me||W.defaultHeight,ve="mediaId_"+(new Date).getTime(),R=e("<iframe />",{src:re,id:ve,width:he,height:me,allowfullscreen:W.fullscreen,frameborder:0}),g())),!1}function g(){q.css("opacity",0),ee=te="",q.off("click",c),"img"==be&&q.on("click",c),"img"==be?(he=R.width,me=R.height,ee=he,te=me,W.imgBackground?q.css({backgroundImage:"url("+re+")",display:""}):(me>=z-W.imgPadding&&me/z>
1=he/N?(me=z-W.imgPadding,he=parseInt(me/R.height*he,10)):he>=N-W.imgPadding&&he/N>me/z&&(he=N-W.imgPadding,me=parseInt(he/R.width*me,10)),W.clickBlock&&e(R).on("mousedown",function(e){e.stopPropagation()}).on("contextmenu",function(e){e.stopPropagation()}),q.css({backgroundImage:"none",display:""}),q.append(R))):"inline"==be?(q.css({backgroundImage:"none",display:""}),W.inlineClone?q.grab(R.get("html")):q.adopt(R.getChildren())):"qt"==be?(q.css({backgroundImage:"none",display:""}),q.append(R)):"ios"==be||e.browser.ios?(q.css({backgroundImage:"none",display:""}),q.html(W.linkText.replace(/\{x\}/gi,re)),he=W.DefaultWidth,me=W.DefaultHeight):"url"==be||"video"==be||"audio"==be?(q.css({backgroundImage:"none",display:""}),q.append(R)):"obj"==be?e.flash.hasVersion(8)?(q.css({backgroundImage:"none",display:""}),q.append(R)):(q.css({backgroundImage:"none",display:""}),q.html('<div id="mbError"><b>Error</b><br/>Adobe Flash is either not installed or not up to date, 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>'),he=W.DefaultWidth,me=W.DefaultHeight):(q.css({backgroundImage:"none",display:""}),q.html(W.flashText),he=W.defaultWidth,me=W.defaultHeight),ee=ee||he,te=te||me,"img"!=be&&(me>=z-W.imgPadding&&me/z>
1=he/N?(me=z-W.imgPadding,he=parseInt(me/R.height*he,10)):he>=N-W.imgPadding&&he/N>me/z&&(he=N-W.imgPadding,me=parseInt(he/R.width*me,10))),e(window).bind("resize",t),Q.empty().html(W.showCaption?G[0]:""),$.empty().html(W.showCaption&&G.length>1?G[1]:""),J.empty().html(W.showCounter&&H.length>1?W.counterText.replace(/\{x\}/,W.countBack?H.length-_:_+1).replace(/\{y\}/,H.length):""),D>=0&&H[D][0].match(/\.gif|\.jpg|\.jpeg|\.png|twitpic\.com/i)&&(ge.src=H[D][0].replace(/twitpic\.com/i,"twitpic.com/show/full")),S>=0&&H[S][0].match(/\.gif|\.jpg|\.jpeg|\.png|twitpic\.com/i)&&(fe.src=H[S][0].replace(/twitpic\.com/i,"twitpic.com/show/full")),D>=0&&K.css("display",""),S>=0&&Z.css("display",""),S>=0&&q.hasClass("paused")&&playLink.css("display",""),S>=0&&!q.hasClass("paused")&&pauseLink.css("display",""),q.css({width:he+"px",height:me+"px"}),Y.css({width:he-we+"px"}),$.css({width:he-we+"px"}),he=q.outerWidth(),me=q.outerHeight()+Y.outerHeight(),A=me>=F+F?-F:-(me/2),V=he>=E+E?-E:-(he/2);var s=i();if(W.resizeOpening?X.animate({width:s.width,height:s.height,top:s.top,marginTop:s.marginTop,marginLeft:s.marginLeft},W.resizeDuration,f):(X.css({width:he,height:me,marginTop:A,marginLeft:V}),f()),a(),o(),"img"==be){var l=document.getElementById("mbMedia");l.addEventListener("touchstart",k,!1),l.addEventListener("touchmove",I,!1),l.addEventListener("touchend",x,!1),l.addEventListener("touchcancel",C,!1)}}function f(){q.animate({opacity:1},360,b)}function b(){d(),X.removeClass("mbLoading"),Y.animate({opacity:1},240)}function v(){R&&("inline"!=be||W.inlineClone||R.adopt(q.getChildren()),R.onload=function(){}),K.css("display","none"),Z.css("display","none"),playLink.css("display","none"),pauseLink.css("display","none")}function y(){if(q.addClass("paused"),h(),_>=0){"inline"!=be||W.inlineClone||R.adopt(q.getChildren()),R.onload=function(){},q.empty();for(var t in O)O[t].cancel();X.css("display","none"),ie.css("display","none"),e("#mbOverlay").fadeTo(360,0,function(){e(this).css("display","none")})}return!1}function k(e){e.preventDefault(),Ie=e.touches.length,1==Ie?(xe=e.touches[0].pageX,Ce=e.touches[0].pageY,ke="",Ae=q.find("img").css("marginLeft"),Ee=q.find("img").css("marginTop")):C(e)}function I(e){e.preventDefault(),1==e.touches.length?(Te=e.touches[0].pageX,je=e.touches[0].pageY,q.find("img").hasClass("zoomingck")&&M()):C(e)}function x(e){e.preventDefault(),1==Ie&&0!=Te?(He=Math.round(Math.sqrt(Math.pow(Te-xe,2)+Math.pow(je-Ce,2))),He>=We&&!q.find("img").hasClass("zoomingck")?(T(),j(),L(),C(e)):C(e)):(P(),C(e))}function C(e){Ie=0,xe=0,Ce=0,Te=0,je=0,Le=0,Pe=0,Me=0,Be=0,He=0,_e=null,De=null,ke=null,Se=null,Fe=null}function T(){var e=xe-Te,t=je-Ce,i=(Math.round(Math.sqrt(Math.pow(e,2)+Math.pow(t,2))),Math.atan2(t,e));_e=Math.round(180*i/Math.PI),0>_e&&(_e=360-Math.abs(_e))}function j(){De=45>=_e&&_e>=0?"left":360>=_e&&_e>=315?"left":_e>=135&&225>=_e?"right":_e>45&&135>_e?"down":"up"}function L(){document.getElementById(ke);"left"==De?c():"right"==De&&r()}function P(){var t=q.find("img");t.hasClass("zoomingck")?(q.css("text-align","center"),t.css("marginLeft",0).css("marginTop",0).width(t.attr("data-width")).css("max-width",t.attr("data-maxwidth")).css("max-height",t.attr("data-maxheight")).removeClass("zoomingck")):(q.css("text-align","left"),t.attr("data-width",t.css("width")).attr("data-maxwidth",t.css("max-width")).attr("data-maxheight",t.css("max-height")).width(2*e(this).width()).css("max-width","none").css("max-height","none").addClass("zoomingck"))}function M(){var t=q.find("img");Se=Se||event.touches[0].pageX,Fe=Fe||event.touches[0].pageY;var i=Se-event.touches[0].pageX,o=Fe-event.touches[0].pageY;t.width()>e(window).width()&&(parseInt(Ae)-i<0&&e(window).width()-(parseInt(Ae)-i)<t.width()?t.css("marginLeft",function(e){return parseInt(Ae)-i}):e(window).width()-(parseInt(Ae)-i)>t.width()&&t.css("marginLeft",-t.width()+e(window).width())),t.height()>e(window).height()&&(parseInt(Ee)-o<0&&e(window).height()-(parseInt(Ee)-o)<t.height()?t.css("marginTop",function(e){return parseInt(Ee)-o}):e(window).height()-(parseInt(Ee)-o)>t.height()&&t.css("marginTop",-t.height()+e(window).height()))}if(void 0==e.browser){var B=navigator.userAgent.toLowerCase();e.browser={version:(B.match(/.+(?:rv|it|ra|ie|me)[\/: ]([d.]+)/)||[])[1],chrome:/chrome/.test(B
1),safari:/webkit/.test(B)&&!/chrome/.test(B),opera:/opera/.test(B),msie:/msie/.test(B)&&!/opera/.test(B),ios:/(iPod|iPhone|iPad)/.test(B),mozilla:/mozilla/.test(B)&&!/(compatible|webkit)/.test(B)}}var W,H,_,D,S,F,A,E,V,N,z,O,R,U,X,q,Y,G,Q,$,J,K,Z,ee,te,ie,oe,ae,se,le,re,ce,ne,de,he,me,pe,ue,we,ge=new Image,fe=new Image,be="none",ve="mediaBox";jQuery(document).ready(function(){U=e('<div id="mbOverlay" />').css("display","none").click(y),X=e('<div id="mbCenter" />').css("display","none"),ie=e('<div id="mbToolbar" />').css("display","none"),e(document.body).append(U,X),X.append(e('<div id="mbContainer" />')),container=e("#mbContainer"),container.append(e('<div id="mbMedia" />')),q=e("#mbMedia"),X.append(Y=e('<div id="mbBottom">')),closeLink=e('<a id="mbCloseLink" href="#" />').click(y),Z=e('<a id="mbNextLink" href="#" />').click(c),K=e('<a id="mbPrevLink" href="#" />').click(r),playLink=e('<a id="mbPlayLink" href="#" />').click(n),pauseLink=e('<a id="mbPauseLink" href="#" />').click(m),Q=e('<div id="mbTitle" />'),J=e('<div id="mbNumber" />'),$=e('<div id="mbCaption" />'),oe=e('<div id="mbPieLoader" />'),ae=e('<div id="mbPieLoaderBar" />'),oe.append(ae)}),Mediabox={close:function(){y()},recenter:function(){X&&(E="50%",X.css({left:E,marginLeft:-(he/2)-ue}))},open:function(i,o,a){return W={buttonText:["<big>«</big>","<big>»</big>","<big>×</big>","<big>►</big>","<big>❙❙</big>"],counterText:"({x} of {y})",linkText:'<a href="{x}" target="_new">{x}</a><br/>open in a new tab</div>',flashText:'<b>Error</b><br/>Adobe Flash is either not installed or not up to date, 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.',center:!1,loop:!1,keyboard:!0,keyboardAlpha:!1,keyboardStop:!1,overlayOpacity:.8,resizeOpening:!0,resizeDuration:240,initialWidth:320,initialHeight:180,defaultWidth:640,defaultHeight:360,showCaption:!0,showCounter:!0,countBack:!1,clickBlock:!0,iOShtml:!0,isMobileEnable:!0,mobileDetection:"resolution",isMobile:!1,mobileResolution:"640",imgBackground:!1,imgPadding:100,overflow:"auto",inlineClone:!1,html5:"true",scriptaccess:"true",fullscreen:"true",fullscreenNum:"1",autoplay:"true",autoplayNum:"1",autoplayYes:"yes",volume:"100",medialoop:"true",bgcolor:"#000000",wmode:"transparent",addmediadownloadbutton:"0",playerpath:"plugins/system/mediabox_ck/mediabox_ck/NonverBlaster.swf",showTimecode:"false",controlColor:"0xFFFFFF",controlBackColor:"0x0000000",playerBackColor:"",wmodeNB:"transparent",controller:"true",flInfo:"true",revverID:"187866",revverFullscreen:"true",revverBack:"000000",revverFront:"ffffff",revverGrad:"000000",usViewers:"true",ytBorder:"0",ytColor1:"000000",ytColor2:"333333",ytRel:"0",ytInfo:"1",ytSearch:"0",vuPlayer:"basic",vmTitle:"1",vmByline:"1",vmPortrait:"1",vmColor:"ffffff",attribType:"rel",showToolbar:"1",diapoTime:1e3},W=e.extend({},W,a),"string"==typeof i&&(i=[[i,o,a]],o=0),H=i,W.loop=W.loop&&H.length>1,"1"==W.showToolbar&&H.length>1?(ie.append(closeLink,Z,pauseLink,playLink,K,oe),Y.append(Q,$,J)):Y.append(closeLink,Z,K,Q,J,$),K.html(W.buttonText[0]),Z.html(W.buttonText[1]),closeLink.html(W.buttonText[2]),playLink.html(W.buttonText[3]),pauseLink.html(W.buttonText[4]).hide(),q.addClass("paused"),t(),s(!0),F=e(window).scrollTop()+e(window).height()/2,E="50%",mediaLeftMargin="auto"==q.css("margin-left")?0:q.css("margin-left"),ue=parseInt(X.css("padding-left"))+parseInt(mediaLeftMargin)+parseInt(q.css("padding-left")),we=parseInt(Y.css("margin-left"))+parseInt(Y.css("padding-left"))+parseInt(Y.css("margin-right"))+parseInt(Y.css("padding-right")),X.css({top:F,left:E,width:W.initialWidth,height:W.initialHeight,marginTop:-(W.initialHeight/2),marginLeft:-(W.initialWidth/2),display:""}),H.length>1&&ie.css({top:e(window).scrollTop(),left:E,display:""}),e("#mbOverlay").css("opacity",0).fadeTo(360,W.overlayOpacity),"1"==W.showToolbar&&H.length>1&&p(),w(o)}},e.fn.mediabox=function(t,i,o){i=i||function(i){return de=e(i).attr(t.attribType).split(/[\[\]]/),de=de[1],[e(i).attr("href"),e(i).attr("data-title"),de]},o=o||function(){return!0};var a=this;return a.map(function(){e(this).attr("mediaboxck_done","1").attr("data-title",e(this).attr("title")).removeAttr("title")}),a.on("click",function(e){curlink=this,e.preventDefault();var s=a.filter(function(){return o(curlink,this)}),l=[],r=[];return s.each(function(e,t){r.indexOf(t.toString())<0&&(l.push(s[e]),r.push(s[e].toString()))}),Mediabox.open(l.map(i),r.indexOf(this.toString()),t)}
1),a},le=0;var ye=.005,ke=null,Ie=0,xe=0,Ce=0,Te=0,je=0,Le=0,Pe=0,Me=0,Be=0,We=72,He=0,_e=null,De=null,Se=null,Fe=null,Ae=0,Ee=0}(jQuery),function(e,t,i){function o(e,t){var i=(e[0]||0)-(t[0]||0);return i>0||!i&&e.length>0&&o(e.slice(1),t.slice(1))}function a(e){if(typeof e!=r)return e;var t=[],i="";for(var o in e)i=typeof e[o]==r?a(e[o]):[o,c?encodeURI(e[o]):e[o]].join("="),t.push(i);return t.join("&")}function s(e){var t=[];for(var i in e)e[i]&&t.push([i,'="',e[i],'"'].join(""));return t.join(" ")}function l(e){var t=[];for(var i in e)t.push(['<param name="',i,'" value="',a(e[i]),'" />'].join(""));return t.join("")}var r="object",c=!0;try{var n=i.description||function(){return new i("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}()}catch(d){n="Unavailable"}var h=n.match(/\d+/g)||[0];e[t]={available:h[0]>0,activeX:i&&!i.name,version:{original:n,array:h,string:h.join("."),major:parseInt(h[0],10)||0,minor:parseInt(h[1],10)||0,release:parseInt(h[2],10)||0},hasVersion:function(e){return e=/string|number/.test(typeof e)?e.toString().split("."):/object/.test(typeof e)?[e.major,e.minor]:e||[0,0],o(h,e)},encodeParams:!0,expressInstall:"expressInstall.swf",expressInstallIsActive:!1,create:function(e){if(!e.swf||this.expressInstallIsActive||!this.available&&!e.hasVersionFail)return!1;if(!this.hasVersion(e.hasVersion||1)){if(this.expressInstallIsActive=!0,"function"==typeof e.hasVersionFail&&!e.hasVersionFail.apply(e))return!1;e={swf:e.expressInstall||this.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:this.activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:e.swf,type:"application/x-shockwave-flash",id:e.id||"flash_"+Math.floor(999999999*Math.random()),width:e.width||320,height:e.height||180,style:e.style||""},c="undefined"!=typeof e.useEncode?e.useEncode:this.encodeParams,e.movie=e.swf,e.wmode=e.wmode||"opaque",delete e.fallback,delete e.hasVersion,delete e.hasVersionFail,delete e.height,delete e.id,delete e.swf,delete e.useEncode,delete e.width;var t=document.createElement("div");return t.innerHTML=["<object ",s(attrs),">",l(e),"</object>"].join(""),t.firstChild}},e.fn[t]=function(i){var o=this.find(r).andSelf().filter(r);return/string|object/.test(typeof i)&&this.each(function(){var o,a=e(this);i=typeof i==r?i:{swf:i},i.fallback=this,(o=e[t].create(i))&&(a.children().remove(),a.html(o))}),"function"==typeof i&&o.each(function(){var o=this;o.jsInteractionTimeoutMs=o.jsInteractionTimeoutMs||0,o.jsInteractionTimeoutMs<660&&(o.clientWidth||o.clientHeight?i.call(o):setTimeout(function(){e(o)[t](i)},o.jsInteractionTimeoutMs+66))}),o}}(jQuery,"flash",navigator.plugins["Shockwave Flash"]||window.ActiveXObject);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.