470. File Comparison Report

Produced on Mon May 12 13:06:08 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

470.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\plugins\tiny_mce\plugins\inlinepopups editor_plugin.js Thu Sep 20 08:58:56 2007 UTC
2 Dolphin-v.6.1.0\plugins\tiny_mce\plugins\inlinepopups editor_plugin.js Thu Mar 27 13:53:24 2008 UTC

470.2 Comparison summary

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

470.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

470.4 Active regular expressions

No regular expressions were active.

470.5 Comparison detail

1   var TinyMC E_InlinePo pupsPlugin ={getInfo: function() {return{lo ngname:'In line Popup s',author: 'Moxiecode  Systems A B',authoru rl:'http:/ /tinymce.m oxiecode.c om',infour l:'http:// wiki.moxie code.com/i ndex.php/T inyMCE:Plu gins/inlin epopups',v ersion:tin yMCE.major Version+". "+tinyMCE. minorVersi on}}};tiny MCE.addPlu gin("inlin epopups",T inyMCE_Inl inePopupsP lugin);Tin yMCE_Engin e.prototyp e.orgOpenW indow=Tiny MCE_Engine .prototype .openWindo w;TinyMCE_ Engine.pro totype.org CloseWindo w=TinyMCE_ Engine.pro totype.clo seWindow;T inyMCE_Eng ine.protot ype.openWi ndow=funct ion(templa te,args){i f(args['in line']!="y es"||tinyM CE.isOpera ||tinyMCE. getParam(" plugins"). indexOf('i nlinepopup s')==-1){m cWindows.s electedWin dow=null;a rgs['mce_i nside_ifra me']=false ;this.orgO penWindow( template,a rgs);retur n}var url, resizable, scrollbars ;args['mce _inside_if rame']=tru e;tinyMCE. windowArgs =args;if(t emplate['f ile'].char At(0)!='/' &&template ['file'].i ndexOf(':/ /')==-1)ur l=tinyMCE. baseURL+"/ themes/"+t inyMCE.get Param("the me")+"/"+t emplate['f ile'];else  url=templ ate['file' ];if(!(wid th=parseIn t(template ['width']) ))width=32 0;if(!(hei ght=parseI nt(templat e['height' ])))height =200;if(!( minWidth=p arseInt(te mplate['mi nWidth'])) )minWidth= 100;if(!(m inHeight=p arseInt(te mplate['mi nHeight']) ))minHeigh t=100;resi zable=(arg s&&args['r esizable'] )?args['re sizable']: "no";scrol lbars=(arg s&&args['s crollbars' ])?args['s crollbars' ]:"no";hei ght+=18;fo r(var name  in args){ if(typeof( args[name] )=='functi on')contin ue;url=tin yMCE.repla ceVar(url, name,escap e(args[nam e]))}var e lm=documen t.getEleme ntById(thi s.selected Instance.e ditorId+'_ parent');i f(tinyMCE. hasPlugin( 'fullscree n')&&this. selectedIn stance.get Data('full screen').e nabled)pos ={absLeft: 0,absTop:0 };else pos =tinyMCE.g etAbsPosit ion(elm);p os.absLeft +=Math.rou nd((elm.fi rstChild.c lientWidth / 2) - (wi dth /2));p os.absTop+ =Math.roun d((elm.fir stChild.cl ientHeight / 2) - (he ight /2)); mcWindows. open(url,m cWindows.i dCounter++ ,"modal=ye s,width="+ width+",he ight="+hei ght+",resi zable="+re sizable+", scrollbars ="+scrollb ars+",stat usbar="+re sizable+", left="+pos .absLeft+" ,top="+pos .absTop+", minWidth=" +minWidth+ ",minHeigh t="+minHei ght)};Tiny MCE_Engine .prototype .closeWind ow=functio n(win){var  gotit=fal se,n,w;for (n in mcWi ndows.wind ows){w=mcW indows.win dows[n];if (typeof(w) =='functio n')continu e;if(win.n ame==w.id+ '_iframe') {w.close() ;gotit=tru e}}if(!got it)this.or gCloseWind ow(win);ti nyMCE.sele ctedInstan ce.getWin( ).focus()} ;TinyMCE_E ngine.prot otype.setW indowTitle =function( win_ref,ti tle){for(v ar n in mc Windows.wi ndows){var  win=mcWin dows.windo ws[n];if(t ypeof(win) =='functio n')continu e;if(win_r ef.name==w in.id+"_if rame")wind ow.frames[ win.id+"_i frame"].do cument.get ElementByI d(win.id+' _title').i nnerHTML=t itle}};fun ction Tiny MCE_Window s(){this.s ettings=ne w Array(); this.windo ws=new Arr ay();this. isMSIE=(na vigator.ap pName=="Mi crosoft In ternet Exp lorer");th is.isGecko =navigator .userAgent .indexOf(' Gecko')!=- 1;this.isS afari=navi gator.user Agent.inde xOf('Safar i')!=-1;th is.isMac=n avigator.u serAgent.i ndexOf('Ma c')!=-1;th is.isMSIE5 _0=this.is MSIE&&(nav igator.use rAgent.ind exOf('MSIE  5.0')!=-1 );this.act ion="none" ;this.sele ctedWindow =null;this .lastSelec tedWindow= null;this. zindex=100 1;this.mou seDownScre enX=0;this .mouseDown ScreenY=0; this.mouse DownLayerX =0;this.mo useDownLay erY=0;this .mouseDown Width=0;th is.mouseDo wnHeight=0 ;this.idCo unter=0};T inyMCE_Win dows.proto type.init= function(s ettings){t his.settin gs=setting s;if(this. isMSIE)thi s.addEvent (document, "mousemove ",mcWindow s.eventDis patcher);e lse this.a ddEvent(wi ndow,"mous emove",mcW indows.eve ntDispatch er);this.a ddEvent(do cument,"mo useup",mcW indows.eve ntDispatch er);this.a ddEvent(wi ndow,"resi ze",mcWind ows.eventD ispatcher) ;this.addE vent(docum ent,"scrol l",mcWindo ws.eventDi spatcher); this.doc=d ocument};T inyMCE_Win dows.proto type.getBo unds=funct ion(){if(! this.bound s){var vp= tinyMCE.ge tViewPort( window);va r top,left ,bottom,ri ght,docEl= this.doc.d ocumentEle ment;top=v p.top;left =vp.left;b ottom=vp.h eight+top- 2;right=vp .width+lef t-22;this. bounds=[le ft,top,rig ht,bottom] }return th is.bounds} ;TinyMCE_W indows.pro totype.cla mpBoxPosit ion=functi on(x,y,w,h ,minW,minH ){var boun ds=this.ge tBounds(); x=Math.max (bounds[0] ,Math.min( bounds[2], x+w)-w);y= Math.max(b ounds[1],M ath.min(bo unds[3],y+ h)-h);retu rn this.cl ampBoxSize (x,y,w,h,m inW,minH)} ;TinyMCE_W indows.pro totype.cla mpBoxSize= function(x ,y,w,h,min W,minH){va r bounds=t his.getBou nds();retu rn[x,y,Mat h.max(minW ,Math.min( bounds[2], x+w)-x),Ma th.max(min H,Math.min (bounds[3] ,y+h)-y)]} ;TinyMCE_W indows.pro totype.get Param=func tion(name, default_va lue){var v alue=null; value=(typ eof(this.s ettings[na me])=="und efined")?d efault_val ue:this.se ttings[nam e];if(valu e=="true"| |value=="f alse")retu rn(value== "true");re turn value };TinyMCE_ Windows.pr ototype.ev entDispatc her=functi on(e){e=ty peof(e)==" undefined" ?window.ev ent:e;if(m cWindows.s electedWin dow==null) return;if( mcWindows. isGecko&&e .type=="mo usedown"){ var elm=e. currentTar get;for(va r n in mcW indows.win dows){var  win=mcWind ows.window s[n];if(wi n.headElem ent==elm|| win.resize Element==e lm){win.fo cus();brea k}}}switch (e.type){c ase"mousem ove":mcWin dows.selec tedWindow. onMouseMov e(e);break ;case"mous eup":mcWin dows.selec tedWindow. onMouseUp( e);break;c ase"moused own":mcWin dows.selec tedWindow. onMouseDow n(e);break ;case"focu s":mcWindo ws.selecte dWindow.on Focus(e);b reak;case" scroll":ca se"resize" :if(mcWind ows.clampU pdateTimeo ut)clearTi meout(mcWi ndows.clam pUpdateTim eout);mcWi ndows.clam pEventType =e.type;mc Windows.cl ampUpdateT imeout=set Timeout(fu nction(){m cWindows.u pdateClamp ing()},100 );break}}; TinyMCE_Wi ndows.prot otype.upda teClamping =function( ){var clam p,oversize ,etype=mcW indows.cla mpEventTyp e;this.bou nds=null;t his.clampU pdateTimeo ut=null;fo r(var n in  this.wind ows){win=t his.window s[n];if(ty peof(win)= ='function '||!win.wi nElement)c ontinue;cl amp=mcWind ows.clampB oxPosition (win.left, win.top,wi n.winEleme nt.scrollW idth,win.w inElement. scrollHeig ht,win.fea tures.minW idth,win.f eatures.mi nHeight);o versize=(c lamp[2]!=w in.winElem ent.scroll Width||cla mp[3]!=win .winElemen t.scrollHe ight)?true :false;if( !oversize| |win.featu res.resiza ble=="yes" ||etype!=" scroll")wi n.moveTo(c lamp[0],cl amp[1]);if (oversize& &win.featu res.resiza ble=="yes" )win.resiz eTo(clamp[ 2],clamp[3 ])}};TinyM CE_Windows .prototype .addEvent= function(o bj,name,ha ndler){if( this.isMSI E)obj.atta chEvent("o n"+name,ha ndler);els e obj.addE ventListen er(name,ha ndler,fals e)};TinyMC E_Windows. prototype. cancelEven t=function (e){if(thi s.isMSIE){ e.returnVa lue=false; e.cancelBu bble=true} else e.pre ventDefaul t()};TinyM CE_Windows .prototype .parseFeat ures=funct ion(opts){ opts=opts. toLowerCas e();opts=o pts.replac e(/;/g,"," );opts=opt s.replace( /[^0-9a-z= ,]/g,"");v ar optionC hunks=opts .split(',' );var opti ons=new Ar ray();opti ons['left' ]="10";opt ions['top' ]="10";opt ions['widt h']="300"; options['h eight']="3 00";option s['minwidt h']="100"; options['m inheight'] ="100";opt ions['resi zable']="y es";option s['minimiz able']="ye s";options ['maximiza ble']="yes ";options[ 'close']=" yes";optio ns['movabl e']="yes"; options['s tatusbar'] ="yes";opt ions['scro llbars']=" auto";opti ons['modal ']="no";if (opts=="") return opt ions;for(v ar i=0;i<o ptionChunk s.length;i ++){var pa rts=option Chunks[i]. split('=') ;if(parts. length==2) options[pa rts[0]]=pa rts[1]}opt ions['left ']=parseIn t(options[ 'left']);o ptions['to p']=parseI nt(options ['top']);o ptions['wi dth']=pars eInt(optio ns['width' ]);options ['height'] =parseInt( options['h eight']);o ptions['mi nWidth']=p arseInt(op tions['min width']);o ptions['mi nHeight']= parseInt(o ptions['mi nheight']) ;return op tions};Tin yMCE_Windo ws.prototy pe.open=fu nction(url ,name,feat ures){this .lastSelec tedWindow= this.selec tedWindow; var win=ne w TinyMCE_ Window();v ar winDiv, html="",id ;var imgPa th=this.ge tParam("im ages_path" );features =this.pars eFeatures( features); var clamp= mcWindows. clampBoxPo sition(fea tures['lef t'],featur es['top'], features[' width'],fe atures['he ight'],fea tures['min Width'],fe atures['mi nHeight']) ;features[ 'left']=cl amp[0];fea tures['top ']=clamp[1 ];if(featu res['resiz able']=="y es"){featu res['width ']=clamp[2 ];features ['height'] =clamp[3]} id="mcWind ow_"+name; win.deltaH eight=18;i f(features ['statusba r']=="yes" ){win.delt aHeight+=1 3;if(this. isMSIE)win .deltaHeig ht+=1}widt h=parseInt (features[ 'width']); height=par seInt(feat ures['heig ht'])-win. deltaHeigh t;if(this. isMSIE)wid th-=2;win. id=id;win. url=url;wi n.name=nam e;win.feat ures=featu res;this.w indows[nam e]=win;ifr ameWidth=w idth;ifram eHeight=he ight;html+ ='<!DOCTYP E html PUB LIC "-//W3 C//DTD HTM L 4.0 Tran sitional// EN">';html +='<html>' ;html+='<h ead>';html +='<title> Wrapper if rame</titl e>';html+= '<meta htt p-equiv="C ontent-Typ e" content ="text/htm l; charset =UTF-8">'; html+='<li nk href="' +this.getP aram("css_ file")+'"  rel="style sheet" typ e="text/cs s" />';htm l+='</head >';html+=' <body onlo ad="parent .mcWindows .onLoad(\' '+name+'\' );">';html +='<div id ="'+id+'_c ontainer"  class="mce Window">'; html+='<di v id="'+id +'_head" c lass="mceW indowHead"  onmousedo wn="parent .mcWindows .windows[\ ''+name+'\ '].focus() ;">';html+ ='  <div i d="'+id+'_ title" cla ss="mceWin dowTitle"' ;html+='   onselectst art="retur n false;"  unselectab le="on" st yle="-moz- user-selec t: none !i mportant;" ></div>';h tml+='     <div class ="mceWindo wHeadTools ">';html+= '      <a  href="java script:par ent.mcWind ows.window s[\''+name +'\'].clos e();" targ et="_self"  onmousedo wn="return  false;" c lass="mceW indowClose "><img bor der="0" sr c="'+imgPa th+'/windo w_close.gi f" /></a>' ;if(featur es['resiza ble']=="ye s"&&featur es['maximi zable']==" yes")html+ ='      <a  href="jav ascript:pa rent.mcWin dows.windo ws[\''+nam e+'\'].max imize();"  target="_s elf" onmou sedown="re turn false ;" class=" mceWindowM aximize">< img border ="0" src=" '+imgPath+ '/window_m aximize.gi f" /></a>' ;html+='     </div>'; html+='</d iv><div id ="'+id+'_b ody" class ="mceWindo wBody" sty le="width:  '+width+' px; height : '+height +'px;">';h tml+='<ifr ame id="'+ id+'_ifram e" name="' +id+'_ifra me" frameb order="0"  width="'+i frameWidth +'" height ="'+iframe Height+'"  src="'+url +'" class= "mceWindow BodyIframe " scrollin g="'+featu res['scrol lbars']+'" ></iframe> </div>';if (features[ 'statusbar ']=="yes") {html+='<d iv id="'+i d+'_status bar" class ="mceWindo wStatusbar " onmoused own="paren t.mcWindow s.windows[ \''+name+' \'].focus( );">';if(f eatures['r esizable'] =="yes"){i f(this.isG ecko)html+ ='<div id= "'+id+'_re size" clas s="mceWind owResize"> <div style ="backgrou nd-image:  url(\''+im gPath+'/wi ndow_resiz e.gif\');  width: 12p x; height:  12px;"></ div></div> ';else htm l+='<div i d="'+id+'_ resize" cl ass="mceWi ndowResize "><img onm ousedown=" parent.mcW indows.win dows[\''+n ame+'\'].f ocus();" b order="0"  src="'+img Path+'/win dow_resize .gif" /></ div>'}html +='</div>' }html+='</ div>';html +='</body> ';html+='< /html>';th is.createF loatingIFr ame(id,fea tures['lef t'],featur es['top'], features[' width'],fe atures['he ight'],htm l)};TinyMC E_Windows. prototype. setDocumen tLock=func tion(state ){var elm= document.g etElementB yId('mcWin dowEventBl ocker');if (state){if (elm==null ){elm=docu ment.creat eElement(" div");elm. id="mcWind owEventBlo cker";elm. style.posi tion="abso lute";elm. style.left ="0";elm.s tyle.top=" 0";documen t.body.app endChild(e lm)}elm.st yle.displa y="none";v ar imgPath =this.getP aram("imag es_path"); var width= document.b ody.client Width;var  height=doc ument.body .clientHei ght;elm.st yle.width= width;elm. style.heig ht=height; elm.innerH TML='<img  src="'+img Path+'/spa cer.gif" w idth="'+wi dth+'" hei ght="'+hei ght+'" />' ;elm.style .zIndex=mc Windows.zi ndex-1;elm .style.dis play="bloc k"}else if (elm!=null ){if(mcWin dows.windo ws.length= =0)elm.par entNode.re moveChild( elm);else  elm.style. zIndex=mcW indows.zin dex-1}};Ti nyMCE_Wind ows.protot ype.onLoad =function( name){var  win=mcWind ows.window s[name];va r id="mcWi ndow_"+nam e;var wrap perIframe= window.fra mes[id+"_i frame"].fr ames[0];va r wrapperD oc=window. frames[id+ "_iframe"] .document; var doc=wi ndow.frame s[id+"_ifr ame"].docu ment;var w inDiv=docu ment.getEl ementById( "mcWindow_ "+name+"_d iv");var r ealIframe= window.fra mes[id+"_i frame"].fr ames[0];wi n.id="mcWi ndow_"+nam e;win.winE lement=win Div;win.bo dyElement= doc.getEle mentById(i d+'_body') ;win.ifram eElement=d oc.getElem entById(id +'_iframe' );win.head Element=do c.getEleme ntById(id+ '_head');w in.titleEl ement=doc. getElement ById(id+'_ title');wi n.resizeEl ement=doc. getElement ById(id+'_ resize');w in.contain erElement= doc.getEle mentById(i d+'_contai ner');win. left=win.f eatures['l eft'];win. top=win.fe atures['to p'];win.fr ame=window .frames[id +'_iframe' ].frames[0 ];win.wrap perFrame=w indow.fram es[id+'_if rame'];win .wrapperIF rameElemen t=document .getElemen tById(id+" _iframe"); mcWindows. addEvent(w in.headEle ment,"mous edown",mcW indows.eve ntDispatch er);if(win .resizeEle ment!=null )mcWindows .addEvent( win.resize Element,"m ousedown", mcWindows. eventDispa tcher);if( mcWindows. isMSIE){mc Windows.ad dEvent(rea lIframe.do cument,"mo usemove",m cWindows.e ventDispat cher);mcWi ndows.addE vent(realI frame.docu ment,"mous eup",mcWin dows.event Dispatcher )}else{mcW indows.add Event(real Iframe,"mo usemove",m cWindows.e ventDispat cher);mcWi ndows.addE vent(realI frame,"mou seup",mcWi ndows.even tDispatche r);mcWindo ws.addEven t(realIfra me,"focus" ,mcWindows .eventDisp atcher)}fo r(var i=0; i<window.f rames.leng th;i++){if (!window.f rames[i]._ hasMouseHa ndlers){if (mcWindows .isMSIE){m cWindows.a ddEvent(wi ndow.frame s[i].docum ent,"mouse move",mcWi ndows.even tDispatche r);mcWindo ws.addEven t(window.f rames[i].d ocument,"m ouseup",mc Windows.ev entDispatc her)}else{ mcWindows. addEvent(w indow.fram es[i],"mou semove",mc Windows.ev entDispatc her);mcWin dows.addEv ent(window .frames[i] ,"mouseup" ,mcWindows .eventDisp atcher)}wi ndow.frame s[i]._hasM ouseHandle rs=true}}i f(mcWindow s.isMSIE){ mcWindows. addEvent(w in.frame.d ocument,"m ousemove", mcWindows. eventDispa tcher);mcW indows.add Event(win. frame.docu ment,"mous eup",mcWin dows.event Dispatcher )}else{mcW indows.add Event(win. frame,"mou semove",mc Windows.ev entDispatc her);mcWin dows.addEv ent(win.fr ame,"mouse up",mcWind ows.eventD ispatcher) ;mcWindows .addEvent( win.frame, "focus",mc Windows.ev entDispatc her)}var f unc=this.g etParam("o n_open_win dow","");i f(func!="" )eval(func +"(win);") ;win.focus ();if(win. features[' modal']==" yes")mcWin dows.setDo cumentLock (true)};Ti nyMCE_Wind ows.protot ype.create FloatingIF rame=funct ion(id_pre fix,left,t op,width,h eight,html ){var ifra me=documen t.createEl ement("ifr ame");var  div=docume nt.createE lement("di v"),doc;wi dth=parseI nt(width); height=par seInt(heig ht)+1;div. setAttribu te("id",id _prefix+"_ div");div. setAttribu te("width" ,width);di v.setAttri bute("heig ht",(heigh t));div.st yle.positi on="absolu te";div.st yle.left=l eft+"px";d iv.style.t op=top+"px ";div.styl e.width=wi dth+"px";d iv.style.h eight=(hei ght)+"px"; div.style. background Color="whi te";div.st yle.displa y="none";i f(this.isG ecko){ifra meWidth=wi dth+2;ifra meHeight=h eight+2}el se{iframeW idth=width ;iframeHei ght=height +1}iframe. setAttribu te("id",id _prefix+"_ iframe");i frame.setA ttribute(" name",id_p refix+"_if rame");ifr ame.setAtt ribute("bo rder","0") ;iframe.se tAttribute ("frameBor der","0"); iframe.set Attribute( "marginWid th","0");i frame.setA ttribute(" marginHeig ht","0");i frame.setA ttribute(" leftMargin ","0");ifr ame.setAtt ribute("to pMargin"," 0");iframe .setAttrib ute("width ",iframeWi dth);ifram e.setAttri bute("heig ht",iframe Height);if rame.setAt tribute("s crolling", "no");ifra me.style.w idth=ifram eWidth+"px ";iframe.s tyle.heigh t=iframeHe ight+"px"; iframe.sty le.backgro undColor=" white";div .appendChi ld(iframe) ;document. body.appen dChild(div );div.inne rHTML=div. innerHTML; if(this.is Safari){wi ndow.setTi meout(func tion(){var  doc=windo w.frames[i d_prefix+' _iframe']. document;d oc.open(); doc.write( html);doc. close()},1 0)}else{do c=window.f rames[id_p refix+'_if rame'].win dow.docume nt;doc.ope n();doc.wr ite(html); doc.close( )}div.styl e.display= "block";re turn div}; function T inyMCE_Win dow(){};Ti nyMCE_Wind ow.prototy pe.focus=f unction(){ if(this!=m cWindows.s electedWin dow){this. winElement .style.zIn dex=++mcWi ndows.zind ex;mcWindo ws.lastSel ectedWindo w=mcWindow s.selected Window;mcW indows.sel ectedWindo w=this}};T inyMCE_Win dow.protot ype.minimi ze=functio n(){};Tiny MCE_Window .prototype .maximize= function() {if(this.r estoreSize ){this.mov eTo(this.r estoreSize [0],this.r estoreSize [1]);this. resizeTo(t his.restor eSize[2],t his.restor eSize[3]); this.updat eClamping( );this.res toreSize=n ull}else{v ar bounds= mcWindows. getBounds( );this.res toreSize=[ this.left, this.top,t his.winEle ment.scrol lWidth,thi s.winEleme nt.scrollH eight];thi s.moveTo(b ounds[0],b ounds[1]); this.resiz eTo(bounds [2]-bounds [0],bounds [3]-bounds [1])}};Tin yMCE_Windo w.prototyp e.startRes ize=functi on(){mcWin dows.actio n="resize" };TinyMCE_ Window.pro totype.sta rtMove=fun ction(e){m cWindows.a ction="mov e"};TinyMC E_Window.p rototype.c lose=funct ion(){if(t his.frame& &this.fram e['tinyMCE Popup'])th is.frame[' tinyMCEPop up'].resto reSelectio n();if(mcW indows.las tSelectedW indow!=nul l)mcWindow s.lastSele ctedWindow .focus();v ar mcWindo wsNew=new  Array();fo r(var n in  mcWindows .windows){ var win=mc Windows.wi ndows[n];i f(typeof(w in)=='func tion')cont inue;if(wi n.name!=th is.name)mc WindowsNew [n]=win}mc Windows.wi ndows=mcWi ndowsNew;v ar e=mcWin dows.doc.g etElementB yId(this.i d+"_iframe ");e.paren tNode.remo veChild(e) ;var e=mcW indows.doc .getElemen tById(this .id+"_div" );e.parent Node.remov eChild(e); mcWindows. setDocumen tLock(fals e)};TinyMC E_Window.p rototype.o nMouseMove =function( e){var cla mp;var dx= e.screenX- mcWindows. mouseDownS creenX;var  dy=e.scre enY-mcWind ows.mouseD ownScreenY ;switch(mc Windows.ac tion){case "resize":c lamp=mcWin dows.clamp BoxSize(th is.left,th is.top,mcW indows.mou seDownWidt h+(e.scree nX-mcWindo ws.mouseDo wnScreenX) ,mcWindows .mouseDown Height+(e. screenY-mc Windows.mo useDownScr eenY),this .features. minWidth,t his.featur es.minHeig ht);this.r esizeTo(cl amp[2],cla mp[3]);mcW indows.can celEvent(e );break;ca se"move":t his.left=m cWindows.m ouseDownLa yerX+(e.sc reenX-mcWi ndows.mous eDownScree nX);this.t op=mcWindo ws.mouseDo wnLayerY+( e.screenY- mcWindows. mouseDownS creenY);th is.updateC lamping(); mcWindows. cancelEven t(e);break }};TinyMCE _Window.pr ototype.mo veTo=funct ion(x,y){t his.left=x ;this.top= y;this.win Element.st yle.left=t his.left+" px";this.w inElement. style.top= this.top+" px"};TinyM CE_Window. prototype. resizeTo=f unction(wi dth,height ){this.wra pperIFrame Element.st yle.width= (width+2)+ 'px';this. wrapperIFr ameElement .style.hei ght=(heigh t+2)+'px'; this.wrapp erIFrameEl ement.widt h=width+2; this.wrapp erIFrameEl ement.heig ht=height+ 2;this.win Element.st yle.width= width+'px' ;this.winE lement.sty le.height= height+'px ';height=h eight-this .deltaHeig ht;this.co ntainerEle ment.style .width=wid th+'px';th is.iframeE lement.sty le.width=w idth+'px'; this.ifram eElement.s tyle.heigh t=height+' px';this.b odyElement .style.wid th=width+' px';this.b odyElement .style.hei ght=height +'px';this .headEleme nt.style.w idth=width +'px';};Ti nyMCE_Wind ow.prototy pe.updateC lamping=fu nction(){v ar clamp,o versize;cl amp=mcWind ows.clampB oxPosition (this.left ,this.top, this.winEl ement.scro llWidth,th is.winElem ent.scroll Height,thi s.features .minWidth, this.featu res.minHei ght);overs ize=(clamp [2]!=this. winElement .scrollWid th||clamp[ 3]!=this.w inElement. scrollHeig ht)?true:f alse;this. moveTo(cla mp[0],clam p[1]);if(t his.featur es.resizab le=="yes"& &oversize) this.resiz eTo(clamp[ 2],clamp[3 ])};functi on debug(m sg){docume nt.getElem entById('d ebug').val ue+=msg+"\ n"}TinyMCE _Window.pr ototype.on MouseUp=fu nction(e){ mcWindows. action="no ne"};TinyM CE_Window. prototype. onFocus=fu nction(e){ var winRef =e.current Target;for (var n in  mcWindows. windows){v ar win=mcW indows.win dows[n];if (typeof(wi n)=='funct ion')conti nue;if(win Ref.name== win.id+"_i frame"){wi n.focus(); return}}}; TinyMCE_Wi ndow.proto type.onMou seDown=fun ction(e){v ar elm=mcW indows.isM SIE?this.w rapperFram e.event.sr cElement:e .target;mc Windows.mo useDownScr eenX=e.scr eenX;mcWin dows.mouse DownScreen Y=e.screen Y;mcWindow s.mouseDow nLayerX=th is.left;mc Windows.mo useDownLay erY=this.t op;mcWindo ws.mouseDo wnWidth=pa rseInt(thi s.winEleme nt.style.w idth);mcWi ndows.mous eDownHeigh t=parseInt (this.winE lement.sty le.height) ;if(this.r esizeEleme nt!=null&& elm==this. resizeElem ent.firstC hild)this. startResiz e(e);else  this.start Move(e);mc Windows.ca ncelEvent( e)};var mc Windows=ne w TinyMCE_ Windows(); mcWindows. init({imag es_path:ti nyMCE.base URL+"/plug ins/inline popups/ima ges",css_f ile:tinyMC E.baseURL+ "/plugins/ inlinepopu ps/css/inl inepopup.c ss"});   1   (function( ){var DOM= tinymce.DO M,Element= tinymce.do m.Element, Event=tiny mce.dom.Ev ent,each=t inymce.eac h,is=tinym ce.is;tiny mce.create ('tinymce. plugins.In linePopups ',{init:fu nction(ed, url){ed.on BeforeRend erUI.add(f unction(){ ed.windowM anager=new  tinymce.I nlineWindo wManager(e d);DOM.loa dCSS(url+' /skins/'+( ed.setting s.inlinepo pups_skin| |'clearloo ks2')+"/wi ndow.css") ;});},getI nfo:functi on(){retur n{longname :'InlinePo pups',auth or:'Moxiec ode System s AB',auth orurl:'htt p://tinymc e.moxiecod e.com',inf ourl:'http ://wiki.mo xiecode.co m/index.ph p/TinyMCE: Plugins/in linepopups ',version: tinymce.ma jorVersion +"."+tinym ce.minorVe rsion};}}) ;tinymce.c reate('tin ymce.Inlin eWindowMan ager:tinym ce.WindowM anager',{I nlineWindo wManager:f unction(ed ){var t=th is;t.paren t(ed);t.zI ndex=1000; t.count=0; },open:fun ction(f,p) {var t=thi s,id,opt=' ',ed=t.edi tor,dw=0,d h=0,vp,po, mdf,clf,we ,w,u;f=f|| {};p=p||{} ;if(!f.inl ine)return  t.parent( f,p);t.boo kmark=ed.s election.g etBookmark ('simple') ;id=DOM.un iqueId();v p=DOM.getV iewPort(); f.width=pa rseInt(f.w idth||320) ;f.height= parseInt(f .height||2 40)+(tinym ce.isIE?8: 0);f.min_w idth=parse Int(f.min_ width||150 );f.min_he ight=parse Int(f.min_ height||10 0);f.max_w idth=parse Int(f.max_ width||200 0);f.max_h eight=pars eInt(f.max _height||2 000);f.lef t=f.left|| Math.round (Math.max( vp.x,vp.x+ (vp.w/ 2.0 ) - (f.wid th /2.0))) ;f.top=f.t op||Math.r ound(Math. max(vp.y,v p.y+(vp.h/  2.0) - (f .height /2 .0)));f.mo vable=f.re sizable=tr ue;p.mce_w idth=f.wid th;p.mce_h eight=f.he ight;p.mce _inline=tr ue;p.mce_w indow_id=i d;p.mce_au to_focus=f .auto_focu s;t.featur es=f;t.par ams=p;t.on Open.dispa tch(t,f,p) ;if(f.type ){opt+=' m ceModal';i f(f.type)o pt+=' mce' +f.type.su bstring(0, 1).toUpper Case()+f.t ype.substr ing(1);f.r esizable=f alse;}if(f .statusbar )opt+=' mc eStatusbar ';if(f.res izable)opt +=' mceRes izable';if (f.minimiz able)opt+= ' mceMinim izable';if (f.maximiz able)opt+= ' mceMaxim izable';if (f.movable )opt+=' mc eMovable'; t._addAll( document.b ody,['div' ,{id:id,'c lass':ed.s ettings.in linepopups _skin||'cl earlooks2' ,dir:'ltr' ,style:'wi dth:100px; height:100 px'},['div ',{id:id+' _wrapper', 'class':'m ceWrapper' +opt},['di v',{id:id+ '_top','cl ass':'mceT op'},['div ',{'class' :'mceLeft' }],['div', {'class':' mceCenter' }],['div', {'class':' mceRight'} ],['span', {id:id+'_t itle'},f.t itle||'']] ,['div',{i d:id+'_mid dle','clas s':'mceMid dle'},['di v',{id:id+ '_left','c lass':'mce Left'}],[' span',{id: id+'_conte nt'}],['di v',{id:id+ '_right',' class':'mc eRight'}]] ,['div',{i d:id+'_bot tom','clas s':'mceBot tom'},['di v',{'class ':'mceLeft '}],['div' ,{'class': 'mceCenter '}],['div' ,{'class': 'mceRight' }],['span' ,{id:id+'_ status'},' Content']] ,['a',{'cl ass':'mceM ove',tabin dex:'-1',h ref:'javas cript:;'}] ,['a',{'cl ass':'mceM in',tabind ex:'-1',hr ef:'javasc ript:;',on mousedown: 'return fa lse;'}],[' a',{'class ':'mceMax' ,tabindex: '-1',href: 'javascrip t:;',onmou sedown:'re turn false ;'}],['a', {'class':' mceMed',ta bindex:'-1 ',href:'ja vascript:; ',onmoused own:'retur n false;'} ],['a',{'c lass':'mce Close',tab index:'-1' ,href:'jav ascript:;' ,onmousedo wn:'return  false;'}] ,['a',{id: id+'_resiz e_n','clas s':'mceRes ize mceRes izeN',tabi ndex:'-1', href:'java script:;'} ],['a',{id :id+'_resi ze_s','cla ss':'mceRe size mceRe sizeS',tab index:'-1' ,href:'jav ascript:;' }],['a',{i d:id+'_res ize_w','cl ass':'mceR esize mceR esizeW',ta bindex:'-1 ',href:'ja vascript:; '}],['a',{ id:id+'_re size_e','c lass':'mce Resize mce ResizeE',t abindex:'- 1',href:'j avascript: ;'}],['a', {id:id+'_r esize_nw', 'class':'m ceResize m ceResizeNW ',tabindex :'-1',href :'javascri pt:;'}],[' a',{id:id+ '_resize_n e','class' :'mceResiz e mceResiz eNE',tabin dex:'-1',h ref:'javas cript:;'}] ,['a',{id: id+'_resiz e_sw','cla ss':'mceRe size mceRe sizeSW',ta bindex:'-1 ',href:'ja vascript:; '}],['a',{ id:id+'_re size_se',' class':'mc eResize mc eResizeSE' ,tabindex: '-1',href: 'javascrip t:;'}]]]); DOM.setSty les(id,{to p:-10000,l eft:-10000 });if(tiny mce.isGeck o)DOM.setS tyle(id,'o verflow',' auto');if( !f.type){d w+=DOM.get (id+'_left ').clientW idth;dw+=D OM.get(id+ '_right'). clientWidt h;dh+=DOM. get(id+'_t op').clien tHeight;dh +=DOM.get( id+'_botto m').client Height;}DO M.setStyle s(id,{top: f.top,left :f.left,wi dth:f.widt h+dw,heigh t:f.height +dh});u=f. url||f.fil e;if(tinym ce.relaxed Domain)u+= (u.indexOf ('?')==-1? '?':'&')+' mce_rdomai n='+tinymc e.relaxedD omain;if(! f.type){DO M.add(id+' _content', 'iframe',{ id:id+'_if r',src:'ja vascript:" "',frameBo rder:0,sty le:'border :0;width:1 0px;height :10px'});D OM.setStyl es(id+'_if r',{width: f.width,he ight:f.hei ght});DOM. setAttrib( id+'_ifr', 'src',u);} else{DOM.a dd(id+'_wr apper','a' ,{id:id+'_ ok','class ':'mceButt on mceOk', href:'java script:;', onmousedow n:'return  false;'},' Ok');if(f. type=='con firm')DOM. add(id+'_w rapper','a ',{'class' :'mceButto n mceCance l',href:'j avascript: ;',onmouse down:'retu rn false;' },'Cancel' );DOM.add( id+'_middl e','div',{ 'class':'m ceIcon'}); DOM.setHTM L(id+'_con tent',f.co ntent.repl ace('\n',' <br />')); }mdf=Event .add(id,'m ousedown', function(e ){var n=e. target,w,v p;w=t.wind ows[id];t. focus(id); if(n.nodeN ame=='A'|| n.nodeName =='a'){if( n.classNam e=='mceMax '){w.oldPo s=w.elemen t.getXY(); w.oldSize= w.element. getSize(); vp=DOM.get ViewPort() ;vp.w-=2;v p.h-=2;w.e lement.mov eTo(vp.x,v p.y);w.ele ment.resiz eTo(vp.w,v p.h);DOM.s etStyles(i d+'_ifr',{ width:vp.w -w.deltaWi dth,height :vp.h-w.de ltaHeight} );DOM.addC lass(id+'_ wrapper',' mceMaximiz ed');}else  if(n.clas sName=='mc eMed'){w.e lement.mov eTo(w.oldP os.x,w.old Pos.y);w.e lement.res izeTo(w.ol dSize.w,w. oldSize.h) ;w.iframeE lement.res izeTo(w.ol dSize.w-w. deltaWidth ,w.oldSize .h-w.delta Height);DO M.removeCl ass(id+'_w rapper','m ceMaximize d');}else  if(n.class Name=='mce Move')retu rn t._star tDrag(id,e ,n.classNa me);else i f(DOM.hasC lass(n,'mc eResize')) return t._ startDrag( id,e,n.cla ssName.sub string(13) );}});clf= Event.add( id,'click' ,function( e){var n=e .target;t. focus(id); if(n.nodeN ame=='A'|| n.nodeName =='a'){swi tch(n.clas sName){cas e'mceClose ':t.close( null,id);r eturn Even t.cancel(e );case'mce Button mce Ok':case'm ceButton m ceCancel': f.button_f unc(n.clas sName=='mc eButton mc eOk');retu rn Event.c ancel(e);} }});t.wind ows=t.wind ows||{};w= t.windows[ id]={id:id ,mousedown _func:mdf, click_func :clf,eleme nt:new Ele ment(id,{b locker:1,c ontainer:e d.getConta iner()}),i frameEleme nt:new Ele ment(id+'_ ifr'),feat ures:f,del taWidth:dw ,deltaHeig ht:dh};w.i frameEleme nt.on('foc us',functi on(){t.foc us(id);}); if(t.count ==0&&t.edi tor.getPar am('dialog _type')==' modal'){DO M.add(DOM. doc.body,' div',{id:' mceModalBl ocker','cl ass':(t.ed itor.setti ngs.inline popups_ski n||'clearl ooks2')+'_ modalBlock er',style: {left:vp.x ,top:vp.y, width:vp.w ,height:vp .h,zIndex: t.zIndex-1 }});DOM.sh ow('mceMod alBlocker' );}else DO M.setStyle ('mceModal Blocker',' z-index',t .zIndex-1) ;t.focus(i d);t._fixI ELayout(id ,1);if(DOM .get(id+'_ ok'))DOM.g et(id+'_ok ').focus() ;t.count++ ;return w; },focus:fu nction(id) {var t=thi s,w=t.wind ows[id];w. zIndex=thi s.zIndex++ ;w.element .setStyle( 'zIndex',w .zIndex);w .element.u pdate();id =id+'_wrap per';DOM.r emoveClass (t.lastId, 'mceFocus' );DOM.addC lass(id,'m ceFocus'); t.lastId=i d;},_addAl l:function (te,ne){va r i,n,t=th is,dom=tin ymce.DOM;i f(is(ne,'s tring'))te .appendChi ld(dom.doc .createTex tNode(ne)) ;else if(n e.length){ te=te.appe ndChild(do m.create(n e[0],ne[1] ));for(i=2 ;i<ne.leng th;i++)t._ addAll(te, ne[i]);}}, _startDrag :function( id,se,ac){ var t=this ,mu,mm,d=d ocument,eb ,w=t.windo ws[id],we= w.element, sp=we.getX Y(),p,sz,p h,cp,vp,sx ,sy,sex,se y,dx,dy,dw ,dh;cp={x: 0,y:0};vp= DOM.getVie wPort();vp .w-=2;vp.h -=2;sex=se .screenX;s ey=se.scre enY;dx=dy= dw=dh=0;mu =Event.add (d,'mouseu p',functio n(e){Event .remove(d, 'mouseup', mu);Event. remove(d,' mousemove' ,mm);if(eb )eb.remove ();we.move By(dx,dy); we.resizeB y(dw,dh);s z=we.getSi ze();DOM.s etStyles(i d+'_ifr',{ width:sz.w -w.deltaWi dth,height :sz.h-w.de ltaHeight} );t._fixIE Layout(id, 1);return  Event.canc el(e);});i f(ac!='Mov e')startMo ve();funct ion startM ove(){if(e b)return;t ._fixIELay out(id,0); DOM.add(d. body,'div' ,{id:'mceE ventBlocke r','class' :'mceEvent Blocker '+ (t.editor. settings.i nlinepopup s_skin||'c learlooks2 '),style:{ left:vp.x, top:vp.y,w idth:vp.w+ 2,height:v p.h+2,zInd ex:20001}} );eb=new E lement('mc eEventBloc ker');eb.u pdate();p= we.getXY() ;sz=we.get Size();sx= cp.x+p.x-v p.x;sy=cp. y+p.y-vp.y ;DOM.add(e b.get(),'d iv',{id:'m cePlaceHol der','clas s':'mcePla ceHolder', style:{lef t:sx,top:s y,width:sz .w,height: sz.h}});ph =new Eleme nt('mcePla ceHolder') ;};mm=Even t.add(d,'m ousemove', function(e ){var x,y, v;startMov e();x=e.sc reenX-sex; y=e.screen Y-sey;swit ch(ac){cas e'ResizeW' :dx=x;dw=0 -x;break;c ase'Resize E':dw=x;br eak;case'R esizeN':ca se'ResizeN W':case'Re sizeNE':if (ac=="Resi zeNW"){dx= x;dw=0-x;} else if(ac =="ResizeN E")dw=x;dy =y;dh=0-y; break;case 'ResizeS': case'Resiz eSW':case' ResizeSE': if(ac=="Re sizeSW"){d x=x;dw=0-x ;}else if( ac=="Resiz eSE")dw=x; dh=y;break ;case'mceM ove':dx=x; dy=y;break ;}if(dw<(v =w.feature s.min_widt h-sz.w)){i f(dx!==0)d x+=dw-v;dw =v;}if(dh< (v=w.featu res.min_he ight-sz.h) ){if(dy!== 0)dy+=dh-v ;dh=v;}dw= Math.min(d w,w.featur es.max_wid th-sz.w);d h=Math.min (dh,w.feat ures.max_h eight-sz.h );dx=Math. max(dx,vp. x-(sx+vp.x ));dy=Math .max(dy,vp .y-(sy+vp. y));dx=Mat h.min(dx,( vp.w+vp.x) -(sx+sz.w+ vp.x));dy= Math.min(d y,(vp.h+vp .y)-(sy+sz .h+vp.y)); if(dx+dy!= =0){if(sx+ dx<0)dx=0; if(sy+dy<0 )dy=0;ph.m oveTo(sx+d x,sy+dy);} if(dw+dh!= =0)ph.resi zeTo(sz.w+ dw,sz.h+dh );return E vent.cance l(e);});re turn Event .cancel(se );},resize By:functio n(dw,dh,id ){var w=th is.windows [id];if(w) {w.element .resizeBy( dw,dh);w.i frameEleme nt.resizeB y(dw,dh);} },close:fu nction(win ,id){var t =this,w,d= document,i x=0,fw;t.c ount--;if( t.count==0 )DOM.remov e('mceModa lBlocker') ;if(!id&&w in){t.pare nt(win);re turn;}if(w =t.windows [id]){t.on Close.disp atch(t);Ev ent.remove (d,'moused own',w.mou sedownFunc );Event.re move(d,'cl ick',w.cli ckFunc);DO M.setAttri b(id+'_ifr ','src','j avascript: ""');w.ele ment.remov e();delete  t.windows [id];each( t.windows, function(w ){if(w.zIn dex>ix){fw =w;ix=w.zI ndex;}});i f(fw)t.foc us(fw.id); }},setTitl e:function (ti,id){DO M.get(id+' _title').i nnerHTML=D OM.encode( ti);},aler t:function (txt,cb,s) {var t=thi s,w;w=t.op en({title: t,type:'al ert',butto n_func:fun ction(s){i f(cb)cb.ca ll(s||t,s) ;t.close(n ull,w.id); },content: DOM.encode (t.editor. getLang(tx t,txt)),in line:1,wid th:400,hei ght:130}); },confirm: function(t xt,cb,s){v ar t=this, w;w=t.open ({title:t, type:'conf irm',butto n_func:fun ction(s){i f(cb)cb.ca ll(s||t,s) ;t.close(n ull,w.id); },content: DOM.encode (t.editor. getLang(tx t,txt)),in line:1,wid th:400,hei ght:130}); },_fixIELa yout:funct ion(id,s){ var w,img; if(!tinymc e.isIE6)re turn;each( ['n','s',' w','e','nw ','ne','sw ','se'],fu nction(v){ var e=DOM. get(id+'_r esize_'+v) ;DOM.setSt yles(e,{wi dth:s?e.cl ientWidth: '',height: s?e.client Height:'', cursor:DOM .getStyle( e,'cursor' ,1)});DOM. setStyle(i d+"_bottom ",'bottom' ,'-1px');e =0;});if(w =this.wind ows[id]){w .element.h ide();w.el ement.show ();each(DO M.select(' div,a',id) ,function( e,i){if(e. currentSty le.backgro undImage!= 'none'){im g=new Imag e();img.sr c=e.curren tStyle.bac kgroundIma ge.replace (/url\(\"( .+)\"\)/,' $1');}});D OM.get(id) .style.fil ter='';}}} );tinymce. PluginMana ger.add('i nlinepopup s',tinymce .plugins.I nlinePopup s);})();