
vBShop_Hover_Obj=function()
{this.cached=[];this.objid='dbtech_vbshop_itemhover';this.display=false;this.out=function(itemobj,itemid)
{this.hide_profile();this.display=false;};this.hover=function(itemobj,itemid)
{this.display=true;if(this.cached[itemid])
{this.display_profile(itemobj,itemid);return false;};};this.display_profile=function(itemobj,itemid)
{if(this.display)
{this.hide_profile();var offset=35;var itemMatches=new RegExp('^item_(\\d+)$','i');if(itemid.match(itemMatches))
{offset=25;}
profile=document.createElement('div');profile.id=this.objid;profile.style.position='absolute';profile.style.top=(YAHOO.util.Dom.getY(itemobj)+offset)+'px';profile.style.left=YAHOO.util.Dom.getX(itemobj)+'px';profile.style.zIndex='3';profile.innerHTML=this.cached[itemid];document.body.appendChild(profile);ph=YAHOO.util.Dom.get(this.objid);right=(parseInt(ph.style.left)+ph.offsetWidth);if(right>=YAHOO.util.Dom.getViewportWidth())
{YAHOO.util.Dom.get(this.objid).style.left=(YAHOO.util.Dom.getViewportWidth()-ph.offsetWidth)+'px';};};};this.hide_profile=function()
{if(YAHOO.util.Dom.get(this.objid))
{YAHOO.util.Dom.get(this.objid).parentNode.removeChild(YAHOO.util.Dom.get(this.objid));};};};var vBShop_Hover=new vBShop_Hover_Obj();