(function(){function t(m){return function(){return m}}var x=x||{},y,z;if(!aa)var ba=function(m,j){if(j)return m.replace(/\$\{([^}]+)\}/g,function(d,c){return j[c]});return m},aa={};
if(!ca){var ca={},A,C,D,E,F,da,G,ea,H,I,fa,ga,ha,ia,ja,ka,la,ma,na,J,K,oa,L,pa,qa,ra,sa,ta,M,N,O,P,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Q,Ga,Ha,Ia,Ja,Ka,R;(function(){function m(a){a=a||window.event;if(!a)for(var b=m.caller;b;){if((a=b.arguments[0])&&Event==a.constructor)break;b=b.caller}return a}function j(a,b){if(!b&&(!y||!z)){var f=x.anchor?"-anchor":"";y=document.getElementById("wozaik-top"+f);if(!y){y=document.createElement("div");y.id="wozaik-top"+f;y.className="fonts-default-font-family";document.body.appendChild(y)}z=
document.getElementById("wozaik-bottom"+f);if(!z){z=document.createElement("div");z.id="wozaik-bottom"+f;document.body.appendChild(z)}}var o,g=document.createElement(a.tagName?a.tagName:"div");if(typeof a.size!="undefined")g.size=a.size;if(typeof a.name!="undefined")g.name=a.name;if(typeof a.type!="undefined")g.type=a.type;if(a.href)g.href=a.href;if(a.alt)g.alt=a.alt;if(typeof a.id!="undefined")g.id=a.id;if(a.src)g.src=a.src;if(typeof a.target!="undefined")g.target=a.target;if(a.method)g.method=a.method;
if(a.enctype)g.enctype=a.enctype;if(a.acceptCharset)g.acceptCharset=a.acceptCharset;if(a.action)g.action=a.action;if(typeof a.scrolling!="undefined")g.scrolling=a.scrolling;if(typeof a.frameBorder!="undefined")g.frameBorder=a.frameBorder;if(typeof a.value!="undefined")g.value=a.value;if(a.charset)g.charset=a.charset;if(typeof a.async!="undefined")g.async=a.async;if(a.rel)g.rel=a.rel;if(typeof a.width!="undefined")g.width=a.width;if(typeof a.height!="undefined")g.height=a.height;if(typeof a.selected!=
"undefined")g.selected=a.selected;a.onclick&&g.setAttribute("onclick",a.onclick);a.a&&A(g,a.a);a.m&&La(g,a.m,a.H);typeof a.className!="undefined"&&C(g,a.className);if(Ma&&/(input|textarea)/i.test(a.tagName)){if(!a.b)a.b=[];a.b=a.b.concat([["mouseover",Na],["mouseout",Oa]])}if(a.b){f=0;for(o=a.b.length;f<o;++f)S.i.apply(S,[g].concat(a.b[f]))}a.q&&S.i(g,"click",function(s,u){switch(u.length){case 2:D(u[0],u[1]);break;case 3:D(u[0],u[1],u[2]);break}},a.q);a.style&&g.setAttribute("style",a.style);(b?
b:z).appendChild(g);if(a.childNodes){f=0;for(o=a.childNodes.length;f<o;++f)j(a.childNodes[f],g)}if(/(input|textarea)/i.test(a.tagName)){E(g,"focus",function(){});E(g,"blur",function(){})}return g}var d=[],c={},h="",e="",i="",q=false,n=true,l={},k,p=window.addEventListener?function(a,b,f){a.addEventListener(b,f,false);b=="mousewheel"&&a.addEventListener("DOMMouseScroll",f,false);return true}:window.attachEvent?function(a,b,f){a.attachEvent("on"+b,f);return true}:t(false),r=window.removeEventListener?
function(a,b,f){a.removeEventListener(b!="mousewheel"?b:"DOMMouseScroll",f,false);return true}:window.detachEvent?function(a,b,f){a.detachEvent("on"+b,f);return true}:t(false);F=/Trident\/4.0/.test(navigator.userAgent)?8:(k=/MSIE\s(\d+\.\d+);/.exec(navigator.userAgent))!==null?parseFloat(k[1]):0;da=(k=/Windows\sNT\s(\d+\.\d+)/.exec(navigator.userAgent))!==null?parseFloat(k[1]):0;G=(k=/Firefox[\/\s](\d+\.\d+)/.exec(navigator.userAgent))!==null?parseFloat(k[1]):0;ea=(k=/Opera[\/\s](\d+\.\d+)/.exec(navigator.userAgent))!==
null?parseFloat(k[1]):0;H=(k=/Version[\/\s](\d+\.\d+).*Safari/.exec(navigator.userAgent))!==null?parseFloat(k[1]):0;I=(k=/Chrome[\/\s](\d+\.\d+)/.exec(navigator.userAgent))!==null?parseFloat(k[1]):0;fa=function(a){return a.replace(/(^\s*)|(\s*$)/g,"")};ga=function(a,b){for(var f=0,o=b.length;f<o;++f)if(b[f]==a)return true;return false};ha=function(a){return m(a)};E=function(a,b,f,o,g){if(typeof o=="undefined")o=a;if(typeof g=="undefined")g=false;g=g?function(s){f.call(o,ha(s))}:function(s){f.call(a,
ha(s),o)};if(p(a,b,g)){d.push({d:a,type:b,k:g,j:f});return true}return false};ia=function(a,b,f){for(var o=false,g=false,s=0,u=d.length;s<u&&!g;++s){var w=d[s];if(w&&w.d==a&&w.type==b&&(!f||w.j==f))if(r(a,b,w.k)){d.splice(s,1);o=true;g=f&&w.j==f}}return o};ja=function(a){a=a.target||a.srcElement;try{if(a&&3==a.nodeType)return a.parentNode}catch(b){}return a};ka=function(a){var b=a.pageX;if(!b&&b!==0){b=a.clientX||0;if(F)b+=la()}return b};ma=function(a){var b=a.pageY;if(!b&&b!==0){b=a.clientY||0;if(F)b+=
na()}return b};D=function(a,b,f){if(c[b])for(var o=0,g=c[b].length;o<g;++o){var s=c[b][o];if(s.d==a){if(f)f.type=b;else f={type:b};s.k(f)}}};J=function(a,b,f,o,g){o||(o=a);if(g!==true&&g!==false)g=false;g=g?function(s){f.call(o,s)}:function(s){f.call(a,s,o)};if(!c[b]||typeof c[b].push!="function")c[b]=[];c[b].push({d:a,k:g,j:f})};K=function(a,b){return RegExp("(?:^|\\s+)"+b+"(?:\\s+|$)").test(a.className)};oa=function(a,b){a.className=fa(String(a.className).replace(RegExp(b,"g"),""))};L=function(a,
b,f){if(typeof b=="undefined")b="*";b=(f?f:document).getElementsByTagName(b);f=[];for(var o=0;o<b.length;o++)K(b[o],a)&&f.push(b[o]);return f};C=function(a,b){for(var f=String(b).split(/ /),o=["backColor","winColor","textColor","backColor-invert"],g=0,s=f.length;g<s;++g)if(f[g]!==""&&!K(a,f[g])){a.className=(a.className.length>0?a.className+" ":"")+f[g];ga(f[g],o)&&pa(f[g],a)}};qa=function(a){if(/#?[a-f0-9]{6,6}/i.test(a))return a.charAt(0)=="#"?a.substr(1,a.length-1).toUpperCase():a.toUpperCase();
else{var b=/rgb\( *([0-9]{1,3}), *([0-9]{1,3}), *([0-9]{1,3}) *\)/i.exec(a);if(b!==null){a=parseInt(b[1],10).toString(16);var f=parseInt(b[2],10).toString(16);b=parseInt(b[3],10).toString(16);return((a.length==1?"0":"")+a+(f.length==1?"0":"")+f+(b.length==1?"0":"")+b).toUpperCase()}else return null}};ra=function(a){if(!/[0-9A-F]{6,6}/i.test(a))return null;var b=[0,0,0];a=a.toUpperCase();for(var f=0;f<6;++f)b[Math.floor(f/2)]+=parseInt(a.charAt(f),16)*(1-f%2)*16/255;return b};sa=function(a){var b=
T(a);if(b&&b!=="")return b;if(!l[a]){b=document.createElement("div");b.className=a+" xb-color-indicator";b.style.display="none";z.appendChild(b);l[a]=b}return(b=ta(l[a],a=="textColor"||a=="backColor-invert"?"color":"backgroundColor"))?qa(b):null};pa=function(a,b){var f=null;if(a=="backColor-invert"){var o=ra(sa("backColor"));if(o)f=o[0]+o[1]+o[2]<1.2?"#F0F0F0":"#0F0F0F"}else f=(f=T(a))&&f!==""?"#"+f:f;if(f!==null){o=b?[b]:L(a);for(var g=0;g<o.length;g++){var s=o[g];if(a=="textColor"&&!K(s,"options-color-mask")||
a=="backColor-invert")s.style.color=f;else s.style.backgroundColor=f}}};A=typeof document.documentElement.textContent!="undefined"?function(a,b){a.textContent=b}:function(a,b){a.innerText=b};M=function(a,b){return j(a,b)};la=function(){return Math.max(document.documentElement.scrollLeft,document.body.scrollLeft)};na=function(){return Math.max(document.documentElement.scrollTop,document.body.scrollTop)};N=document.documentElement.getBoundingClientRect?function(a){if(a.style.display=="none"||typeof a.getBoundingClientRect==
"undefined")return[-1,-1];a=a.getBoundingClientRect();return[Math.floor(a.left+la()),Math.floor(a.top+na())]}:function(a){if(a.style.display=="none")return[-1,-1];a=a;for(var b=[0,0];a!=document.body;){b[0]+=a.offsetLeft;b[1]+=a.offsetTop;a=a.offsetParent}return[Math.floor(b[0]),Math.floor(b[1])]};O=function(a){return N(a)[0]};P=function(a){return N(a)[1]};ta=document.defaultView&&document.defaultView.getComputedStyle?function(a,b){if(a.style[b])return a.style[b];else{var f=a.ownerDocument.defaultView.getComputedStyle(a,
"");return f?f[b]:null}}:document.documentElement.currentStyle?function(a,b){return a.style[b]?a.style[b]:a.currentStyle?a.currentStyle[b]:null}:t(null);ua=function(){var a=self.innerHeight,b=document.compatMode;if((b||F)&&!ea)a=b=="CSS1Compat"?document.documentElement.clientHeight:document.body.clientHeight;return a};va=function(){var a=self.innerWidth,b=document.compatMode;if(b||F)a=b=="CSS1Compat"?document.documentElement.clientWidth:document.body.clientWidth;return a};wa=function(){return Math.max(document.compatMode!=
"CSS1Compat"||H?document.body.scrollWidth:document.documentElement.scrollWidth,va())};xa=function(){return Math.max(document.compatMode!="CSS1Compat"||H?document.body.scrollHeight:document.documentElement.scrollHeight,ua())};ya=function(a){if(document.documentElement&&typeof document.documentElement.scrollLeft=="number"&&!H&&!I)document.documentElement.scrollLeft=a;else if(document.body)document.body.scrollLeft=a};za=function(a){if(document.documentElement&&typeof document.documentElement.scrollTop==
"number"&&!H&&!I)document.documentElement.scrollTop=a;else if(document.body)document.body.scrollTop=a};Aa=function(a){a.returnValue=false;a.preventDefault&&a.preventDefault()};Ba=function(a,b,f,o,g){if(b==-2)b=parseInt(va()/2-o/2,10);if(f==-2)f=parseInt(ua()/2-g/2,10);a=a.style;a.position="fixed";if(b!=-1)a.left=b+"px";if(f!=-1)a.top=f+"px"};Ca=function(a){if(typeof a.debug=="boolean")n=a.debug;if(typeof a.i18n)q=a.i18n;if(a.version)i=a.version;if(a.dynamic)h=a.dynamic;if(a["static"])e=a["static"]&&
!n?a["static"]:h;if((a.dynamic||a["static"])&&Pa)Qa(h)};Da=function(){return h};Ea=function(){return i};Fa=function(a){i=a};Q=function(a,b){var f="";/^https?:\/\//.test(a)||(f=b?e!==""?document.location.protocol+"//"+e:"":h!==""?document.location.protocol+"//"+h:"");return f+a};Ga=function(a){if(n)return a;else if((k=/(\.[a-z]{2,4}$)/.exec(a))!==null)return(e!==""?"http://"+e:"")+a.replace(k[1],"-"+i+k[1]);return null};Ha=function(a,b){if(n)return a;else if((k=/(\.[a-z]{2,4}$)/.exec(a))!==null)return(h!==
""?"http://"+h:"")+a.replace(k[1],"-"+i+(q&&!b?"-"+(T("lg")?T("lg"):"en"):"")+k[1])};Ia=function(a){M({tagName:"img",src:Q(a,true)}).style.display="none"};Ja=function(a){if(i.length!==0&&!n)Ia("/images/"+a+"-"+i+(F!==0&&F<=6?"-ie6":"")+".png")};Ka=function(a){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=a;(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(b)};R=function(a,b){var f=typeof b=="string"?b:b.name+" : "+
b.message+(b.stack?" : "+b.stack.replace(/\n/,"\t"):"");if(n)typeof console!=="undefined"?console.log("type: "+a+", msg: "+f):alert("type: "+a+", msg: "+f);else{f="type="+encodeURIComponent(a)+"&url="+encodeURIComponent(document.location.href)+"&error="+encodeURIComponent(f);f.length<1900?U("/report.php?"+f,{}):U("/report.php",{},"POST",f)}}})()}
if(!Ra){var Ra={},T,Sa,Ta,Ua;(function(){function m(e){if(x.A||x.z)if(e)if(c.hasOwnProperty(e))if(h[e])j();else{Va("user_"+e,c[e]);h[e]=(new Date).getTime()}else R("error","Unknown key in _save from user.js "+e);else for(var i in c)c.hasOwnProperty(i)&&m(i)}function j(){var e=(new Date).getTime();for(var i in h)if(h.hasOwnProperty(i))if(e-h[i]>100){Va("user_"+i,c[i]);delete h[i]}h.length>0&&window.setTimeout(j,100)}function d(e){if(e){c=e;D(window,"userDataUpdate");return true}return false}var c=
{},h={};Sa=(new Date).getTime();T=function(e){var i=typeof c[e];return i!="undefined"?i=="object"?Wa(V(c[e])):c[e]:null};Ta=function(e,i){c[e]=typeof i=="object"?Wa(V(i)):i;m(e)};Ua=function(e){if(e)d(e);else{d(Xa("user_"));Ya("/getUser.php?v="+encodeURIComponent(Ea()),{h:function(i){if(i.g.user)d(i.g.user)&&m();else if(i.g.unknown){Za();$a("umx","",new Date("01-Jan-1970 00:00:01 GMT"),"/");window.location="/logout"}}})}}})()}if(!ab)var ab={};
if(!bb){var bb={},cb;(function(){function m(d,c){return d<<c|d>>>32-c}function j(d){var c="",h,e;for(h=7;h>=0;h--){e=d>>>h*4&15;c+=e.toString(16)}return c}cb=function(d){var c,h,e=[80],i=1732584193,q=4023233417,n=2562383102,l=271733878,k=3285377520,p,r,a,b,f;d=unescape(encodeURIComponent(d));p=d.length;var o=[];for(c=0;c<p-3;c+=4){h=d.charCodeAt(c)<<24|d.charCodeAt(c+1)<<16|d.charCodeAt(c+2)<<8|d.charCodeAt(c+3);o.push(h)}switch(p%4){case 0:c=2147483648;break;case 1:c=d.charCodeAt(p-1)<<24|8388608;
break;case 2:c=d.charCodeAt(p-2)<<24|d.charCodeAt(p-1)<<16|32768;break;case 3:c=d.charCodeAt(p-3)<<24|d.charCodeAt(p-2)<<16|d.charCodeAt(p-1)<<8|128;break}for(o.push(c);o.length%16!=14;)o.push(0);o.push(p>>>29);o.push(p<<3&4294967295);for(d=0;d<o.length;d+=16){for(c=0;c<16;c++)e[c]=o[d+c];for(c=16;c<=79;c++)e[c]=m(e[c-3]^e[c-8]^e[c-14]^e[c-16],1);h=i;p=q;r=n;a=l;b=k;for(c=0;c<=19;c++){f=m(h,5)+(p&r|~p&a)+b+e[c]+1518500249&4294967295;b=a;a=r;r=m(p,30);p=h;h=f}for(c=20;c<=39;c++){f=m(h,5)+(p^r^a)+b+
e[c]+1859775393&4294967295;b=a;a=r;r=m(p,30);p=h;h=f}for(c=40;c<=59;c++){f=m(h,5)+(p&r|p&a|r&a)+b+e[c]+2400959708&4294967295;b=a;a=r;r=m(p,30);p=h;h=f}for(c=60;c<=79;c++){f=m(h,5)+(p^r^a)+b+e[c]+3395469782&4294967295;b=a;a=r;r=m(p,30);p=h;h=f}i=i+h&4294967295;q=q+p&4294967295;n=n+r&4294967295;l=l+a&4294967295;k=k+b&4294967295}f=j(i)+j(q)+j(n)+j(l)+j(k);return f.toLowerCase()}})()}
if(!db)var db={},$a=function(m,j,d,c){document.cookie=m+"="+escape(j)+(d?"; expires="+d.toGMTString():"")+(c?"; path="+c:"")};
if(!eb){var eb={},Wa,V,fb;(function(){function m(l){return"\\u"+("0000"+l.charCodeAt(0).toString(16)).slice(-4)}function j(l){var k=n[l];return typeof k==="string"?k:"\\u"+("0000"+l.charCodeAt(0).toString(16)).slice(-4)}function d(l,k){var p=k?'"'+k+'":':"";if(l===null)p+="null";else switch(typeof l){case "string":p=p;var r;r=String(l);i.lastIndex=0;q.lastIndex=0;r=i.test(r)?'"'+r.replace(i,j)+'"':q.test(r)?'"'+r.replace(q,j)+'"':'"'+r+'"';p=p+r;break;case "object":var a,b=typeof l.length=="number",
f=b?"[":"{";if(b){r=0;for(a=l.length;r<a;++r)f+=(f.length>1?",":"")+d(l[r])}else for(r in l)if(l.hasOwnProperty(r)&&typeof l[r]!="undefined")f+=(f.length>1?",":"")+d(l[r],r);f+=b?"]":"}";p+=f;break;case "number":case "boolean":p+=l;break}return p}var c=typeof JSON=="object"&&JSON.parse&&JSON.stringify&&JSON.stringify([1,"t",null,{B:false}])=='[1,"t",null,{"a":false}]'&&typeof JSON.parse(JSON.stringify([]))=="object",h=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f]/g,e=/[\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5]/g,q=/[\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};Wa=function(l){var k;try{k=c?JSON.parse(l):eval("("+l+")")}catch(p){R("json: decoding failure",p);return null}return k};V=function(l){return c?JSON.stringify(l):d(l)};fb=function(l){try{var k=[];if(c)k=Object(JSON.parse(l));else{h.lastIndex=0;if(h.test(l))l=l.replace(h,m);e.lastIndex=
0;if(e.test(l))l=l.replace(e,m);k=Object(eval("("+l+")"))}return k}catch(p){R("json: decoding failure",p);return null}}})()}
if(!gb){var gb={},Va,Xa,Za,hb,ib;(function(){function m(g,s){if(a){var u=true;try{a[g]=s}catch(w){u=false}return u}return false}function j(g){if(a&&a[g])return Wa(a[g]);return null}function d(){if(a)if(b)for(var g in a)a.hasOwnProperty(g)&&delete a[g];else a.clear()}function c(g){if(a&&a[g]){if(b)delete a[g];else a.removeItem(g);delete k[g]}}function h(g){for(var s=0,u=l.length;s<u;++s)if(g.indexOf(o+l[s])===0)return;k[g]=(new Date).getTime();p&&clearTimeout(p);if((new Date).getTime()-r>5E3){e();
r=(new Date).getTime()}else p=window.setTimeout(e,5E3)}function e(){for(var g=V({version:q,l:k}),s=m(n,g);!s;){s=i();c(s);s=m(n,g)}}function i(){var g,s="";for(var u in k)if(k.hasOwnProperty(u))if(!g||k[u]<g){g=k[u];s=u}delete k[s];return s}var q="0.2",n="wozaik_storage",l=["user_","OnlineId"],k={},p,r=(new Date).getTime(),a=typeof window.localStorage=="object"?window.localStorage:typeof globalStorage=="object"?globalStorage[document.domain]:false,b=typeof window.localStorage=="undefined"&&typeof globalStorage==
"object"?true:false,f=false,o;hb=function(){if(!f){if(a){var g=j(n);g&&g.version==q||d();o="noId_";k=g&&g.l?g.l:{};e();for(g=a.length-1;g>=0;--g){var s=a.key(g);if(typeof a[s]!="undefined")if(s!=n)if(o=="noId_"||s.indexOf(o)===0||s.indexOf("noId_")===0)k.hasOwnProperty(s)||h(s);else c(s)}}f=true}};Za=function(){d()};ib=function(g){hb();if(a)if(a[o+g]||a["noId_"+g]){g=a[o+g]?o+g:"noId_"+g;h(g)}return j(g)};Xa=function(g){hb();var s={},u=false;if(a)for(var w=a.length-1;w>=0;--w){var B=a.key(w);if(B.indexOf(o+
g)===0){u=true;s[B.substr(o.length+g.length)]=ib(B)}}return u?s:null};Va=function(g,s){hb();if(a){g=o+g;var u=V(s);if(u.length>2097152)return false;for(var w=m(g,u);!w;){w=i();c(w);w=m(g,u)}h(g);return w}return false}})()}
if(!jb){var jb={},kb,lb,mb,nb;kb=function(m,j){m=="GET"&&j.length>2E3&&typeof console=="object"&&console.log("url "+j.substr(0,50)+"... is "+j.length+" long. You should use the POST method to avoid a 413 error.")};lb=function(m){var j=T("seeds"),d=T("secret");if(!j||j.length===0||!d)return null;var c=j.pop();Ta("seeds",j);m+=(m.indexOf("?")==-1?"?":"&")+"v="+encodeURIComponent(Ea());return m+(m.indexOf("?")==-1?"?":"&")+"sig="+cb(c+d+m)+c};mb=function(m,j,d){if(d&&d.h&&!d.c&&m.indexOf("/report.php")==
-1){d.c=function(){R("generic failure callback ("+j+")","communication failure (url : "+m+")")};d.u=true}return d};nb=function(m,j){var d=fb(m);if(d.ban)window.location=Q("/error/error.php?code=ban&url="+encodeURIComponent(document.location.href),false);else if(d.version){Fa(d.version);x.p.I(function(){var h=(new Date).getTime();if(h-Sa<2E3)window.location.reload();else{var e=M({className:"website-refresh-layer"},document.body);window.setInterval(function(){if((new Date).getTime()>h+5E3)window.location.reload();
else e.innerHTML=ba("A new version of Wozaik is available. Refreshing page in ${time} seconds",{G:Math.floor((5E3-(new Date).getTime()+h)/1E3)})},1E3)}})}else if(d.sign){j&&j.c&&!j.u&&j.c();return}if(d.seeds){var c=T("seeds");Ta("seeds",(c?c:[]).concat(d.seeds).slice(0,10))}j&&j.h&&j.h({g:d})}}
if(!ob){var ob={},U,Ya;(function(){var m=window.XMLHttpRequest?function(){return new XMLHttpRequest}:window.v?function(){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(j){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(d){typeof console=="object"&&console.log("XMLHttpRequest not supported");return false}}}:function(){typeof console=="object"&&console.log("XMLHttpRequest not supported");return false};U=function(j,d,c,h){j=lb(Q(j,false));if(j===null)d&&d.c&&d.c();else Ya(j,d,c,h)};Ya=
function(j,d,c,h){c=c?c:"GET";h=h?h:null;kb(c,j);var e=m();if(e){if((d=mb(j,"xhr",d))&&(d.h||d.c))e.onreadystatechange=function(){try{if(e.readyState==4&&e.status==200)nb(e.responseText,d);else if(e.readyState==4){e.status==404&&x.p.C();d&&d.c&&d.c()}}catch(i){e.onreadystatechange=function(){};e.abort()}};e.open(c,j,true);c=="POST"&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");e.send(h)}}})()}
if(!pb){var pb={},qb,W,rb;(function(){var m=document.location.href,j=false;qb=function(d){return{f:d.pageURL}};W=function(d){if(typeof _gaq=="undefined"){var c=/(www\.)?wozaik\.com/.test(Da())?["UA-5955242-1",".wozaik.com"]:["UA-5955242-3",".wozaik.fr"];_gaq=[["_setAccount",c[0]],["_addIgnoredOrganic","wozaik"],["_addIgnoredOrganic","wozaic"],["_addIgnoredOrganic","wosaik"],["_addIgnoredOrganic","wozaik.com"],["_addIgnoredOrganic","www.wozaik.com"],["_addIgnoredOrganic","http://wozaik.com"],["_addIgnoredOrganic",
"http://www.wozaik.com"]];document.domain=="w.oza.be"?_gaq.push(["_setDomainName","none"],["_setAllowLinker",true]):_gaq.push(["_setDomainName",c[1]]);Ka(("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js")}if(!j||d&&d.f&&d.f!=m){if(d&&d.f)m=d.f;(d=T("track"))||(d="unknown/unknown");_gaq.push(["_trackPageview",m+"/w/"+d]);j=true}};rb=function(d){var c=/referer=(.*?)(?=&|$)/.exec(document.location.href);c=c!==null?c[1]:document.referrer?document.referrer.replace(/^https?:\/\//,
""):"noreferer";var h=new Date,e=new Date(h.getFullYear(),0,1);Ta("track",(d?d:"")+c+"/"+Math.ceil(((h-e)/864E5+e.getDay()+1)/7)+"/"+h.getFullYear().toString().substr(2));$a("track",T("track"),new Date(h.setDate(h.getDate()+30)),"/")}})()}
if(!Pa){var Pa={},Qa,sb;(function(){var m=false;sb={href:"",src:"/images/installbookmarklet-wcut.png"};Qa=function(j){if(!m){sb={href:'javascript:(function(){if(typeof Woz!="object"||typeof Woz.Extension!="object"||typeof Woz.Extension.doC!="function"){var e=document;var a=e.getElementsByTagName("head");var c=a.length===0?e.getElementsByTagName("html")[0].insertBefore(e.createElement("head"),e.body):a[0];var b=e.createElement("script");b.charset="utf-8";b.src="http://domain/bookmarklet.php?c=cmdIndex&u="+encodeURIComponent(e.location.href)+"&q="+(e.compatMode=="BackCompat"?1:0);b=c.appendChild(b)}else{Woz.Extension.doC()}})();'.replace(/domain/g,j),
src:Ga(sb.src)};m=true}}})()}
if(!tb){var tb={},ub;(function(){function m(){window.with_auto=true;var k=document.getElementById("layout-install");C(k,"layout-with-auto");k=document.getElementById("layout-auto-container");var p=M({className:"layout-manu-text3",a:"Or add it automatically"},k),r=M({className:"layout-instruction",a:"Click then grant access to your browser"},k),a=M({className:"layout-arrow"},r);E(k,"mouseover",function(){r.style.display="block";a.style.display="block"});E(k,"mouseout",function(){r.style.display="none";
a.style.display="none"});E(k,"click",function(){if(I)window.location=Ha("/secure/bookmarkletCR.crx",true);else if(G){var b=window.location.href;window.location="jar:"+Ha("/secure/bookmarkletFF.jar")+"!/i.htm?previousLocation="+encodeURIComponent(b.indexOf("?")>0?b.substring(0,b.indexOf("?")):b)+"&bookmarkletUrl="+encodeURIComponent(Q("/bookmarklet.php"))}else{A(p,"Please wait a few seconds...");vb();b=M({id:"tutorial-layer-bottom"},document.body);X(b,Y([{name:"opacity",from:"0",to:"0.6"}]),0.8)}});
I&&document.body.addEventListener("extensionInstalledEvent",function(){wb()},false);k.style.display="block"}function j(){var k=document.getElementById("layout-install");M({className:"layout-manu-text",a:"To start using Wozaik "},k);M({tagName:"b",className:"layout-manu-text",id:"layout-help",a:F?"Add":"drag and drop"},k);M({id:"layout-bookmarklet"},k);M({tagName:"span",className:"layout-manu-text",a:"in your bookmark bar and "},k);M({tagName:"b",className:"layout-manu-text",a:"click it!"},k);M({id:"layout-drag-help",
childNodes:[{className:"layout-arrow",id:"layout-arrow"}]},k);M({id:"layout-click-help",childNodes:[{className:"layout-click-help-text",a:"You have to click it in your bookmark bar"}]},k);k.style.display="block"}var d={},c,h,e,i,q=true,n=true,l=false;ub=function(k,p,r,a,b){Ca(k);Ua(p);Oa();if(window.location.hash!=""){k=/x=([^$]*)/.exec(window.location.hash);k=k!==null?parseInt(decodeURIComponent(k[1]),10):false;k!==false&&xb(k)}if(F||G<=3){C(document.body,"welcome-light");F==7&&C(document.body,"iexplore7")}r&&
yb(document.getElementById("layout-logger-anchor"));if(b=="shared")document.getElementById("layout-logger-anchor").style.display="block";if(b=="home")document.getElementById("layout-footer").style.display="none";j();r=document.getElementById("layout-bookmarklet");i=M({tagName:"a",className:"link-a installbookmarklet-bookmarklets",href:sb.href,a:"+ Wozaik",m:!F?"Drag and drop this button in your browser bookmarks toolbar":"Right click on this button and select 'Add to favorites'"},r);c=document.getElementById("layout-drag-help");
e=document.getElementById("layout-arrow");h=document.getElementById("layout-click-help");k="";r=T("lg");k=F==8?r=="fr"?"layout-iexplore8-fr":r=="es"?"layout-iexplore8-es":"layout-iexplore8-en":F?r=="fr"?"layout-iexplore7-fr":r=="es"?"layout-iexplore7-es":"layout-iexplore7-en":I?r=="fr"?"layout-chrome-fr":r=="es"?"layout-chrome-es":"layout-chrome-en":H?r=="fr"?"layout-safari-fr":r=="es"?"layout-safari-es":"layout-safari-en":ea?r=="fr"?"layout-opera-fr":r=="es"?"layout-opera-es":"layout-opera-en":r==
"fr"?"layout-firefox-fr":r=="es"?"layout-firefox-es":"layout-firefox-en";C(c,k);k=document.getElementById("layout-help");E(k,"click",function(){l=true;if(n){c.style.display="block";e.style.display="block";n=false}else{c.style.display="none";e.style.display="none";n=true}});E(k,"mouseout",function(){l=false});E(i,"click",function(o){Aa(o);if(q){q=false;h.style.display="block";setTimeout(function(){h.style.display="none";q=true},3E3)}});if(F){if(F>=7&&navigator.javaEnabled()){M({tagName:"script",charset:"utf-8",
src:"http://www.java.com/js/deployJava.js"},document.body);var f=window.setInterval(function(){if(typeof window.deployJava!="undefined"){clearInterval(f);deployJava.versionCheck("1.6")&&m()}},50)}}else if(G||I)m();if(b=="welcome"){k=document.getElementById("widgets");p=document.createElement("div");p.className="layout-wi-container";p.style.left="0px";p.style.top="40px";k.insertBefore(p,k.firstChild);M({className:"winColor layout-shaddow layout-wi-title-container",childNodes:[{tagName:"h1",childNodes:[{tagName:"a",
className:"layout-wi-title",a:"Wozaik"}]}]},p);k=M({id:"wozaik-cut",className:"layout-shaddow layout-wi-body"},p);k.innerHTML=G>=3.5?'<video src="http://c.oza.be/media/demo-0-0-1-'+(T("lg")=="fr"?"fr":"en")+'.ogv" autoplay loop></video>':'<object wmode="transparent" width="480" height="385"><param name="movie" value="http://www.youtube.com/v/'+(r=="fr"?"jaLXAJwSvN4":"nfXa7KdRCN4")+'&hl=fr_FR&fs=1&rel=0&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed wmode="transparent" src="http://www.youtube.com/v/'+
(r=="fr"?"jaLXAJwSvN4":"nfXa7KdRCN4")+'&hl=fr_FR&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>';k.style.display="block";k.style.minWidth="480px";k.style.minHeight=G?"360px":"385px"}J(window,"loggerSignin",function(){window.location="/"});J(window,"userRequest",function(o){Z(d,o.msg);o.success==7&&W({f:"/welcome/storeEmail"})});if(b=="welcome"){rb();a=/(\/invite\/\w{2,50})\/?$/.exec(top.location.href);
W({f:a!==null?a[1]:"/welcome"})}else if(b=="home"){rb();W({f:"/home/"+a})}Ja("extension");Ja("index")}})()}
if(!zb){var zb={},X,Y,Db;(function(){function m(e,i,q){if(i=="opacity")if(F!==0)e.style.filter="alpha(opacity="+100*q+")";else e.style.opacity=q;else if(j[i])e.style[i]=q+j[i];else alert("Woz.Animation : unit undefined")}var j={left:"px",right:"px",top:"px",bottom:"px",width:"px",height:"px"},d=null,c=[],h=0;Y=function(e){for(var i=[],q=0,n=e.length;q<n;++q){var l=e[q];i.push({name:l.name,o:l.to,t:l.from})}return i};X=function(e,i,q){var n=new Date,l="anim"+h++;c.push({d:e,attributes:i,duration:1E3*
(q?q:0.8),startTime:n.getTime(),r:l});d||(d=window.setInterval(Db,40));return l};Db=function(){for(var e=0;e<c.length;++e){var i,q=c[e],n=q.attributes,l=Math.min(1,Math.sqrt(((new Date).getTime()-q.startTime)/q.duration));if(l<1)for(i in n)n.hasOwnProperty(i)&&m(q.d,n[i].name,l*n[i].o+(1-l)*n[i].t);else{for(i in n)n.hasOwnProperty(i)&&m(q.d,n[i].name,n[i].o);D(q.r,"end");c.splice(e,1);--e}}if(c.length===0){window.clearInterval(d);d=null}}})()}
if(!Eb){var Eb={},vb,wb,Fb,Gb,Hb;(function(){var m=false;Fb=function(){$()};wb=function(){$();typeof startWebsite=="undefined"&&xb(wa()-115)};Gb=function(j){$();j=fb(j);if(typeof j.x=="number")if(typeof j.newPage==="boolean"){var d=/(^.*?)(?=\?|$)/.exec(window.location.href),c=(d!==null?decodeURIComponent(d[1]):window.location.href)+"#auto=true,x="+j.x;window.open(typeof startWebsite=="function"?window.location.href:c,"_blank");j=M({className:"installbookmarklet-redirection-box",childNodes:[{className:"installbookmarklet-text",
a:typeof startWebsite=="function"?"The opening of a new window can't succeed if a pop-up blocker is installed on your browser.":"The redirection can't succeed if a pop-up blocker is installed on your browser."},{className:"installbookmarklet-redirection-link",a:"Click on this link to continue.",b:[["click",function(){window.open(typeof startWebsite=="function"?window.location.href:c,"_blank")}]]}]},document.body);Ib(j,true)}else typeof startWebsite=="undefined"&&xb(j.x)};vb=function(){if(m)$();else{var j=
document.createElement("div");document.body.appendChild(j);j.innerHTML='<applet width="0" height="0" code="Bookmarklet.class" archive="'+Ha("/secure/bookmarkletIE.jar",true)+'" MAYSCRIPT><param name="bookmarkletUrl" value="'+Q("/bookmarklet.php")+'"/><param name="os" value="'+parseInt(da,10)+'"/><param name="ie" value="'+parseInt(F,10)+'"/></applet>';m=true}};Hb=function(j){R("ie bookmarklet installation failure",j);$();j=M({className:"installbookmarklet-redirection-box",childNodes:[{className:"installbookmarklet-text",
a:"The automatic install cannot end up properly on your browser."},{className:"installbookmarklet-text",a:"Please either try the manual install or re-try on another browser (Firefox or Google Chrome)."}]},document.body);Ib(j,true)}})()}if(!Jb)var Jb={};
if(!Kb){var Kb={},$,Ib;(function(){var m,j,d,c=false;Ib=function(h,e,i,q,n){e=typeof e!="undefined"?e:false;if(!c){i=typeof i==="undefined"?document.body:i;m=M({className:"layer-root layer-1"},i);j=M({className:"button-common button-close"},i);i=M({className:"button-close-text",a:"x"},j);e||S.i([m,j,i],"click",$);c=true}d=h;h=m.style;h.width=wa()+"px";h.height=xa()+"px";h.zIndex=35500;h.display="block";d.style.zIndex=35501;d.style.display="block";Ba(d,-2,-2,typeof n!="undefined"?n:d.offsetWidth,typeof q!=
"undefined"?q:d.offsetHeight);j.style.display=e?"none":"block";j.style.zIndex=35501;Ba(j,d.offsetLeft+(typeof n!="undefined"?n:d.offsetWidth),d.offsetTop-20,22,22)};$=function(){if(d){d.style.display="none";m.style.display="none";j.style.display="none";D(window,"layerClose",{d:d})}}})()}
if(!S){var S={};(function(){function m(d){for(var c=ja(d),h=d.type,e=false,i=0,q=j[h].length;i<q&&!e;++i){var n=j[h][i];if(n[0].tagName||typeof n[0].length=="undefined"){if(n[0]==c){n[3]?n[1].call(n[2],d):n[1].call(n[0],d,n[2]);e=true}}else if(typeof n[0].length!="undefined")for(var l=0,k=n[0].length;l<k&&!e;++l)if(n[0][l]==c){n[3]?n[1].call(n[2],d):n[1].call(n[0][l],d,n[2]);e=true}}}var j={};S.i=function(d,c,h,e,i){if(!j[c]||j[c].length===0){j[c]=[];E(document,c,m)}d||alert("type:"+c+",fn:"+h);if(typeof e==
"undefined")e=d;if(typeof i=="undefined")i=false;j[c].push([d,h,e,i])};S.F=function(d,c){for(var h=false,e=0,i=j[c].length;e<i&&!h;++e)if(j[c][e][0]==d){j[c].splice(e,1);h=true;j[c].length===0&&ia(document,c)}return h}})()}
if(!Ma){var Ma={},Na,Oa;(function(){var m,j=true;Oa=function(){if(j&&document.body){if(typeof document.body.onselectstart!="undefined"){m=document.body.onselectstart;document.body.onselectstart=t(false)}else if(typeof document.body.style.MozUserSelect!="undefined")document.body.style.MozUserSelect="none";j=false}};Na=function(){if(!j&&document.body){if(typeof document.body.onselectstart!="undefined")document.body.onselectstart=m;else if(typeof document.body.style.MozUserSelect!="undefined")document.body.style.MozUserSelect=
"text";j=true}}})()}
if(!Lb){var Lb={},La,Mb,Nb;(function(){var m=-1,j=-1,d,c,h;Mb=function(){var e=[wa(),xa()];d.style.display="block";if(d.offsetLeft+d.offsetWidth>e[0]-20)d.style.left=e[0]-d.offsetWidth-20+"px";if(d.offsetTop+d.offsetHeight>e[1]-20)d.style.top=e[1]-d.offsetHeight-20+"px"};Nb=function(e){d.style.display="none";if(typeof h!="undefined"&&!e)h.title=c;if(j!=-1){window.clearTimeout(j);j=-1;window.clearTimeout(m);m=-1}};La=function(e,i,q){d||(d=M({className:"tip-root fonts-default-font-family"}));if(typeof i==
"string"&&i.length>0&&!q)e.title=i;q||(i=null);if(typeof i=="string"&&i.length>0||e.title&&e.title!==""){S.i(e,"mouseover",function(n){if(i)A(d,i);else if(e.title&&e.title!==""){c=e.title;h=e;e.title="";A(d,c)}n=[ka(n)+15,ma(n)+10];var l=z?N(z):[0,0];d.style.left=n[0]-l[0]+"px";d.style.top=n[1]-l[1]+"px";m!=-1&&window.clearTimeout(m);m=window.setTimeout(function(){Mb()},1200);j!=-1&&window.clearTimeout(j);j=window.setTimeout(function(){Nb(i)},5E3)});S.i(e,"mouseout",function(){Nb(i)})}}})()}
if(!Ob){var Ob={},Z,Pb,Qb,Rb;(function(){function m(c){return/^[\w\-]+[\w.\-]*@[\w\-]+\.[a-zA-Z._\-]{1,}[a-zA-Z_\-]+$/.test(c)}function j(c){if(typeof c.g.success!="undefined"||typeof c.g.msg!="undefined")D(window,"userRequest",c.g)}function d(c,h,e,i){if(typeof h=="undefined"||h.length===0){h=e?e:"/manageUser.php";e="";for(var q=0,n=c.length;q<n;++q){e+=q%2===0?c[q]:encodeURIComponent(c[q]);if(q!=n-1)e+=q%2===0?"=":"&"}H&&i?U(h,{h:j},"POST",e):U(h+"?"+e,{h:j});return true}else{D(window,"userRequest",
{msg:h});return false}}Z=function(c,h){var e=false;for(var i in c)if(c.hasOwnProperty(i)){var q=false;if(!e)for(var n=0,l=h.length;n<l&&!q;++n)if(h[n]==i)e=q=true;c[i].style.display=q?"block":"none"}return e};Pb=function(c,h,e){for(var i in h)if(h.hasOwnProperty(i))c[i]=M({className:String(i).indexOf("Error")==-1?"user-ok-msg":"user-error",a:h[i]},e);return c};Qb=function(c,h){d(["login",c,"pass",h],!/^[a-zA-Z0-9_.\-]{4,20}$/.test(c)&&!m(c)||!/^.{4,50}$/.test(h)?["signinError"]:[],"/signin.php",true)};
Rb=function(c){return d(["lostEmail",c],!m(c)?["lostEmailSyntaxEmailError"]:[],"/email.php")}})()}
if(!Sb){var Sb={},yb;(function(){function m(){if(!h)if(Rb(b.value)){Z(e,["requestWait"]);h=true}}function j(){Qb(l.value,p.value)}function d(g){if(g)i=g;if(i==1||i==3){A(r,"Lost password?");n.style.display="block";k.style.display="block";a.style.display="none";f.style.display="none";if(i==3)r.style.display="none"}else if(i==2){A(r,"Back");n.style.display="none";k.style.display="none";a.style.display="block";f.style.display="block"}Z(e,[])}var c=false,h=false,e={},i=1,q,n,l,k,p,r,a,b,f,o;yb=function(g,
s,u){if(c)q.style.display="block";else{u&&M({className:"logger-title",childNodes:[{className:"logger-txt bold",a:"Sign-in"}]},g);q=M({id:"logger-root"},g);g=M({className:"logger-center"},q);o=M({tagName:"form"},g);o.setAttribute("onAction","");o.onsubmit=function(){j();return false};M({tagName:"input",type:"submit",value:"ok",className:"logger-submit"},o);n=M({className:"logger-login utils-alignleft"},o);M({className:"logger-txt utils-alignleft",a:"Login:"},n);l=M({tagName:"input",className:"utils-alignleft input-area input-no-container",
name:"login"},n);k=M({className:"logger-password utils-alignleft"},o);M({className:"logger-txt utils-alignleft",a:"Password:"},k);p=M({tagName:"input",className:"utils-alignleft input-area input-no-container",name:"pass",type:"password"},k);Pb(e,{signinError:"Wrong login or password"},g);if(typeof s=="undefined"||typeof s!="undefined"&&!s){u=M({className:"logger-lostpass-block utils-alignleft"},g);r=M({className:"logger-txt",a:"Lost password?",b:[["click",function(){d(i==1?2:1)}]]},u);a=M({className:"logger-email-block utils-alignleft"},
g);M({className:"logger-txt utils-alignleft",a:"Email:"},a);b=M({tagName:"input",className:"utils-alignleft input-area input-no-container",b:[["keydown",function(w){w.keyCode==13&&i==2&&m()}]]},a);Pb(e,{lostEmailSyntaxEmailError:"This is not a valid email address",lostEmailExistEmailError:"Email address unknown",lostEmailSuccess:"An email with directions has been sent to you",requestWait:"Your request is being processed..."},g);f=M({className:"logger-email-txt-block utils-alignleft"},g);M({className:"logger-txt",
a:"Enter your e-mail, we will send you your access codes"},f)}M({className:"button-common logger-ok-button button-ok-round utils-alignleft",a:"OK",b:[["click",function(){switch(i){case 1:j();break;case 2:m();break;case 3:j();break}}]]},g);J(window,"userRequest",function(w){if(typeof w.success!="undefined")switch(w.success){case 1:w.form=o;w.D=p;w.userName=l;D(window,"loggerSignin",w);break;case 2:h=false;d(3);break}if(ga("lostEmailExistEmailError",w.msg))h=false;Z(e,w.msg)});if(typeof s=="undefined"||
typeof s!="undefined"&&!s)d(i);c=true}}})()}
if(!Tb){var Tb={},xb,Ub,Vb,Wb,Xb;(function(){function m(){if(a!==null){window.clearInterval(r);k.removeChild(a.n);k.removeChild(a.e);k.removeChild(a.s);k.removeChild(a.w);a=null}}function j(){if(a===null){var b=p,f=N(b);l=[f[0]-3,f[1]-3,b.offsetWidth,b.offsetHeight+6];var o=2;b=l[0]+l[2];f=l[1]+l[3];a=[];a.n=M({id:"tutorial-cutedge-n"},k);a.e=M({id:"tutorial-cutedge-e"},k);a.s=M({id:"tutorial-cutedge-s"},k);a.w=M({id:"tutorial-cutedge-w"},k);a.n.style.top=l[1]+"px";a.n.style.left=l[0]+"px";a.n.style.width=
l[2]+"px";a.n.style.height="1px";a.n.style.position="absolute";a.n.style.borderTop="2px dashed #fff";a.n.style.zIndex=2147483647;a.e.style.top=l[1]+"px";a.e.style.left=b+"px";a.e.style.width="1px";a.e.style.height=l[3]+"px";a.e.style.position="absolute";a.e.style.borderRight="2px dashed #fff";a.e.style.zIndex=2147483647;a.s.style.top=f+"px";a.s.style.left=l[0]+"px";a.s.style.width=l[2]+"px";a.s.style.height="1px";a.s.style.position="absolute";a.s.style.borderBottom="2px dashed #fff";a.s.style.zIndex=
2147483647;a.w.style.top=l[1]+"px";a.w.style.left=l[0]+"px";a.w.style.width="1px";a.w.style.height=l[3]+"px";a.w.style.position="absolute";a.w.style.borderLeft="2px dashed #fff";a.w.style.zIndex=2147483647;r=window.setInterval(function(){var g=o++%2?{name:"opacity",from:"0",to:"1"}:{name:"opacity",from:"1",to:"0"};X(a.n,Y([g]),1);X(a.e,Y([g]),1);X(a.s,Y([g]),1);X(a.w,Y([g]),1)},1E3);b=l[1]+l[3]+15;f=l[0];h||(h=M({id:"tutorial-instruction-box"},document.body));oa(h,"tutorial-first");h.style.minWidth=
"600px";h.style.width="auto";h.style.top=b+"px";h.style.left=f+"px";if(e=document.getElementById("tutorial-text"))A(e,"Cut the zone along the dashed line with your mouse.");else e=M({id:"tutorial-text",a:"Cut the zone along the dashed line with your mouse."},h);q||(q=M({id:"tutorial-arrow"},h));q.style.display="block";q.style.left="5px";q.style.top="-10px";n=M({className:"tutorial-step",a:"1/3"},h)}E(window,"resize",function(){m();selectToolOpen();j()})}function d(b){b=N(b)[0]+2;h.style.minWidth=
"445px";h.style.top="122px";h.style.left=b+"px";A(e,"Visualize this bookmark on your Wozaik space.");A(n,"3/3");window.setTimeout(function(){h.style.display="block"},500)}function c(){h.style.display="none";i||(i=M({id:"tutorial-layer-bottom"},document.body));i.style.display="block";X(i,Y([{name:"opacity",from:"0",to:"0.6"}]),0.8);var b=window.setInterval(function(){var f=L("msg-block","div")[0];if(f){window.clearInterval(b);d(f.parentNode)}},100)}var h=null,e,i=null,q=null,n,l,k=null,p=null,r,a=
null;xb=function(b){var f=document.getElementById("tutorial-layer-bottom");i=f?f:M({id:"tutorial-layer-bottom"},document.body);f||X(i,Y([{name:"opacity",from:"0",to:"0.6"}]),0.8);h=M({id:"tutorial-instruction-box",className:"tutorial-first"},document.body);h.style.top="-1.5pt";h.style.width="100%";h.style.minWidth="1004px";M({id:"tutorial-text",a:"Click on the Wozaik button to start cutting your first bookmark."},h);q=M({id:"tutorial-arrow"},h);q.style.top="-4px";q.style.left=b!==false?b+"px":"10px";
if(typeof startShared=="function")document.getElementById("layout-header").style.display="none";document.body.style.overflow="hidden"};Ub=function(){var b=document.getElementById("widgets");C(document.body,"tutorial-hideall");$();p=document.getElementById("wozaik-cut");if(!p){var f=L("layout-wi-body","div",b),o=0,g=false;for(f.sort(function(B,Ab){var Bb=P(B),Cb=P(Ab);return Bb==Cb?O(B)-O(Ab):Bb-Cb});!g&&o<f.length;){var s=O(f[o])+f[o].offsetWidth-va(),u=f[o].offsetHeight+115-ua();if(s<0&&u<0){p=f[o];
g=true}o++}g||(p=f[0])}p.id="wozaik-cut";window.elementToCut=p;b.style.top=P(b)+72-P(p)+"px";ya(0);za(0);var w=window.setInterval(function(){if(k=L("selecttool-root","div",document.getElementById("wozaik"))[0]){window.clearInterval(w);var B=/\#auto=([^,$]*)/.exec(window.location.hash);B=B!==null?decodeURIComponent(B[1]):"false";W(qb({pageURL:"/install/tuto/click_on_bookmarklet/"+(typeof window.with_auto=="undefined"?"manu_only":B=="true"?"auto":"manu")}));j()}},100)};Vb=function(){var b;b=L("selecttool-box",
"div",k)[0];var f=N(b);b=[f[0],f[1],b.offsetWidth,b.offsetHeight];if(Math.abs(b[0]-l[0])<20&&Math.abs(b[1]-l[1])<20&&Math.abs(b[2]-l[2])<20&&Math.abs(b[3]-l[3])<20){m();b=true}else{selectToolOpen();j();b=false}return b};Wb=function(){var b=l[1]+l[3]+44,f=l[0]+l[2]/2-17;h.style.minWidth="300px";h.style.top=b+"px";h.style.left=f+"px";A(e,"Validate your cut.");A(n,"2/3")};Xb=function(){return c()}})()}window.startWozaikTutorial=Ub;window.step2OnCondition=Vb;window.tutorialStep2=Wb;
window.step3OnCondition=Xb;window.startLayout=ub;window.ieInstallFailed=Hb;window.ieInstallSuccess=Gb;window.closeLayer=Fb;
})();