if(typeof(bpui) == 'undefined') {
    var bpui=new Object();
}

bpui.alone=new Object();
bpui.alone.timeout="";
bpui.alone.req="";

bpui.alone.showPopup=function(eventx, productImage) {
    popupx="pop0";
    var xx=0;
    var yy=0;
    if (!eventx) var eventx=window.event;
    if (eventx.pageX || eventx.pageY){
        xx=eventx.pageX;
        yy=eventx.pageY;
    } else if (eventx.clientX || eventx.clientY) {
        xx=eventx.clientX + document.body.scrollLeft;
        yy=eventx.clientY + document.body.scrollTop;        
    }
    document.getElementById(popupx).style.left= (xx + 40) + "px";
    document.getElementById(popupx).style.top= (yy - 150) + "px";
    bpui.alone.timeout=setTimeout("bpui.alone.showPopupInternal('" + popupx + "', '" + productImage + "')", 0);
}

bpui.alone.showPopupInternal=function(popupx, productImage) {
	var componentId="pop0";
	document.getElementById(componentId).style.visibility='visible';
    url="http://www.epromos.com/productimg/" + productImage;
	document.getElementById("pop0_productImage").innerHTML="<img src='"+url+"'/>";
	
}

bpui.alone.hidePopup=function() {
    // statically setup popup for simple case
    popupx="pop0";
    document.getElementById(popupx).style.visibility='hidden';
    bpui.alone.clearTimeout();
}

bpui.alone.clearTimeout=function() {
    clearTimeout(bpui.alone.timeout);
}