(function(){var S=window,i=document,D,O=null,T=true,m=false,G="undefined";function ac(){if(r){return r}D=i.body;if(D&&D.lastChild){r=T;return r}else{return setTimeout(ac,0)}}ac();if(!S.cooliris){S.cooliris={}}var J=S.cooliris,n,l,w=0,t={},B=O,V=O,j,x,q,k,R,v,N,p,b="#000000",Q="100%",Z=m,ab=[],r=m,X,d,F="http://apps.cooliris.com/embed/",y="http://i.cooliris.com/embed/",s="http://e.cooliris.com/embed/v/33888/cooliris.swf";if(i.location.protocol=="https:"){y=y.replace("http:","https:");s=s.replace("http:","https:")}function e(f){return f!=O&&typeof(f)!=G}function z(){if(!V){var af=O,f="application/x-cooliris";if(typeof(PicLensContext)!=G){af=new PicLensContext()}else{if(S.ActiveXObject){try{af=new ActiveXObject("PicLens.Context")}catch(ae){af=O}}else{if(navigator.mimeTypes[f]){af=i.createElement("object");af.style.width=0;af.style.height=0;af.type=f;i.documentElement.appendChild(af)}}}V=af}return e(V)}J.hasClient=z;J.launchClient=function(ae,f){if(z()){if(typeof(ae)==G&&typeof(cooliris.embed!=G)){ae=cooliris.embed.getFeedURLForClient()}setTimeout(function(){if(e(f)){V.launch(ae,"uid",f)}else{V.launch(ae,"","")}},5);return T}return m};function c(f){return i.getElementById(f)}function E(f){if(!e(f)){return O}else{if(typeof(f)=="string"){return f}else{var ae="f_"+w++;t[ae]=f;return ae}}}function I(f){var ag=i.getElementsByTagName(f);var ae=ag.length;try{while(ae--){if(ag[ae].GID&&ag[ae].GID()=="CISWF"){ab.push(ag[ae])}}}catch(af){}}function H(){if(!Z){I("object");I("embed");Z=T}var ae,f;for(f=0;f<ab.length;f++){ae=ab[f];if(ae.IA&&ae.IA()){return ae}}return ae}function Y(){if(B!==O){return}n=H().offsetLeft;l=H().offsetTop;B=H().parentNode;if(B.tagName=="OBJECT"){B=B.parentNode}}function K(ae,f){var af=i.createElement("div");if(ae){if(f){ae.innerHTML=""}ae.appendChild(af)}return af}function C(f,ae){for(var af in f){if(f.hasOwnProperty(af)){ae[af]=f[af]+"px"}}}function h(af,ae){var f=af.style;f.position="fixed";f.backgroundColor=b;f.zIndex=10000;f.opacity="0.33";f.filter="alpha(opacity=33)";C(ae,f)}function U(f){h(j,{top:0,left:0,right:0,height:f});h(x,{bottom:0,left:0,right:0,height:f});h(q,{top:f,left:0,bottom:f,width:f});h(k,{top:f,bottom:f,right:0,width:f})}function ad(){D.removeChild(j);D.removeChild(x);D.removeChild(q);D.removeChild(k);D.removeChild(N);D.removeChild(R);j=x=q=k=N=R=O}function g(){j.style.display=x.style.display=q.style.display=k.style.display=p.display=v.display="none";setTimeout(ad,100)}function o(){var ae=40;N=K(D);p=N.style;p.backgroundColor=b;p.position="fixed";p.border="8px solid #FBFBFC";p.zIndex=10001;p.left=p.right=p.top=p.bottom=ae+"px";j=K(D);x=K(D);q=K(D);k=K(D);U(ae);R=K(D);v=R.style;var af=K(N),f=af.style;v.background="url("+F+"images/close.png)";v.position="fixed";v.width=v.height="30px";v.zIndex=10002;v.right=v.top=(ae-15)+"px";j.onclick=x.onclick=q.onclick=k.onclick=R.onclick=g;af.id="ci_swf_"+Math.floor(Math.random()*10000);f.backgroundColor=b;f.width=Q;f.height=Q;return af.id}function W(f){if(!H()){return T}var af=0;if(!f){f=S.event}if(f.wheelDelta){af=f.wheelDelta/120}else{if(f.detail){var ae=f.detail;if(Math.abs(ae)<3){af=-ae}else{af=-ae/3}}}if(af){if(H().HMW(af)){if(f.preventDefault){f.preventDefault()}f.returnValue=m;return m}}return T}function A(aj,af,f,ae){var ai={allowscriptaccess:"always",allowfullscreen:"true",wmode:"opaque"};var ag=O;for(var ah in ae){if(ah.toLowerCase()=="backgroundcolor"){ag=ae[ah];if(ag.indexOf("0x")!=-1){ag=ag.replace("0x","#")}ai.bgColor=ag}}if(ag===O){ai.bgColor="#121212"}swfobject.embedSWF(s,aj,af,f,"9.0.0",F+"modules/swfobject/expressInstall.swf",ae,ai,O,u)}function u(f){if(f.success&&f.ref.style){f.ref.style.outline="none"}}function a(f){return(new Function("return "+f+";"))()}function L(af){var ae=0,f=0;if(af.offsetParent){do{ae+=af.offsetLeft;f+=af.offsetTop}while(af=af.offsetParent)}return[ae,f]}function M(){return H().GS()}J.embed=J.embed||{};var P=J.embed;P.APIVersion="1.0";P.addCustomButton=function(ae,f){H().ACB(ae,f)};P.callFunction=function(f,af,ae){if(t[f]!=O){t[f](af,ae)}};P.createWall=function(ag){var af,al,ae="",aj,ah;if(ag.type=="iframe"){aj=c(ag.id);af=ag.width||"700";al=ag.height||"430";for(var ak in ag){if(ag.hasOwnProperty(ak)){ae+=ak+"="+encodeURIComponent(ag[ak])+"&"}}ah=i.createElement("iframe");ah.src=y+"?"+ae+"pageURL="+encodeURIComponent(S.top.location.href);ah.frameBorder=0;ah.style.border="none";ah.style.width=af+"px";ah.style.height=al+"px";aj.appendChild(ah)}else{if(!ag.hasOwnProperty("id")){ag.id=o();ag.lightbox=T;af=Q;al=Q}else{af=ag.width||"700";al=ag.height||"430";var ai=c(ag.id);if(ai.style.width==""){if(af.indexOf("%")==-1){af+="px"}ai.style.width=af}if(ai.style.height==""){if(al.indexOf("%")==-1){al+="px"}ai.style.height=al}var f=K(ai,T);f.id=ag.id+"_swf";ag.id=f.id}A(ag.id,af,al,ag)}};P.deselectItem=function(){H().DI()};P.getBounds=function(){var af=H(),ag=L(af),ae=M();return[ag[0],ag[1],ae[0],ae[1]]};P.getEmbedCode=function(){return H().GEC()};P.getFeedURL=function(){return H().GFU()};P.getFeedURLForClient=function(){return H().GFUFC()};P.getFlashVars=function(){return H().GFV()};P.getItems=function(ai,ag,ak){if(ak){H().GI(ai,ag,E(ak))}else{var ah=H().GI(ai,ag,"");if(ah===O){return ah}if(typeof(ag)==G||ag.toLowerCase()=="json"){var aj;if(typeof(ah)=="string"){return a(ah)}else{if(typeof(ah.length)==G){aj={};for(var ae in ah){if(ah.hasOwnProperty(ae)){aj[ae]=a(ah[ae])}}return aj}else{var f=ah.length;aj=[];for(var af=0;af<f;af++){aj.push(a(ah[af]))}return aj}}}else{return ah}}};P.getPartnerLogo=function(){return H().GPL()};P.getSelectedItem=function(){return a(H().GSI())};P.getSize=M;P.getSWF=function(){return H()};P.initMouseHandlers=function(){if(S.addEventListener){S.addEventListener("DOMMouseScroll",W,m)}else{if(i.attachEvent){i.attachEvent("onmousewheel",W)}}i.onmousewheel=W};P.mouseEvent=function(f){H().M(f)};P.init=function(){Z=m;ab=[];if(B!=O){P.overlay.hide();B=O}};P.selectItemNearby=function(f){H().SIN(f)};P.selectItemByIndex=function(f){H().SIBI(f)};P.selectItemByGUID=function(f){H().SIBG(f)};P.setCallbacks=function(f){H().SC(E(f.firstmousedown),E(f.mousedown),E(f.select),E(f.deselect),E(f.debug),E(f.linkout),E(f.stats),E(f.feedload),E(f.feederror))};P.setFeedContents=function(f){H().SFC(f)};P.setFeedURL=function(f){H().SFU(f)};P.setTitle=function(ae,f){H().ST(ae,f)};P.setMessage=function(af,f,ag,ae){if(!e(af)){af=""}if(!e(f)){f=18}if(!e(ag)){ag=50}if(!e(ae)){ae=50}H().SM(af,f,ag,ae)};P.showSharing=function(f){H().SSH(f)};P.showSpinner=function(f){H().SS(f)};P.useCustomCursor=function(f){H().UCC(f)};P.facebook=function(){return{callMethod:function(ag,f,af,ae){H().fbCM(ag,f,E(af),ae)},fqlQuery:function(f,af,ae){H().fbFQ(f,E(af),ae)},getFriendIDs:function(ae,f){H().fbGFI(E(ae),f)},getFriendsByName:function(ae,ag,f,af){H().fbGFBN(ae,E(ag),f,af)}}}();P.overlay=function(){return{init:function(af,ae,ag,f){Y();X=i.createElement(af);d=X.style;d.position="absolute";d.textAlign="center";d.display="none";if(ag!==""){d.background=ag}if(af=="iframe"){X.frameBorder=0;X.scrolling=f;X.src=ae}else{d.overflow="hidden";X.innerHTML=ae}},show:function(f,ak,ae,ah,ai,aj,af){var ag=parseInt(H().width,10)/aj;if(isNaN(ag)){ag=1}d.border=ai+"px solid #7C7C7C";d.left=(n+f)*ag+"px";d.top=(l+ak)*ag+"px";d.width=(ae*ag)+"px";d.height=(ah*ag)+"px";d.display="";if(X.parentNode!=B){B.appendChild(X)}},hide:function(){d.display="none";var f=X.parentNode;if(e(f)){f.removeChild(X)}}}}();var aa=cooliris.embed.onJSLoaded;if(aa){aa("wall")}})();