(function(){if(navigator.userAgent.match(/Firefox\/3/)||navigator.userAgent.match(/Namoroka\/3/)){var az=PicLensContext,U=function(bc){U.c=U.c||1;U.funcs=U.funcs||{};var bb="f"+U.c;U.funcs[bb]=bc;U.c+=1;return bb;};var aM=function(){var bc=new az();this.version=bc.version;for(var bb in bc){if(typeof bc[bb]==="function"){this[bb]=(function(bd){return function(){return bc[bd].apply(bc,arguments);};})(bb);}}this.invoke=function(bg,bi,bf){var bh=(typeof bg.getParentPropertyGroup!=="undefined"&&bi=="addEventListener");if(bh){for(var bd in bf){if(typeof bf[bd]==="function"){bf[bd]=U(bf[bd]);}}}var be=bc.invoke(bg,bi,bf);if(bg==0&&bi=="get"){var bd=be[0];if(typeof be[0]!="function"&&U.funcs[be[0]]){be[0]=U.funcs[be[0]];}}return be;};};PicLensContext=aM;}function aD(bb){var bc=new function(){function bd(bf,bi){var bh=this;for(var bg=0;bg<2;bg++){var bf=arguments[bg],be=bf?bf.length:0;while(be--){var bj=bf[be];this[bj]=(function(bl,bk){return function(){var bo=arguments,bn=[],bm=bo.length;while(bm--){bn[bm]=bo[bm];}if(bk){bb.invokeAsync(bh,bl,bn);}else{return bb.invoke(bh,bl,bn);}};})(bj,bg);}}}this.buildStub=function(){return new bd(arguments);};this.buildStub2=function(be,bf){return new bd(be,bf);};};bb.registerService("stubBuilder",bc);}function l(bd){var bb;var bl=1,bm={};function bj(bn){return Object.prototype.toString.apply(bn)==="[object Array]";}function bh(bn){return(typeof bn==="object"&&!bj(bn))||(typeof bn==="function");}function bf(bo){if(bj(bo)){var bn=bo.length;while(bn--){bo[bn]=bf(bo[bn]);}}else{if(bh(bo)){bg(bo);}}return bo;}function bc(bo){if(bj(bo)){var bn=bo.length;while(bn--){bo[bn]=bc(bo[bn]);}}else{if(bo&&bo.$ID){return bm[bo.$ID];}}return bo;}function bg(bn){if(bn.$ID){if(!bm[bn.$ID]){bm[bn.$ID]=bn;}bm[bn.$ID].$RC++;return bn.$ID;}bn.$RC=1;bm[bn.$ID=bl]=bn;return bl++;}function be(bn,bo){return bg(bm[bn][bo]);}function bk(bn){o=bm[bn];if(o&&o.$ID&&!--o.$RC){delete bm[o.$ID];}}function bi(bn,bp,bo){bn=bc(bn);bn.$RETVAL=bn.apply(bc(bp),bc(bo));}document.COOLIRIS={x:bi,a:bg,r:bk,af:be};return new function(){for(var bn in bd){if(typeof bd[bn]==="function"){this[bn]=(function(bo){return function(){return bd[bo].apply(bd,arguments);};})(bn);}}this.queryService=function(bo){var bp=bd.queryService(bo);return bp&&bm[bp];};this.registerService=function(bp,bo){bg(bo);bd.registerService(bp,bo);};this.invoke=function(br,bs,bq){var bp;bg(br);bq=bf(bq);try{bp=bd.invoke(br,bs,bq);}finally{var bo=bq.length;while(bo--){bk(bq[bo]&&bq[bo].$ID);}}if(bj(bp)){return bp[0];}else{return bp&&bm[bp];}};};}function W(){if(W.singleton){return W.singleton;}var bb=null;if(typeof PicLensContext!="undefined"){bb=new PicLensContext();if(navigator.userAgent.match(/Firefox\/2/)){bb=l(bb);}}else{try{bb=new ActiveXObject("PicLens.Context");}catch(bc){if(navigator.mimeTypes["application/x-cooliris"]){bb=document.createElement("object");bb.style.width="0px";bb.style.height="0px";bb.type="application/x-cooliris";document.documentElement.appendChild(bb);}}}aD(bb);return(W.singleton=bb);}var H=W();function a5(bc,bb){bb(bc);bc=bc.firstChild;while(bc){a5(bc,bb);bc=bc.nextSibling;}}function af(be,bd){if(!be.className){return false;}var bc=be.className.split(" ");var bb=bc.length;while(bb--){if(bc[bb]===bd){return true;}}return false;}function T(be,bc){var bd=[],bb=function(bf){if(af(bf,bc)){bd.push(bf);}};a5(be,bb);return bd;}function aT(bf,bd,bc){var bg=bf.getElementsByTagName(bc),bb=bg.length,be=[];while(bb--){if(af(bg[bb],bd)){be.push(bg[bb]);}}return be;}function N(bd,bc,bf){var be=bd.getElementsByTagName(bc);var bb=be.length;while(bb--){if(be[bb].id==bf){return be[bb];}}return null;}function S(bd,be){var bc=[],bb=function(bf){if(bf.getAttribute&&bf.getAttribute("id")===be){bc.push(bf);}};a5(bd,bb);return bc[0]?bc[0]:null;}var aH=/\<[^\>]*\>/g;var ar=new (function(){var bb=window;var bd=bb.document;var bc=navigator.userAgent.toLowerCase();this.ie=!!bb.VBArray;this.ie6=(this.ie&&bd.implementation);this.ie7=(this.ie&&bb.XMLHttpRequest);this.gecko=(bb.netscape&&!this.opera);this.safari=bc.indexOf("safari")+1;this.khtml=(this.safari||bc.indexOf("konqueror")+1);this.chrome=~bc.indexOf("chrome");});function a0(be,bd){var bc=be.getElementsByTagName(bd),bb=bc.length;while(bb--){bc[bb].parentNode.removeChild(bc[bb]);}}function aO(bd){var bc=bd.getElementsByTagName("a"),bb=bc.length;while(bb--){bc[bb].href=bc[bb].href;}}function aP(bc,bb){if(!bb){bb=document.createElement("div");}if(ar.ie){bb.innerHTML="<div>"+bc;}else{bb.innerHTML=bc;}return bb;}function ax(bb){var bc={x:0,y:0,width:bb.offsetWidth,height:bb.offsetHeight};while(bb){bc.x+=bb.offsetLeft;bc.y+=bb.offsetTop;bb=bb.offsetParent;}return bc;}function aq(){var bd=document.getElementsByTagName("head");if(bd.length){var bc=bd[0].getElementsByTagName("link");var bb=bc.length;while(bb-->0){var be=bc[bb];if(be&&be.rel&&(be.rel.indexOf("icon")!=-1)&&be.href){return be.href;}}}return document.domain+"/favicon.ico";}function I(){try{var bc=new DOMParser();this.parseFromString=function(bd){return bc.parseFromString(bd,"text/xml");};}catch(bb){this.parseFromString=function(be){try{var bd=new ActiveXObject("Microsoft.XMLDOM");bd.async="false";if(bd.loadXML(be)){return bd;}else{return;}}catch(bf){}};}}function r(){if(!r.index){r.index=0;}return"SlNBd2Vzb21lbmVzc0J5UEpKViZOVkU"+r.index++;}function R(bc){if(!bc.applyCallback){var bb=r();bc.applyCallback="document."+bb;(document[bb]=function(bf,bd){var be=bc[bf];delete bc.$returnValue;bc.$returnValue=be&&be.apply(bc,bd);}).toString=function(){};}}function a8(bd){if(bd.applyCallback){var bb=bd.applyCallback.replace("document.","");try{delete document[bb];}catch(bc){document[bb]=undefined;}}}var z=window["eval"];function ba(be,bg,bf){function bc(bi){var bh=bi.href,bj=bi.getAttribute("href");if(bg&&bh&&bj!="#"&&bg(bh)){bi.href=u+bh;}else{if(bi.parentNode&&(bf||!bh||bj=="#")){var bk=document.createElement("span");bk.innerHTML=bi.innerHTML;bi.parentNode.replaceChild(bk,bi);}}}if(be){if(be.tagName==="A"){bc(be);}var bd=be.getElementsByTagName("a"),bb=bd.length;while(bb--){bc(bd[bb]);}}return be;}function aE(bf,be){var bg=ax(bf),bc=ax(be),bd=aK(bg),bb=bg.x-bc.x,bh=(bg.y-bc.y)+(bg.height-bd);return[bb,bh,bd,bd];}function aK(bh){var bf=36,be=28,bd=35,bg=20,bb=bh.height/2,bi=bh.width/2,bc=bb<bi?bb:bi;if(bc<bd){bd=bc>bg?bc:bg;}return bd;}function V(bb){return encodeURIComponent(bb||"");}function f(bb){return decodeURIComponent(bb?bb.replace(/\+/g,"%20"):"");}function J(bc){bc=bc||location.search;bc=bc.replace("?","");var bf={},bg=bc.split("&"),bd=0,be=bg.length;for(;bd<be;bd++){var bb=bg[bd].split("=");if(bb.length===2){bf[f(bb[0])]=f(bb[1]);}else{if(bb.length===1){bf[f(bb[0])]="";}}}return bf;}function y(bc){var bd="";for(var bb in bc){if(bc.hasOwnProperty(bb)&&bb){bd+=(bd?"&":"?")+V(bb)+"="+V(""+bc[bb]);}}return bd;}function B(bb){bb=bb||"";bb+="";return bb.replace(/\&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\'/g,"&apos;").replace(/\"/g,"&quot;");}function ay(bb){bb=bb||"";bb+="";return bb.replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&");}function F(bc){if(bc){var bd=document.createElement("div");if(bc.parentNode){bd.appendChild(bc.cloneNode(true));return bd.innerHTML;}else{bd.appendChild(bc);var bb=bd.innerHTML;bd.removeChild(bc);return bb;}}return"";}var ah="http://www.w3.org/1999/xhtml";function G(bb){return bb&&bb.replace(/^<(\w+)\s*(.*?)/,'<$1 xmlns="'+ah+'" $2');}var aI=/(&(quot|amp|gt|lt);)|(&(\w+);)/g;var a3="$1";var aB=/<([^"<>]+?)=(\w+)([^"<>]*?)\>/g;var e='<$1="$2"$3>';var ag=/(<.*?\s+class=)([^\s>]+)(\s|>)/g;var an='$1"$2"$3';var E=/(<.*?\s+id=)([^\s>]+)(\s|>)/g;var aC='$1"$2"$3';var a6=/\<!--.*?--\>/ig;function Z(bb){if(ar.ie){return G(F(bb).replace(a6,"").replace(/<br>/ig,"<br/>").replace(aI,a3).replace(ag,an).replace(E,aC).replace(/<\/?\s*(\S+)\s*/g,function(bc){return bc.toLowerCase();}));}else{return G(F(bb).replace(a6,"").replace(/<br>/ig,"<br/>").replace(aI,a3).replace(aB,e));}}function Q(bb){var bc=bb.xml||(new XMLSerializer()).serializeToString(bb);return G(bc);}var j={a:true,p:true,br:true,span:true,b:true,i:true,u:true};var a1=/<\/?(\w+)(\s[^>]*)?>/g;function aG(bb){if(j[bb]){return true;}else{return false;}}function m(bc){if(!bc){return;}var bb=function(be,bd){if(aG(bd)){return be;}else{return"";}};return bc.replace(a1,bb);}var aL={tr:"p",li:"p",dt:"p",dd:"p",h1:"p",h2:"p",h3:"p",h4:"p",h5:"p",h6:"p",strong:"b",div:"p"};var aY={th:" ",td:" ",hr:G("<br/>")};var h=/<(\/)?(\w+)(\s[^>]*)?>/g;function aJ(bc){if(!bc){return;}var bb=function(bi,bf,be,bd){if(aL[be]){var bh=bf?bf:"";var bg=bd?bd:"";return"<"+bh+aL[be]+bg+">";}else{if(aY[be]){return aY[be];}else{return bi;}}};return bc.replace(h,bb);}function au(be){var bf=new I();var bd=bf.parseFromString(be);if(bd){return be;}var bc=function(bh,bg){if(bg=="br/"){return bh;}else{return"";}};var bb='<span xmlns="'+ah+'">'+be.replace(/<\/?p[^>]*>/g,"<br/>").replace(/<([^>]*)>/g,bc)+"</span>";bd=bf.parseFromString(bb);if(bd){return bb;}return"";}function g(bb){return Object.prototype.toString.apply(bb)==="[object Array]";}function w(bb,bc){bb.constructor.prototype[bc].call(bb);}function aw(be,bc){var bd={},bb=true;if(typeof be==="object"){for(var bf in be){bd[bf]=1;if(typeof be[bf]==="object"){bb=bb&&aw(be[bf],bc[bf]||{});}else{bb=bb&&(be[bf]===bc[bf]);}}for(var bf in bc){if(!bd[bf]){bb=false;}}}else{bb=(be===bc);}return bb;}function aA(bd,bc){bc=bc||(g(bd)?[]:{});for(var bb in bd){if(typeof bd[bb]==="object"){bc[bb]=aA(bd[bb]);}bc[bb]=bd[bb];}return bc;}function d(bd,bc){if(!bd||!bc){return bd;}for(var bb in bc){bd[bb]=bc[bb];}return bd;}function am(bd,bc){if(!bc||!bd){return bc;}for(var bb in bc){if(!bd.hasOwnProperty(bc[bb])){bd[bb]=bc[bb];}}return bd;}function a2(be,bd){var bb={};for(var bc=0;bc<bd.length;bc++){if(be.hasOwnProperty(bd[bc])){bb[bd[bc]]=be[bd[bc]];}}return bb;}function c(bd,bb){var bc;if(bd.attributes){bc=bd.attributes[bb];return bc&&bc.nodeValue;}else{return bd.getAttribute(bb);}}function ai(bc,bb){return window.setTimeout(bc,bb);}function aj(bc,bb){return window.setInterval(bc,bb);}var v=(function(){var bb=0;return function(){return"e"+ ++bb;};})(),a9=v(),aW=v();function O(){if(!O.instance){this.events={};O.instance=this;}return O.instance;}function al(){return O.instance||new O();}O.prototype.addListener=function(bb,bd){var bc=this.events[bb]||(this.events[bb]=[]);bc.unshift(bd);};O.prototype.removeListener=function(bb,be){var bd=this.events[bb],bc=bd.length;while(bc--){var bf=bd[bc];if(bf===be){bd.splice(bc,1);return;}}};O.prototype.fire=function(bc,bb){var be=this.events[bc]||[],bd=be.length;if(bb!==undefined&&!g(bb)){bb=[bb];}while(bd--){if(typeof be[bd]==="function"){be[bd].apply(null,bb||[]);}}};var av=["load","DOMNodeInserted"],k,L="on";function ad(bd,bc,bb){bc=bc||document;bb=bb||av;if(bc.addEventListener){k=bb.length;while(k--){bc.addEventListener(bb[k],bd,true);}}else{if(bc.attachEvent){k=bb.length;while(k--){bc.attachEvent(L+bb[k],bd);}}}}function aX(bd,bc,bb){bc=bc||document;bb=bb||av;if(bc.addEventListener){k=bb.length;while(k--){bc.removeEventListener(bb[k],bd,true);}}else{if(bc.attachEvent){k=bb.length;while(k--){bc.detachEvent(L+bb[k],bd);}}}}var ak=0,D=80,a7=16;if(ar.ie){ak=50;}function q(){}q.prototype.initialize=function(){var bc=this,bb=function(){bc.reScan();};ad(bb);this.eventListeners=[];};q.prototype.register=function(){H.registerService("pageHandler",this);this.raiseEvent("launchableChanged",this.canLaunch);};q.prototype.raiseEvent=function(bc,bb){al().fire(bc,bb);};q.prototype.addEventListener=function(bb,bc){al().addListener(bb,bc);};q.prototype.dispose=function(){};q.prototype.feedForUrl=function(bb){};q.prototype.parseContentFromDOM=function(){};q.prototype.reScan=function(){var bc=this,bb=function(){bc.domScannerTimer=null;bc.parseContentFromDOM();var bd=bc.canLaunch;bc.canLaunch=(!!bc.feedForUrl());if(bc.canLaunch!=bd){bc.raiseEvent("launchableChanged",bc.canLaunch);}};if(!this.domScannerTimer){this.domScannerTimer=ai(bb,250);}};q.prototype.contentItemHandlerForUrl=function(bb){return this.propertyGroupHandlerForUrl(bb);};q.prototype.propertyGroupHandlerForUrl=function(bb){};q.prototype.canLaunch=function(){return !!this.elements.length;};var u="jsfeed:",x,at=(function(){var bd=/(((\w+:?)\/\/)([^\/:]*)(:(\d*))?)?([^#?]*)(\?([^#]*))?(#!?([^?]*)(\?(.*))?)?/,bb=/^jsfeed:/i;x=function(be){return be.replace(bb,"");};var bc=function(bf,be){this.parseURI(bf||location.href,be);};bc.prototype.parseURI=function(bg,be){if(bg instanceof bc){return aA(bg,this);}var bf=x(bg).match(bd);this.hash=bf[10];this.host=bf[4];this.hostname=bf[4];this.protocol=bf[3];this.href=bf[0];if(be){this.pathname=(bf[11]||bf[7])||"";this.search=(bf[12]||bf[8])||"";this.hash="";}else{this.pathname=bf[7];this.search=bf[8];}this.queryParameters=J(this.search||"?");return this;};bc.prototype.implodeQueryString=function(){this.search=y(this.queryParameters);return this.search;};bc.prototype.toString=function(){var be="";this.protocol&&(be+=this.protocol+"//");this.host&&(be+=this.host);this.port&&(be+=":"+this.port);if(this.host&&!this.pathname){be+="/";}this.pathname&&(be+=this.pathname);this.implodeQueryString();this.search&&(be+=this.search);this.hash&&(be+=this.hash);return be;};bc.prototype.toStringWithFragment=function(){return this.toString()+(this.hash||"");};bc.prototype.equals=function(be){return this.protocol===be.protocol&&this.host===be.host&&this.hostname===be.hostname&&this.port===be.port&&this.pathname===be.pathname&&(this.search===be.search||aw(this.queryParameters,be.queryParameters))&&(this.hash===be.hash||aw(J(this.hash.replace("#","")),J(be.hash.replace("#",""))));};return bc;})();function aV(bc,bb){if(bc&&typeof bb==="undefined"){if(typeof bc.begin!=="undefined"){this.begin=bc.begin;this.end=bc.end;}else{this.begin=bc[0];this.end=bc[1];}}else{this.begin=bc||0;this.end=bb||0;}if(this.begin>this.end){this.begin=this.end=0;}return this;}aV.prototype={contains:function(bb){return(bb.begin>=this.begin&&bb.end<=this.end);},intersect:function(bc){var bd=bc.begin>this.begin?bc.begin:this.begin;var bb=bc.end<this.end?bc.end:this.end;return(bb>=bd)?new aV(bd,bb):new aV();},union:function(bb){var bc=new aV(bb.begin<this.begin?bb.begin:this.begin,bb.end>this.end?bb.end:this.end);return(bc.end>=bc.begin)?bc:new aV();},empty:function(bb){return this.begin==this.end;},size:function(){return this.end-this.begin;},toString:function(){return"["+this.begin+","+this.end+")";}};aV.empty=new aV(0,0);var A=new function(){var bc=[],bh=0,bg;function bd(){return(new Date).getTime();}function bf(){if(bc.length){bg=bd()+ak;setTimeout(bb,ak);}}function be(bi){if(bi<=0){return a7;}else{return Math.min(D,a7+bi);}}function bb(){var bk=bd(),bn=bk-bg,bm=be(bn),bj;++bh;var bi=bd(),bl=0;while((bd()-bk<bm)&&(bj=bc.shift())){try{bj();}catch(bo){}bl++;}--bh;bf(bk);}this.run=function(bi){bc.push(bi);if(bh==0){bg=bd();bb();}};};function aU(){}aU.prototype.initialize=function(){this.eventListeners={};this.weblink=location.href;this.uri;this.rangeBounds=new aV(-65536,65535);this.rangeLoaded=new aV;this.rangeNeeded=new aV;this.ITEMS_PER_REQUEST=NaN;return this;};aU.prototype.dispose=function(){al().fire(aW);};aU.prototype.loadRange=function(bb){};aU.prototype.addItem=function(bb,bc){this.addItems([bb],bc);};aU.prototype.addItems=function(bd,bb){var bc;if(bb){bc=new aV(this.rangeLoaded.begin-bd.length,this.rangeLoaded.begin);}else{bc=new aV(this.rangeLoaded.end,this.rangeLoaded.end+bd.length);}this.rangeLoaded=this.rangeLoaded.union(bc);this.rangeBounds.end=Math.round(this.rangeBounds.end);this.raiseRangeLoadedEvent({range:bc,bounds:this.rangeBounds,items:bd});};aU.prototype.raiseEvent=function(bc,bb){try{var bd=this.eventListeners[bc];if(bd){bd(bb);}}catch(be){}};aU.prototype.raiseRangeLoadedEvent=function(bd){var bc={begin:{$t:""+bd.range.begin},end:{$t:""+bd.range.end}},bg={begin:{$t:""+bd.bounds.begin},end:{$t:""+bd.bounds.end}},bb=bd.items,bf=(((bb[0]&&bb[0].feedUrl)&&("<feedUrl>"+B(bb[0].feedUrl)+"</feedUrl>"))||""),bh="<range>"+bf+t("range",bc)+t("rangeBounds",bg);for(var be=0;bb&&be<bb.length;be++){bh+=bb[be].xml;}bh+="</range>";if(this.eventListeners.rangeLoaded2){this.raiseEvent("rangeLoaded2",bh);}else{this.raiseEvent("rangeLoaded",bd);}};aU.prototype.parseComplete=function(){};aU.prototype.parseResponseWithContinuation=function(bb){var be=this,bf=[],bd=false,bg=function(){if(bb.EOF){if(bd){be.rangeBounds.begin=be.rangeLoaded.begin;}else{be.rangeBounds.end=be.rangeLoaded.end;}be.setBounds();}be.parseComplete();},bh=function(){return bb.moveNext();},bc=function(){bg();},bj=function(bk){be.addItem(bk,bd);};if(this.rangeToLoad.begin<0){bd=true;if(bb.movePrev){bb.moveLast();bh=function(){return bb.movePrev();};}else{bj=function(bk){bf.push(bk);};bc=function(){be.addItems(bf,bd);bg();};}}function bi(){try{if(bh()){bj(bb.current);A.run(bi);}else{bc();}}catch(bk){be.setBounds(be.rangeLoaded);be.parseComplete();}}A.run(bi);};aU.prototype.setBounds=function(bb){bb&&(this.rangeBounds=bb);this.raiseRangeLoadedEvent({range:aV.empty,items:[],bounds:this.rangeBounds});};aU.prototype.addEventListener=function(bb,bc){this.eventListeners[bb]=bc;};aU.prototype.noResultsLoaded=function(){this.setBounds(aV.empty);};aU.prototype.setPropertyGroup=function(bb){this.propertyGroup=bb;if(bb){var bc=this;bb.addEventListener(function(){bc.propertyChanged.apply(bc,arguments);});bb.setCallMethodDelegate(this);}this.propertyGroupConnected();};aU.prototype.propertyGroupConnected=function(){};aU.prototype.propertyChanged=function(bb,bc,bd,be){};function C(){}C.prototype=new aU();C.prototype.parseResponse=function(bc,bb){this.parseComplete();};C.prototype.parseComplete=function(){var bb=this;A.run(function(){bb.loadContinuation();});};C.prototype.asyncResponse=function(bb){this.parseResponse(bb);};C.prototype.asyncResponseError=function(bb){this.noResultsLoaded();};C.prototype.loadContinuation=function(){var bc=this.rangeNeeded.intersect(this.rangeBounds);var bd=this.rangeLoaded.begin-bc.begin;var bb=bc.end-this.rangeLoaded.end;if(bb>=bd&&bb>0){bc.begin=this.rangeLoaded.end;bc.end=Math.min(this.rangeLoaded.end+this.ITEMS_PER_REQUEST,this.rangeBounds.end);}else{if(bd>bb&&bd>0){bc.begin=Math.max(this.rangeLoaded.begin-this.ITEMS_PER_REQUEST,this.rangeBounds.begin);bc.end=this.rangeLoaded.begin;}else{bc.begin=0;bc.end=0;}}if(bc.empty()){this.loading=false;return;}this.rangeToLoad=bc;this.makeAsyncRequest(bc);};C.prototype.startLoading=function(){this.loadContinuation();};C.prototype.makeAsyncRequest=function(bb){};C.prototype.loadRange=function(bb){if(this.rangeLoaded.empty()){al().fire(a9);}bb=new aV(bb);bb=this.rangeBounds.intersect(bb);if(this.rangeLoaded.contains(bb)||this.rangeNeeded.contains(bb)){return;}this.rangeNeeded=bb;if(!this.loading){this.loading=true;this.startLoading();}};function b(bd,bb){var bc=ab(bd,bb);return bc&&bc.href;}function ab(bf,bb){var be=bf.atom$link||bf.link,bg=g(be)?be:[be],bc=bg.length,bd;while(bd=bg[--bc]){if(bd.rel===bb){return bd;}}return null;}var aN="http://www.w3.org/2005/Atom";function Y(bc,bb){return{xmlns:aN,rel:bb||"",href:bc};}function ap(){var bd=H.queryService("experiments"),bg=bd.getExperimentValue("xslt-cache-buster");if(bg){return bg;}else{var bc=document.getElementsByTagName("head");if(bc.length){var bf=bc[0].getElementsByTagName("script"),be=bf.length;while(--be){var bh=bf[be],bb=bh.src&&bh.src.match(/js\.cooliris\.com\/.+\/feeds\/.+-?(.*)?\.js\?(\d+)/);if(bb){return bb[1]||bb[2];}}}}return(new Date()).getTime();}function p(bb){return Y(bb+"?"+ap(),"stylesheet");}var P="http://schemas.google.com/g/2005";function M(bb,bc){return{xmlns:P,name:bb,value:bc};}var ae=/(https?:\/\/([.]|[^\s])*)[\s$]?/;function aS(bb){bb=bb||"";return bb.replace("\r\n","<html:br />").replace("\n","<html:br />").replace(ae,'<html:a href="$1">$1</a>');}function i(bc,bb){bc=String(bc);bb=bb||2;while(bc.length<bb){bc="0"+bc;}return bc;}function K(bb){var bf=parseInt(bb,10);var bd=bf%60;var be=Math.floor(bf/60)%60;var bc=Math.floor(bf/3600);time=i(be)+":"+i(bd);if(bc){time=i(bc)+":"+time;}return time;}function s(bb){return bb.replace("$",":");}function aR(be){var bc="";for(var bb in be){var bd=be[bb];if(bb.indexOf("xmlns$")===0){bc+=" "+s(bb)+'="'+B(bd)+'"';}}return bc;}function t(bb,bd,bg){var bf=false,bj=s(bb),bk="<"+bj;for(var bh in bd){var bi=bd[bh];if(typeof bi!="object"){if(bh=="$t"||bh=="$xml"){bf=true;}else{bk+=" "+s(bh)+'="'+B(bi)+'"';}}else{bf=true;}}if(bg){bk+=bg;}if(bf){bk+=">";for(var bh in bd){var bi=bd[bh];if(typeof bi==="object"){var bc=bi.length;if(typeof bc!=="undefined"){for(var be=0;be<bc;be++){bk+=t(bh,bi[be]);}}else{bk+=t(bh,bi);}}else{if(bh=="$t"){bk+=B(bi);}else{if(bh=="$xml"){bk+=bi;}}}}bk+="</"+bj+">";}else{bk+=" />";}return bk;}function a4(bb,bd,bc){return t(bb,bd,bc);}function X(){}function ac(bd,bc){if(bc){bc=" "+bc;}else{bc=' xmlns:media="http://search.yahoo.com/mrss/"';}var bb={xml:a4("item",bd,bc)};if(bd.feedUrl){bb.feedUrl=bd.feedUrl.$t;}return bb;}function n(bb,bd){var be=[];for(var bc=0;bc<bb.length;bc++){be.push(ac(bb[bc],bd));}return be;}function a(bc,bb){this.status=bc.status;this.statusText=bc.statusText;this.responseXML=bc.responseXML;this.responseText=bc.responseText;this.responseBody=bc.responseBody;this.responseStream=bc.responseStream;this.readyState=bc.readyState;this.uri=bb;this.request=bc;return this;}function aZ(bb,bd){var bc;if(window.XMLHttpRequest){bc=new XMLHttpRequest();}else{if(window.ActiveXObject){bc=new ActiveXObject("Microsoft.XMLHTTP");}}if(bc){bc.open("GET",x(bb),true);bc.onreadystatechange=function(){if(bc.readyState===4){bd(new a(bc,bb));}};bc.send(null);}}function ao(be){this.initialize();this.parsedUri=be;this.uri=be.toString();var bc="http://js.cooliris.com/static/images/site.",bb="rss.png";if(cooliris&&cooliris.embed){var bd=cooliris.embed.getFeedURL();if(bd.indexOf("flickr.com")!=-1){bb="flickr.png";}else{if(bd.indexOf("picasaweb.google.com")!=-1){bb="picasa.png";}else{if(bd.indexOf("youtube.com")!=-1){bb="youtube.png";}else{if(bd.indexOf("facebook.com")!=-1){bb="facebook.png";}else{if(cooliris.embed.getPartnerLogo()!=""){bc=cooliris.embed.getPartnerLogo();bb="";}}}}}}this.logo=bc+bb;}ao.prototype=new C();ao.prototype.initialize=function(){w(this,"initialize");this.startIndex=0;this.skipCount=0;this.pageOffset=0;this.ITEMS_PER_REQUEST=40;this.rangeBounds=new aV(-10000,10000);this.parser=new aa();};ao.prototype.makeAsyncRequest=function(bd){if(!cooliris||!cooliris.embed){return;}var bb=this;var bc=function(be,bf){bb.parser.currIndex=0;bb.parser.items=be;bb.parser.EOF=bf;bb.parser.rangeToLoad=bd;bb.parseResponseWithContinuation(bb.parser);};cooliris.embed.getItems({from:bd.begin,to:bd.end-1},"json",bc);};function aa(){var bb=this;this.moveNext=function(){if(bb.currIndex==bb.items.length){return false;}var bd=bb.items[bb.currIndex];var bc={guid:{$t:bd.guid},link:[{$t:bd.link}],title:{$t:bd.title},description:{$t:bd.description},media$thumbnail:{url:bd.thumb},media$content:{url:bd.content}};if(bd.content.indexOf("www.youtube.com")!=-1){var be=bc.media$content;be.url=be.url+"&autoplay=1";be.type="application/x-shockwave-flash";be.width="1068";be.height="640";}bb.current=ac(bc);bb.currIndex++;return true;};}function aQ(){this.initialize();}aQ.prototype=new q();aQ.prototype.initialize=function(){w(this,"initialize");};aQ.prototype.feedForUrl=function(bc){var bb=new at(bc);var bd=new at();if(bb.equals(bd)){return new ao(bb);}};aQ.prototype.canLaunch=function(){return true;};var aF=new aQ();aF.register();})();