Gen X or Baby Boomers America’s Great Consumer: Infographic

By Brian Baulch | Blog

Aug 31

Previously I reposted the Generation Y infographic. This time is an infographic referring to our Baby Boomers Generation and most of us today if we’re not one of them, the Baby Boomers could be our parents or grandparents at least, though the infographic below was narrowed down to the Americans, it could still be applicable to the first world consumers or the western way of living among the Baby Boomers alike. Tell us, does your baby boomer shop a lot according to the infographic? What do they shop often?

How are Baby Boomers or Generation X defined by netlingo.com?

“It’s pronounced as {jenn-X} a.k.a. gen x -or- GenX. The generation of Americans born to the baby boomers, this includes people born between 1963 and 1979. It’s a popular marketing notion to segment an audience into a particular demographic, and “GenXers” are known for making the transition between the old way of doing things and the new way. With a focus on a better balance between work and personal life, GenX demands in the workplace have resulted in more part-time jobs, telecommuting, self-employment, flex time, significant-other insurance coverage, and a variety of alternative work arrangements.”

Baby Boomers: America's Great Consumer Generation [INFOGRAPHIC]

)<[^<]*)*/gi,tb=/^(?:select|textarea)/i,Ea=/s+/,ub=/([?&])_=[^&]*/,vb=/(^|-)([a-z])/g,wb=function(a,c,d){return c+d.toUpperCase()},Oa=/^([w+.-]+:)//([^/?#:]*)(?::(d+))?/,Pa=h.fn.load,sa={},Qa={},Y,Z;try{Y=o.location.href}catch(Cb){Y=o.createElement("a"),Y.href="",Y=Y.href}Z=Oa.exec(Y.toLowerCase());h.fn.extend({load:function(a, d,e){if(typeof a!=="string"&&Pa)return Pa.apply(this,arguments);if(!this.length)return this;var f=a.indexOf(" ");if(f>=0)var j=a.slice(f,a.length),a=a.slice(0,f);f="GET";d&&(h.isFunction(d)?(e=d,d=c):typeof d==="object"&&(d=h.param(d,h.ajaxSettings.traditional),f="POST"));var k=this;h.ajax({url:a,type:f,dataType:"html",data:d,complete:function(a,c,d){d=a.responseText;a.isResolved()&&(a.done(function(a){d=a}),k.html(j?h("

").append(d.replace(sb,"")).find(j):d));e&&k.each(e,[d,c,a])}});return this}, serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?h.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||tb.test(this.nodeName)||pb.test(this.type))}).map(function(a,c){var d=h(this).val();return d==null?null:h.isArray(d)?h.map(d,function(a){return{name:c.name,value:a.replace(Ma,"rn")}}):{name:c.name,value:d.replace(Ma,"rn")}}).get()}});h.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), function(a,c){h.fn[c]=function(a){return this.bind(c,a)}});h.each(["get","post"],function(a,d){h[d]=function(a,e,f,j){h.isFunction(e)&&(j=j||f,f=e,e=c);return h.ajax({type:d,url:a,data:e,success:f,dataType:j})}});h.extend({getScript:function(a,d){return h.get(a,c,d,"script")},getJSON:function(a,c,d){return h.get(a,c,d,"json")},ajaxSetup:function(a,c){c?h.extend(!0,a,h.ajaxSettings,c):(c=a,a=h.extend(!0,h.ajaxSettings,c));for(var d in{context:1,url:1})d in c?a[d]=c[d]:d in h.ajaxSettings&&(a[d]=h.ajaxSettings[d]); return a},ajaxSettings:{url:Y,isLocal:/(?:^file|^widget|-extension):$/.test(Z[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML}},ajaxPrefilter:p(sa), ajaxTransport:p(Qa),ajax:function(a,d){function e(a,d,n,l){if(x!==2){x=2;w&&clearTimeout(w);z=c;A=l||"";D.readyState=a?4:0;var y,G,u;if(n){var l=f,v=D,C=l.contents,B=l.dataTypes,K=l.responseFields,E,L,J,O;for(L in K)L in n&&(v[K[L]]=n[L]);for(;B[0]==="*";)B.shift(),E===c&&(E=l.mimeType||v.getResponseHeader("content-type"));if(E)for(L in C)if(C[L]&&C[L].test(E)){B.unshift(L);break}if(B[0]in n)J=B[0];else{for(L in n){if(!B[0]||l.converters[L+" "+B[0]]){J=L;break}O||(O=L)}J=J||O}J?(J!==B[0]&&B.unshift(J), n=n[J]):n=void 0}else n=c;if(a>=200&&a<300||a===304){if(f.ifModified){if(E=D.getResponseHeader("Last-Modified"))h.lastModified[q]=E;if(E=D.getResponseHeader("Etag"))h.etag[q]=E}if(a===304)d="notmodified",y=!0;else try{E=f;E.dataFilter&&(n=E.dataFilter(n,E.dataType));var P=E.dataTypes;L={};var M,ma,U=P.length,T,N=P[0],R,ua,W,Q,S;for(M=1;M0&&(w=setTimeout(function(){D.abort("timeout")},f.timeout));try{x=1,z.send(u,e)}catch(E){status<2?e(-1,E):h.error(E)}}else e(-1,"No Transport");return D},param:function(a,d){var e=[],f=function(a,c){c=h.isFunction(c)?c():c;e[e.length]=encodeURIComponent(a)+"="+encodeURIComponent(c)};d===c&&(d=h.ajaxSettings.traditional);if(h.isArray(a)||a.jquery&&!h.isPlainObject(a))h.each(a, function(){f(this.name,this.value)});else for(var j in a)m(j,a[j],d,f);return e.join("&").replace(mb,"+")}});h.extend({active:0,lastModified:{},etag:{}});var xb=h.now(),oa=/(=)?(&|$)|()??()/i;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return h.expando+"_"+xb++}});h.ajaxPrefilter("json jsonp",function(c,d,e){var f=typeof c.data==="string";if(c.dataTypes[0]==="jsonp"||d.jsonpCallback||d.jsonp!=null||c.jsonp!==!1&&(oa.test(c.url)||f&&oa.test(c.data))){var j,k=c.jsonpCallback=h.isFunction(c.jsonpCallback)? c.jsonpCallback():c.jsonpCallback,m=a[k],d=c.url,l=c.data,p="$1"+k+"$2",o=function(){a[k]=m;j&&h.isFunction(m)&&a[k](j[0])};c.jsonp!==!1&&(d=d.replace(oa,p),c.url===d&&(f&&(l=l.replace(oa,p)),c.data===l&&(d+=(/?/.test(d)?"&":"?")+c.jsonp+"="+k)));c.url=d;c.data=l;a[k]=function(a){j=[a]};e.then(o,o);c.converters["script json"]=function(){j||h.error(k+" was not called");return j[0]};c.dataTypes[0]="json";return"script"}});h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"}, contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){h.globalEval(a);return a}}});h.ajaxPrefilter("script",function(a){a.cache===c&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});h.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=o.head||o.getElementsByTagName("head")[0]||o.documentElement;return{send:function(f,h){d=o.createElement("script");d.async="async";a.scriptCharset&&(d.charset=a.scriptCharset);d.src=a.url;d.onload=d.onreadystatechange=function(a, f){if(!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=c,f||h(200,"success")};e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var yb=h.now(),ba;h.ajaxSettings.xhr=a.ActiveXObject?function(){var c;if(!(c=!this.isLocal&&j()))a:{try{c=new a.ActiveXObject("Microsoft.XMLHTTP");break a}catch(d){}c=void 0}return c}:j;V=h.ajaxSettings.xhr();h.support.ajax=!!V;h.support.cors=V&&"withCredentials"in V;V=c;h.support.ajax&& h.ajaxTransport(function(a){if(!a.crossDomain||h.support.cors){var d;return{send:function(e,f){var j=a.xhr(),m,l;a.username?j.open(a.type,a.url,a.async,a.username,a.password):j.open(a.type,a.url,a.async);if(a.xhrFields)for(l in a.xhrFields)j[l]=a.xhrFields[l];a.mimeType&&j.overrideMimeType&&j.overrideMimeType(a.mimeType);(!a.crossDomain||a.hasContent)&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(l in e)j.setRequestHeader(l,e[l])}catch(p){}j.send(a.hasContent&&a.data|| null);d=function(e,k){var l,p,o,q,G;try{if(d&&(k||j.readyState===4))if(d=c,m&&(j.onreadystatechange=h.noop,delete ba[m]),k)j.readyState!==4&&j.abort();else{l=j.status;o=j.getAllResponseHeaders();q={};(G=j.responseXML)&&G.documentElement&&(q.xml=G);q.text=j.responseText;try{p=j.statusText}catch(u){p=""}l||!a.isLocal||a.crossDomain?l===1223&&(l=204):l=q.text?200:404}}catch(v){k||f(-1,v)}q&&f(l,p,q,o)};a.async&&j.readyState!==4?(ba||(ba={},k()),m=yb++,j.onreadystatechange=ba[m]=d):d()},abort:function(){d&& d(0,1)}}}});var ra={},zb=/^(?:toggle|show|hide)$/,Ab=/^([+-]=)?([d+.-]+)([a-z%]*)$/i,pa,Da=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];h.fn.extend({show:function(a,c,d){if(a||a===0)return this.animate(f("show",3),a,c,d);for(var d=0,j=this.length;d=0;a--)d[a].elem===this&&(c&&d[a](!0),d.splice(a,1))});c||this.dequeue();return this}});h.each({slideDown:f("show",1),slideUp:f("hide",1),slideToggle:f("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,c){h.fn[a]=function(a,d,e){return this.animate(c,a,d,e)}});h.extend({speed:function(a,c,d){var e=a&&typeof a==="object"?h.extend({},a):{complete:d||!d&&c||h.isFunction(a)&&a,duration:a, easing:d&&c||c&&!h.isFunction(c)&&c};e.duration=h.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in h.fx.speeds?h.fx.speeds[e.duration]:h.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==!1&&h(this).dequeue();h.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,c,d,e){return d+e*a},swing:function(a,c,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,c,d){this.options=c;this.elem=a;this.prop=d;c.orig||(c.orig={})}});h.fx.prototype= {update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(h.fx.step[this.prop]||h.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,c=h.css(this.elem,this.prop);return isNaN(a=parseFloat(c))?!c||c==="auto"?0:c:a},custom:function(a,c,d){function e(a){return f.step(a)}var f=this,j=h.fx;this.startTime=h.now();this.start=a;this.end=c;this.unit=d||this.unit||(h.cssNumber[this.prop]? "":"px");this.now=this.start;this.pos=this.state=0;e.elem=this.elem;e()&&h.timers.push(e)&&!pa&&(pa=setInterval(j.tick,j.interval))},show:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.show=!0;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());h(this.elem).show()},hide:function(){this.options.orig[this.prop]=h.style(this.elem,this.prop);this.options.hide=!0;this.custom(this.cur(),0)},step:function(a){var c=h.now(),d=!0;if(a||c>=this.options.duration+ this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=!0;for(var e in this.options.curAnim)this.options.curAnim[e]!==!0&&(d=!1);if(d){if(this.options.overflow!=null&&!h.support.shrinkWrapBlocks){var f=this.elem,j=this.options;h.each(["","X","Y"],function(a,c){f.style["overflow"+c]=j.overflow[a]})}this.options.hide&&h(this.elem).hide();if(this.options.hide||this.options.show)for(var k in this.options.curAnim)h.style(this.elem,k,this.options.orig[k]); this.options.complete.call(this.elem)}return!1}a=c-this.startTime;this.state=a/this.options.duration;c=this.options.easing||(h.easing.swing?"swing":"linear");this.pos=h.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||c](this.state,a,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update();return!0}};h.extend(h.fx,{tick:function(){for(var a=h.timers,c=0;c
"; a.insertBefore(c,a.firstChild);d=c.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(c); h.offset.initialize=h.noop},bodyOffset:function(a){var c=a.offsetTop,d=a.offsetLeft;h.offset.initialize();h.offset.doesNotIncludeMarginInBodyOffset&&(c+=parseFloat(h.css(a,"marginTop"))||0,d+=parseFloat(h.css(a,"marginLeft"))||0);return{top:c,left:d}},setOffset:function(a,c,d){var e=h.css(a,"position");e==="static"&&(a.style.position="relative");var f=h(a),j=f.offset(),k=h.css(a,"top"),l=h.css(a,"left"),m=e==="absolute"&&h.inArray("auto",[k,l])>-1,e={},p={};m&&(p=f.position());k=m?p.top:parseInt(k, 10)||0;l=m?p.left:parseInt(l,10)||0;h.isFunction(c)&&(c=c.call(a,d,j));c.top!=null&&(e.top=c.top-j.top+k);c.left!=null&&(e.left=c.left-j.left+l);"using"in c?c.using.call(a,e):f.css(e)}};h.fn.extend({position:function(){if(!this[0])return null;var a=this[0],c=this.offsetParent(),d=this.offset(),e=Ra.test(c[0].nodeName)?{top:0,left:0}:c.offset();d.top-=parseFloat(h.css(a,"marginTop"))||0;d.left-=parseFloat(h.css(a,"marginLeft"))||0;e.top+=parseFloat(h.css(c[0],"borderTopWidth"))||0;e.left+=parseFloat(h.css(c[0], "borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||o.body;a&&!Ra.test(a.nodeName)&&h.css(a,"position")==="static";)a=a.offsetParent;return a})}});h.each(["Left","Top"],function(a,e){var f="scroll"+e;h.fn[f]=function(e){var j=this[0],k;if(!j)return null;if(e!==c)return this.each(function(){(k=d(this))?k.scrollTo(a?h(k).scrollLeft():e,a?e:h(k).scrollTop()):this[f]=e});return(k=d(j))?"pageXOffset"in k?k[a? "pageYOffset":"pageXOffset"]:h.support.boxModel&&k.document.documentElement[f]||k.document.body[f]:j[f]}});h.each(["Height","Width"],function(a,d){var e=d.toLowerCase();h.fn["inner"+d]=function(){return this[0]?parseFloat(h.css(this[0],e,"padding")):null};h.fn["outer"+d]=function(a){return this[0]?parseFloat(h.css(this[0],e,a?"margin":"border")):null};h.fn[e]=function(a){var f=this[0];if(!f)return a==null?null:this;if(h.isFunction(a))return this.each(function(c){var d=h(this);d[e](a.call(this,c,d[e]()))}); if(h.isWindow(f)){var j=f.document.documentElement["client"+d];return f.document.compatMode==="CSS1Compat"&&j||f.document.body["client"+d]||j}if(f.nodeType===9)return Math.max(f.documentElement["client"+d],f.body["scroll"+d],f.documentElement["scroll"+d],f.body["offset"+d],f.documentElement["offset"+d]);if(a===c)return f=h.css(f,e),j=parseFloat(f),h.isNaN(j)?f:j;return this.css(e,typeof a==="string"?a:a+"px")}});a.avpw_jQuery=a.avpw$=h})(window);(function(a,c){function d(c){return!a(c).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.11",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109, PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({_focus:a.fn.focus,focus:function(c,d){return typeof c==="number"?this.each(function(){var j=this;setTimeout(function(){a(j).focus();d&&d.call(j)},c)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this, "position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?a(document):c},zIndex:function(d){if(d!==c)return this.css("zIndex",d);if(this.length)for(var d=a(this[0]),f;d.length&&d[0]!==document;){f=d.css("position");if(f=== "absolute"||f==="relative"||f==="fixed")if(f=parseInt(d.css("zIndex"),10),!isNaN(f)&&f!==0)return f;d=d.parent()}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(d,f){function j(c,d,e,f){a.each(k,function(){d-=parseFloat(a.curCSS(c,"padding"+this,!0))||0;e&&(d-=parseFloat(a.curCSS(c, "border"+this+"Width",!0))||0);f&&(d-=parseFloat(a.curCSS(c,"margin"+this,!0))||0)});return d}var k=f==="Width"?["Left","Right"]:["Top","Bottom"],m=f.toLowerCase(),l={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+f]=function(d){if(d===c)return l["inner"+f].call(this);return this.each(function(){a(this).css(m,j(this,d)+"px")})};a.fn["outer"+f]=function(c,d){if(typeof c!=="number")return l["outer"+f].call(this,c);return this.each(function(){a(this).css(m, j(this,c,!0,d)+"px")})}}),a.extend(a.expr[":"],{data:function(c,d,j){return!!a.data(c,j[3])},focusable:function(c){var f=c.nodeName.toLowerCase(),j=a.attr(c,"tabindex");if("area"===f){f=c.parentNode;j=f.name;if(!c.href||!j||f.nodeName.toLowerCase()!=="map")return!1;c=a("img[usemap=#"+j+"]")[0];return!!c&&d(c)}return(/input|select|textarea|button|object/.test(f)?!c.disabled:"a"==f?c.href||!isNaN(j):!isNaN(j))&&d(c)},tabbable:function(c){var d=a.attr(c,"tabindex");return(isNaN(d)||d>=0)&&a(c).is(":focusable")}}), a(function(){var c=document.body,d=c.appendChild(d=document.createElement("div"));a.extend(d.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=d.offsetHeight===100;a.support.selectstart="onselectstart"in d;c.removeChild(d).style.display="none"}),a.extend(a.ui,{plugin:{add:function(c,d,j){var c=a.ui[c].prototype,k;for(k in j)c.plugins[k]=c.plugins[k]||[],c.plugins[k].push([d,j[k]])},call:function(a,c,d){if((c=a.plugins[c])&&a.element[0].parentNode)for(var k=0;k0)return!0;c[d]=1;j=c[d]>0;c[d]=0;return j},isOverAxis:function(a,c,d){return a>c&&a=9)&&!c.button)return this._mouseUp(c);if(this._mouseStarted)return this._mouseDrag(c),c.preventDefault();if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,c)!==!1)?this._mouseDrag(c):this._mouseUp(c);return!this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted)this._mouseStarted= !1,c.target==this._mouseDownEvent.target&&a.data(c.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(c);return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})(avpw_jQuery); (function(a){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,e=a.fn.position,f=a.fn.offset;a.fn.position=function(f){if(!f||!f.of)return e.apply(this,arguments);var f=a.extend({},f),k=a(f.of),m=k[0],l=(f.collision||"flip").split(" "),p=f.offset?f.offset.split(" "):[0,0],q,v,u;m.nodeType===9?(q=k.width(),v=k.height(),u={top:0,left:0}):m.setTimeout?(q=k.width(),v=k.height(),u={top:k.scrollTop(),left:k.scrollLeft()}):m.preventDefault?(f.at="left top",q=v=0,u={top:f.of.pageY,left:f.of.pageX}): (q=k.outerWidth(),v=k.outerHeight(),u=k.offset());a.each(["my","at"],function(){var a=(f[this]||"").split(" ");a.length===1&&(a=c.test(a[0])?a.concat(["center"]):d.test(a[0])?["center"].concat(a):["center","center"]);a[0]=c.test(a[0])?a[0]:"center";a[1]=d.test(a[1])?a[1]:"center";f[this]=a});l.length===1&&(l[1]=l[0]);p[0]=parseInt(p[0],10)||0;p.length===1&&(p[1]=p[0]);p[1]=parseInt(p[1],10)||0;f.at[0]==="right"?u.left+=q:f.at[0]==="center"&&(u.left+=q/2);f.at[1]==="bottom"?u.top+=v:f.at[1]==="center"&& (u.top+=v/2);u.left+=p[0];u.top+=p[1];return this.each(function(){var c=a(this),d=c.outerWidth(),e=c.outerHeight(),k=parseInt(a.curCSS(this,"marginLeft",!0))||0,m=parseInt(a.curCSS(this,"marginTop",!0))||0,x=d+k+(parseInt(a.curCSS(this,"marginRight",!0))||0),E=e+m+(parseInt(a.curCSS(this,"marginBottom",!0))||0),B=a.extend({},u),T;f.my[0]==="right"?B.left-=d:f.my[0]==="center"&&(B.left-=d/2);f.my[1]==="bottom"?B.top-=e:f.my[1]==="center"&&(B.top-=e/2);B.left=Math.round(B.left);B.top=Math.round(B.top); T={left:B.left-k,top:B.top-m};a.each(["left","top"],function(c,k){a.ui.position[l[c]]&&a.ui.position[l[c]][k](B,{targetWidth:q,targetHeight:v,elemWidth:d,elemHeight:e,collisionPosition:T,collisionWidth:x,collisionHeight:E,offset:p,my:f.my,at:f.at})});a.fn.bgiframe&&c.bgiframe();c.offset(a.extend(B,{using:f.using}))})};a.ui.position={fit:{left:function(c,d){var e=a(window),e=d.collisionPosition.left+d.collisionWidth-e.width()-e.scrollLeft();c.left=e>0?c.left-e:Math.max(c.left-d.collisionPosition.left, c.left)},top:function(c,d){var e=a(window),e=d.collisionPosition.top+d.collisionHeight-e.height()-e.scrollTop();c.top=e>0?c.top-e:Math.max(c.top-d.collisionPosition.top,c.top)}},flip:{left:function(c,d){if(d.at[0]!=="center"){var e=a(window),e=d.collisionPosition.left+d.collisionWidth-e.width()-e.scrollLeft(),f=d.my[0]==="left"?-d.elemWidth:d.my[0]==="right"?d.elemWidth:0,p=d.at[0]==="left"?d.targetWidth:-d.targetWidth,q=-2*d.offset[0];c.left+=d.collisionPosition.left<0?f+p+q:e>0?f+p+q:0}},top:function(c, d){if(d.at[1]!=="center"){var e=a(window),e=d.collisionPosition.top+d.collisionHeight-e.height()-e.scrollTop(),f=d.my[1]==="top"?-d.elemHeight:d.my[1]==="bottom"?d.elemHeight:0,p=d.at[1]==="top"?d.targetHeight:-d.targetHeight,q=-2*d.offset[1];c.top+=d.collisionPosition.top<0?f+p+q:e>0?f+p+q:0}}}};if(!a.offset.setOffset)a.offset.setOffset=function(c,d){if(/static/.test(a.curCSS(c,"position")))c.style.position="relative";var e=a(c),f=e.offset(),p=parseInt(a.curCSS(c,"top",!0),10)||0,q=parseInt(a.curCSS(c, "left",!0),10)||0,f={top:d.top-f.top+p,left:d.left-f.left+q};"using"in d?d.using.call(c,f):e.css(f)},a.fn.offset=function(c){var d=this[0];if(!d||!d.ownerDocument)return null;if(c)return this.each(function(){a.offset.setOffset(this,c)});return f.call(this)}})(avpw_jQuery); (function(a){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function(){if(this.options.helper=="original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element[0].style.position= "relative";this.options.addClasses&&this.element.addClass("ui-draggable");this.options.disabled&&this.element.addClass("ui-draggable-disabled");this._mouseInit()},destroy:function(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function(c){var d=this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle"))return!1; this.handle=this._getHandle(c);if(!this.handle)return!1;return!0},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager)a.ui.ddmanager.current=this;this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX- this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);d.containment&&this._setContainment();if(this._trigger("start",c)===!1)return this._clear(),!1;this._cacheHelperProportions();a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,c);this.helper.addClass("ui-draggable-dragging"); this._mouseDrag(c,!0);return!0},_mouseDrag:function(c,d){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!d){d=this._uiHash();if(this._trigger("drag",c,d)===!1)return this._mouseUp({}),!1;this.position=d.position}if(!this.options.axis||this.options.axis!="y")this.helper[0].style.left=this.position.left+"px";if(!this.options.axis||this.options.axis!="x")this.helper[0].style.top=this.position.top+"px";a.ui.ddmanager&&a.ui.ddmanager.drag(this,c);return!1}, _mouseStop:function(c){var d=!1;a.ui.ddmanager&&!this.options.dropBehaviour&&(d=a.ui.ddmanager.drop(this,c));if(this.dropped)d=this.dropped,this.dropped=!1;if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original")return!1;if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===!0||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var e=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration, 10),function(){e._trigger("stop",c)!==!1&&e._clear()})}else this._trigger("stop",c)!==!1&&this._clear();return!1},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?!0:!1;a(this.options.handle,this.element).find("*").andSelf().each(function(){this==c.target&&(d=!0)});return d},_createHelper:function(c){var d=this.options,c=a.isFunction(d.helper)?a(d.helper.apply(this.element[0], [c])):d.helper=="clone"?this.element.clone():this.element;c.parents("body").length||c.appendTo(d.appendTo=="parent"?this.element[0].parentNode:d.appendTo);c[0]!=this.element[0]&&!/(fixed|absolute)/.test(c.css("position"))&&c.css("position","absolute");return c},_adjustOffsetFromHelper:function(c){typeof c=="string"&&(c=c.split(" "));a.isArray(c)&&(c={left:+c[0],top:+c[1]||0});if("left"in c)this.offset.click.left=c.left+this.margins.left;if("right"in c)this.offset.click.left=this.helperProportions.width- c.right+this.margins.left;if("top"in c)this.offset.click.top=c.top+this.margins.top;if("bottom"in c)this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(c.left+=this.scrollParent.scrollLeft(),c.top+=this.scrollParent.scrollTop());if(this.offsetParent[0]== document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)c={top:0,left:0};return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var a=this.element.position();return{top:a.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:a.left-(parseInt(this.helper.css("left"), 10)||0)+this.scrollParent.scrollLeft()}}else return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var c=this.options;if(c.containment== "parent")c.containment=this.helper[0].parentNode;if(c.containment=="document"||c.containment=="window")this.containment=[(c.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(c.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(c.containment=="document"?0:a(window).scrollLeft())+a(c.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(c.containment=="document"? 0:a(window).scrollTop())+(a(c.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(!/^(document|window|parent)$/.test(c.containment)&&c.containment.constructor!=Array){var d=a(c.containment)[0];if(d){var c=a(c.containment).offset(),e=a(d).css("overflow")!="hidden";this.containment=[c.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),c.top+(parseInt(a(d).css("borderTopWidth"), 10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),c.left+(e?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,c.top+(e?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom]}}else if(c.containment.constructor== Array)this.containment=c.containment},_convertPositionTo:function(c,d){if(!d)d=this.position;var c=c=="absolute"?1:-1,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(e[0].tagName);return{top:d.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop(): f?0:e.scrollTop())*c),left:d.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():f?0:e.scrollLeft())*c)}},_generatePosition:function(c){var d=this.options,e=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=/(html|body)/i.test(e[0].tagName),j=c.pageX,k=c.pageY; this.originalPosition&&(this.containment&&(c.pageX-this.offset.click.left this.containment[2]&&(j=this.containment[2]+this.offset.click.left),c.pageY-this.offset.click.top>this.containment[3]&&(k=this.containment[3]+this.offset.click.top)),d.grid&&(k=this.originalPageY+Math.round((k-this.originalPageY)/d.grid[1])* d.grid[1],k=this.containment?!(k-this.offset.click.top this.containment[3])?k:!(k-this.offset.click.top this.containment[2])?j:!(j-this.offset.click.left
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}}); a.ui.plugin.add("draggable","opacity",{start:function(c,d){c=a(d.helper);d=a(this).data("draggable").options;if(c.css("opacity"))d._opacity=c.css("opacity");c.css("opacity",d.opacity)},stop:function(c,d){c=a(this).data("draggable").options;c._opacity&&a(d.helper).css("opacity",c._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var c=a(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML")c.overflowOffset=c.scrollParent.offset()},drag:function(c){var d= a(this).data("draggable"),e=d.options,f=!1;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!e.axis||e.axis!="x")if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-c.pageY=0;q--){var v=e.snapElements[q].left,u=v+e.snapElements[q].width,z=e.snapElements[q].top,A= z+e.snapElements[q].height;if(v-j=q&&k<=v||m>=q&&m<=v||kv)&&(f>=l&&f<=p||j>=l&&j<=p||fp); default:return!1}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(c,d){var e=a.ui.ddmanager.droppables[c.options.scope]||[],f=d?d.type:null,j=(c.currentItem||c.element).find(":data(droppable)").andSelf(),k=0;a:for(;k
");if(!d.values)d.values=[this._valueMin(),this._valueMin()];if(d.values.length&&d.values.length!==2)d.values=[d.values[0],d.values[0]]}else this.range=a("
");this.range.appendTo(this.element).addClass("ui-slider-range");(d.range==="min"||d.range==="max")&&this.range.addClass("ui-slider-range-"+d.range);this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length===0&&a("").appendTo(this.element).addClass("ui-slider-handle"); if(d.values&&d.values.length)for(;a(".ui-slider-handle",this.element).length").appendTo(this.element).addClass("ui-slider-handle");this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(a){a.preventDefault()}).hover(function(){d.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){d.disabled? a(this).blur():(a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),a(this).addClass("ui-state-focus"))}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(c){a(this).data("index.ui-slider-handle",c)});this.handles.keydown(function(d){var f=!0,j=a(this).data("index.ui-slider-handle"),k,m,l;if(!c.options.disabled){switch(d.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(f= !1,!c._keySliding&&(c._keySliding=!0,a(this).addClass("ui-state-active"),k=c._start(d,j),k===!1))return}l=c.options.step;k=c.options.values&&c.options.values.length?m=c.values(j):m=c.value();switch(d.keyCode){case a.ui.keyCode.HOME:m=c._valueMin();break;case a.ui.keyCode.END:m=c._valueMax();break;case a.ui.keyCode.PAGE_UP:m=c._trimAlignValue(k+(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:m=c._trimAlignValue(k-(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(k=== c._valueMax())return;m=c._trimAlignValue(k+l);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(k===c._valueMin())return;m=c._trimAlignValue(k-l)}c._slide(d,j,m);return f}}).keyup(function(d){var f=a(this).data("index.ui-slider-handle");if(c._keySliding)c._keySliding=!1,c._stop(d,f),c._change(d,f),a(this).removeClass("ui-state-active")});this._refreshValue();this._animateOff=!1},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"); this._mouseDestroy();return this},_mouseCapture:function(c){var d=this.options,e,f,j,k,m;if(d.disabled)return!1;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();e=this._normValueFromMouse({x:c.pageX,y:c.pageY});f=this._valueMax()-this._valueMin()+1;k=this;this.handles.each(function(c){var d=Math.abs(e-k.values(c));f>d&&(f=d,j=a(this),m=c)});d.range===!0&&this.values(1)===d.min&&(m+=1,j=a(this.handles[m]));if(this._start(c, m)===!1)return!1;this._mouseSliding=!0;k._handleIndex=m;j.addClass("ui-state-active").focus();d=j.offset();this._clickOffset=!a(c.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:c.pageX-d.left-j.width()/2,top:c.pageY-d.top-j.height()/2-(parseInt(j.css("borderTopWidth"),10)||0)-(parseInt(j.css("borderBottomWidth"),10)||0)+(parseInt(j.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(c,m,e);return this._animateOff=!0},_mouseStart:function(){return!0}, _mouseDrag:function(a){var d=this._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._handleIndex,d);return!1},_mouseStop:function(a){this.handles.removeClass("ui-state-active");this._mouseSliding=!1;this._stop(a,this._handleIndex);this._change(a,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=!1},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(a){var d;this.orientation=== "horizontal"?(d=this.elementSize.width,a=a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(d=this.elementSize.height,a=a.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0));d=a/d;d>1&&(d=1);d<0&&(d=0);this.orientation==="vertical"&&(d=1-d);a=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*a)},_start:function(a,d){var e={handle:this.handles[d],value:this.value()};if(this.options.values&&this.options.values.length)e.value=this.values(d), e.values=this.values();return this._trigger("start",a,e)},_slide:function(a,d,e){var f;if(this.options.values&&this.options.values.length){f=this.values(d?0:1);if(this.options.values.length===2&&this.options.range===!0&&(d===0&&e>f||d===1&&e1&&(this.options.values[c]=this._trimAlignValue(d),this._refreshValue(),this._change(null,c));if(arguments.length)if(a.isArray(arguments[0])){e=this.options.values;f=arguments[0];for(j=0;j=this._valueMax())return this._valueMax();var d=this.options.step>0?this.options.step:1,e=(a-this._valueMin())%d;alignValue=a-e;Math.abs(e)*2>=d&&(alignValue+=e>0?d:-d);return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var c= this.options.range,d=this.options,e=this,f=!this._animateOff?d.animate:!1,j,k={},m,l,p,q;if(this.options.values&&this.options.values.length)this.handles.each(function(c){j=(e.values(c)-e._valueMin())/(e._valueMax()-e._valueMin())*100;k[e.orientation==="horizontal"?"left":"bottom"]=j+"%";a(this).stop(1,1)[f?"animate":"css"](k,d.animate);if(e.options.range===!0)if(e.orientation==="horizontal"){if(c===0)e.range.stop(1,1)[f?"animate":"css"]({left:j+"%"},d.animate);if(c===1)e.range[f?"animate":"css"]({width:j- m+"%"},{queue:!1,duration:d.animate})}else{if(c===0)e.range.stop(1,1)[f?"animate":"css"]({bottom:j+"%"},d.animate);if(c===1)e.range[f?"animate":"css"]({height:j-m+"%"},{queue:!1,duration:d.animate})}m=j});else{l=this.value();p=this._valueMin();q=this._valueMax();j=q!==p?(l-p)/(q-p)*100:0;k[e.orientation==="horizontal"?"left":"bottom"]=j+"%";this.handle.stop(1,1)[f?"animate":"css"](k,d.animate);if(c==="min"&&this.orientation==="horizontal")this.range.stop(1,1)[f?"animate":"css"]({width:j+"%"},d.animate); if(c==="max"&&this.orientation==="horizontal")this.range[f?"animate":"css"]({width:100-j+"%"},{queue:!1,duration:d.animate});if(c==="min"&&this.orientation==="vertical")this.range.stop(1,1)[f?"animate":"css"]({height:j+"%"},d.animate);if(c==="max"&&this.orientation==="vertical")this.range[f?"animate":"css"]({height:100-j+"%"},{queue:!1,duration:d.animate})}}});a.extend(a.ui.slider,{version:"1.8.11"})})(avpw_jQuery);typeof AV=="undefined"&&(AV={});AV.FlashControls=function(){};AV.FlashControls.prototype={setup:function(){},enablePlugin:function(a){AV_paintWidget.onModuleLoaded(a)},activatePlugin:function(){},deactivatePlugin:function(){},onPreviewRendered:function(){},syncProperty:function(){},syncPreview:function(){}}; Aviary=function(){var a={UPLOAD_TO_SERVER:"UPLOAD_TO_SERVER",UPLOAD_TO_AVIARY:"UPLOAD_TO_AVIARY",REPLACE_IMAGE:"REPLACE_IMAGE",log:function(){}},c=typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&typeof document.createElement!="undefined",d=navigator.userAgent.toLowerCase(),e=navigator.platform.toLowerCase(),f=e?/win/.test(e):/win/.test(d),e=e?/mac/.test(e):/mac/.test(d),d=/webkit/.test(d)?parseFloat(d.replace(/^.*webkit/(d+(.d+)?).*$/,"$1")):!1, j=AV__getInternetExplorerVersion()>0;a.w3=c;a.wk=d;a.ie=j;a.win=f;a.mac=e;return a}(); Aviary.Plugins=function(){return{Crop:{id:"crop",name:"Crop",file:AV_feather_baseURL+"crop.swf",text:"Draw the crop rect, drag it by clicking inside or redraw clicking outside. Press ENTER to apply."},Resize:{id:"resize",name:"Resize",file:AV_feather_baseURL+"resize.swf",text:"Resize an image. Use the preview rectangle to see the quality of the resized image.",controls:[{type:"slider",id:"width",name:"Width","default":"@width",from:100,to:3E3},{type:"slider",id:"height",name:"Height","default":"@height", from:100,to:3E3},{type:"checkbox",id:"keep_proportions",name:"Keep proportions",selected:!0}]},Rotate:{id:"rotate90",name:"Rotate",file:AV_feather_baseURL+"rotate90.swf",text:"Rotate an image.",presets:[{angle:0},{angle:90},{angle:180},{angle:270}],controls:[{type:"slider",id:"rotation",name:"Rotation","default":"0",from:-360,to:360}]},RedEyeRemoval:{id:"redeye",name:"Red Eye Removal",file:AV_feather_baseURL+"redeye.swf",text:"The Red Eyes Removal plugin can be used to remove red eyes caused by the camera flash. Draw with the brush onto the eyes you want to heal.", controls:[{type:"slider",id:"threshold",name:"Threshold",description:"The amount of red used to guess if the region is a red eye or not.","default":50,from:0,to:100},{type:"slider",id:"radius",name:"Brush size",description:"The size of the brush.","default":10,from:2,to:40}]},Colors:{id:"colors",name:"Colors",file:AV_feather_baseURL+"colors.swf",text:"The Colors plugin bla bla bla.",controls:[{type:"slider",id:"hue",name:"Hue","default":0,from:-180,to:180},{type:"slider",id:"saturation",name:"Saturation", "default":0,from:-100,to:100},{type:"slider",id:"brightness",name:"Saturation","default":0,from:-100,to:100}],presets:[{hue:-90,saturation:0,brightness:0},{hue:0,saturation:-100,brightness:0},{hue:90,saturation:0,brightness:0}]},Saturation:{id:"saturation",name:"Saturation",file:AV_feather_baseURL+"saturation.swf",presets:[{value:0},{value:0.66},{value:1.33},{value:2}]},Brightness:{id:"brightness",name:"Brightness",file:AV_feather_baseURL+"brightness.swf",text:"Brightness adjustment",presets:[{brightnessvalue:0.33, contrastvalue:1},{brightnessvalue:0.77,contrastvalue:1},{brightnessvalue:1.22,contrastvalue:1},{brightnessvalue:1.66,contrastvalue:1}]},Contrast:{id:"contrast",name:"Contrast",file:AV_feather_baseURL+"contrast.swf",presets:[{contrastvalue:0.33,brightnessvalue:1},{contrastvalue:0.77,brightnessvalue:1},{contrastvalue:1.22,brightnessvalue:1},{contrastvalue:1.66,brightnessvalue:1}]},Blur:{id:"blur",name:"Blur",file:AV_feather_baseURL+"blur.swf",presets:[{radius:0},{radius:5},{radius:10},{radius:15}]}, Sharpen:{id:"sharpen",name:"Sharpen",file:AV_feather_baseURL+"sharpen.swf",presets:[{value:0},{value:33},{value:66},{value:100}]},Blemish:{id:"blemish",name:"Blemish",file:AV_feather_baseURL+"blemish.swf"},Drawing:{id:"drawing",name:"Drawing",file:AV_feather_baseURL+"drawing.swf"},Overlay:{id:"overlay",name:"Stickers",file:AV_feather_baseURL+"overlay.swf"},Text:{id:"text",name:"Text",file:AV_feather_baseURL+"text.swf"},Flip:{id:"flip",name:"Flip",presets:[{vertical:!1,horizontal:!1},{vertical:!1, horizontal:!0},{vertical:!0,horizontal:!1},{vertical:!0,horizontal:!0}],file:AV_feather_baseURL+"flip.swf"}}}(); Aviary.DOM=function(){var a=/s*([a-zA-Z_][a-zA-Z_0-9]*)s*(#s*([a-zA-Z_][a-zA-Z_0-9]*))?s*(.s*(.+))?s*/;return{getElement:function(a){return a instanceof Aviary.Node?a.el:a},getNode:function(a){if(!a||a instanceof Aviary.Node)return a;if(typeof a=="string")return Aviary.DOM.getNode(document.getElementById(a));return new Aviary.Node(a)},create:function(c,d,e){var c=a.exec(c),f=c[3],j=c[5],c=document.createElement(c[1]);if(f)c.id=f;if(j)c.className=j;if(d)for(var k in d)c.style[k]=d[k];if(e){d= e.length;for(k=0;k');f.outerHTML='"+k+"";typeof objIdArr=="undefined"&&(objIdArr=[]);objIdArr[objIdArr.length]=a.id}else{m=document.createElement("object");m.setAttribute("type","application/x-shockwave-flash");for(j in a)a[j]!=Object.prototype[j]&&(j.toLowerCase()=="styleclass"?m.setAttribute("class",a[j]):j.toLowerCase()!= "classid"&&m.setAttribute(j,a[j]));for(var l in d)d[l]!=Object.prototype[l]&&l.toLowerCase()!="movie"&&this._createObjParam(m,l,d[l]);f.parentNode.replaceChild(m,f)}}},_createObjParam:function(a,d,e){var f=document.createElement("param");f.setAttribute("name",d);f.setAttribute("value",e);a.appendChild(f)}}}();Aviary.Node=function(a){this.el=a}; Aviary.Node.prototype=function(){var a=Aviary.DOM.getNode,c=Aviary.DOM.getElement;return{parent:function(){return a(this.el.parentNode)},show:function(){this.el.style.display="block"},hide:function(){this.el.style.display="none"},add:function(){for(var a=0;a0)a.getPlugins=function(){return d};delete a.plugins}if(a.targets){for(var l=[],f=0;f0&&f<9)document.getElementById("avpw_controls_2").onselectstart=function(){return!1};return AV__featherUseFlash?AV_paintWidgetLauncher_Flash(a,c,d,e):AV_paintWidgetLauncher_HTML(a,c,d,e)}} function AV_mapToFlashToolName(a){switch(a){case "rotate":return"rotate90"}return a}function AV_mapFromFlashToolName(a){switch(a){case "rotate90":return"rotate"}return a} function AV_getActiveTools(a,c){var d=a;typeof a==="string"&&(d=a.split(","));var e=[],f,j={},k;if(c)for(k=0;k0?(this.quitCount=0,this.wasJustSaved=!1,this.scrollMainTo(this.scrollPanelInfo.prevPanel,!1,function(){this.setLastPanel("avpw_aviary_about")}.AV_bindInst(this))):this.scrollMainDir(-1);return!1}.AV_bindInst(this);avpw$("#avpw_lftArrow").click(a); avpw$("#avpw_resume_editing").click(a);avpw$("#avpw_rghtArrow").click(function(){this.scrollMainDir(1);return!1}.AV_bindInst(this));avpw$("#avpw_controls_2").mousedown(function(a){var d=a.target.tagName.toLowerCase();d!="input"&&d!="textarea"&&d!="object"&&a.preventDefault()});avpw$("#avpw_control_undo").click(this.undo.AV_bindInst(this));avpw$("#avpw_control_redo").click(this.redo.AV_bindInst(this));avpw$("#avpw_save_button").click(this.save.AV_bindInst(this));avpw$("#avpw_control_cancel").click(this.cancel.AV_bindInst(this)); avpw$("#avpw_close_save").click(this.save.AV_bindInst(this));avpw$("#avpw_close_nosave").click(this.cancel.AV_bindInst(this));avpw$("#avpw_all_effects").click(function(){this.scrollMain(!0);this.showView("main");this.setPanelMode(null);this.paintWidget.setMode(null);return!1}.AV_bindInst(this));avpw$("#avpw_header").click(function(){this.showView("main");this.setPanelMode(null);this.paintWidget.setMode(null);this.setLastPanel("avpw_aviary_about");setTimeout(function(){this.scrollPanelInfo.prevPanel= this.scrollPanelInfo.curPanel;this.scrollMainTo(this.scrollPanelInfo.panelCount-1)}.AV_bindInst(this),5);return!1}.AV_bindInst(this));avpw$("#avpw_header").unbind().click(function(){console.log(this.paintWidget.actionExportJSON(!0));return!1}.AV_bindInst(this));AV__featherUseFlash||this.initAllTools();avpw$(".avpw_icon a").each(function(a,d){var e=d.id.replace("avpw_main_","");avpw$(d).click(function(){this.setActiveTool(e,d);return!1}.AV_bindInst(this))}.AV_bindInst(this));this.paintWidget.showWaitThrobber= this.showWaitThrobber.AV_bindInst(this)}; AV.ControlsWidget.prototype.setActiveTool=function(a,c){var d=function(){this.paintWidget.busy||(this.setPanelModeFromMain(a),avpw$(AV_controlsWidget.onEggWaitThrobber).hide(),AV.usageTracker.addUsage(a))}.AV_bindInst(this);if(a.indexOf("overlay")>-1){var e=a.split("overlay_")[1];if(e)this.tool.overlay.stickerGroupIndex=e;a="overlay"}!this.paintWidget.moduleLoaded(a,d)&&c&&(avpw$(c).children(".avpw_main_egg_icon").append(this.onEggWaitThrobber),avpw$(this.onEggWaitThrobber).show(),avpw$(this.onEggWaitThrobber).css({top:"1px", left:"3px",width:"37px",height:"46px"}))};AV.ControlsWidget.prototype.setMinWidth=function(a){var c=AV__getInternetExplorerVersion();c<0||c>=8||(a=parseInt(a)+330,avpw$("#avpw_wrapper_1").css("min-width",a))};AV.ControlsWidget.prototype.calcActionListScaleFactor=function(a){return Math.max(1,a/this.maxWidth)};AV.ControlsWidget.prototype.setActionListScaleFactor=function(a){a=this.calcActionListScaleFactor(a);this.paintWidget.setActionListScaleFactor(a);return a}; AV.ControlsWidget.prototype.imageIsScaled=function(){return this.paintWidget.actionListScaleFactor>1};AV.ControlsWidget.prototype.showWaitThrobber=function(a,c){var d,e;a?(this.paintWidget&&(d=parseInt((this.paintWidget.canvas.height-this.waitThrobber.height)/2,10),e=parseInt((this.paintWidget.canvas.width-this.waitThrobber.width)/2,10),avpw$(this.waitThrobber).css({position:"absolute",top:d,left:e})),avpw$(this.waitThrobber).show()):avpw$(this.waitThrobber).hide();c&&setTimeout(c,5)}; AV.ControlsWidget.prototype.panelMode2WidgetMode=function(a){switch(a){case "rotate":return"rotate90";case "filters":return null;case "greeneye":return"redeye";case "pinch":return"bulge"}return a}; AV.ControlsWidget.prototype.setPanelMode=function(a){var c;c=this.panelMode2WidgetMode(a);this.moduleNotify(this.curMode,"panelWillClose");this.moduleNotify(a,"panelWillOpen");a=="filters"&&this.filterEggs.setMode(null);this.resizeFlashThumbs(a);this.paintWidget.setMode(c);this.showPanel(a);this._resetUI(a);this.paintWidget.setCurrentLayerByName("background");this.moduleNotify(this.curMode,"panelDidClose");this.moduleNotify(a,"panelDidOpen");this.curMode=a}; AV.ControlsWidget.prototype.setPanelModeFromMain=function(a){this.showView("editpanel");this.setPanelMode(a)}; AV.ControlsWidget.prototype.showView=function(a,c){var d=200;c&&(d=c);switch(a){case "editpanel":c<=5?(avpw$("#avpw_tool_main_container").hide(),avpw$("#avpw_tool_options_container").show(),avpw$("#avpw_filter_eggs_panel").hide()):(avpw$("#avpw_tool_main_container").fadeOut(d),avpw$("#avpw_tool_options_container").fadeIn(d),avpw$("#avpw_filter_eggs_panel").fadeOut(d));break;case "main":c<=5?(avpw$("#avpw_tool_main_container").show(),avpw$("#avpw_tool_options_container").hide(),avpw$("#avpw_filter_eggs_panel").show()): (avpw$("#avpw_tool_main_container").fadeIn(d),avpw$("#avpw_tool_options_container").fadeOut(d),avpw$("#avpw_filter_eggs_panel").fadeIn(d))}};AV.ControlsWidget.prototype.setNavPip=function(a){avpw$(".avpw_is_navpip").removeClass("avpw_page_selected");avpw$("#avpw_navpip_"+a).addClass("avpw_page_selected")};AV.ControlsWidget.prototype.scrollMainTo=function(a,c,d){this.scrollPanelInfo.curPanel=parseInt(a);this.scrollMain(c,d)}; AV.ControlsWidget.prototype.scrollMainDir=function(a,c,d){this.scrollPanelInfo.curPanel+=a;this.scrollMain(c,d)}; AV.ControlsWidget.prototype.scrollMain=function(a,c){var d,e=avpw$("#avpw_control_main_scroll_panel");if(this.scrollPanelInfo.curPanel<0)this.scrollPanelInfo.curPanel=0;else if(this.scrollPanelInfo.curPanel>this.scrollPanelInfo.panelCount-1)this.scrollPanelInfo.curPanel=this.scrollPanelInfo.panelCount-1;AV.usageTracker.addPageHit(this.scrollPanelInfo.curPanel);d=this.scrollPanelInfo.curPanel*(this.scrollPanelInfo.widthPx+this.scrollPanelInfo.padding);a?avpw$(e).animate({scrollLeft:d},1,"swing",c): avpw$(e).animate({scrollLeft:d},300,"swing",c);this.setNavPip(this.scrollPanelInfo.curPanel);this.scrollPanelInfo.curPanel==0?(avpw$("#avpw_lftArrow").addClass("avpw_prev_disabled"),avpw$("#avpw_lftArrow").removeClass("avpw_prev_enabled")):(avpw$("#avpw_lftArrow").removeClass("avpw_prev_disabled"),avpw$("#avpw_lftArrow").addClass("avpw_prev_enabled"));this.scrollPanelInfo.curPanel==this.scrollPanelInfo.panelCount-1?(avpw$("#avpw_rghtArrow").addClass("avpw_next_disabled"),avpw$("#avpw_rghtArrow").removeClass("avpw_next_enabled")): (avpw$("#avpw_rghtArrow").removeClass("avpw_next_disabled"),avpw$("#avpw_rghtArrow").addClass("avpw_next_enabled"))};AV.ControlsWidget.prototype.scrollFilterTo=function(a,c,d){this.scrollFilterPanelInfo.curPanel=parseInt(a);this.scrollFilter(c,d)};AV.ControlsWidget.prototype.scrollFilterDir=function(a,c,d){this.scrollFilterPanelInfo.curPanel+=a;this.scrollFilter(c,d)}; AV.ControlsWidget.prototype.scrollFilter=function(a,c){var d,e=avpw$("#avpw_filter_control_main_scroll_panel");if(this.scrollFilterPanelInfo.curPanel<0)this.scrollFilterPanelInfo.curPanel=0;else if(this.scrollFilterPanelInfo.curPanel>this.scrollFilterPanelInfo.panelCount-1)this.scrollFilterPanelInfo.curPanel=this.scrollFilterPanelInfo.panelCount-1;d=avpw$(".avpw_filter_scroll_pane")[this.scrollFilterPanelInfo.curPanel];d=avpw$(d).position().left;a?avpw$(e).animate({scrollLeft:d},1,"swing",c):avpw$(e).animate({scrollLeft:d}, 300,"swing",c);this.setNavPip(this.scrollFilterPanelInfo.curPanel);this.scrollFilterPanelInfo.curPanel==0?(avpw$("#avpw_filter_lftArrow").addClass("avpw_prev_disabled"),avpw$("#avpw_filter_lftArrow").removeClass("avpw_prev_enabled")):(avpw$("#avpw_filter_lftArrow").removeClass("avpw_prev_disabled"),avpw$("#avpw_filter_lftArrow").addClass("avpw_prev_enabled"));this.scrollFilterPanelInfo.curPanel==this.scrollFilterPanelInfo.panelCount-1?(avpw$("#avpw_filter_rghtArrow").addClass("avpw_next_disabled"), avpw$("#avpw_filter_rghtArrow").removeClass("avpw_next_enabled")):(avpw$("#avpw_filter_rghtArrow").removeClass("avpw_next_disabled"),avpw$("#avpw_filter_rghtArrow").addClass("avpw_next_enabled"))}; AV.ControlsWidget.prototype.setupScrollPanels=function(){var a,c,d,e,f,j,k,m=0;this.scrollPanelInfo=this.layoutNotify(Feather_OpenType,"getScrollPanelDims");this.scrollPanelInfo.padding=5;this.scrollPanelInfo.curPanel=0;this.scrollPanelInfo.prevPanel=0;f=this.scrollPanelInfo.across*this.scrollPanelInfo.down;this.scrollPanelInfo.panelCount=parseInt((this.activeTools.length-1)/f)+1;this.scrollPanelInfo.panelCount++;AV.usageTracker.setPageCount(this.scrollPanelInfo.panelCount);e="";for(a=0;a ','','
',"
",''+k+"","
n"].join("")): l+='
n
n';e+=['
n',l,"
n"].join("")}e+=['
n
n
Powered by Aviary.com
n
n n n
n
 
n
n
n
n
Your work was saved!
n
n n
n
n
n
Wait! You didn't save your work. Are you certain that you want to close this editor?
'].join(""); avpw$("#avpw_control_main_scrolling_region").html(e);avpw$("#avpw_control_main_scrolling_region").width();avpw$("#avpw_control_main_scrolling_region").css("width");avpw$("#avpw_control_main_scrolling_region").width((243+this.scrollPanelInfo.padding)*this.scrollPanelInfo.panelCount);this.scrollPanelInfo.widthPx=243;c="";for(a=0;a n';avpw$("#avpw_tools_pager ul").html(c);this.setNavPip(this.scrollPanelInfo.curPanel)}; AV.ControlsWidget.prototype.setLastPanel=function(a){avpw$(".avpw_isa_last_panel").hide();avpw$("#"+a).show()}; AV.ControlsWidget.prototype.filterEggs=function(){var a={polaroid:{flash:'',server:'{parameters:{parameter:[{id:"Inner Placement",value:0.5},{id:"Desaturation Factor",value:0.8},{id:"Background Color",value:-1},{id:"Light Leak Active",value:"true"},{id:"Light Leak Seed",value:-17130388},{id:"Color Grading Active",value:"true"},{id:"Color Grading Seed",value:-101359189},{id:"Red Variation Strength",value:25},{id:"Green Variation Strength",value:25},{id:"Blue Variation Strength",value:25},{id:"Shadow Center",value:"0.4,0.2"},{id:"Stains Active",value:"true"},{id:"Stains On Frame Only",value:"true"},{id:"Stains Density",value:30},{id:"Stains Minimum Drop Size",value:1},{id:"Stains Maximum Drop Size",value:80},{id:"Stains Smoothing",value:8}]}}'}, autocorrection:{flash:'',server:'{parameters:{parameter:[{uid:0,value:"true"},{uid:1,value:"true"},{uid:2,value:"false"},{uid:3,value:"true"},{uid:4,value:"false"}]}}'},toycamera:{flash:'', server:'{parameters:{parameter:[{id:"Contrast",value:0.1},{id:"Saturation",value:1},{id:"Glow Threshold",value:128},{id:"Glow Radius",value:34},{id:"Glow Intensity",value:0.5},{id:"Grain Random Seed",value:-48494495},{id:"Grain Intensity",value:0.32},{id:"Grain Size",value:3.2},{id:"Grain Clumping Iterations",value:3},{id:"Grain Clumping Strength",value:7},{id:"Color Grading Seed",value:-86426274},{id:"Red Variation Strength",value:30.1},{id:"Green Variation Strength",value:21.5},{id:"Blue Variation Strength",value:38.6},{id:"Inner Limit",value:0.3},{id:"Outer Limit",value:2},{id:"Blur Radius",value:10},{id:"Radius Factor",value:1},{id:"Radius Gamma",value:2.5}]}}'}, oldphoto:{flash:'', server:'{parameters:{parameter:[{id:"Contrast",value:0.2},{id:"Glow Threshold",value:175},{id:"Glow Radius",value:30},{id:"Glow Intensity",value:0.2},{id:"Grain Intensity",value:0.5},{id:"Grain Size",value:1.2},{id:"Grain Clumping Iterations",max:2,value:2},{id:"Grain Clumping Strength",value:7},{id:"Tint Color",value:52},{id:"Add Dust",value:"true"},{id:"Dust Amount",value:30},{id:"Add Stains",value:"true"},{id:"Add Dots",value:"true"},{id:"Dots Random Seed",value:-147552578},{id:"Dots Amount",value:3}]}}'}, retro:{flash:'', server:'{parameters:{parameter:[{id:"Matte Padding",value:0.008},{id:"Matte Color",value:-66590},{id:"Matte Corner Radius",value:0.03},{id:"Border Radius",value:30},{id:"Border Intensity",value:1},{id:"Color Effect Intensity",value:0.2},{id:"Grain Intensity",value:0.1},{id:"Grain Size",value:2},{id:"Grain Clumping Iterations",value:4},{id:"Grain Clumping Strength",value:6},{id:"Tint Random Seed",value:-142803775},{id:"TintIntensity",value:1},{id:"Fuzziness",value:35},{id:"Add Light Leak",value:"false"},{id:"Add Dots",value:"true"},{id:"Dots Amount",value:5},{id:"Add Scratches",value:"true"},{id:"Scratches Amount",value:1},{id:"Add Wrinkles",value:"true"},{id:"Add Stains",value:"false"},{id:"Stain Amount",value:10},{id:"Red Adjust",value:40},{id:"Green Adjust",value:80},{id:"Blue Adjust",value:3},{id:"Red Contrast",value:0.6},{id:"Green Contrast",value:0.6},{id:"Blue Contrast",value:0.6},{id:"Saturation",value:1}]}}'}}, c={toycamera:"Toy Camera",polaroid:"Instant!",autocorrection:"Auto",oldphoto:"Old Photo",colorgrading:"Color Grading",vignetteblur:"Vignette Blur",colormatrix:"Color Matrix",filmgrain:"Film Grain",retro:"Retro"};return{setup:function(){var d,e,f,j,k;e=AV_launchData.hiResURL?["autocorrection","toycamera","oldphoto","retro"]:AV_launchData.useServerFilters?["autocorrection","toycamera","oldphoto","retro"]:["polaroid","toycamera","oldphoto","retro"];for(d=0;dj&&f>d&&(e=!1);j>k&&d>f&&(e=!1);if(f>j|| d>k)e=!1;break;case "cursize":if(f>j||d>k)e=!1;break;case "maxspect":k>j&&f>d&&(e=!1);j>k&&d>f&&(e=!1);if(f>this.maxWidth||d>this.maxHeight)e=!1;break;case "max":if(f>this.maxWidth||d>this.maxHeight)e=!1}else e=d.indexOf(":"),e=e==-1?!1:!0;e?avpw$(m[l]).show():avpw$(m[l]).hide()}AV__dropdown_style_reset(a,!1)}; AV.ControlsWidget.prototype.populatePulldown=function(a){var c=AV_launchData[a+"Sizes"];typeof c==="string"&&(c=c.split(","));var d=!1;c[0]instanceof Array&&(d=!0);var e,f,a=a==="crop"?avpw$("#avpw_crop_presets"):avpw$("#avpw_resize_presets");a.find(".avpw_isa_populated_dropdown_body_entry").remove();f=a.find(".avpw_dropdown_body_wrapper");e=f.html();for(a=0;a
'+ k+"
n"}f.html(e)};AV.ControlsWidget.prototype.setImageScaledIndicator=function(){this.imageIsScaled()?avpw$(".avpw_scale_warn").show():avpw$(".avpw_scale_warn").hide()};AV.ControlsWidget.prototype._drawUICircle=function(a,c,d,e,f){AV__featherUseFlash?this._drawUICircle_Flash(a,c,d,e,f):this._drawUICircle_HTML(a,c,d,e,f)}; AV.ControlsWidget.prototype._drawUICircle_Flash=function(a,c,d,e,f){c=parseInt(c);d=AV__color_to_int(d);e=="transparent"?(a=!0,e=0):(a=!1,e=e?parseInt(e.slice(1),16):16777215);f?(f=parseInt(f),f/=10):f=0;AV_getFlashMovie("thumb1").setBrushThumb(c,d,e,f,a)}; AV.ControlsWidget.prototype._drawUICircle_HTML=function(a,c,d,e,f){if(f!=null&&e!="transparent")return this._drawUICircleSoft(a,c,d,e,f);a=avpw$(a)[0];f=a.getContext("2d");f.globalCompositeOperation="copy";f.clearRect(0,0,a.width,a.height);f.globalCompositeOperation="source-over";f.beginPath();f.strokeStyle=d!=null?d=="transparent"||AV__color_is_white(d)||e==null?"#444":d:"rgba(0,0,0,0)";f.lineWidth=3;f.arc(a.width/2,a.height/2,c,0,6.2831852,!1);f.closePath();f.stroke();if(e!=null)f.save(),f.clip(), e=="transparent"?this._drawUIGrid(f,a.width,a.height):(f.fillStyle=e,f.fillRect(0,0,a.width,a.height)),f.restore()}; AV.ControlsWidget.prototype._drawUICircleSoft=function(a,c,d,e){var d=this.paintWidget.module_drawing.getHardFactor(),f=avpw$(a)[0],a=f.getContext("2d");c*=2;var j=f.width/2,k=f.height/2;f.width=f.width;this._drawUIGrid(a,f.width,f.height);d=Math.max(2,c*d);d=(d+c)*0.5;a.lineWidth=d;a.shadowBlur=c-d;a.shadowOffsetX=-100;a.shadowOffsetY=-100;a.lineCap="round";a.lineJoin="round";a.fillStyle=e;a.strokeStyle=e;a.shadowColor=a.strokeStyle;a.beginPath();a.moveTo(j+0.01+100,k+100);a.lineTo(j+100,k+100); a.stroke();a.closePath()};AV.ControlsWidget.prototype._drawUIGrid=function(a,c,d,e){var f;e||(e=5);for(f=0;fCrop
");avpw$("#avpw_crop_body_help_text").html(f);j.css("visibility","visible");AV__dropdown_style_reset(m,!0);break;case 1:avpw$("#avpw_crop_body_help_text").html("Your image was cropped."),l.html("
  Crop Again  
"), avpw$("#avpw_crop_body_checkbox").css("visibility","hidden"),j.css("visibility","hidden")}return d},v=function(){var c=k[0].checked;a.paintWidget.module_crop.forceAspect(c);d=c},u=function(){switch(c){case 0:a.paintWidget.module_crop.crop();a.paintWidget.module_crop.hideSelection();a.setMinWidth(a.paintWidget.width);a.setImageScaledIndicator();q(1);break;case 1:a.paintWidget.module_crop.setInitialSelection(),avpw$("#avpw_crop_body_help_text").html(f),l.html("
Crop
"),avpw$("#avpw_crop_body_checkbox").css("visibility", "visible"),q(0)}return!1},z=function(){var c=m.val(),d,f;if(c&&c!=="null"){var j=c.indexOf("x");f=!1;j!=-1?(e="fixed",d=c.substr(0,j),c=c.substr(j+1),d=parseInt(d),c=parseInt(c),d=a.paintWidget.a2c(d,!0),c=a.paintWidget.a2c(c,!0),a.paintWidget.module_crop.setInitialSelectionTo(d,c)):(j=c.indexOf(":"),j!=-1&&(e="ratio",d=c.substr(0,j),c=c.substr(j+1),f=parseInt(d),d=parseInt(c),a.paintWidget.module_crop.setInitialSelectionByRatio(f/d),f=!0));AV__checkbox_set("avpw_crop_prop",f);v()}return!1};return{init:function(e){a= e;c=0;d=!1;f=avpw$("#avpw_crop_body_help_text").html();m=m||avpw$("#avpw_crop_sizes");m.change(z);l=l||avpw$("#avpw_crop_button");l.click(u);k=k||avpw$("#avpw_crop_prop");k.click(v);e.paintWidget.module_crop.setMouseDownCallback(p);j=j||avpw$("#avpw_crop_presets")},onUndo:function(){q(0)},onRedo:function(){q(0)},shutdown:function(){m.unbind("change");l.unbind("click");k.unbind("click");a.paintWidget.module_crop.setMouseDownCallback(null);a=null},panelWillOpen:function(){a.populateSizePulldownPresets(m, "cursize");q(0);a.setImageScaledIndicator()},panelDidOpen:function(){AV__checkbox_set("avpw_crop_prop",!1);a.paintWidget.module_crop.forceAspect(!1);a.paintWidget.module_crop.setInitialSelection()}}}(); AV.ControlsWidget.prototype.tool.text={init:function(a){function c(){d.updateThumb()}var d=this;this.controls=a;this.textColor="#000";this.textShadowColor="#fff";this.firstTextTime=!0;avpw$("#avpw_text_font_size").change(c);avpw$("#avpw_text_font").change(c);avpw$("#avpw_text_area").keyup(function(){if(d.firstTextTime)avpw$("#avpw_text_area").val(""),d.firstTextTime=!1;d.updateThumb()});avpw$("#avpw_text_area").mousedown(function(){if(d.firstTextTime)avpw$("#avpw_text_area").val(""),d.firstTextTime= !1,d.updateThumb()});avpw$(".avpw_color_picker_text").click(function(a){a=a.currentTarget;if(!(a.id=="avpw_text_color_selector"||avpw$(a).parent().attr("id")=="avpw_text_color_selector")){var c=avpw$(a).css("background-color"),j=avpw$(a).attr("shadowcolor");d.textColor=c;d.textShadowColor=j;d.updateThumb();j=avpw$("#avpw_text_color_selector");c=AV__color_is_light(c)?"#969696":"#fff";avpw$(j).detach();avpw$(j).css("border","1px solid "+c);avpw$(a).children(".avpw_relative100").append(j);return!1}}); avpw$("#avpw_add_text").click(function(){var a=avpw$("#avpw_text_font_size").val(),c=d.textColor,j=d.textShadowColor,k=avpw$("#avpw_text_font").val(),m=avpw$("#avpw_text_area").val();a==""&&(a=avpw$("#avpw_text_font_size").attr("value"));a==""&&(a="60");k==""&&(k=avpw$("#avpw_text_font").attr("value"));k==""&&(k="sans-serif");k=="sans-serif"&&(k='"Arial", sans-serif');a=parseFloat(a)/60;d.controls.paintWidget.module_text.newText(m,k,60,c,j,null,null,a,a,0);return!1});avpw$("#avpw_text_delete").click(function(){d.controls.paintWidget.module_text.deleteSelectedText(); return!1})},resetUI:function(){this.updateThumb()},updateThumb:function(){if(!AV__featherUseFlash){var a=avpw$("#avpw_text_thumb")[0],c=avpw$("#avpw_text_area").val(),d=avpw$("#avpw_text_font").val(),e=avpw$("#avpw_text_font_size").val(),f=""+e+"px "+d,d=a.getContext("2d");d.font=f;var c=c.split("n"),j,f=e;d.globalCompositeOperation="copy";d.clearRect(0,0,a.width,a.height);d.globalCompositeOperation="source-over";a=e/19;a<1&&(a=1);for(j=0;j0){avpw$("#avpw_overlay_progress_holder").hide();avpw$("#avpw_overlay_images_scroll_window").show();for(j=d=0;j ';for(e=0;e ';for(f=0;f ',l+='
',l+='',l+="
",l+='
',l+="
",l+='',l+="
",l+="
",l+="
",d++;l+=" "}l+=" "}avpw$("#avpw_overlay_images_scroll_region").html(l); avpw$("#avpw_overlay_images_scroll_region .avpw_isa_overlay_waiter").hide();avpw$(".avpw_isa_control_selector_overlay").mousedown(this.controlOverlayClicked.AV_bindInst(this));overlayPipsHTML="";for(d=0;d n';avpw$("#avpw_overlay_pager ul").html(overlayPipsHTML);this.setOverlayNavPip(this.overlayCurrentPage);avpw$(".avpw_is_overlay_navpip").click(function(a){this.scrollOverlayTo(avpw$(a.currentTarget).attr("pagenum")); return!1}.AV_bindInst(this));this.overlayPanelWidthPx=parseInt(avpw$(".avpw_overlay_page").css("width"));this.scrollOverlay(!0)}else this.overlayDownloadCount=this.overlayCount=0,this.overlayPages=1,avpw$("#avpw_overlay_images_scroll_region").html("No stickers defined in Feather_Stickers");this.stickerLoadStarted[c]=!1}},scrollOverlayTo:function(a){this.overlayCurrentPage=parseInt(a);this.scrollOverlay()},scrollOverlayDir:function(a){this.overlayCurrentPage+=a;this.scrollOverlay()},scrollOverlay:function(a){var c, d=avpw$("#avpw_overlay_images_scroll_window");if(this.overlayCurrentPage<0)this.overlayCurrentPage=0;else if(this.overlayCurrentPage>this.overlayPages-1)this.overlayCurrentPage=this.overlayPages-1;c=this.overlayCurrentPage*this.overlayPanelWidthPx;a?avpw$(d).animate({scrollLeft:c},1):avpw$(d).animate({scrollLeft:c},300);this.setOverlayNavPip(this.overlayCurrentPage);this.overlayCurrentPage==0?(avpw$("#avpw_overlay_lftArrow").addClass("avpw_overlay_prev_disabled"),avpw$("#avpw_overlay_lftArrow").removeClass("avpw_overlay_prev_enabled")): (avpw$("#avpw_overlay_lftArrow").removeClass("avpw_overlay_prev_disabled"),avpw$("#avpw_overlay_lftArrow").addClass("avpw_overlay_prev_enabled"));this.overlayCurrentPage==this.overlayPages-1?(avpw$("#avpw_overlay_rghtArrow").addClass("avpw_overlay_next_disabled"),avpw$("#avpw_overlay_rghtArrow").removeClass("avpw_overlay_next_enabled")):(avpw$("#avpw_overlay_rghtArrow").removeClass("avpw_overlay_next_disabled"),avpw$("#avpw_overlay_rghtArrow").addClass("avpw_overlay_next_enabled"))},setOverlayNavPip:function(a){avpw$(".avpw_is_overlay_navpip").removeClass("avpw_page_selected"); avpw$("#avpw_overlay_navpip_"+a).addClass("avpw_page_selected")},shutdown:function(){this.controls=null;avpw$("#avpw_overlay_delete").unbind("click");avpw$(".avpw_isa_control_selector_overlay").unbind();avpw$(".avpw_isa_control_selector_overlay").remove();avpw$("#avpw_overlay_lftArrow").unbind("click");avpw$("#avpw_overlay_rghtArrow").unbind("click");avpw$(".avpw_is_overlay_navpip").unbind("click");avpw$("#avpw_overlay_images_scroll_region").html("")}}; AV.ControlsWidget.prototype.layout.popup={onClose:function(){},onShutdown:function(){var a=avpw$("#avpw_canvas_embed_popup");avpw$(a).children().remove();avpw$(a).hide();avpw$("#"+AV_controlsWidget.paintImgId).show();avpw$(AV_getImageElem(AV_controlsWidget.paintImgIdElem)).show()},placeControls:function(){},hideOriginalImage:function(a){avpw$(a).hide()},getScrollPanelDims:function(){return{across:4,down:2}},getStickerRowsPerPage:function(){return 3},getEmbedElement:function(a){return AV_paintWidgetGetPopupEmbedDiv(a)}, onLaunch:function(){avpw$("#avpw_controls").draggable({handle:"#avpw_drag_handle",cursor:"pointer"})},getScaledImageDims_Flash:function(a,c){return{width:c.width,height:c.height}},placeControls_Flash:function(){},launchStage2_Flash:function(){}}; AV.ControlsWidget.prototype.layout.lightbox={onClose:function(a){a?avpw$("#avpw_fullscreen_bg").hide():avpw$("#avpw_fullscreen_bg").fadeOut(300)},onShutdown:function(){var a=avpw$("#avpw_canvas_embed");avpw$(a).children().remove();avpw$(a).hide()},placeControls:function(){avpw$("#avpw_fullscreen_bg").fadeIn(300)},getScrollPanelDims:function(){return{across:4,down:4}},getStickerRowsPerPage:function(){return 4},getEmbedElement:function(){return avpw$("#avpw_canvas_embed")},getScaledImageDims_Flash:function(a, c){var d;d=AV_controlsWidget.getScaledDims(c.width,c.height);avpw$(a).width(c.width);avpw$(a).height(c.height);return d},placeControls_Flash:function(){var a=AV__getInternetExplorerVersion();a>0&&a<9&&(avpw$("#avpw_fullscreen_bg").width(avpw$(document).width()),avpw$("#avpw_fullscreen_bg").height(avpw$(document).height()),avpw$("#avpw_fullscreen_bg").css("filter","alpha(opacity=80)"))},launchStage2_Flash:function(){avpw$("#avpw_canvas_embed").width("auto");avpw$("#avpw_canvas_embed").height("auto")}}; AV.ControlsWidget.prototype.layout.inject={onClose:function(){},onShutdown:function(){return AV_controlsWidget.layoutNotify("lightbox","onShutdown",arguments)},placeControls:function(a){avpw$("#"+a).append(avpw$("#avpw_holder"));avpw$("#avpw_holder").css("position","relative");avpw$("#avpw_holder").css("text-align","inherit");avpw$("#avpw_controls").css("position","relative");avpw$("#avpw_controls").css("text-align","inherit");avpw$("#avpw_controls").css("top","inherit")},getScrollPanelDims:function(){return{across:4, down:4}},getStickerRowsPerPage:function(){return 4},getEmbedElement:function(){return AV_controlsWidget.layoutNotify("lightbox","getEmbedElement",arguments)},getScaledImageDims_Flash:function(){return AV_controlsWidget.layoutNotify("lightbox","getScaledImageDims_Flash",arguments)},placeControls_Flash:function(a){var c=AV__getInternetExplorerVersion();avpw$("#"+a).append(avpw$("#avpw_holder"));avpw$("#avpw_holder").css("position","relative");avpw$("#avpw_controls").css("position","relative");if(c< 0||c>=8)avpw$("#avpw_controls").css("top","inherit"),avpw$("#avpw_controls").css("left","inherit"),avpw$("#avpw_holder").css("text-align","inherit"),avpw$("#avpw_controls").css("text-align","inherit")},launchStage2_Flash:function(){return AV_controlsWidget.layoutNotify("lightbox","launchStage2_Flash",arguments)}}; AV.ControlsWidget.prototype.save=function(a){if(AV_controlsWidget.loaderPhase<2)return!1;if(this.saving)return!1;this.showView("main");this.setPanelMode(null);this.paintWidget.setMode(null);this.saving=!0;AV.prevActionList=this.paintWidget.actionExportJSON(!0);if(AV__featherUseFlash)return this.save_Flash(a);return this.save_HTML(a)};AV.ControlsWidget.prototype.save_Flash=function(){Aviary.API.save();return!1}; AV.ControlsWidget.prototype.save_HTML=function(){function a(){var a="avpw_img_submit_target_"+Math.floor(Math.random()*4294967295).toString(16);avpw$("#avpw_img_submit_target_holder").html(AV.buildHiddenFrame("avpw_img_submit_target",a));avpw$("#avpw_save_form").attr("target",a);avpw$("#avpw_img_submit_target").load(function(){this.saveCallback_form(a)}.AV_bindInst(c));avpw$("#avpw_save_form_data").val(d);avpw$("#avpw_save_form_postdata").val(c.postdata);avpw$("#avpw_save_form_posturl").val(AV_launchData.postURL); avpw$("#avpw_save_form_apikey").val(AV_launchData.APIKey);avpw$("#avpw_save_form_sessionid").val(AV.usageTracker.getUUID());avpw$("#avpw_save_form_actionlist").val(c.paintWidget.actionExportJSON(!0));avpw$("#avpw_save_form_origurl").val(c.origURL);avpw$("#avpw_save_form_hiresurl").val(AV_launchData.hiResURL);avpw$("#avpw_save_form_fileformat").val(AV_launchData.fileFormat);avpw$("#avpw_save_form_jpgquality").val(AV_launchData.jpgQuality);avpw$("#avpw_save_form_debug").val(AV_launchData.debug);avpw$("#avpw_save_form_asyncsave").val(AV_launchData.asyncSave); avpw$("#avpw_save_form").submit()}var c=this,d=this.paintWidget.exportImage().base64data;this.paintWidget.showWaitThrobber(!0,function(){avpw$.support.cors&&(!AV.firefox||AV.firefox>=4)?AV.simpleXHRPost(AV_imgrecvServer,{postdata:c.postdata,posturl:AV_launchData.postURL,apikey:AV_launchData.APIKey,sessionid:AV.usageTracker.getUUID(),actionlist:c.paintWidget.actionExportJSON(!0),origurl:c.origURL,encodedas:"base64text",hiresurl:AV_launchData.hiResURL,contenttype:AV_launchData.fileFormat,jpgquality:AV_launchData.jpgQuality, debug:AV_launchData.debug,asyncsave:AV_launchData.asyncSave,file:d},c.saveCallback_XHR.AV_bindInst(c))||a():a()});return!1};AV.ControlsWidget.prototype.saveCallback_form=function(a){this.paintWidget&&(this.paintWidget.showWaitThrobber(!1),window.avpw_img_submit_target_announcer.postMessage("avpw_load:"+a,"*"))}; AV.ControlsWidget.prototype.saveCallback_XHR=function(a){this.paintWidget.showWaitThrobber(!1);var c=avpw$(a).find("error");c.length>0?alert("file submission error: "+c.text()):(a=avpw$(a).find("url").text(),a=a.replace(/^s+|s+$/g,""),c=avpw$(AV_getImageElem(this.paintImgIdElem)),c.src=a,c.avpw_prevURL=a,AV__controlsWidget_onImageSaved(a))}; AV.ControlsWidget.prototype.showAreYouSure=function(){this.showView("main");this.setPanelMode(null);this.paintWidget.setMode(null);this.setLastPanel("avpw_aviary_quitareyousure");setTimeout(function(){this.scrollPanelInfo.prevPanel=this.scrollPanelInfo.curPanel;this.scrollMainTo(this.scrollPanelInfo.panelCount-1)}.AV_bindInst(this),5)};AV.ControlsWidget.prototype.cancel=function(){this.quitCount++;this.quitCount==1&&this.paintWidget.dirty?this.showAreYouSure():AV_paintWidgetCloser();return!1}; AV.ControlsWidget.prototype.undo=function(){if(this.paintWidget.busy)return!1;if(this.moduleNotify(this.curMode,"onUndo")===!1)return!1;this.paintWidget.undo();this.setMinWidth(this.paintWidget.width);this.moduleNotify(this.curMode,"onUndoComplete");return!1}; AV.ControlsWidget.prototype.redo=function(){if(this.paintWidget.busy)return!1;if(this.moduleNotify(this.curMode,"onRedo")===!1)return!1;this.paintWidget.redo();this.setMinWidth(this.paintWidget.width);this.moduleNotify(this.curMode,"onRedoComplete");return!1};AV.ControlsWidget.prototype._resetUI=function(a){this.moduleNotify(a,"resetUI")}; AV.ControlsWidget.prototype.getScaledDims=function(a,c){var d;if(a>this.maxWidth)d=this.maxWidth/a,a=this.maxWidth,c*=d;if(c>this.maxHeight)d=this.maxHeight/c,c=this.maxHeight,a*=d;return{width:a,height:c}}; AV__checkbox_style_startup=function(){var a=function(a){a=a.currentTarget;a.avpw_checkboxpeer.checked=!a.avpw_checkboxpeer.checked;avpw$(a.avpw_checkboxpeer).triggerHandler("click");AV__styledcheckbox_setbg(a,a.avpw_checkboxpeer.checked)},c=avpw$("#avpw_controls input[type=checkbox]");avpw$(c).each(function(c,e){if(!(e.avpw_styledcheckboxpeer!==void 0&&e.avpw_styledcheckboxpeer)){var f=document.createElement("div");f.avpw_checkboxpeer=e;f.avpw_checkboxpeer_display=avpw$(e).css("display");avpw$(f).addClass("avpw__is_styled_checkbox"); AV__styledcheckbox_setbg(f,f.avpw_checkboxpeer.checked);avpw$(f).click(a);avpw$(e).before(f);avpw$(e).css("display","none");e.avpw_styledcheckboxpeer=f}})};AV__styledcheckbox_setbg=function(a,c){c?(avpw$(a).removeClass("avpw__is_styled_checkbox_unchecked"),avpw$(a).addClass("avpw__is_styled_checkbox_checked")):(avpw$(a).removeClass("avpw__is_styled_checkbox_checked"),avpw$(a).addClass("avpw__is_styled_checkbox_unchecked"))}; AV__checkbox_set=function(a,c){if(avpw$("#"+a).attr("checked")!=c){var d=avpw$("#"+a)[0].avpw_styledcheckboxpeer;avpw$(d).trigger("click")}};AV__checkbox_style_shutdown=function(){var a=avpw$(".avpw__is_styled_checkbox");avpw$(a).each(function(a,d){d.avpw_checkboxpeer.avpw_styledcheckboxpeer=null;avpw$(d.avpw_checkboxpeer).css("display",d.avpw_checkboxpeer_display);avpw$(d).unbind("click");avpw$(d).detach();d.avpw_checkboxpeer=null})}; AV__xml_escape=function(a){return a.replace(/&/g,"&").replace(//g,">")};function AV__dropdown_style_window_mouseup_handler(){avpw$(".avpw_dropdown .avpw_dropdown_body_wrapper").css("display","none");return!0} function AV__dropdown_style_startup(){function a(a){a=avpw$(a.target).parents(".avpw_dropdown").children(".avpw_dropdown_body_wrapper");avpw$(a).css("display")=="none"?avpw$(a).css("display","block"):avpw$(a).css("display","none");return!1}avpw$(document).mouseup(AV__dropdown_style_window_mouseup_handler);avpw$(".avpw_dropdown .avpw_dropdown_header_wrapper").mousedown(a);avpw$(".avpw_dropdown .avpw_dropdown_header_wrapper").click(a);avpw$(".avpw_dropdown .avpw_dropdown_header_wrapper").mouseup(function(){avpw$(".avpw_dropdown .avpw_dropdown_body_wrapper").css("display", "none");return!1});avpw$(".avpw_dropdown .avpw_dropdown_body_wrapper").mouseup(function(a){var d=avpw$(a.target).parents(".avpw_dropdown"),e=avpw$(a.target).attr("value");e&&(avpw$(d).val(e),avpw$(d).trigger("change"),avpw$(d).find(".avpw_dropdown_header_text").html(avpw$(a.target).html()));a=avpw$(d).children(".avpw_dropdown_body_wrapper");avpw$(a).css("display","none");return!1});avpw$(".avpw_dropdown_body_entry").mouseenter(function(a){avpw$(a.currentTarget).addClass("avpw_dropdown_hover")});avpw$(".avpw_dropdown_body_entry").mouseleave(function(a){avpw$(a.currentTarget).removeClass("avpw_dropdown_hover")})} function AV__dropdown_style_reset(a,c){var d=a.find(".avpw_dropdown_body_entry"),e=d.attr("value");a.val(e);c&&a.trigger("change");a.find(".avpw_dropdown_header_text").html(d.html())} function AV__dropdown_style_shutdown(){avpw$(window).unbind("mouseup",AV__dropdown_style_window_mouseup_handler);avpw$(".avpw_dropdown .avpw_dropdown_header_wrapper").unbind("mousedown");avpw$(".avpw_dropdown .avpw_dropdown_header_wrapper").unbind("click");avpw$(".avpw_dropdown .avpw_dropdown_header_wrapper").unbind("mouseup");avpw$(".avpw_dropdown .avpw_dropdown_body_wrapper").unbind("mouseup");avpw$(".avpw_dropdown_body_entry").unbind("mouseenter");avpw$(".avpw_dropdown_body_entry").unbind("mouseleave")} function AV__color_is_light(a){return a=="#fff"||a=="#ffffff"||a=="rgb(255, 255, 255)"}function AV__color_is_white(a){a=a.toLowerCase();return a=="#fff"||a=="#ffffff"||a=="white"||a=="rgb(255, 255, 255)"}function AV__color_expand(a){a.length==4&&(r=a.charAt(1),g=a.charAt(2),b=a.charAt(3),a="#"+r+r+g+g+b+b);return a} function AV__color_to_rgb(a){var c,d;a.charAt(0)=="#"&&(a=AV__color_expand(a),c=parseInt(a.substr(1,2),16),d=parseInt(a.substr(3,2),16),a=parseInt(a.substr(5,2),16),a="rgb("+c+","+d+","+a+")");return a}function AV__rgb_to_color(a){var c,d;if(d=a.match(/s*rgbs*(s*(d+)s*,s*(d+)s*,s*(d+)/))return a=parseInt(d[1]).toString(16),a.length==1&&(a="0"+a),c=parseInt(d[2]).toString(16),c.length==1&&(c="0"+c),d=parseInt(d[3]).toString(16),d.length==1&&(d="0"+d),"#"+a+c+d;return a} function AV__color_to_int(a){a=AV__color_expand(a);a=AV__rgb_to_color(a);return parseInt(a.substr(1),16)}function AV_FlashThumbClickCallback(a){AV.flashThumbSet.doCallbacks(a)} AV.flashThumbSet={listenerList:{},addListener:function(a,c){this.listenerList.hasOwnProperty(a)||(this.listenerList[a]=[]);this.listenerList[a].push(c)},removeAllListeners:function(){this.listenerList={}},doCallbacks:function(a){var c,d;if(this.listenerList.hasOwnProperty(a)){d=this.listenerList[a];for(c=0;c ','
','
'].join(""); Feather_OpenType=="popup"?a="":(a=c,c="");a=['
', AV.buildHiddenFrame("avpw_img_submit_target_announcer","avpw_img_submit_target_announcer",AV__featherTargetAnnounce),AV.buildHiddenFrame("avpw_img_filter_target_announcer","avpw_img_filter_target_announcer",AV__featherFilterAnnounce),'
'].join("");c=document.createElement("div");c.id="avpw_holder";var d=document.getElementsByTagName("body");d&&(d=d[0]);if(!d)d=document.documentElement;d.appendChild(c); c.innerHTML=a.replace(/__FEATHER_BASE_URL__/g,AV_feather_baseURL)}var AV_waitThrobber,AV_imageWrapper,AV_origImgElement;function AV_nextFrame(a){setTimeout(a,1)}function AV_setPopupPos(a){var c=AV_getX(a),d=AV_getY(a),a=c+a.width+15,c=document.getElementById("avpw_controls");c.style.position="absolute";c.style.left=a+"px";c.style.top=d+"px"} function AV_setLightboxPos(){var a;a="pageYOffset"in window?window.pageYOffset:(((t=document.documentElement)||(t=document.body.parentNode))&&typeof t.ScrollTop=="number"?t:document.body).scrollTop;document.getElementById("avpw_controls").style.top=a+30+"px"}function AV_getImageElem(a){if(typeof a=="string")return document.getElementById(a);return a}function AV_getImageId(a){if(typeof a=="string")return a;return a.id} function AV_wrapImage(a){AV_origImgElement=AV_getImageElem(a);if(!AV_imageWrapper)AV_waitThrobber=document.createElement("img"),AV_waitThrobber.src=AV_feather_baseURL+"images/eggthrobber-"+AV_theme+".gif",AV_waitThrobber.id="_AV_waitThrobber",AV_imageWrapper=document.createElement("div"),AV_imageWrapper.id="_AV_imageWrapper",AV_imageWrapper.style.position="relative",AV_imageWrapper.appendChild(AV_origImgElement);AV_origImgElement.parentNode.insertBefore(AV_imageWrapper,AV_origImgElement)} function AV_imgOnLoad(a,c){avpw$(a).load(c);(a.complete==!0||a.readyState==4||a.readyState=="complete"||a.readyState=="loaded")&&avpw$(a).trigger("load")} function AV_loadFile(a,c,d){var e,f;e=function(a){if(d)navigator.appName=="Microsoft Internet Explorer"?a.onreadystatechange=function(a){(this.readyState==4||this.readyState=="complete"||this.readyState=="loaded")&&d(a)}:a.onload=d};c=="js"?(f=document.createElement("script"),f.setAttribute("type","text/javascript"),e(f),f.setAttribute("src",a)):c=="css"?(f=document.createElement("link"),f.setAttribute("rel","stylesheet"),f.setAttribute("type","text/css"),e(f),f.setAttribute("href",a)):c=="img"&& (f=document.createElement("img"),e(f),f.setAttribute("src",a));(c=="js"||c=="css")&&f&&document.getElementsByTagName("head")[0].appendChild(f)}AV.buildHiddenFrame=function(a,c,d){d||(d=AV_imgrecvBase+"blank.html");c||(c=a);return['"].join("")}; AV.simpleXHRPost=function(a,c,d){function e(){d&&k.readyState===4&&d(k.responseXML)}function f(a){var c=[];avpw$.each(a,function(a,d){if(d){var e="";e+="Content-Disposition: form-data; ";e+='name="'+a+'"rnrn';e+=d+"rn";c.push(e)}});a="--"+j+"rn";a+=c.join("--"+j+"rn");a+="--"+j+"--rn";return a}var j="FEATHER-AJAX---"+(new Date).getTime(),k=new XMLHttpRequest;try{var m="multipart/form-data; charset=UTF-8; boundary="+j;k.open("POST",a,!0);k.setRequestHeader("Content-Type",m);k.onreadystatechange= e;var l=f(c);k.send(l)}catch(p){return!1}return!0}; function AV_loadStageFinal(){avpw_swfobject.embedSWF(AV_feather_baseURL+"ostrich/OstrichFeather.swf","avpw_OstrichFeather","1","1","10.0.0","ostrich/playerProductInstall.swf",{initializedCallback:"engineReady",allowDomains:"*",completeCallback:"AV_paintWidget_module_flashfilter_onFilterComplete"},{quality:"high",bgcolor:"#ffffff",allowscriptaccess:"always",allowfullscreen:"true",hasPriority:"true"},{id:"avpw_OstrichFeather",name:"avpw_OstrichFeather",align:"middle"});AV__feather_loaded=!0;typeof Feather_OnLoad!= "undefined"&&Feather_OnLoad()}function AV_featherLaunch(){var a,c,d,e;if(AV_paintWidget)return!1;else a=AV_launchData.imageIDelem,c=AV_launchData.imageURL,d=AV_launchData.postdata,e=AV_launchData.inlineSite,Feather_OpenType=="popup"?AV_setPopupPos(AV_getImageElem(a)):AV_setLightboxPos(AV_getImageElem(a)),AV_paintWidgetLauncher(a,c,d,e)} function aviaryeditor(a,c,d,e){if(!featherIsLoaded())return!1;if(AV_paintWidget)return!1;var bu=AV_sticker_baseURL;var f={imageIDelem:null,imageURL:"",inlineSite:null,editOptions:["sharpen","whiten","rotate","flip","resize","crop","redeye","blemish","colors","saturation","blur","brightness","contrast","drawing","text","overlay"],startTool:"",useServerFilters:!1,noCloseButton:!1,maxSize:800,cropSizes:["4:3","16:9","320x240","640x480","800x600","1280x1024","1600x1200","240x320","480x640","600x800","1024x1280","1200x1600"],resizeSizes:["320x240", "640x480","800x600","1280x1024","1600x1200","240x320","480x640","600x800","1024x1280","1200x1600"],stickers:[[bu+"bandaid_01.png",bu+"thumbs/bandaid_01.png"],[bu+"beer_01.png",bu+"thumbs/beer_01.png"],[bu+"cigar_01.png",bu+"thumbs/cigar_01.png"],[bu+"glasses_01.png", bu+"thumbs/glasses_01.png"],[bu+"glasses_02.png",bu+"thumbs/glasses_02.png"],[bu+"glasses_03.png",bu+"thumbs/glasses_03.png"],[bu+"glasses_04.png",bu+"thumbs/glasses_04.png"],[bu+"hat_01.png", bu+"thumbs/hat_01.png"],[bu+"hat_02.png",bu+"thumbs/hat_02.png"],[bu+"hat_04.png",bu+"thumbs/hat_04.png"],[bu+"hat_05.png",bu+"thumbs/hat_05.png"],[bu+"hat_06.png",bu+"thumbs/hat_06.png"], [bu+"hat_07.png",bu+"thumbs/hat_07.png"],[bu+"patch_01.png",bu+"thumbs/patch_01.png"],[bu+"sguriken_01.png",bu+"thumbs/sguriken_01.png"],[bu+"stache_01.png",bu+"thumbs/stache_01.png"], [bu+"stache_02.png",bu+"thumbs/stache_02.png"],[bu+"stache_03.png",bu+"thumbs/stache_03.png"],[bu+"stache_04.png",bu+"thumbs/stache_04.png"],[bu+"stache_05.png",bu+"thumbs/stache_05.png"]], onLaunchComplete:null,onClose:null,onSave:null,APIKey:"",hiResURL:"",postURL:"",postdata:null,fileFormat:"",jpgQuality:100,debug:!1,asyncSave:!0};if(typeof Feather_APIKey!=="undefined")f.APIKey=Feather_APIKey;if(typeof Feather_PostURL!=="undefined")f.postURL=Feather_PostURL;if(typeof Feather_HiResURL!=="undefined")f.hiResURL=Feather_HiResURL;if(typeof Feather_EditOptions!=="undefined"&&Feather_EditOptions!=="all")f.editOptions=Feather_EditOptions;if(typeof Feather_UseServerFilters!=="undefined")f.useServerFilters= Feather_UseServerFilters;if(typeof Feather_Stickers!=="undefined"&&Feather_Stickers!=="all")f.stickers=Feather_Stickers;if(typeof Feather_CropSizes!=="undefined")f.cropSizes=Feather_CropSizes;if(typeof Feather_MaxDisplaySize!=="undefined")f.maxSize=Feather_MaxDisplaySize;typeof Feather_MaxSize!=="undefined"?f.maxSize=Feather_MaxSize:Feather_MaxSize=f.maxSize;if(typeof Feather_NoCloseButton!=="undefined")f.noCloseButton=Feather_NoCloseButton;if(typeof Feather_OnLaunchComplete!=="undefined")f.onLaunchComplete= Feather_OnLaunchComplete;if(typeof Feather_OnSave!=="undefined")f.onSave=Feather_OnSave;if(typeof Feather_OnClose!=="undefined")f.onClose=Feather_OnClose;typeof a==="string"||a.nodeType&&a.nodeType===Node.ELEMENT_NODE?AV_launchData=avpw$.extend(f,{imageIDelem:AV_getImageElem(a),imageURL:c,postdata:d,inlineSite:e}):(a.imageIDelem=AV_getImageElem(a.imageIDelem),AV_launchData=avpw$.extend(f,a));if(AV__featherUseFlash)AV_featherLaunch();else{if(!featherSupported())return!0;setTimeout(AV_featherLaunch, 5)}return!0}function aviarynewimage(a,c){AV_paintWidgetRelauncher(a,c)}function aviaryeditor_close(a){AV_paintWidgetCloser(a)}function aviaryeditor_relaunch(){AV.isRelaunched=!0;if(typeof AV_launchData!=="undefined"&&AV_launchData)aviaryeditor(AV_launchData);else return!1}function aviaryeditor_activatetool(a){AV_paintWidgetActivateTool(a)}function featherIsLoading(){return AV__feather_loading}function featherIsLoaded(){return AV__feather_loaded} function featherSupported(){return typeof AV_Feather_ForceSupport!="undefined"||featherHtmlOk()||featherFlashOk()}function featherFlashOk(){if(typeof AV_Feather_ForceFlash!="undefined")return!0;var a=AV__getInternetExplorerVersion();return a<0||a>=7}function featherHtmlOk(){if(typeof AV_Feather_ForceFlash!="undefined")return!1;var a=!!document.createElement("canvas").getContext,c=typeof window.postMessage==="function";return a&&c} function AV_getFlashMovie(a){return navigator.appName.indexOf("Microsoft")!=-1?window[a]:document[a]}AV.firefox=function(){var a;navigator.product==="Gecko"&&(a=navigator.userAgent.split("Firefox/")[1],a=parseInt(a,10));return a}();function AV__getInternetExplorerVersion(){var a=-1;navigator.appName=="Microsoft Internet Explorer"&&/MSIE ([0-9]{1,}[.0-9]{0,})/.exec(navigator.userAgent)!=null&&(a=parseFloat(RegExp.$1));return a} (function(){function a(a){var d=AV__getInternetExplorerVersion(),a=AV_feather_baseURL+"css/"+a+"-"+AV_theme;AV_loadFile(a+".css","css");AV__featherUseFlash&&AV_loadFile(a+"-flash.css","css");d>=7&&d<8?AV_loadFile(a+"-ie7.css","css"):d>=8&&d<9&&AV_loadFile(a+"-ie8.css","css")}AV__featherUseFlash=!featherHtmlOk()&&featherFlashOk();Feather_OpenType=="float"&&(Feather_OpenType="popup");Feather_OpenType=="integrated"&&(Feather_OpenType="lightbox");Feather_OpenType=="inline"&&(Feather_OpenType="inject"); AV__featherUseFlash&&Feather_OpenType=="popup"&&(Feather_OpenType="lightbox");AV__injectControls();!AV__feather_loaded&&!AV__feather_loading&&(AV__feather_loading=!0,typeof AV_closureCompiled!="undefined"?(Feather_OpenType=="popup"?a("feather"):a("feather_hd"),AV_loadFile(AV_feather_baseURL+"images/atlas-"+AV_theme+".png","img",AV_loadStageFinal)):(AV_loadFile(AV_feather_baseURL+"css/ui-lightness/jquery-ui-1.8.11.custom.css","css"),Feather_OpenType=="popup"?a("controlswidget"):a("controlswidget_hd"), AV_loadFile(AV_feather_baseURL+"js/swfobject.js","js",function(){AV_loadFile(AV_feather_baseURL+"js/avpw-jquery-1.5.1.min.js","js",function(){AV_loadFile(AV_feather_baseURL+"js/avpw-jquery-ui-1.8.11.custom.min.js","js",function(){AV_loadFile(AV_feather_baseURL+"js/widgetapi.js","js",function(){AV_loadFile(AV_feather_baseURL+"js/controlswidget.js","js",AV_loadStageFinal)})})})})))})(); // ]]>

Enhanced by Zemanta

About the Author

Leave a Comment:

(1) comment

Burton Belles February 5, 2013

I found your blog very interesting, i found it on Google!

Reply
Add Your Reply

Leave a Comment:

Follow Us

Facebook
Google+
Twitter
YouTube
Pinterest
Instagram

Fusion Partnership, Entrepreneur, Internet Marketing Consultant & Certified Life Coach @fusiontourism @rechargelife

Copyright 2016 by Rechargelife.org   -  Designed by Thrive Themes | Powered by WordPress