if(!obids){var obids=function(){}}obids.Utils=function(){};obids.Utils.resourceFile="delivers/obide.Delivers.xml";obids.Utils.getMessageText=function(a){return obips.ResourceManager.getSingleton().getResource(obids.Utils.resourceFile,a).getString()};obids.Utils.getImageURL=function(a){return obips.ResourceManager.getSingleton().getURL(obids.Utils.resourceFile,a).url};obids.Utils.addInfoBubble=function(c,b,e){c.infoCallback=b;c.bUseCursorPos=(e==true);var d=new obips.BrowserEventFramework.EventRouter(c,"onmouseover");d.addEventListener(new obips.Observable.EventListener(null,new obips.Callback(null,obids.Utils.onMouseOver_InfoObj)));var a=new obips.BrowserEventFramework.EventRouter(c,"onmouseout");a.addEventListener(new obips.Observable.EventListener(null,new obips.Callback(null,obids.Utils.onMouseOut_InfoObj)))};obids.Utils.onMouseOver_InfoObj=function(a){a=obips.BrowserEventFramework.normalizeEvent(a);var e=a.target;if(e.bUseCursorPos){var g=a.clientX;var c=a.clientY}else{var g=saw.calcAbsoluteLeft(e)+e.offsetWidth+5;var c=saw.calcAbsoluteTop(e)+(e.offsetHeight/2)}var b=new obids.Utils.InfoWindow.Model(e.infoCallback);var d=280;var f=a.target.infoMaxWidth;if(f){d=(f>0?f:null)}obids.Utils.infoViewer=new obids.Utils.InfoWindow.Viewer(b,obips.FloatingWindow.Manager.getSingleton(),d,g,c)};obids.Utils.onMouseOut_InfoObj=function(a){if(obids.Utils.infoViewer){obids.Utils.infoViewer.close();obids.Utils.infoViewer=null}};obids.Utils.displayInfo=function(d,b){var a=b.split("\\n");for(var c=0;c<a.length;c++){if(c>0){d.appendChild(document.createElement("br"))}d.appendChild(document.createTextNode(a[c]))}};obids.Utils.InfoWindow=function(){};obids.Utils.InfoWindow.Model=function(a){obids.Utils.InfoWindow.Model.baseConstructor.call(this,false);this.callback=a};extend(obids.Utils.InfoWindow.Model,obips.FloatingWindow.Model);obids.Utils.InfoWindow.Viewer=function(c,d,b,e,a){obids.Utils.InfoWindow.Viewer.baseConstructor.call(this,c,d,null,null,e,a);obips.CSS.addClassToElement(this.floatingWindowDiv,"infoBox");if(b){this.floatingWindowDiv.style.maxWidth=b+"px"}if(this.model.callback){this.model.callback.functionPointer.call(this.model.callback.thisContext,this.floatingWindowDiv)}this.controller=new obips.FloatingWindow.Controller(this);d.display(this)};extend(obids.Utils.InfoWindow.Viewer,obips.FloatingWindow.Viewer);obids.Utils.InfoWindow.Viewer.prototype.close=function(){this.controller.destroyWindow()};obids.Utils.objectExists=function(b){if(b==null||b.length==0){return false}try{var a=saw.catalog.getCatalogManager().getItemInfo(b,true);return(!a.isError())}catch(c){return false}return false};obids.Utils.containsAngleBrackets=function(a){if(a==null){a=""}a=a.replace(/&lt;/g,"<");a=a.replace(/&gt;/g,">");return(a.indexOf("<")!=-1)||(a.indexOf(">")!=-1)};