/* WebSnapr - Preview Bubble Javascript Written by Juan Xavier Larrea http://www.websnapr.com - xavier@websnapr.com */ // Point this variable to the correct location of the bg.png file var bubbleImageUp = 'resources/bubble_up.png'; var bubbleImageDown = 'resources/bubble_down.png'; if(typeof Array.prototype.push!="function"){ Array.prototype.push=ArrayPush; function ArrayPush(_1){ this[this.length]=_1; } } function WSR_getElementsByClassName(_2,_3,_4){ var _5=(_3=="*"&&_2.all)?_2.all:_2.getElementsByTagName(_3); var _6=new Array(); _4=_4.replace(/\-/g,"\\-"); var _7=new RegExp("(^|\\s)"+_4+"(\\s|$)"); var _8; for(var i=0;i<_5.length;i++){ _8=_5[i]; if(_7.test(_8.className)){ _6.push(_8); } } return (_6); } function bindBubbles(e){ lbActions=WSR_getElementsByClassName(document,"a","bubble"); for(i=0;i= get_page_height()) { var _f=findPos(_c)[1]-363; var _mL=2; var _mT=39; bubbleImage = bubbleImageUp; } else { var _f=findPos(_c)[1]+17; var _mL=2; var _mT=34; bubbleImage = bubbleImageDown; } if (BrowserDetect.browser == 'Explorer') { _10.style.width="275px"; _10.style.position="absolute"; _10.style.top=_f; _10.style.zIndex=99999; _10.style.left=_e; _10.style.textAlign="left"; _10.style.height="275px"; _10.style.paddingTop="0"; _10.style.paddingLeft="0"; _10.style.paddingBottom="0"; _10.style.paddingRight="0"; _10.style.marginTop="0"; _10.style.marginLeft="0"; _10.style.marginBottom="0"; _10.style.marginRight="0"; _10.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + bubbleImage + "',sizingMethod='image')"; } else { _10.setAttribute("style","text-align: center; z-index: 99999; position: absolute; top: "+_f+"px ; left: "+_e+"px ; background: url("+ bubbleImage +") no-repeat; width: 275px; height: 275px; padding: 0; margin: 0;"); } if (BrowserDetect.browser == 'Safari' || BrowserDetect.browser == 'Konqueror' ) { var _height = _f; _10.setAttribute("style","text-align: center; z-index: 99999; position: absolute; top: "+ _height +"px ; left: "+_e+"px ; background: url("+ bubbleImage +") no-repeat; width: 275px; height: 275px; padding: 0; margin: 0;"); } if(cur_height >= get_page_height()) showBubbleDetails(_10, _c.id, 'up'); else showBubbleDetails(_10, _c.id, 'down'); return; var img=document.createElement("img"); _10.appendChild(img); if (BrowserDetect.browser == 'Explorer') { img.style.paddingTop="0"; img.style.paddingLeft="0"; img.style.paddingBottom="0"; img.style.paddingRight="0"; img.style.margin="auto"; img.style.marginTop=_mT; img.style.marginLeft=_mL; img.style.marginBottom="0"; img.style.marginRight="0"; img.style.borderTop="0"; img.style.borderLeft="0"; img.style.borderBottom="0"; img.style.borderRight="0"; } else { img.setAttribute("style","padding-top: 0; padding-left: 0; padding-right: 0; padding-bottom: 0; margin-top: " + _mT +"px; margin-left: " + _mL +"px; margin-bottom: 0; margin-right: 0; border: 0"); } img.setAttribute("src","phpfspot_img.php?idx=" + _c.id + "&width=200"); img.setAttribute("width",202); img.setAttribute("height",152); img.setAttribute("alt","Snapshot"); } function detachBubble(_12){ lbActions=WSR_getElementsByClassName(document,"div","bubble"); for(i=0;i