Function.prototype.bindEventListener=function(_6){var _7=this,args=Array.prototype.slice.call(arguments,1);return function(_8){return _7.apply(_6,[_8||window.event].concat(args));};};Array.prototype.walk=function(_11,_12){var _13=true,doBind=typeof _12!=="undefined";for(var ii=0,len=this.length;ii<len;ii++){if((doBind?_11.call(_12,this[ii]):_11(this[ii]))===false){_13=false;}}return _13;};if(!Array.prototype.push){Array.prototype.push=function(_16){this[this.length]=_16;};}Array.prototype.append=Array.prototype.push;var URLLib={QUERY_START:"?",QUERY_DELIM:"&",NVPAIR_DELIM:"=",qsCache:{},addToCache:function(url,_54,_55){if(!this.qsCache[url]){this.qsCache[url]={};}return this.qsCache[url][_54]=_55;}};String.prototype.getUrlAttribute=function(_35){var _36=URLLib.qsCache[this];if(_36&&typeof _36[_35]!=="undefined"){return _36[_35];}var _37=this.indexOf(URLLib.QUERY_START);if(_37===-1){return null;}var ls=this.substring(_37);var len=ls.length;if(len>0){var _39=URLLib.QUERY_DELIM;var _40=ls.indexOf(_35+URLLib.NVPAIR_DELIM);if(_40>-1&&(_40===1||ls.charAt(_40-1)===_39)){_40+=_35.length+1;var _41=ls.indexOf(_39,_40);return URLLib.addToCache(this,_35,decodeURIComponent(ls.substring(_40,(_41!==-1)?_41:len)));}}return URLLib.addToCache(this,_35,null);};String.prototype.setUrlAttribute=function(_42,_43){var _44=this;if(_43===false){_43="false";}else{if(_43===0){_43="0";}}var _45=_44.getUrlAttribute(_42);if(_45){return _44.replace(_42+URLLib.NVPAIR_DELIM+encodeURIComponent(_45),_42+URLLib.NVPAIR_DELIM+encodeURIComponent(_43||""));}return _44+=((_44.indexOf(URLLib.QUERY_START)==-1)?URLLib.QUERY_START:URLLib.QUERY_DELIM)+_42+URLLib.NVPAIR_DELIM+encodeURIComponent(_43||"");};String.prototype.setUrlAttributes=function(_46){var _47=this;for(var _48 in _46){_47=_47.setUrlAttribute(_48,_46[_48]);}return _47;};var dom={isReady:false};var EventDispatcher={elements:[],eventCounter:1,EVENT_TYPE_PREFIX:"on",addEvent:function(_2,_3,_4){EventDispatcher.callCounter++;if(!_4.__eid){_4.__eid=this.eventCounter++;}if(!_2.__events){_2.__events={};this.elements[this.elements.length]=_2;}var _5=_2.__events[_3];var _6=this.EVENT_TYPE_PREFIX+_3;if(!_5){_5=_2.__events[_3]={};if(_2[_6]){_5[0]=_2[_6];}}_2[_6]=EventDispatcher.handleEvent;_5[_4.__eid]=_4;_2.notifyEventListenerAdded&&_2.notifyEventListenerAdded(_3);return _4.__eid;},removeEvent:function(_7,_8,_9){var eid=(typeof _9==="function")?_9.__eid:_9;if(_7.__events&&_7.__events[_8]&&eid){delete _7.__events[_8][eid];this.clearEventHandlerSafely(_7,_8);return true;}else{return false;}},clearEventHandlerSafely:function(_11,_12){var _13=false;var _14=_11.__events[_12];for(var ii in _14){if(_14[ii]){return false;}}_11[this.EVENT_TYPE_PREFIX+_12]=null;return true;},handleEvent:function(_16){_16=_16||window.event;var _17=true;var _18=this.__events[_16.type];for(var ii in _18){_17=_18[ii].apply(this,[_16])!==false&&_17;}if(this===window&&_16.types==="unload"){EventDispatcher.cleanupAll();}return _17;}};function domReady(){if(arguments.callee.done){return;}arguments.callee.done=dom.isReady=true;dom.onready&&dom.onready({type:"ready"});dom.onafterready&&dom.onafterready({type:"afterready"});}EventDispatcher.addEvent(window,"unload",function(){});EventDispatcher.addEvent(window,"load",domReady);if(!window.midtown){window.midtown={};}if(!midtown.ProductDateLookup){}if(!midtown.ElementWrapper){var $$=function(_1){return new midtown.ElementWrapper(_1);};midtown.ElementWrapper=function(){var _2={TOP:"t",MIDDLE:"m",BOTTOM:"b",LEFT:"l",CENTER:"c",RIGHT:"r"},_ALIGN={TOP_LEFT:[_2.TOP,_2.LEFT],TOP_CENTER:[_2.TOP,_2.CENTER],TOP_RIGHT:[_2.TOP,_2.RIGHT],MIDDLE_LEFT:[_2.MIDDLE,_2.LEFT],MIDDLE_CENTER:[_2.MIDDLE,_2.CENTER],MIDDLE_RIGHT:[_2.MIDDLE,_2.RIGHT],BOTTOM_LEFT:[_2.BOTTOM,_2.LEFT],BOTTOM_CENTER:[_2.BOTTOM,_2.CENTER],BOTTOM_RIGHT:[_2.BOTTOM,_2.RIGHT]},_ID_PREFIX="autoId";var _3=0;var _4=function(_5){var _6=_5.indexOf("-");return (_6!==-1)?_5.substr(0,_6)+_5.substr(_6+1,1).toUpperCase()+_5.substr(_6+2):_5;};var _7=function(_8,_9,_10){var _11=null;if(_10){_11=this.enableDisplay(_8);}var _12=_8.offsetWidth||0;if(_10){this.resetDisplay(_11,_8);}return _12;};var _13=function(_14){if(_14&&_14.nodeType===1){this.id=this.ensureId(_14);}else{this.id=_14;}};_13.getNewId=function(){return _ID_PREFIX+this.getUniqueIdSuffix();};_13.getUniqueIdSuffix=function(){return _3++;};_13.prototype={NODETYPE_TEXT:3,ALIGN:_ALIGN,_getElement:function(_15){return (_15)?_15:$(this.id);},getElement:function(id){var id=id||this.id;return (typeof id==="string")?$(id):id;},getId:function(){return this.id;},ensureId:function(_17){return (!_17.id)?(_17.id=_13.getNewId()):_17.id;},enableDisplay:function(_18){_18=this._getElement(_18);var _19=this.getComputedStyle("display",_18);if(!_19||_19==="none"){var _20=_18.style,origStyles={visibility:_20.visibility,position:_20.position,display:_20.display};_20.visibility="hidden";_20.position="absolute";_20.display="block";return origStyles;}return null;},resetDisplay:function(_21,_22){if(_21){this.setStyles(_21,_22);}},getDimensions:function(_23,_24){_23=this._getElement(_23);var _25=null;if(_24){_25=this.enableDisplay(_23);}var _26={width:this.getWidth(_23),height:this.getHeight(_23)};if(_24){this.resetDisplay(_25,_23);}return _26;},getWidth:function(_27,_28){return this.getProperty("offsetWidth",0,_28,_27);},getHeight:function(_29,_30){return this.getProperty("offsetHeight",0,_30,_29);},getProperty:function(_31,_32,_33,_34){_34=this._getElement(_34);var _35=null;if(_33){_35=this.enableDisplay(_34);}var _36=(_31 in _34)?_34[_31]:_32;if(_33){this.resetDisplay(_35,_34);}return _36;},getCoordinates:function(_37){_37=this._getElement(_37);var x=0,y=0,docElement=document.documentElement;if(_37.offsetParent&&_37.offsetParent!==docElement){do{x+=_37.offsetLeft;y+=_37.offsetTop;}while((_37=_37.offsetParent)&&_37!==docElement);}else{if(_37.x){x=_37.x||0;y=_37.y||0;}}return {x:x,y:y};},getRelativeCoordinates:function(_39,_40){ _40=this._getElement(_40);var x=0,y=0;if(_40!==_39){var _41=document.documentElement;if(_40.offsetParent&&_40.offsetParent!==_41){do{x+=_40.offsetLeft;y+=_40.offsetTop;}while((_40=_40.offsetParent)&&_40!==_39&&_40!==_41);}else{if(_40.x){x=(_40.x||0)-(_39.x||0);y=(_40.y||0)-(_39.y||0);}}}return {x:x,y:y};},getPosition:function(_42){_42=this._getElement(_42);var _43=this.getCoordinates(_42),dimensions=this.getDimensions(_42);return {left:_43.x,right:_43.x+dimensions.width,top:_43.y,bottom:_43.y+dimensions.height};},getLeft:function(_44){return this.getCoordinates(_44).x;},getRight:function(_45){_45=this._getElement(_45);return this.getLeft(_45)+this.getWidth(_45);},getTop:function(_46){return this.getCoordinates(_46).y;},getBottom:function(_47){_47=this._getElement(_47);return this.getTop(_47)+this.getHeight(_47);},setStyles:function(_65,_66){var _67=this._getElement(_66).style,transformName=_4,value;for(property in _65){value=_65[property];if(value!==null){_67[transformName(property)]=value;}}},addClass:function(_73,_74){_74=this._getElement(_74);return _74.className=_74.className.addClass(_73);}};return _13;}();}var DOMWalker={subs:{},run:function(){for(var _3 in this.subs){var _4=document.getElementsByTagName(_3);var _5=this.subs[_3];var le=_4.length;var lc=_5.length;for(var ii=0;ii<le;ii++){for(var jj=0;jj<lc;jj++){_5[jj](_4[ii],_3);}}}this.clearSubs();},clearSubs:function(){for(var tag in this.subs){delete this.subs[tag];}}};EventDispatcher.addEvent(dom,"afterready",DOMWalker.run.bindEventListener(DOMWalker));var UserAgent={matches:{},supports:{},uaDefs:{mac:/(\bmac.os\b|\bmac_)/i,windows:/\b(win95|win98|win 9x|winnt|windows)\b/i,x11:/\bx11\b/i,nix:/\b(unix|linux|x11|bsd)\b/i,vista:/NT\s*6.0/,xp:/NT\s*5\.1/,xpsp2:/NT\s*5\.1\s?;\s*SV1/,iewin:/msie(.*)?windows/i,iewinlt7:/msie [1-6](.*)?windows/i,iewin7:/msie 7(.*)?windows/i,iewin6:/msie 6(.*)?windows/i,iewin55:/msie 5\.5(.*)?windows/i,iewin5:/msie 5\.0(.*)?windows/i,iewinold:/msie [1-4](.*)?windows/i,iemac:/msie 5(.*)?mac/i,ns4:/netscape 4/i,safari:/(safari|applewebkit)/i,khtml:/(konqueror|khtml|safari)/i,opera:/opera/i,opera9:/opera\/9/i,firefox:/firefox/i,firefox1dot0:/firefox\/1\.0/i,firefox1dot5:/firefox\/1\.5/i,firefox2dot0:/firefox\/2/i},featureDefs:{pngAlpha:function(){var m=UserAgent.matches;return m.khtml||m.opera||m.gecko||m.iewin&&!(m.iewinlt7);},pngAlphaIEWin:function(){var m=UserAgent.matches;return m.iewin&&!(m.iewin5||m.iewinold);},elementAlpha:function(){var m=UserAgent.matches;return m.khtml||m.opera9||m.gecko||(m.iewin&&!m.iewinold);},elementAlphaIEWin:function(){return UserAgent.supports.elementAlpha&&UserAgent.matches.iewin;},fixedPosition:function(){var m=UserAgent.matches;return !m.iewin&&(m.gecko||m.khtml||m.opera);},activeX:function(){if(!window.ActiveXObject){return false;}try{new ActiveXObject("Msxml2.XMLHTTP");return true;}catch(ex){return false;}}},init:function(){var m=this.matches;var _2=function(_3,_4){m[_3]=_4;};for(var _5 in this.uaDefs){_2(_5,this.uaDefs[_5].test(navigator.userAgent));}_2("gecko",!m.khtml&&!m.opera&&/(firefox|camino|gecko)/i.test(navigator.userAgent));for(var _6 in this.featureDefs){this.supports[_6]=this.featureDefs[_6]();}Browser={MSIE:function(){return UserAgent.matches.iewin;}};isMacIE=this.matches.iemac;isSafari=this.matches.safari;isOpera=this.matches.opera;if(document.body){UserAgent.onBodyReady();}else{EventDispatcher.addEvent(dom,"ready",UserAgent.onBodyReady);}},onBodyReady:function(){var m=UserAgent.matches;for(var _9 in m){}}};var appVers=navigator.appVersion;UserAgent.init();if(!window.IMAGE_ROOT){IMAGE_ROOT="http://www.midtowncomics.com/";}var ServerConnectionFactory={getConnection:function(){return new ServerConnection();},isSupported:function(){var s=new ServerConnection();var ok=s.hasTransport;s=null;return (this.isSupported=function(){return ok;})();},tell:function(_3,_4){if(typeof _4!="undefined"){_3=_3.setUrlAttributes(_4);}var _5=new Image();_5.src=_3;}};function ServerConnection(){this.hasTransport=false;this.method=ServerConnection.METHOD_GET;if(!this.returnType){this.returnType=ServerConnection.RETURN_XML;}this.setTransport();}ServerConnection.METHOD_GET="GET";ServerConnection.METHOD_POST="POST";ServerConnection.METHOD_HEAD="HEAD";ServerConnection.RETURN_XML="XML";ServerConnection.RETURN_TEXT="TEXT";ServerConnection.prototype={getNewAXO:function(_6){return eval(["(ne","w Ac","tive","XObj","ect('",_6,"'))"].join(""));},parameters:{},transportStates:["Uninitialized","Loading","Loaded","Interactive","Complete"],setTransport:function(){this.transport=false;var _7=this;var _8=[function(){return _7.getNewAXO("Msxml2.XMLHTTP");},function(){return _7.getNewAXO("Microsoft.XMLHTTP");},function(){return new XMLHttpRequest();}];for(var i=0;i<_8.length;i++){try{this.transport=_8[i]();this.hasTransport=true;break;}catch(e){}}},bindStateChangeHandler:function(){var _10=this;this.transport.onreadystatechange=function(){_10.handleReadyStateChange();};},handleReadyStateChange:function(){var _11=this.transportStates[this.transport.readyState];if(_11=="Loaded"||(window.UserAgent&&UserAgent.matches.opera&&_11=="Interactive")){this.beginReceiveDataCallback();}else{if(_11=="Complete"){if(this.transport.status=="200"){this.successCallback(this.returnType==ServerConnection.RETURN_XML?this.transport.responseXML:this.transport.responseText);}else{this.failureCallback(this.transport.status,this.url);}}}},fixMozillaContentLength:function(){if(this.transport&&this.transport.overrideMimeType){this.transport.setRequestHeader("Connection","close");}},execute:function(){if(this.transport){var _12=null;if(window.location.protocol.indexOf("https")>-1){this.url=this.url.replace("http:","https:");}if(this.method==ServerConnection.METHOD_GET){this.url=(this.url).setUrlAttributes(this.parameters);}this.transport.open(this.method,this.url,true);this.bindStateChangeHandler();if(this.method==ServerConnection.METHOD_POST){_12="".setUrlAttributes(this.parameters).substring(1);this.transport.setRequestHeader("Content-type","application/x-www-form-urlencoded");this.fixMozillaContentLength();}this.transport.send(_12);}},setParameters:function(_13){this.parameters=_13;},successCallback:function(){},failureCallback:function(_14,url){},beginReceiveDataCallback:function(){}};var Link={imgURL:function(_1,_2){var sb=[];sb.append(_2||IMAGE_ROOT);if(_1.charAt(0)!="/"){sb.append(_1);}else{sb.append(_1.substring(1,_1.length));}return sb.join("");},pageURL:function(_8,_9){var sb=[];var _10=false;sb.append(PAGE_ROOT);if(_8.charAt(0)!="/"){sb.append(_8);}else{sb.append(_8.substring(1,_8.length));}return sb.join("");},boxshotURL:function(_4,_5){if(window.BS_MOD&&window.BS_MOD>1){return this.imgURL(_4,IMAGE_ROOT.replace(this.dRegEx,"-"+_5%window.BS_MOD));}else{return this.imgURL(_4);}}};var $=function(id){return document.getElementById(id);};function BobTextHandler(id){this.element=this.addTextNodeTo(id);}BobTextHandler.prototype={addTextNodeTo:function(id){var _13=document.createTextNode("");$(id).appendChild(_13);return _13;},handle:function(s){this.setText(s);},setText:function(s){this.element.nodeValue=unescape(s);}};function BobCapHandler(id){this.element=$(id).firstChild;}BobCapHandler.prototype=BobTextHandler.prototype;function BobDescriptionHandler(id){this.element=$(id);}BobDescriptionHandler.prototype.handle=function(s){s=unescape(s);var _15=s.split("%%~p;");var s=[];_15.walk(function(_16){var _17=s.length==0?"span":"p";s=s.concat(["<",_17,">",_16,"</",_17,">"]);});this.element.innerHTML=s.join("");};function BobVisibilityHandler(id){this.element=$(id);}BobVisibilityHandler.prototype={handle:function(s){this.setVisible(s);},setVisible:function(_18){this.element.style.visibility=(_18)?"visible":"hidden";}};var BoxShots={sizes:{TINY:"tiny",SMALL:"STNL",BIG3:"big3",LARGE:"large"},getUrl:function(_1,_2){return Link.boxshotURL(["images/product/",_2,"/",_1,"_sth",".jpg"].join(""),_1);}};var BobContentHandler={initialized:false,shownFlag:false,initialize:function(){this.canvas=$("bob");this.boxImg=$("bobimg");this.textHandlers={title:new BobCapHandler("bobtitle"),description:new BobDescriptionHandler("bobdescription"),releasedate:new BobTextHandler("bobreleasedateInfo"),writer:new BobTextHandler("bobwriterInfo"),artist:new BobTextHandler("bobartistInfo"),manufacturer:new BobTextHandler("bobmanufacturerInfo")};this.visibilityHandlers={releasedate:new BobVisibilityHandler("bobreleasedate"),writer:new BobVisibilityHandler("bobwriter"),artist:new BobVisibilityHandler("bobartist"),manufacturer:new BobVisibilityHandler("bobmanufacturer")};this.initialized=true;},display:function(_33,_34){if(!this.initialized){return false;}this.ProductID=_33.id;this.handleBoxshot(_34);for(var _35 in _33){if(this.textHandlers[_35]){this.textHandlers[_35].handle(_33[_35],_33);}if(this.visibilityHandlers[_35]){this.visibilityHandlers[_35].handle(_33[_35]);}}if(!this.shownFlag&&(UserAgent.matches.khtml||UserAgent.matches.opera)){this.hideContent(_33,_34);}},handleBoxshot:function(_36){if(!_36){this.boxImg.style.display="none";}else{this.boxImg.style.display="inline";this.boxImg.src=BoxShots.getUrl((this.parentID?this.parentID:this.ProductID),BoxShots.sizes.SMALL);}},preloadBoxshot:function(_37){if(!this.preloadBoxshot){this.preloadBoxshot=new Image();}this.preloadBoxshot.src=BoxShots.getUrl(_37,BoxShots.sizes.SMALL);},hideContent:function(_38,_39){this.handleBoxshot(false);for(var k in this.visibilityHandlers){this.visibilityHandlers[k].setVisible(false);}this.detailElements.clear();if(!this.shownFlag&&(UserAgent.matches.khtml||UserAgent.matches.opera)){var _41=this;var _42=function(){_41.shownFlag=true;_41.display(_38,_39);};window.setTimeout(_42,2);}}};BobContentHandler.detailElements={initialize:function(_43){this.tBody=_43;},elements:[],elementIDs:new Array("bobreleasedate","bobwriter","bobartist","bobmanufacturer"),clear:function(){for(var _44 in this.elements){this.elements[_44]=null;}},display:function(){for(var i=0;i<this.elementIDs.length;i++){if(this.elements[this.elementIDs[i]]){this.tBody.appendChild(this.elements[this.elementIDs[i]]);}}}};function Product(_1){if(_1){this.importFrom(_1);}}Product.prototype={id:false,title:false,description:false,releasedate:false,writer:false,artist:false,manufacturer:false,importFrom:function(_42){var _43=/&/g;for(var _44 in this){if(_42[_44]){this[_44]=_42[_44]();}if(typeof this[_44]=="string"){this[_44]=this[_44].replace(_43,"&");
}if(this[_44]=="false"){this[_44]=false;}}return this;}};var Position={viewportH:function(){return self.innerHeight||this.getVPVal("clientHeight")||this.getVPVal("offsetHeight");},scrollLeft:function(){return self.pageXOffset||this.getVPVal("scrollLeft");},scrollTop:function(){return self.pageYOffset||this.getVPVal("scrollTop");},pageH:function(){return document.body.scrollHeight;},pageW:function(){return document.body.scrollWidth;},mouseX:function(e){e=e||window.event;return e.pageX||e.clientX+Position.scrollLeft();},mouseY:function(e){e=e||window.event;return e.pageY||e.clientY+Position.scrollTop();},getVPVal:function(_2){var de=document.documentElement;var db=document.body;if(de&&de[_2]){return de[_2];}else{if(db&&db[_2]){return db[_2];}}return 0;}};var getMouseCoordinates=function(e){return{x:Position.mouseX(e),y:Position.mouseY(e)};};function ProductMidtownImporter(_59){this.Product=(_59.Product)?_59.Product:_59;this.init();}ProductMidtownImporter.prototype={init:function(){var _60=["id","title","description","releasedate","writer","artist","manufacturer"];for(var i=0,l=_60.length;i<l;i++){var _61=_60[i];ProductMidtownImporter.prototype[_61]=this.makeImporter(_61);}ProductMidtownImporter.prototype.init=function(){};},makeImporter:function(_62){return function(){return this.Product[_62];};}};var MidtownProductFetcher={cache:{},getProduct:function(id,_2,_3){if(this.cache[id]){_2(this.cache[id]);}else{var sc=ServerConnectionFactory.getConnection();sc.url=Link.pageURL("Bubblepop/BubbleAsp.asp");_3.Productid=id;sc.setParameters(_3);sc.returnType=ServerConnection.RETURN_TEXT;var _5=this;sc.successCallback=function(_6){_5.handleMidtownProductDataReturn(_6,_2);};sc.execute();}},handleMidtownProductDataReturn:function(_7,_8){var _9=false;try{var _10=eval("("+_7+")");if(!_10.error){var _11=new ProductMidtownImporter(_10);var _12=new Product();_12.importFrom(_11);this.cache[_12.id]=_12;_9=true;}}catch(e){}if(_9){_8(_12);}}};var BobManager={STYLE_POSITION:1,COUNT_DELIM:"_",BOXSHOT_STATE_DEFAULT:0,BOXSHOT_STATE_NONE:1,BOXSHOT_STATE_DISPLAY:2,STATE_AWAKE:0,STATE_ASLEEP:1,LINKCTR_TEXT:"TXT",LINKCTR_BOXSHOT:"BOX",LINKCTR_TEXT_NEAR_BOXSHOT:"BTX",LINKCTR_MINIQ:"MQI",displayFlag:false,doArrowClick:true,autoBobifyLinks:true,initialize:function(){if(!ServerConnectionFactory.isSupported()){return;}this.readyState=BobManager.STATE_AWAKE;var _45=this;var _46=function(){if(_45.hideBobTimer){clearTimeout(_45.hideBobTimer);_45.hideBobTimer=null;}};var _47=function(evt){evt=evt||window.event;if(evt.keycode){if(evt.keyCode==33||evt.keyCode==34){_45.currentScroll=document.body.scrollTop;}}};var _49=function(evt){evt=evt||window.event;if(evt.keycode){if(evt.keyCode==33||evt.keyCode==34){if(document.body.scrollTop!=_45.currentScroll){_45.hideBob();}}}};this.buildContainer();with(EventDispatcher){addEvent($("bobarrow"),"click",function(){if(_45.doArrowClick){window.location.href=_45.href;}});addEvent($("bobarrow"),"mouseout",this.hideBob.bindEventListener(this));addEvent($("bobarrow"),"mouseover",_46);addEvent(document,"keydown",_47);addEvent(document,"keyup",_49);}BobContentHandler.initialize();this.autoBobifyLinks&&this.bobifyLinks();},setReadyState:function(_50){this.readyState=_50;if(this.readyState==BobManager.STATE_ASLEEP){this.hideBob();this.detach();}},bobifyLinks:function(_51){if(this.readyState!=BobManager.STATE_AWAKE){return;}_51=_51&&_51.nodeType==1?_51:$("page-content");var _52=_51.getElementsByTagName("img");var _53={};var _54=/dB\(/;for(var i=0;i<_52.length;i++){var img=_52[i];if(!img.mouseover){continue;}}},bobify:function(_63){var _64={boxshotState:BobManager.BOXSHOT_STATE_DEFAULT,linkURL:Product.getURL(_63.ProductId,_63.ProductTitle),doArrowClick:true};for(var key in _63){_64[key]=_63[key];}var c=_64.container;c.Productid=_64.ProductId;if(c.db_eid){EventDispatcher.removeEvent(c,"mouseover",c.db_eid);}if(this.readyState==BobManager.STATE_AWAKE){var eid=EventDispatcher.addEvent(c,"mouseover",this.dB.bindEventListener(this,c,_64.boxshotState,_64.linkURL,_64.doArrowClick));c.db_eid=eid;}},getURLParams:function(){var _68=this.triggerElement.tagName.toLowerCase();if(this.triggerElement.Productid){var _69={pos:0,ds:"b"};_69.linkCtr=_68=="a"?BobManager.LINKCTR_TEXT_NEAR_BOXSHOT:BobManager.LINKCTR_MINIQ;}else{var _69={pos:this.triggerElement.id.substring(this.triggerElement.id.indexOf(BobManager.COUNT_DELIM)+1),ds:this.triggerElement.id.charAt(BobManager.STYLE_POSITION)};_69.linkCtr=_68=="a"?BobManager.LINKCTR_TEXT:BobManager.LINKCTR_BOXSHOT;}return _69;},isShowBoxshot:function(){if(this.boxshotState==BobManager.BOXSHOT_STATE_DEFAULT){var _70=this.triggerElement.tagName.toLowerCase();return _70=="a"||_70=="div";}else{return this.boxshotState==BobManager.BOXSHOT_STATE_DISPLAY;}},display:function(_71){if(_71!=this.getProductID()){return;}this.displayFlag=true;var _72=this;var _73=this.isShowBoxshot();var _74=this.getURLParams();if(window.isQueue){_74.linkCtr+="QUEUE";}if(this.triggerElement.alt){this.triggerElement.altbackup=this.triggerElement.alt;this.triggerElement.alt="";}var _75=function(_76){_72.showBobTimer=null;if(!BobManager.displayFlag){return;}BobContentHandler.display(_76,_73);BobPositioner.setPosition(_72.triggerElement,_72.mouseCoord);if((UserAgent.matches.khtml||UserAgent.matches.opera)&&!_72.shownFlag){window.setTimeout(function(){BobPositioner.setPosition(_72.triggerElement,_72.mouseCoord);_72.shownFlag=true;},5);}$("bob").style.visibility="visible";};if(_73){BobContentHandler.preloadBoxshot(_71);}MidtownProductFetcher.getProduct(_71,_75,_74);},detach:function(){if(this.triggerElement){if(this.triggerElement.bob_eid){EventDispatcher.removeEvent(this.triggerElement,"mouseout",this.triggerElement.bob_eid);this.triggerElement.bob_eid=null;}if(this.triggerElement.bob_eid2){EventDispatcher.removeEvent(this.triggerElement,"click",this.triggerElement.bob_eid2);this.triggerElement.bob_eid2=null;}this.triggerElement=null;}},attach:function(){if(!this.triggerElement.bob_eid){this.triggerElement.bob_eid=EventDispatcher.addEvent(this.triggerElement,"mouseout",this.hideBob.bindEventListener(this));}if(!this.triggerElement.bob_eid2){this.triggerElement.bob_eid2=EventDispatcher.addEvent(this.triggerElement,"click",this.hideBob.bindEventListener(this));}},dB:function(evt,_77,_78,_79,_80){if(!window.d_bobMS||d_bobMS==-1||this.readyState!=BobManager.STATE_AWAKE){return;}if(this.hideBobTimer&&this.triggerElement&&this.triggerElement==_77){clearTimeout(this.hideBobTimer);this.hideBobTimer=null;return;}this.mouseCoord=getMouseCoordinates(evt);this.detach();this.triggerElement=_77;if(typeof _79=="undefined"){}else{this.href=_79;}this.boxshotState=typeof _78=="undefined"?BobManager.BOXSHOT_STATE_DEFAULT:_78;this.doArrowClick=typeof _80=="undefined"?this.href?true:false:_80;this.attach();var _81=this.getProductID();var _82=this;var _83=function(){_82.display(_81);};this.showBobTimer=setTimeout(_83,d_bobMS);},getProductID:function(){if(this.triggerElement.Productid){return this.triggerElement.Productid;}else{var id=this.triggerElement.id;var _84=id.indexOf(BobManager.COUNT_DELIM);return id.substring(2,_84);}},hideBob:function(){if(this.readyState!=BobManager.STATE_AWAKE){return;}this.displayFlag=false;if(this.showBobTimer){clearTimeout(this.showBobTimer);this.showBobTimer=null;return;}var _85=this;var _86=function(){_85.hideBobTimer=null;$("bob").style.visibility="hidden";if(_85.triggerElement&&_85.triggerElement.altbackup){_85.triggerElement.alt=_85.triggerElement.altbackup;}BobContentHandler.hideContent();};this.hideBobTimer=setTimeout(_86,3);},destroy:function(){this.triggerElement&&(this.triggerElement=null);},structure:{BOB_IMG_ROOT:function(){return "images/bob/";},transpClass:" class=\"transp\"",INSERTION_ELEMENT_ID:"page-content",arrows:function(){var _87=" class=\"bobArrow transp\"";return ["<div id=\"bobarrow\">","<img id=\"bobarrowulimg\" src=\"",Link.imgURL("Bubblepop/images/bob/up-left-combo.png"),"\"",_87,">","<img id=\"bobarrowurimg\" src=\"",Link.imgURL("Bubblepop/images/bob/up-right-combo.png"),"\"",_87,">","<img id=\"bobarrowllimg\" src=\"",Link.imgURL("Bubblepop/images/bob/lower-left-combo.png"),"\"",_87,">","<img id=\"bobarrowlrimg\" src=\"",Link.imgURL("Bubblepop/images/bob/lower-right-combo.png"),"\"",_87,">","</div>\n"].join("");},tcap:function(){return ["<div id=\"bobtcap\"><img id=\"bobtopcap\" style=\"width:290px;height:23px\" src=\"",Link.imgURL("Bubblepop/images/bob/topcap1.png"),"\"",BobManager.structure.transpClass,"></div>\n"].join("");},bcap:function(){return ["<div id=\"bobbcap\"",UserAgent.matches.iewin55?" style=\"margin-top:-1px\"":"","><img id=\"bobbottomcap\" style=\"width:290px;height:31px;\" src=\"",Link.imgURL("Bubblepop/images/bob/bottomcap.png"),"\"",BobManager.structure.transpClass,"></div>",UserAgent.isIE?"<br style=\"clear:left\">":""].join("");},titlebox:function(){return ["<div id=\"bobtitlebox\"",BobManager.structure.transpClass,"\"><div class=\"bobcontentspace\">","<span id=\"bobtitle\"> </span>","</div></div>"].join("");},bsupport:function(){return ["<div style=\"padding: 5px 0px 7px; position: relative;\">","<table cellpadding=\"0\" border=0><tbody>","<tr id=\"bobreleasedate\"><th>Release Date :</th><td><span id=\"bobreleasedateInfo\"></span></td></tr>","<tr id=\"bobwriter\"><th>Writer :</th><td><span id=\"bobwriterInfo\"></span></td></tr>","<tr id=\"bobartist\"><th>Artist :</th><td><span id=\"bobartistInfo\"></span></td></tr>","<tr id=\"bobmanufacturer\"><th>Manufacturer :</th><td><span id=\"bobmanufacturerInfo\"></span></td></tr>","</tbody></table>","</div>"].join("");},bobcontent:function(){var _88=BobManager.structure;return ["<div id=\"bob\">",_88.arrows(),_88.tcap(),_88.titlebox(),"<div id=\"bobinner\"",_88.transpClass," style=\"position:relative\">\n","<div id=\"bobcontent\" class=\"bobcontentspace\">","<img id=\"bobimg\" src=\"",Link.imgURL("Bubblepop/images/labels/1px.gif"),"\" style=\"border:1px solid #ccc;margin:6px 6px 2px 0px;position:relative;display:inline;\" align=\"left\" height=\"90\" width=\"65\">","<div id=\"bobdescription\" style=\"position:relative;padding-bottom:;2px;\"></div>","<br clear=\"all\">",_88.bsupport(),"<div id=\"bobstarclarity\"></div><span style=\"line-height:1px;font-size:1px;\"> </span>",UserAgent.isIE?"<br style=\"clear:left\">":"",UserAgent.isIE?"<br style=\"clear:left\">":"","</div><br style=\"line-height:1px;font-size:1px;height:1px;\" clear=\"all\"></div>",_88.bcap()].join("");}},buildContainer:function(){var _89=BobManager.structure;var _90=document.createElement("DIV");_90.innerHTML=_89.bobcontent();var _91=_90.firstChild;$(_89.INSERTION_ELEMENT_ID).appendChild(_91);}};var getPageElementOffsetX=function(_18){return handleElementOffsetX(_18,false);};var handleElementOffsetX=function(_19,_20){var _21=0;if(_19.offsetLeft!=null){_21+=_19.offsetLeft;var _22=0;while(_19.offsetParent){if(_20&&(grabComputedStyle(_19.offsetParent,"position")!="static"||grabComputedStyle(_19.offsetParent,"position")=="absolute")){return _21;}else{_21+=_19.offsetParent.offsetLeft;_19=_19.offsetParent;}}}return _21;};var BobPositioner={TOP_SHADOW_OFFSET:-10,BOB_BOX_WIDTH:290,MOVIE_TO_ARROW_SPACER:25,DISPLAY_STYLE_DEFAULT:0,DISPLAY_STYLE_LARGE_BOXSHOT:1,DISPLAY_STYLE_TINY_BOXSHOT:2,ARROW_HEIGHT:101,ARROW_HEIGHT_NO_SHADOW:70,LARGE_BOXSHOT_WIDTH:110,MED_BOXSHOT_WIDTH:65,TINY_BOXSHOT_WIDTH:50,TEXT_LINK_BUFFER_WIDTH:50,POSITION_LEFT:0,POSITION_RIGHT:1,MAX_PAGE_LEFT_OFFSET:490,bobId:"bob",arrowId:"bobarrow",arrowImageIds:{UL:"bobarrowulimg",UR:"bobarrowurimg",LL:"bobarrowllimg",LR:"bobarrowlrimg"},setPosition:function(_92,_93){this.bobPosition=BobPositioner.POSITION_RIGHT;this.triggerElement=_92;this.mouseCoordX=_93.x;this.mouseCoordY=_93.y;this.setTop();this.setLeft();this.positionArrow();},setTop:function(){var _94=$$(this.triggerElement).getTop()+BobPositioner.TOP_SHADOW_OFFSET-($$(this.bobId).getHeight()/4);$(this.bobId).style.top=_94+"px";this.correctForYOverrun(_94);},correctForYOverrun:function(_95){var _96=0;var b=$(this.bobId);var _98=$$(b);var _99=_98.getTop()-BobPositioner.TOP_SHADOW_OFFSET-Position.scrollTop();var _100=Position.viewportH();var _101=_99+_98.getHeight();if(_101>_100){_96=_101-_100-30;}if(_99-_96<1){_96=_99;}b.style.top=(_95-_96)+"px";},getTriggerTop:function(){return $$(this.triggerElement).getTop();},setLeft:function(){var _102=0;var _103=this.triggerElement.tagName.toLowerCase();if(_103=="a"||_103=="div"){_102=Math.max(this.mouseCoordX,0)+BobPositioner.TEXT_LINK_BUFFER_WIDTH;if(_102>(this.maxLeftPosition()-100)){_102-=(BobPositioner.BOB_BOX_WIDTH+BobPositioner.MOVIE_TO_ARROW_SPACER+(1.5*BobPositioner.TEXT_LINK_BUFFER_WIDTH));this.bobPosition=BobPositioner.POSITION_LEFT;}}else{var _104=0;var _105=this.getBoxshotStyle();if(_105==BobPositioner.DISPLAY_STYLE_LARGE_BOXSHOT){_104=BobPositioner.LARGE_BOXSHOT_WIDTH;}else{if(_105==BobPositioner.DISPLAY_STYLE_TINY_BOXSHOT){_104=BobPositioner.TINY_BOXSHOT_WIDTH;}else{_104=BobPositioner.MED_BOXSHOT_WIDTH;}}var _106=$$(this.triggerElement).getLeft();_102=_106+BobPositioner.MOVIE_TO_ARROW_SPACER+_104;if(_102>(this.maxLeftPosition()-150)){_102-=(BobPositioner.BOB_BOX_WIDTH+BobPositioner.MOVIE_TO_ARROW_SPACER+_104);this.bobPosition=BobPositioner.POSITION_LEFT;}}$(this.bobId).style.left=_102+"px";},maxLeftPosition:function(){return getPageElementOffsetX($("page-content"))+BobPositioner.MAX_PAGE_LEFT_OFFSET;},positionArrow:function(){var _107=false;var _108=$$(this.bobId);var _109=this.getTriggerTop()-_108.getTop();var _110=_108.getHeight();if(_109<(_110/2)){_107=true;}else{_109-=BobPositioner.ARROW_HEIGHT_NO_SHADOW;}if(_109+BobPositioner.ARROW_HEIGHT+10>_110){_109-=10;}if(_109<10){_109=10;}$$(this.arrowId).setStyles({top:_109+"px",left:(this.bobPosition==BobPositioner.POSITION_LEFT)?"268px":"-42px"});var _111=_107?"U":"L";_111+=(this.bobPosition==BobPositioner.POSITION_LEFT)?"R":"L";for(var key in this.arrowImageIds){$(this.arrowImageIds[key]).style.display=(key==_111)?"block":"none";}},getBoxshotStyle:function(){return this.triggerElement.id.substring(1,2);}};
function primeBOB(){
EventDispatcher.addEvent(dom,"ready",BobManager.initialize.bindEventListener(BobManager));
EventDispatcher.addEvent(window,"unload",BobManager.destroy.bindEventListener(BobManager));
}				 
function dB(evt,link){
 BobManager.dB(evt,link);
}