/*
 *  © 2000-2010 deviantART, Inc. All rights reserved.
 */
if(!window.AutoExec){AutoExec=[]}DWait.ready(["jms/lib/Base.js",".domready"],function(){window.Keeper={register:function(){var data},deregister:function(){},master_on:function(){var targets,i,client;targets=document.getElementsByTagName("keeper");for(i=0;targets[i];i++){DRE.assert(targets[i].getAttribute("for"));if(!window[targets[i].getAttribute("for")]){continue}client=eval(targets[i].getAttribute("for"));DRE.assert(client&&typeof client.on=="function"&&typeof client.off=="function");client.on.call(client,targets[i].parentNode)}},master_off:function(){}};$j(Keeper.master_on);if(window.DWait){DWait.run("jms/lib/keeper.js")}});TV150View={on:function(A){Keeper.register(this,A);Events.hook(A,"mousemove",TV150View.mouseMove);Events.hook(A,"mouseout",TV150View.mouseOut)},off:function(A){Keeper.deregister(this,A);Events.unhook(A,"mousemove",TV150View.mouseMove);Events.unhook(A,"mouseout",TV150View.mouseOut)},mouseMove:function(G){var A,B,E,D,C,F=G.target||G.srcElement;E=Tree.ancestor(F,"div.tv150");if(!E){return }A=Tree.gets(E,"div.tt-a");B=A.length;C=Math.min(Math.ceil((Math.max(Ruler.document.pointer(G).x-Ruler.document.node(E).x,0.001)/125)*B))-1;Tree.get(E,"div.a-stream").style.left=-(C*205)+"px"},mouseOut:function(B){var A=B.target||B.srcElement;A=Tree.ancestor(A,"div.tv150");if(A){Tree.get(A,"div.a-stream").style.left=0}}};if(window.DWait){DWait.run("jms/lib/tv150view.js")}TV200View={on:function(A){Keeper.register(this,A);Events.hook(A,"mousemove",TV200View.mouseMove);Events.hook(A,"mouseout",TV200View.mouseOut)},off:function(A){Keeper.deregister(this,A);Events.unhook(A,"mousemove",TV200View.mouseMove);Events.unhook(A,"mouseout",TV200View.mouseOut)},mouseMove:function(H){var E,B,A,F,D,C,G=H.target||H.srcElement;F=Tree.ancestor(G,"div.tv200");if(!F){return }E=Tree.get(F,"div.tv200-fazoom");A=Tree.get(E,"img");if(!A){return }B=Math.floor((A.width||A.offsetWidth)/200);C=Math.ceil((Math.max(Ruler.document.pointer(H).x-Ruler.document.node(F).x,0.001)/208)*B)-1;E.style.left=-(C*200)+"px"},mouseOut:function(B){var A=B.target||B.srcElement;A=Tree.ancestor(A,"div.tv200");if(A){Tree.get(A,"div.tv200-fazoom").style.left=0}}};if(window.DWait){DWait.run("jms/lib/tv200view.js")}DWait.count();