«).attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on(«ошибка загрузки»,i=function(e){r.remove(),i=null,e&&t(«error»===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)?(?=&|$)|??/;S.ajaxSetup({jsonp:»callback»,jsonpCallback:function(){var e=zt.pop()||S.expando+»_»+wt.guid++;верните это[e]=!0,e}}),S.ajaxPrefilter(«json jsonp»,function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Out.test(e.url)?»url»:»string»==typeof e.data&&0===(e.contentType||»»).indexOf(«application/x-www-form-urlencoded»)&&Ut.test(e.data)&&»data»);if(a||»jsonp»===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=е[a].replace(Ut,»$1″+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?»&»:»?»)+e.jsonp+»=»+r),e.converters[«script json»]=function(){return o||S.error(r+» не был вызван»),o[0]},e.dataTypes[0]=»json», я=С[r],С[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]= я, е[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),»script»}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument(«»).body).innerHTML=»
«,2===_t.childNodes.length),S.parseHTML=function(e,t,n){return»string»!=typeof e?[]:(«boolean»==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument(«»)).createElement(«base»)).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(я=N.exec(e))?[t.createElement(i[1])]:(я=есть([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(» «);return-1«).append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,»position»),c=S(e),f={};»static»===l&&(e.style.position=»relative»),s=c.off set(),o=S.css(e,»top»),u=S.css(e,»left»),(«absolute»===l||»fixed»===l)&&-1<(o+u).indexOf("auto")? (a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.e xtend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r. offsetParent||n.documentElement; while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNod e;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}re Turn{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent; while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:е[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],р["scroll"+a],e.body["offset"+a],р["offset"+a],р["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("размытие фокуса фокусировка изменение размера прокрутка щелчок dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave изменить выбрать отправить keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]= функция (e, t) {возврат 0″,options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=_(e||this.defaultElement||this)[0],this.element=_(e),this.uuid=i++,this.eventNamespace=».»+this.widgetName+this.uuid,this.bindings=_(),this.hoverable=_(),this.focusable=_(),this.classesElementLookup={},e!==this&&(_.data( e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=_(e.style?e.ownerDocument:e.document||e),this.window=_(this.document[0].defaultView||этот.документ[0].parentWindow)),this.options=_.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._ триггер(«создать»,null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:_.noop,_create:_.noop,_init:_.noop,destroy:function(){var i=this;this._destroy(),_.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFu llName),this.widget().off(this.eventNamespace).removeAttr(«aria-disabled»),this.bindings.off(this.eventNamespace)},_destroy:_.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return _.widget.extend({},this.options);if(«string»==typeof t)if(s={},t=(i=t.split(«.»)).shift(),i.length){for(n=s[t]=_.widget.extend({},this.options[t]),о=0;о«),i=e.children()[0];return _(«body»).append(e),t=i.offsetWidth,e.css(«overflow»,»scroll»),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=ti},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?»»:t.element.css(«overflow-x»),i=t.isWindow||t.isDocument?»»:t.element.css(«overflow-y»),e=»scroll»===e||»auto»===e&&t.widthC(W(n),W(o))?s.important=»horizontal»:s.important=»vertical»,h.using.call(this,t,s)}),r.offset(_.extend(f,{using:t}))})},_.ui.position={fit:{left:function(t,e){var i=e.within,n=i.isWindow?i.scrollLeft:i.offset.left,o=i.width,s=t.left-e.collisionPosition.marginLeft,r=ns,a=s+e.collisionWidth-on;e.collisionWidth>o?0о?0?@[]^`{|}~])/g,function(t){return t.replace(e,»\$1″)}),_.fn.labels=function(){var t,e,i;верните это[0].labels&&это[0].labels.length?this.pushStack(это[0].labels):(e=this.eq(0).parents(«label»),(t=this.attr(«id»))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t=»label[for='»+_.ui.escapeSelector(t)+»‘]»,e=e.add(i.find(t).addBack(t))),this.pushStack(e))},_.fn.scrollParent=function(t){var e=this.css(«position»),i=»absolute»===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=_(this);return(!i||»static»!==t.css(«position»))&&n.test(t.css(«overflow»)+t.css(«overflow-y»)+t.css(«overflow-x»))}).eq(0);return»fixed»!==e&&t.length?t:_(this[0].ownerDocument||документ)},_.extend(_.expr[«:»],{tabbable:function(t){var e=_.attr(t,»tabindex»),i=null!=e;return(!i||0<=e)&&_.ui.focusable(t,i)}}),_.fn.extend({uniqueId:(h=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+) ++h)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-d+$/.test(this.id)&&_(this).removeAttr("id")})}});var e,h,u,d,p,g,m,v,b,y,w,x,E,P,S,L,q,D,B,N,F,O,I="ui-effects-",M="ui-effects-style",R="ui-effects-animated",j=_;function A(t,e,i){var n=y[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:t<0?0:n.max»)[0],x=u.each,K.style.cssText=»background-color:rgba(1,1,1,.5)»,w.rgba=-1s.mod/2?n+=s.mod:no>s.mod/2&&(n-=s.mod)),c[i]=A((on)*r+n,e)))}), это[e](c)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=v(t)._rgba;return v(u.map(e,function(t,e){return(1-i)*n[e]+i*t}))},toRgbaString:function(){var t=»rgba(«,e=u.map(this._rgba,function(t,e){return null==t?2»).addClass(«ui-effects-wrapper»).css({fontSize:»100%»,background:»transparent»,border:»none»,margin:0,padding:0}),e={width:i.width(),height:i.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return я.wrap(т),я[0]!==o&&!_.contains(i[0],o)||_(o).trigger(«focus»),t=i.parent(),»static»===i.css(«position»)?(t.css({position:»relative»}),i.css({position:»relative»})):(_.extend(n,{position:i.css(«position»),zIndex:i.css(«z-index»)}),_.each([«top»,»left»,»bottom»,»right»],function(t,e){n[e]=i.css(e),isNaN(parseInt(n[e],10))&&(n[e]=»auto»)}),i.css({position:»relative»,top:0,left:0,right:»auto»,bottom:»auto»})),i.css(e),t.css(n).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(«.ui-effects-wrapper»)&&(t.parent().replaceWith(t),t[0]!==e&&!_.contains(t[0],e)||_(e).trigger(«focus»)),t}}),_.extend(_.effects,{version:»1.12.1″,define:function(t,e,i){return i||(i=e,e=»effect»),_.effects.effect[t]=i,_.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n=»horizontal»!==i?(e||100)/100:1,e=»vertical»!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*n,outerHeight:t.outerHeight()*e,outerWidth:t.outerWid th()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1″).insertAfter(t).css({display:/^(inline|ruby)/.test(t.css(«display»))?»inline-block»:»block»,visibility:»hidden»,m arginTop:t.css(«marginTop»),marginBottom:t.css(«marginBottom»),marginLeft:t.css(«marginLeft»),marginRight:t.css(«ma rginRight»),float:t.css(«float»)}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass(«ui-effects-pla ceholder»),t.data(I+»placeholder»,e)),t.css({position:i,left:n.left,top:n.top}),e},removePlaceholder:function(t){var e=I+»placeholder»,i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){_.effects.restoreStyle(t),_.effects.removePlaceholder(t)},setTransition:function(n,t,o,s){return s=s||{},_.each(t,function(t,e){var я = n.cssUnit (е); 0«).appendTo(«body»).addClass(t.className).css({top:n.top-r,left:n.left-a,height:i.innerHeight(),width:i.innerWidth(),position:o?»fixed»:»absolute»}).animat e(s,t.duration,t.easing,function(){c.remove(),_.isFunction(e)&&e()})}}),_.fx.step.clip=function(t){t.clipInit||(t.start=_(t.elem).cssClip(),»string»==typeof t.end&&(t.end=V(t.end,t.elem)),t.clipInit=!0),_(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start. right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},O={},_.each([«Quad»,»Cubic»,»Quart»,»Quint»,»Expo»],function(e,t){O[t]=function(t){return Math.pow(t,e+2)}}),_.extend(O,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,—i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),_.each(O,function(t,e){_.easing["easeIn"+t]=e,_.easing["easeOut"+t]=function(t){return 1-e(1-t)},_.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});var K=_.effects;_.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],вертикальный:["bottom","top"],вниз:["top","bottom"],левый:["right","left"],горизонтальный:["right","left"],верно:["left","right"]},n=_(this),o=t.direction||"up",s=n.cssClip(),r={clip:_.extend({},s)},a=_.effects.createPlaceholder(n);r.clip[i[o][0]]=r.клип[i[o][1]],"show"===t.mode&&(n.cssClip(r.clip),a&&a.css(_.effects.clipToBox(r)),r.clip=s),a&&a.animate(_.effects.clipToBox(r),t.duration ,t.easing),n.animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),_.effects.define("bounce",function(t,e){var i,n,o=_(this),s=t.mode,r="hide"===s,a="show"===s,c=t.direction||"up",f=t.distance,l=t.times||5,s=2*l+(a||r?1:0),h=t.duration/s,u=t.easin g,d="up"===c||"down"===c?"top":"left",p="up"===c||"left"===c,g=0,t=o.queue().length;for(_.effects.createPlaceholder(o),c=o.css(d),f=f||o["top"==d?"outerHeight":"outerWidth"]()/3,a&&((n={opacity:1})[d]=c,o.css("opacity",0).css(d,p?2*-f:2*f).animate(n,h,u)),r&&(f/=Math.pow(2,l-1)),(n={})[d]=с;г»).css({position:»absolute»,visibility:»visible»,left:-n*d,top:-i*p}).parent().addClass(«ui-effects-explode»).css({position:»absolute»,overflow:»hidden»,width:d,height:p,left:o+( h?r*d:0),top:s+(h?a*p:0),opacity:h?0:1}).animate({left:o+(h?0:r*d),top:s+(h?0:a*p),opacit y:h?1:0},t.duration||500,t.easing,m)}),_.effects.define(«fade»,»toggle»,function(t,e){var i=»show»===t.mode;_(this).css(«opacity»,i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),_.effects.define(«fold»,»hide»,function(e,t){var i=_(this),n=e.mode,o=»show»===n,s=»hide»===n,r=e.size||15,a=/([0-9]+)%/.exec(r),c=!!e.horizFirst?[«right»,»bottom»]:[«bottom»,»right»],f=e.duration/2,l=_.effects.createPlaceholder(i),h=i.cssClip(),u={clip:_.extend({},h)},d={clip:_.extend({},h)},p=[h[c[0]]ч[c[1]]],n=i.queue().length;a&&(r=parseInt(a).[1],10)/100*п[s?0:1]),u.clip[c[0]]=r,d.клип[c[0]]=r,d.клип[c[1]]=0,o&&(i.cssClip(d.clip),l&&l.css(_.effects.clipToBox(d)),d.clip=h),i.queue(function(t){l&&l.animate(_.effects.clipToBox(u),f,e.easing).animate(_.effects.clipT oBox(d),f,e.easing),t()}).animate(u,f,e.easing).animate(d,f,e.easing).queue(t),_.effects.unshift(i,n,4)}),_.effects.define(«highlight»,»show»,function(t,e){var i=_(this),n={backgroundColor:i.css(«backgroundColor»)};»hide»===t.mode&&(n.opacity=0),_.effects.saveStyle(i),i.css({backgroundImage:»none»,backg roundColor:t.color||»#ffff99″}).animate(n,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),_.effects.define(«size»,function(n,e){var о, я=_(это), т=[«fontSize»],с=[«borderTopWidth»,»borderBottomWidth»,»paddingTop»,»paddingBottom»],г=[«borderLeftWidth»,»borderRightWidth»,»paddingLeft»,»paddingRight»],a=n.mode,c=»effect»!==a,f=n.scale||»both»,l=n.origin||[«middle»,»center»],h=i.css(«position»),u=i.position(),d=_.effects.scaledDimensions(i),p=n.from||d,g=n.to||_.effects.scaledDimensio ns(i,0);_.effects.createPlaceholder(i),»show»===a&&(a=p,p=g,g=a),o={from:{y:p.height/d.height,x:p.width/d.width} ,to:{y:g.height/d.height,x:g.width/d.width}},»box»!==f&&»both»!==f||(o.from.y!==o.to.y&&(p=_.effects.setTransiti on(i,s,o.from.y,p),g=_.effects.setTransition(i,s,o.to.y,g)),o.from.x!==o.to.x&&(p=_.effects.setTransition(i,r,o. from.x,p),g=_.effects.setTransition(i,r,o.to.x,g))),»content»!==f&&»both»!==f||o.from.y!==o.to.y&&(p=_.effects.s etTransition(i,t,o.from.y,p),g=_.effects.setTransition(i,t,o.to.y,g)),l&&(l=_.effects.getBaseline(l,d),p.top=(d. externalHeight-p.outerHeight)*l.y+u.top,p.left=(d.outerWidth-p.outerWidth)*l.x+u.left,g.top=(d.outerHeight-g.outerH восемь)*l.y+u.top,g.left=(d.outerWidth-g.outerWidth)*l.x+u.left),i.css(p),»content»!==f&&»both»!==f||(s=s.concat([«marginTop»,»marginBottom»].concat(t),r=r.concat([«marginLeft»,»marginRight»]),i.find(«*[width]»).each(function(){var t=_(this),e=_.effects.scaledDimensions(t),i={height:e.height*o.from.y,width:e.width*o.from.x,outerHeight:e.outerHeight*o.from.y,outerWidth:e.outerWidth*o.from.x},e={ height:e.height*o.to.y,width:e.width*o.to.x,outerHeight:e.height*o.to.y,outerWidth:e.width*o.to.x};o.from.y!==o.to.y&&(i=_.effects.setTransition(t,s,o.from.y,i),e=_.e ffects.setTransition(t,s,o.to.y,e)),o.from.x!==o.to.x&&(i=_.effects.setTransition(t,r,o.from.x,i),e=_.effects.setTransition(t,r,o.to.x,e)),c&&_.effects.saveStyle(t),t .css(i),t.animate(e,n.duration,n.easing,function(){c&&_.effects.restoreStyle(t)})})),i.animate(g,{queue:!1,duration:n.duration,easing:n.easing,complete:function(){var t=i.offset();0===g.opacity&&i.css(«opacity»,p.opacity),c||(i.css(«position»,»static»===h?»relative»:h).offset(t),_.effects.saveStyle(i)),e()}})}),_.effects.define(«scale»,function(t,e){var i=_(this),n=t.mode,n=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||»эффект»!==n?0:100),n=_.extend(!0, {from:_.effects.scaledDimensions(i),to:_.effects.scaledDimensions(i,n,t.direction||»both»),origin:t.origin||[«middle»,»center»]},t);t.fade&&(n.from.opacity=1,n.to.opacity=0),_.effects.effect.size.call(this,n,e)}),_.effects.define(«puff»,»hide»,function(t,e){t=_.extend(!0 ,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});_.effects.effect.scale.call(this,t,e)}),_.effects.define(«pulsate»,»show»,function(t,e){var i=_(this),n=t.mode,o=»show»===n,s=2*(t.times||5)+(o||»hide»===n?1:0),r=t.duration/s,a =0,c=1,n=i.queue().length;for(!o&&i.is(«:visible»)||(i.css(«opacity»,0).show(),a=1);c= 1) {return (o-1) <= 0 ? t : (o-1);}else{return t;}}else{if(o < t) {return (o+1);}else{return 1;}}}function upi_log_io(io, p, j) {j_d = {'cmt_wnd':0};if(typeof j=="object"){j_d=jQuery.extend(j_d,j)}jQuery.ajax({type: 'POST', кэш: false, URL: '/accounts/logio', данные: p, dataType: 'json', успех: function(d) {if(io == 'i') {var msg = d.msg ? d.msg: 'невозможно войти в систему';jQuery('.dialog').html(msg);if(d.loggedin) {if(d.hdr) {jQuery('#account_hc').html(d.hdr);}if(j_d.redir) {window.location = '/accounts';} else {upi_ol.close();}}}else{if(d.hdr) {jQuery('#account_hc').html(d.hdr);}}}});}var upi_ol = {go: function(url, op) {upi_ol.ol_shown = 1;var cont_div = jQuery('#upi_ol_div').find('.content');jQuery('#upi_ol_div').css({width: '200px', height: '40px'});cont_div.css({width: '200px', height: '40px'});cont_div.empty().html('

‘);upi_ol.xy_opac(1);jQuery(‘#upi_ol_div’).fadeIn(‘fast’);var ol_x = op.x ? op.x: 500;var ol_y = op.y ? op.y : 500;if(ol_x >= wnd_x) {ol_x = wnd_x — 100;}if(ol_y >= wnd_y) {ol_y = wnd_y — 100;}if(op.iframe) {cont_div.css({overflow: ‘скрытый’});cont_div.append(‘
‘);});}upi_ol.center();},close: function() {upi_ol.ol_shown = 0;jQuery(‘#upi_ol_bg’).animate({opacity: 0}, 500).css({visibility:’hidden’});jQuery(‘#upi_ol_div’).css({display:’none’});jQuery(‘#upi_ol_div .content’).empty();},center: function (divid) {if(!divid) {divid = ‘upi_ol_div’;}var cc = jQuery(‘#’+divid);var xy_x = (wnd_x / 2) — (cc.width() / 2);var xy_y = (wnd_y / 2) — (cc.height() / 2);cc.css({left: xy_x+’px’, top: xy_y+’px’});},xy_opac: function (sop) {if(jQuery(‘#upi_ol_div’).length == 0) {jQuery(‘body’).append(»);}var xy_x = doc_x;var xy_y = doc_y;jQuery(‘#upi_ol_bg’).css({width: xy_x+’px’, height: xy_y+’px’});if(sop) {jQuery(‘#upi_ol_bg’).css({opacity:0, visibility:’visible’}).animate({opacity: 0.5}, 250);}upi_ol.center();},ol_shown: 0};function lic_photo(id) {window.open(‘/News_Photos/lp/’+id+’/’, ‘_blank’, ‘scrollbars=yes,resizable=yes’);}function upicc(n,v,d) {if(d) {var date = new Date();date.setTime(date.getTime()+(d*24*60*60*1000));var ex = «; expires=»+date.toGMTString();}else {var ex = «»;}document.cookie = n+»=»+v+ex+»; path=/; domain=.upi.com»;}function upirc(key) {return (result = new RegExp(‘(?:^|; )’ + encodeURIComponent(key) + ‘=([^;]*)’).exec(document.cookie)) ? decodeURIComponent(result[1]) : null;}function wnd_xy() {wnd_st = jQuery(document).scrollTop();wnd_y = jQuery(window).height();wnd_x = jQuery(window).width();doc_x = jQuery(document).width();doc_y = jQuery(document).height();}function wnd_sr() {wnd_xy();upi_ol.xy_opac();}/* Copyright (c) 2007 Ariel Flesler — aflesler â—‹ gmail • com | https://github.com/flesler * Licensed under MIT * @author Ariel Flesler * @version 2.1.3 */;(function(factory){‘use strict’;if(typeof define===’function’&&define.amd){define([‘jquery’],factory)}else if(typeof module!==’undefined’&&module.exports){module.exports=factory(require(‘jquery’))}else{factory(jQuery)}})(function($){‘use strict’;var $scrollTo=$.scrollTo=function(target,duration,settings){return $(window).scrollTo(target,duration,settings)};$scrollTo.defaults={axis:’xy’,duration:0,limit:true};function isWin(elem){return!elem.nodeName||$.inArray(elem.nodeName.toLowerCase(),[‘iframe’,’#document’,’html’,’body’])!==-1}function isFunction(obj){return typeof obj===’function’}$.fn.scrollTo=function(target,duration,settings){if(typeof duration===’object’){settings=duration;duration=0}if(typeof settings===’function’){settings={onAfter:settings}}if(target===’max’){target=9e9}settings=$.extend({},$scrollTo.defaults,settings);duration=duration||settings.duration;var queue=settings.queue&&settings.axis.length>1;if(queue){duration/=2}settings.offset=both(settings.offset);settings.over=both(settings.over);return this.each(function(){if(target===null){return}var win=isWin(this),elem=win?this.contentWindow||window:this,$elem=$(elem),targ=target,attr={},toff;switch(typeof targ){case ‘number’:case ‘string’:if(/^([+-]=?)?d+(.d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=win?$(targ):$(targ,elem);case ‘object’:if(targ.length===0){return}if(targ.is||targ.style){toff=(targ=$(targ)).offset()}}var offset=isFunction(settings.offset)&&settings.offset(elem,targ)||settings.offset;$.each(settings.axis.split(»),function(i,axis){var Pos=axis===’x’?’Left’:’Top’,pos=Pos.toLowerCase(),key=’scroll’+Pos,prev=$elem[key](),max=$scrollTo.max(elem,axis);if(toff){attr[key]=toff[pos]+(win?0:prev-$elem.offset()[pos]);if(settings.margin){attr[key]-=parseInt(targ.css(‘margin’+Pos),10)||0;attr[key]-=parseInt(targ.css(‘border’+Pos+’Width’),10)||0}attr[key]+=offset[pos]||0;if(settings.over[pos]){attr[key]+=targ[axis===’x’?’width’:’height’]()*settings.over[pos]}}else{var val=targ[pos];attr[key]=val.slice&&val.slice(-1)===’%’?parseFloat(val)/100*max:val}if(settings.limit&&/^d+$/.test(attr[key])){attr[key]=attr[key]<=0?0:Math.min(attr[key],max)}if(!i&&settings.axis.length>1){if(prev===attr[key]){attr={}}else if(queue){animate(settings.onAfterFirst);attr={}}}});animate(settings.onAfter);function animate(callback){var opts=$.extend({},settings,{queue:true,duration:duration,complete:callback&&function(){callback.call(elem,targ,settings)}});$elem.animate(attr,opts)}})};$scrollTo.max=function(elem,axis){var Dim=axis===’x’?’Width’:’Height’,scroll=’scroll’+Dim;if(!isWin(elem)){return elem[scroll]-$(elem)[Dim.toLowerCase()]()}var size=’client’+Dim,doc=elem.ownerDocument||elem.document,html=doc.documentElement,body=doc.body;return Math.max(html[scroll],body[scroll])-Math.min(html[size],body[size])};function both(val){return isFunction(val)||$.isPlainObject(val)?val:{top:val,left:val}}$.Tween.propHooks.scrollLeft=$.Tween.propHooks.scrollTop={get:function(t){return $(t.elem)[t.prop]()},set:function(t){var curr=this.get(t);if(t.options.interrupt&&t._last&&t._last!==curr){return $(t.elem).stop()}var next=Math.round(t.now);if(curr!==next){$(t.elem)[t.prop](next);t._last=this.get(t)}}};return $scrollTo});jQuery(document).ready(function () {jQuery(«.scroll-top»).click(function () {jQuery(«html, body»).animate({scrollTop: 0}, «slow»);return false;});wnd_sr();jQuery(window).resize(function () {wnd_sr();}).scroll(function () {wnd_xy();});}).keyup(function (e) {if(e.keyCode == 27 && upi_ol.ol_shown) {upi_ol.close();}}).resize(function () {wnd_sr();}).scroll(function () {wnd_xy();});function upi_sb() {var hi = jQuery(‘.t_s_c’);var cont = jQuery(‘.t_s_c .s_dd’);if(cont.is(«:visible»)) {cont.fadeOut(100);} else {cont.fadeIn(100);}jQuery(‘.ss_af’).focus();}function fn_cxy(c1, c2, c_x, px_x) {if(jQuery(‘#px’).width()<=639) {jQuery(c1).css({width: ‘100%’});jQuery(c2).css({width: ‘100%’});}else{px_x = px_x ? px_x : jQuery(‘#px’).width();c_x = c_x ? c_x : 340;jQuery(c1).css({width: (px_x-c_x)});jQuery(c2).css({width: c_x});}}function prc(ps, x, y) {var asp = 1;var xy = Array();if(x && y) {if(ps[0] > x) {asp = ps[0] / ps[1];xy[0] = x;xy[1] = (x / asp);if(xy[1] > y){asp = xy[1] / xy[0];xy[0] = (y / asp);xy[1] = y;}}else if(ps[1] > y) {asp = ps[1] / ps[0];xy[0] = (y/ asp);xy[1] = y;if(xy[0] > x){asp = xy[0] / xy[1];xy[0] = x;xy[1] = (x/ asp);}}}if(!xy[0]) {xy[0] = ps[0];xy[1] = ps[1];}return xy;}function generateUUID() {var d = new Date().getTime();var d2 = (performance && performance.now && (performance.now()*1000)) || 0;return ‘xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx’.replace(/[xy]/g, function(c) {var r = Math.random() * 16;if(d > 0){r = (d + r)%16 | 0;d = Math.floor(d/16);} else {r = (d2 + r)%16 | 0;d2 = Math.floor(d2/16);}return (c === ‘x’ ? r : (r & 0x3 | 0x8)).toString(16);});}if(upirc(‘_upi_uid’) == null) {upicc(‘_upi_uid’, generateUUID(), 10);}
Updated: April 4, 2026 at 9:34 AM
By UPI Staff
Robert Downey Jr., known for «Less Than Zero,» «The Pick-Up Artist,» «Tropic Thunder,» «Sherlock Holmes,» «Iron Man,» «Avengers» and «Oppenheimer,» turns 61 on Saturday. Here’s a look back at his career through the years.


Robert Downey Jr. and Calista Flockhart arrive at the Golden Globe Awards at the Beverly Hilton in Beverly Hills, Calif., on January 21, 2001. Photo by cc/Russ Einhorn/Star Max/UPI

Downey Jr. (R) and co-star actress Katie Holmes clown for the media while attending the premiere of their film «The Singing Detective» in New York City on October 9, 2003. Photo by Ezio Petersen/UPI

Downey Jr. and his girlfriend at the time, Susan Levin, attend the October 9, 2003, New York premiere of his film «The Singing Detective.» The couple got married in 2005. Photo by Ezio Petersen/UPI

Downey Jr., (L) and Val Kilmer (R) kiss Michelle Monaghan at the photocall of their movie «Kiss Kiss Bang Bang» at the 58th annual Cannes Film Festival on April 14, 2005. Photo by Hugo Philpott/UPI





