choose new " + productSelectorGetTypes() + "."); } else if(!inStock) { productSelectorSetTooltip(true, t, selectedIndex, "Out of stock - sorry about that. Please find in store or try another combination."); } else { productSelectorSetTooltip(false); } } } productSelectorSetTooltip = function(showHide, t, selectedIndex, msg) { var id = "#psmSection"+tcpsCurrentSelection+t+selectedIndex; function setPosition() { var offset = $(id).offset(); var bodyOffset = $(document.body).offset(); if(offset) { $j("#psmTooltip").css({ position: "absolute", left: offset.left + "px", top: (offset.top - bodyOffset.top - $j("#psmTooltip").outerHeight()) + "px" }); } } if($j("#psmTooltip").length == 0) { $(document.body).append('