1608. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2/1/2017 2:57:59 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

1608.1 Files compared

# Location File Last Modified
1 C:\Araxis_Merge_Comprasion\Pub_un\BTSSS_CIF_122016.zip\BTSSS_CIF_12_20_16\clean\CRM Portal\trunk\BTSSSPortal\js\prettyPhoto jquery.prettyPhoto.min.js Tue Dec 20 19:50:42 2016 UTC
2 Wed Feb 1 19:57:59 2017 UTC

1608.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 0 0
Removed 1 1

1608.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

1608.4 Active regular expressions

No regular expressions were active.

1608.5 Comparison detail

1   (function( e){functio n t(){var  e=location .href;hash tag=e.inde xOf("#pret tyPhoto")! ==-1?decod eURI(e.sub string(e.i ndexOf("#p rettyPhoto ")+1,e.len gth)):fals e;return h ashtag}fun ction n(){ if(typeof  theRel=="u ndefined") return;loc ation.hash =theRel+"/ "+rel_inde x+"/"}func tion r(){i f(location .href.inde xOf("#pret tyPhoto")! ==-1)locat ion.hash=" prettyPhot o"}functio n i(e,t){e =e.replace (/[\[]/,"\ \[").repla ce(/[\]]/, "\\]");var  n="[\\?&] "+e+"=([^& #]*)";var  r=new RegE xp(n);var  i=r.exec(t );return i ==null?"": i[1]}e.pre ttyPhoto={ version:"3 .1.5"};e.f n.prettyPh oto=functi on(s){func tion g(){e (".pp_load erIcon").h ide();proj ectedTop=s croll_pos[ "scrollTop "]+(d/2-a[ "container Height"]/2 );if(proje ctedTop<0) projectedT op=0;$ppt. fadeTo(set tings.anim ation_spee d,1);$pp_p ic_holder. find(".pp_ content"). animate({h eight:a["c ontentHeig ht"],width :a["conten tWidth"]}, settings.a nimation_s peed);$pp_ pic_holder .animate({ top:projec tedTop,lef t:v/2-a["c ontainerWi dth"]/2<0? 0:v/2-a["c ontainerWi dth"]/2,wi dth:a["con tainerWidt h"]},setti ngs.animat ion_speed, function() {$pp_pic_h older.find (".pp_hove rContainer ,#fullResI mage").hei ght(a["hei ght"]).wid th(a["widt h"]);$pp_p ic_holder. find(".pp_ fade").fad eIn(settin gs.animati on_speed); if(isSet&& S(pp_image s[set_posi tion])=="i mage"){$pp _pic_holde r.find(".p p_hoverCon tainer").s how()}else {$pp_pic_h older.find (".pp_hove rContainer ").hide()} if(setting s.allow_ex pand){if(a ["resized" ]){e("a.pp _expand,a. pp_contrac t").show() }else{e("a .pp_expand ").hide()} }if(settin gs.autopla y_slidesho w&&!m&&!f) e.prettyPh oto.startS lideshow() ;settings. changepict urecallbac k();f=true });C();s.a jaxcallbac k()}functi on y(t){$p p_pic_hold er.find("# pp_full_re s object,# pp_full_re s embed"). css("visib ility","hi dden");$pp _pic_holde r.find(".p p_fade").f adeOut(set tings.anim ation_spee d,function (){e(".pp_ loaderIcon ").show(); t()})}func tion b(t){ t>1?e(".pp _nav").sho w():e(".pp _nav").hid e()}functi on w(e,t){ resized=fa lse;E(e,t) ;imageWidt h=e,imageH eight=t;if ((p>v||h>d )&&doresiz e&&setting s.allow_re size&&!u){ resized=tr ue,fitting =false;whi le(!fittin g){if(p>v) {imageWidt h=v-200;im ageHeight= t/e*imageW idth}else  if(h>d){im ageHeight= d-200;imag eWidth=e/t *imageHeig ht}else{fi tting=true }h=imageHe ight,p=ima geWidth}if (p>v||h>d) {w(p,h)}E( imageWidth ,imageHeig ht)}return {width:Mat h.floor(im ageWidth), height:Mat h.floor(im ageHeight) ,container Height:Mat h.floor(h) ,container Width:Math .floor(p)+ settings.h orizontal_ padding*2, contentHei ght:Math.f loor(l),co ntentWidth :Math.floo r(c),resiz ed:resized }}function  E(t,n){t= parseFloat (t);n=pars eFloat(n); $pp_detail s=$pp_pic_ holder.fin d(".pp_det ails");$pp _details.w idth(t);de tailsHeigh t=parseFlo at($pp_det ails.css(" marginTop" ))+parseFl oat($pp_de tails.css( "marginBot tom"));$pp _details=$ pp_details .clone().a ddClass(se ttings.the me).width( t).appendT o(e("body" )).css({po sition:"ab solute",to p:-1e4});d etailsHeig ht+=$pp_de tails.heig ht();detai lsHeight=d etailsHeig ht<=34?36: detailsHei ght;$pp_de tails.remo ve();$pp_t itle=$pp_p ic_holder. find(".ppt ");$pp_tit le.width(t );titleHei ght=parseF loat($pp_t itle.css(" marginTop" ))+parseFl oat($pp_ti tle.css("m arginBotto m"));$pp_t itle=$pp_t itle.clone ().appendT o(e("body" )).css({po sition:"ab solute",to p:-1e4});t itleHeight +=$pp_titl e.height() ;$pp_title .remove(); l=n+detail sHeight;c= t;h=l+titl eHeight+$p p_pic_hold er.find(". pp_top").h eight()+$p p_pic_hold er.find(". pp_bottom" ).height() ;p=t}funct ion S(e){i f(e.match( /youtube\. com\/watch /i)||e.mat ch(/youtu\ .be/i)){re turn"youtu be"}else i f(e.match( /vimeo\.co m/i)){retu rn"vimeo"} else if(e. match(/\b. mov\b/i)){ return"qui cktime"}el se if(e.ma tch(/\b.sw f\b/i)){re turn"flash "}else if( e.match(/\ biframe=tr ue\b/i)){r eturn"ifra me"}else i f(e.match( /\bajax=tr ue\b/i)){r eturn"ajax "}else if( e.match(/\ bcustom=tr ue\b/i)){r eturn"cust om"}else i f(e.substr (0,1)=="#" ){return"i nline"}els e{return"i mage"}}fun ction x(){ if(doresiz e&&typeof  $pp_pic_ho lder!="und efined"){s croll_pos= T();conten tHeight=$p p_pic_hold er.height( ),contentw idth=$pp_p ic_holder. width();pr ojectedTop =d/2+scrol l_pos["scr ollTop"]-c ontentHeig ht/2;if(pr ojectedTop <0)project edTop=0;if (contentHe ight>d)ret urn;$pp_pi c_holder.c ss({top:pr ojectedTop ,left:v/2+ scroll_pos ["scrollLe ft"]-conte ntwidth/2} )}}functio n T(){if(s elf.pageYO ffset){ret urn{scroll Top:self.p ageYOffset ,scrollLef t:self.pag eXOffset}} else if(do cument.doc umentEleme nt&&docume nt.documen tElement.s crollTop){ return{scr ollTop:doc ument.docu mentElemen t.scrollTo p,scrollLe ft:documen t.document Element.sc rollLeft}} else if(do cument.bod y){return{ scrollTop: document.b ody.scroll Top,scroll Left:docum ent.body.s crollLeft} }}function  N(){d=e(w indow).hei ght(),v=e( window).wi dth();if(t ypeof $pp_ overlay!=" undefined" )$pp_overl ay.height( e(document ).height() ).width(v) }function  C(){if(isS et&&settin gs.overlay _gallery&& S(pp_image s[set_posi tion])=="i mage"){ite mWidth=52+ 5;navWidth =settings. theme=="fa cebook"||s ettings.th eme=="pp_d efault"?50 :30;itemsP erPage=Mat h.floor((a ["containe rWidth"]-1 00-navWidt h)/itemWid th);itemsP erPage=ite msPerPage< pp_images. length?ite msPerPage: pp_images. length;tot alPage=Mat h.ceil(pp_ images.len gth/itemsP erPage)-1; if(totalPa ge==0){nav Width=0;$p p_gallery. find(".pp_ arrow_next ,.pp_arrow _previous" ).hide()}e lse{$pp_ga llery.find (".pp_arro w_next,.pp _arrow_pre vious").sh ow()}galle ryWidth=it emsPerPage *itemWidth ;fullGalle ryWidth=pp _images.le ngth*itemW idth;$pp_g allery.css ("margin-l eft",-(gal leryWidth/ 2+navWidth /2)).find( "div:first ").width(g alleryWidt h+5).find( "ul").widt h(fullGall eryWidth). find("li.s elected"). removeClas s("selecte d");goToPa ge=Math.fl oor(set_po sition/ite msPerPage) <totalPage ?Math.floo r(set_posi tion/items PerPage):t otalPage;e .prettyPho to.changeG alleryPage (goToPage) ;$pp_galle ry_li.filt er(":eq("+ set_positi on+")").ad dClass("se lected")}e lse{$pp_pi c_holder.f ind(".pp_c ontent").u nbind("mou seenter mo useleave") }}function  k(t){if(s ettings.so cial_tools )facebook_ like_link= settings.s ocial_tool s.replace( "{location _href}",en codeURICom ponent(loc ation.href ));setting s.markup=s ettings.ma rkup.repla ce("{pp_so cial}","") ;e("body") .append(se ttings.mar kup);$pp_p ic_holder= e(".pp_pic _holder"), $ppt=e(".p pt"),$pp_o verlay=e(" div.pp_ove rlay");if( isSet&&set tings.over lay_galler y){current GalleryPag e=0;toInje ct="";for( var n=0;n< pp_images. length;n++ ){if(!pp_i mages[n].m atch(/\b(j pg|jpeg|pn g|gif)\b/g i)){classn ame="defau lt";img_sr c=""}else{ classname= "";img_src =pp_images [n]}toInje ct+="<li c lass='"+cl assname+"' ><a href=' #'><img sr c='"+img_s rc+"' widt h='50' alt ='' /></a> </li>"}toI nject=sett ings.galle ry_markup. replace(/{ gallery}/g ,toInject) ;$pp_pic_h older.find ("#pp_full _res").aft er(toInjec t);$pp_gal lery=e(".p p_pic_hold er .pp_gal lery"),$pp _gallery_l i=$pp_gall ery.find(" li");$pp_g allery.fin d(".pp_arr ow_next"). click(func tion(){e.p rettyPhoto .changeGal leryPage(" next");e.p rettyPhoto .stopSlide show();ret urn false} );$pp_gall ery.find(" .pp_arrow_ previous") .click(fun ction(){e. prettyPhot o.changeGa lleryPage( "previous" );e.pretty Photo.stop Slideshow( );return f alse});$pp _pic_holde r.find(".p p_content" ).hover(fu nction(){$ pp_pic_hol der.find(" .pp_galler y:not(.dis abled)").f adeIn()},f unction(){ $pp_pic_ho lder.find( ".pp_galle ry:not(.di sabled)"). fadeOut()} );itemWidt h=52+5;$pp _gallery_l i.each(fun ction(t){e (this).fin d("a").cli ck(functio n(){e.pret tyPhoto.ch angePage(t );e.pretty Photo.stop Slideshow( );return f alse})})}i f(settings .slideshow ){$pp_pic_ holder.fin d(".pp_nav ").prepend ('<a href= "#" class= "pp_play"> Play</a>') ;$pp_pic_h older.find (".pp_nav  .pp_play") .click(fun ction(){e. prettyPhot o.startSli deshow();r eturn fals e})}$pp_pi c_holder.a ttr("class ","pp_pic_ holder "+s ettings.th eme);$pp_o verlay.css ({opacity: 0,height:e (document) .height(), width:e(wi ndow).widt h()}).bind ("click",f unction(){ if(!settin gs.modal)e .prettyPho to.close() });e("a.pp _close").b ind("click ",function (){e.prett yPhoto.clo se();retur n false}); if(setting s.allow_ex pand){e("a .pp_expand ").bind("c lick",func tion(t){if (e(this).h asClass("p p_expand") ){e(this). removeClas s("pp_expa nd").addCl ass("pp_co ntract");d oresize=fa lse}else{e (this).rem oveClass(" pp_contrac t").addCla ss("pp_exp and");dore size=true} y(function (){e.prett yPhoto.ope n()});retu rn false}) }$pp_pic_h older.find (".pp_prev ious, .pp_ nav .pp_ar row_previo us").bind( "click",fu nction(){e .prettyPho to.changeP age("previ ous");e.pr ettyPhoto. stopSlides how();retu rn false}) ;$pp_pic_h older.find (".pp_next , .pp_nav  .pp_arrow_ next").bin d("click", function() {e.prettyP hoto.chang ePage("nex t");e.pret tyPhoto.st opSlidesho w();return  false});x ()}s=jQuer y.extend({ hook:"rel" ,animation _speed:"fa st",ajaxca llback:fun ction(){}, slideshow: 5e3,autopl ay_slidesh ow:false,o pacity:.8, show_title :true,allo w_resize:t rue,allow_ expand:tru e,default_ width:500, default_he ight:344,c ounter_sep arator_lab el:"/",the me:"pp_def ault",hori zontal_pad ding:20,hi deflash:fa lse,wmode: "opaque",a utoplay:tr ue,modal:f alse,deepl inking:tru e,overlay_ gallery:tr ue,overlay _gallery_m ax:30,keyb oard_short cuts:true, changepict urecallbac k:function (){},callb ack:functi on(){},ie6 _fallback: true,marku p:'<div cl ass="pp_pi c_holder">                                               <div cla ss="ppt">  </div>                                                    <div c lass="pp_t op">                                                         <div  class="pp _left"></d iv>                                                          <div  class="pp _middle">< /div>                                                        <div  class="pp _right"></ div>                                                </ div>                                              <div  class="pp _content_c ontainer">                                                            <div c lass="pp_l eft">                                                        <div  class="pp _right">                                                                <div  class="pp _content">                                                                                <div cla ss="pp_loa derIcon">< /div>                                                                              <div  class="pp _fade">                                                                                   <a href= "#" class= "pp_expand " title="E xpand the  image">Exp and</a>                                                                                       <div  class="pp _hoverCont ainer">                                                                                                  <a c lass="pp_n ext" href= "#">next</ a>                                                                                            <a c lass="pp_p revious" h ref="#">pr evious</a>                                                                                    </di v>                                                                                 <div  id="pp_fu ll_res"></ div>                                                                                    <div class ="pp_detai ls">                                                                                                 <div cla ss="pp_nav ">                                                                                                     <a hre f="#" clas s="pp_arro w_previous ">Previous </a>                                                                                                       <p  class="cu rrentTextH older">0/0 </p>                                                                                                     <a h ref="#" cl ass="pp_ar row_next"> Next</a>                                                                                               </div>                                                                                           <p class ="pp_descr iption"></ p>                                                                                          <div c lass="pp_s ocial">{pp _social}</ div>                                                                                                 <a class ="pp_close " href="#" >Close</a>                                                                                  </div>                                                                         </di v>                                                                </div>                                                       </di v>                                                       </div>                                               </div>                                              <d iv class=" pp_bottom" >                                                              <d iv class=" pp_left">< /div>                                                          <d iv class=" pp_middle" ></div>                                                        <d iv class=" pp_right"> </div>                                                 </div>                                      </div>                                      <div class ="pp_overl ay"></div> ',gallery_ markup:'<d iv class=" pp_gallery ">                                                                      <a h ref="#" cl ass="pp_ar row_previo us">Previo us</a>                                                                    <d iv>                                                                          <ul>                                                                                    {gallery}                                                                               </ul>                                                                 </div>                                                                <a  href="#"  class="pp_ arrow_next ">Next</a>                                                            </div> ',image_ma rkup:'<img  id="fullR esImage" s rc="{path} " />',flas h_markup:' <object cl assid="cls id:D27CDB6 E-AE6D-11c f-96B8-444 553540000"  width="{w idth}" hei ght="{heig ht}"><para m name="wm ode" value ="{wmode}"  /><param  name="allo wfullscree n" value=" true" /><p aram name= "allowscri ptaccess"  value="alw ays" /><pa ram name=" movie" val ue="{path} " /><embed  src="{pat h}" type=" applicatio n/x-shockw ave-flash"  allowfull screen="tr ue" allows criptacces s="always"  width="{w idth}" hei ght="{heig ht}" wmode ="{wmode}" ></embed>< /object>', quicktime_ markup:'<o bject clas sid="clsid :02BF25D5- 8C17-4B23- BC80-D3488 ABDDC6B" c odebase="h ttp://www. apple.com/ qtactivex/ qtplugin.c ab" height ="{height} " width="{ width}"><p aram name= "src" valu e="{path}" ><param na me="autopl ay" value= "{autoplay }"><param  name="type " value="v ideo/quick time"><emb ed src="{p ath}" heig ht="{heigh t}" width= "{width}"  autoplay=" {autoplay} " type="vi deo/quickt ime" plugi nspage="ht tp://www.a pple.com/q uicktime/d ownload/"> </embed></ object>',i frame_mark up:'<ifram e src ="{p ath}" widt h="{width} " height=" {height}"  frameborde r="no"></i frame>',in line_marku p:'<div cl ass="pp_in line">{con tent}</div >',custom_ markup:"", social_too ls:'<div c lass="twit ter"><a hr ef="http:/ /twitter.c om/share"  class="twi tter-share -button" d ata-count= "none">Twe et</a><scr ipt type=" text/javas cript" src ="http://p latform.tw itter.com/ widgets.js "></script ></div><di v class="f acebook">< iframe src ="//www.fa cebook.com /plugins/l ike.php?lo cale=en_US &href={loc ation_href }&layout=b utton_coun t&show_fac es=true&wi dth=500&ac tion=like& font&color scheme=lig ht&height= 23" scroll ing="no" f rameborder ="0" style ="border:n one; overf low:hidden ; width:50 0px; heigh t:23px;" a llowTransp arency="tr ue"></ifra me></div>' },s);var o =this,u=fa lse,a,f,l, c,h,p,d=e( window).he ight(),v=e (window).w idth(),m;d oresize=tr ue,scroll_ pos=T();e( window).un bind("resi ze.prettyp hoto").bin d("resize. prettyphot o",functio n(){x();N( )});if(s.k eyboard_sh ortcuts){e (document) .unbind("k eydown.pre ttyphoto") .bind("key down.prett yphoto",fu nction(t){ if(typeof  $pp_pic_ho lder!="und efined"){i f($pp_pic_ holder.is( ":visible" )){switch( t.keyCode) {case 37:e .prettyPho to.changeP age("previ ous");t.pr eventDefau lt();break ;case 39:e .prettyPho to.changeP age("next" );t.preven tDefault() ;break;cas e 27:if(!s ettings.mo dal)e.pret tyPhoto.cl ose();t.pr eventDefau lt();break }}}})}e.pr ettyPhoto. initialize =function( ){settings =s;if(sett ings.theme =="pp_defa ult")setti ngs.horizo ntal_paddi ng=16;theR el=e(this) .attr(sett ings.hook) ;galleryRe gExp=/\[(? :.*)\]/;is Set=galler yRegExp.ex ec(theRel) ?true:fals e;pp_image s=isSet?jQ uery.map(o ,function( t,n){if(e( t).attr(se ttings.hoo k).indexOf (theRel)!= -1)return  e(t).attr( "href")}): e.makeArra y(e(this). attr("href "));pp_tit les=isSet? jQuery.map (o,functio n(t,n){if( e(t).attr( settings.h ook).index Of(theRel) !=-1)retur n e(t).fin d("img").a ttr("alt") ?e(t).find ("img").at tr("alt"): ""}):e.mak eArray(e(t his).find( "img").att r("alt")); pp_descrip tions=isSe t?jQuery.m ap(o,funct ion(t,n){i f(e(t).att r(settings .hook).ind exOf(theRe l)!=-1)ret urn e(t).a ttr("title ")?e(t).at tr("title" ):""}):e.m akeArray(e (this).att r("title") );if(pp_im ages.lengt h>settings .overlay_g allery_max )settings. overlay_ga llery=fals e;set_posi tion=jQuer y.inArray( e(this).at tr("href") ,pp_images );rel_inde x=isSet?se t_position :e("a["+se ttings.hoo k+"^='"+th eRel+"']") .index(e(t his));k(th is);if(set tings.allo w_resize)e (window).b ind("scrol l.prettyph oto",funct ion(){x()} );e.pretty Photo.open ();return  false};e.p rettyPhoto .open=func tion(t){if (typeof se ttings=="u ndefined") {settings= s;pp_image s=e.makeAr ray(argume nts[0]);pp _titles=ar guments[1] ?e.makeArr ay(argumen ts[1]):e.m akeArray(" ");pp_desc riptions=a rguments[2 ]?e.makeAr ray(argume nts[2]):e. makeArray( "");isSet= pp_images. length>1?t rue:false; set_positi on=argumen ts[3]?argu ments[3]:0 ;k(t.targe t)}if(sett ings.hidef lash)e("ob ject,embed ,iframe[sr c*=youtube ],iframe[s rc*=vimeo] ").css("vi sibility", "hidden"); b(e(pp_ima ges).size( ));e(".pp_ loaderIcon ").show(); if(setting s.deeplink ing)n();if (settings. social_too ls){facebo ok_like_li nk=setting s.social_t ools.repla ce("{locat ion_href}" ,encodeURI Component( location.h ref));$pp_ pic_holder .find(".pp _social"). html(faceb ook_like_l ink)}if($p pt.is(":hi dden"))$pp t.css("opa city",0).s how();$pp_ overlay.sh ow().fadeT o(settings .animation _speed,set tings.opac ity);$pp_p ic_holder. find(".cur rentTextHo lder").tex t(set_posi tion+1+set tings.coun ter_separa tor_label+ e(pp_image s).size()) ;if(typeof  pp_descri ptions[set _position] !="undefin ed"&&pp_de scriptions [set_posit ion]!=""){ $pp_pic_ho lder.find( ".pp_descr iption").s how().html (unescape( pp_descrip tions[set_ position]) )}else{$pp _pic_holde r.find(".p p_descript ion").hide ()}movie_w idth=parse Float(i("w idth",pp_i mages[set_ position]) )?i("width ",pp_image s[set_posi tion]):set tings.defa ult_width. toString() ;movie_hei ght=parseF loat(i("he ight",pp_i mages[set_ position]) )?i("heigh t",pp_imag es[set_pos ition]):se ttings.def ault_heigh t.toString ();u=false ;if(movie_ height.ind exOf("%")! =-1){movie _height=pa rseFloat(e (window).h eight()*pa rseFloat(m ovie_heigh t)/100-150 );u=true}i f(movie_wi dth.indexO f("%")!=-1 ){movie_wi dth=parseF loat(e(win dow).width ()*parseFl oat(movie_ width)/100 -150);u=tr ue}$pp_pic _holder.fa deIn(funct ion(){sett ings.show_ title&&pp_ titles[set _position] !=""&&type of pp_titl es[set_pos ition]!="u ndefined"? $ppt.html( unescape(p p_titles[s et_positio n])):$ppt. html(" ") ;imgPreloa der="";ski pInjection =false;swi tch(S(pp_i mages[set_ position]) ){case"ima ge":imgPre loader=new  Image;nex tImage=new  Image;if( isSet&&set _position< e(pp_image s).size()- 1)nextImag e.src=pp_i mages[set_ position+1 ];prevImag e=new Imag e;if(isSet &&pp_image s[set_posi tion-1])pr evImage.sr c=pp_image s[set_posi tion-1];$p p_pic_hold er.find("# pp_full_re s")[0].inn erHTML=set tings.imag e_markup.r eplace(/{p ath}/g,pp_ images[set _position] );imgPrelo ader.onloa d=function (){a=w(img Preloader. width,imgP reloader.h eight);g() };imgPrelo ader.onerr or=functio n(){alert( "Image can not be loa ded. Make  sure the p ath is cor rect and i mage exist .");e.pret tyPhoto.cl ose()};img Preloader. src=pp_ima ges[set_po sition];br eak;case"y outube":a= w(movie_wi dth,movie_ height);mo vie_id=i(" v",pp_imag es[set_pos ition]);if (movie_id= =""){movie _id=pp_ima ges[set_po sition].sp lit("youtu .be/");mov ie_id=movi e_id[1];if (movie_id. indexOf("? ")>0)movie _id=movie_ id.substr( 0,movie_id .indexOf(" ?"));if(mo vie_id.ind exOf("&")> 0)movie_id =movie_id. substr(0,m ovie_id.in dexOf("&") )}movie="h ttp://www. youtube.co m/embed/"+ movie_id;i ("rel",pp_ images[set _position] )?movie+=" ?rel="+i(" rel",pp_im ages[set_p osition]): movie+="?r el=1";if(s ettings.au toplay)mov ie+="&auto play=1";to Inject=set tings.ifra me_markup. replace(/{ width}/g,a ["width"]) .replace(/ {height}/g ,a["height "]).replac e(/{wmode} /g,setting s.wmode).r eplace(/{p ath}/g,mov ie);break; case"vimeo ":a=w(movi e_width,mo vie_height );movie_id =pp_images [set_posit ion];var t =/http(s?) :\/\/(www\ .)?vimeo.c om\/(\d+)/ ;var n=mov ie_id.matc h(t);movie ="http://p layer.vime o.com/vide o/"+n[3]+" ?title=0&b yline=0&po rtrait=0"; if(setting s.autoplay )movie+="& autoplay=1 ;";vimeo_w idth=a["wi dth"]+"/em bed/?moog_ width="+a[ "width"];t oInject=se ttings.ifr ame_markup .replace(/ {width}/g, vimeo_widt h).replace (/{height} /g,a["heig ht"]).repl ace(/{path }/g,movie) ;break;cas e"quicktim e":a=w(mov ie_width,m ovie_heigh t);a["heig ht"]+=15;a ["contentH eight"]+=1 5;a["conta inerHeight "]+=15;toI nject=sett ings.quick time_marku p.replace( /{width}/g ,a["width" ]).replace (/{height} /g,a["heig ht"]).repl ace(/{wmod e}/g,setti ngs.wmode) .replace(/ {path}/g,p p_images[s et_positio n]).replac e(/{autopl ay}/g,sett ings.autop lay);break ;case"flas h":a=w(mov ie_width,m ovie_heigh t);flash_v ars=pp_ima ges[set_po sition];fl ash_vars=f lash_vars. substring( pp_images[ set_positi on].indexO f("flashva rs")+10,pp _images[se t_position ].length); filename=p p_images[s et_positio n];filenam e=filename .substring (0,filenam e.indexOf( "?"));toIn ject=setti ngs.flash_ markup.rep lace(/{wid th}/g,a["w idth"]).re place(/{he ight}/g,a[ "height"]) .replace(/ {wmode}/g, settings.w mode).repl ace(/{path }/g,filena me+"?"+fla sh_vars);b reak;case" iframe":a= w(movie_wi dth,movie_ height);fr ame_url=pp _images[se t_position ];frame_ur l=frame_ur l.substr(0 ,frame_url .indexOf(" iframe")-1 );toInject =settings. iframe_mar kup.replac e(/{width} /g,a["widt h"]).repla ce(/{heigh t}/g,a["he ight"]).re place(/{pa th}/g,fram e_url);bre ak;case"aj ax":doresi ze=false;a =w(movie_w idth,movie _height);d oresize=tr ue;skipInj ection=tru e;e.get(pp _images[se t_position ],function (e){toInje ct=setting s.inline_m arkup.repl ace(/{cont ent}/g,e); $pp_pic_ho lder.find( "#pp_full_ res")[0].i nnerHTML=t oInject;g( )});break; case"custo m":a=w(mov ie_width,m ovie_heigh t);toInjec t=settings .custom_ma rkup;break ;case"inli ne":myClon e=e(pp_ima ges[set_po sition]).c lone().app end('<br c lear="all"  />').css( {width:set tings.defa ult_width} ).wrapInne r('<div id ="pp_full_ res"><div  class="pp_ inline"></ div></div> ').appendT o(e("body" )).show(); doresize=f alse;a=w(e (myClone). width(),e( myClone).h eight());d oresize=tr ue;e(myClo ne).remove ();toInjec t=settings .inline_ma rkup.repla ce(/{conte nt}/g,e(pp _images[se t_position ]).html()) ;break}if( !imgPreloa der&&!skip Injection) {$pp_pic_h older.find ("#pp_full _res")[0]. innerHTML= toInject;g ()}});retu rn false}; e.prettyPh oto.change Page=funct ion(t){cur rentGaller yPage=0;if (t=="previ ous"){set_ position-- ;if(set_po sition<0)s et_positio n=e(pp_ima ges).size( )-1}else i f(t=="next "){set_pos ition++;if (set_posit ion>e(pp_i mages).siz e()-1)set_ position=0 }else{set_ position=t }rel_index =set_posit ion;if(!do resize)dor esize=true ;if(settin gs.allow_e xpand){e(" .pp_contra ct").remov eClass("pp _contract" ).addClass ("pp_expan d")}y(func tion(){e.p rettyPhoto .open()})} ;e.prettyP hoto.chang eGalleryPa ge=functio n(e){if(e= ="next"){c urrentGall eryPage++; if(current GalleryPag e>totalPag e)currentG alleryPage =0}else if (e=="previ ous"){curr entGallery Page--;if( currentGal leryPage<0 )currentGa lleryPage= totalPage} else{curre ntGalleryP age=e}slid e_speed=e= ="next"||e =="previou s"?setting s.animatio n_speed:0; slide_to=c urrentGall eryPage*it emsPerPage *itemWidth ;$pp_galle ry.find("u l").animat e({left:-s lide_to},s lide_speed )};e.prett yPhoto.sta rtSlidesho w=function (){if(type of m=="und efined"){$ pp_pic_hol der.find(" .pp_play") .unbind("c lick").rem oveClass(" pp_play"). addClass(" pp_pause") .click(fun ction(){e. prettyPhot o.stopSlid eshow();re turn false });m=setIn terval(e.p rettyPhoto .startSlid eshow,sett ings.slide show)}else {e.prettyP hoto.chang ePage("nex t")}};e.pr ettyPhoto. stopSlides how=functi on(){$pp_p ic_holder. find(".pp_ pause").un bind("clic k").remove Class("pp_ pause").ad dClass("pp _play").cl ick(functi on(){e.pre ttyPhoto.s tartSlides how();retu rn false}) ;clearInte rval(m);m= undefined} ;e.prettyP hoto.close =function( ){if($pp_o verlay.is( ":animated "))return; e.prettyPh oto.stopSl ideshow(); $pp_pic_ho lder.stop( ).find("ob ject,embed ").css("vi sibility", "hidden"); e("div.pp_ pic_holder ,div.ppt,. pp_fade"). fadeOut(se ttings.ani mation_spe ed,functio n(){e(this ).remove() });$pp_ove rlay.fadeO ut(setting s.animatio n_speed,fu nction(){i f(settings .hideflash )e("object ,embed,ifr ame[src*=y outube],if rame[src*= vimeo]").c ss("visibi lity","vis ible");e(t his).remov e();e(wind ow).unbind ("scroll.p rettyphoto ");r();set tings.call back();dor esize=true ;f=false;d elete sett ings})};if (!pp_alrea dyInitiali zed&&t()){ pp_already Initialize d=true;has hIndex=t() ;hashRel=h ashIndex;h ashIndex=h ashIndex.s ubstring(h ashIndex.i ndexOf("/" )+1,hashIn dex.length -1);hashRe l=hashRel. substring( 0,hashRel. indexOf("/ "));setTim eout(funct ion(){e("a ["+s.hook+ "^='"+hash Rel+"']:eq ("+hashInd ex+")").tr igger("cli ck")},50)} return thi s.unbind(" click.pret typhoto"). bind("clic k.prettyph oto",e.pre ttyPhoto.i nitialize) };})(jQuer y);var pp_ alreadyIni tialized=f alse