          
            
        var g_lastBalloon;
        
        function showBalloon(evt)
        {
            var pos=getPos(evt);
            
            bl=new XBalloon();
            
            bl.imagesDir="http://videospokesperson.net/dnn/images";
	        bl.posX=pos[0];
	        bl.posY=pos[1];
	     
	        //Customized attributes
            bl.title="Welcome to Priority1SS.com";	        
	        bl.contentHtml="<H1>This is P1SS.com Online Spokesperson</H1>";
	        
	        bl.width=400;
	        
	        bl.showCloseButton=true;
	        
	        
	        //bl.onClose=onBalloonClose;
	        	        
	        bl.autoHide=false;
	       	bl.autoHideInterval=5000;
	       	       
	       	//Transitions
            bl.transShow=true;
            //var ddl=document.getElementById("ddlTransShowFilter");
            bl.transShowFilter="progid:DXImageTransform.Microsoft.Fade(Overlap=1.00);)";//ddl.options[ddl.selectedIndex].value;
	        	        
	    bl.transHide=true;
            //ddl=document.getElementById("ddlTransHideFilter");
            bl.transHideFilter="progid:DXImageTransform.Microsoft.Fade(Overlap=1.00);)";//ddl.options[ddl.selectedIndex].value;
	       	       
	       	
	       	//Content div
	       	//ddl=document.getElementById("ddlContentDivID");
	       	//var contentDivID=ddl.options[ddl.selectedIndex].value;
	       	
	       	//if (contentDivID!="")
	       	//{
	       	//    bl.contentHtml="";
	       	//    bl.contentDivID=contentDivID;
	       	    
	       	//    bl.allowContentClone=document.getElementById("chkAllowContentClone").checked;
	       	//}

	             
	        bl.show();   
	        
	        g_lastBalloon=bl;
        }
        
      
       
        
        function getPos(e) 
        {
            var posx = 0;
            var posy = 0;

            if (!e) var e = window.event;
            if (e.pageX || e.pageY) 	
            {
                posx = e.pageX;
                posy = e.pageY;
            }
            else if (e.clientX || e.clientY) 	
            {
                posx = e.clientX + document.body.scrollLeft
	                + document.documentElement.scrollLeft;
                posy = e.clientY + document.body.scrollTop
	                + document.documentElement.scrollTop;
	        }
        	
	        //TRACE("getPos " + posx + ", " + posy);


            var pos=new Array();
            pos[0]=posx;
            pos[1]=posy;
            return pos;
        }
	        
	        
        function onBalloonClose(balloon)
        {
            alert("onBalloonClose balloon.title=" + balloon.title);
        }
    
    
        function onGetPopupHtml()
        {   
            g_lastBalloon.traceInnerHtml();
        }


        function TRACE(sText)
        {
        //    var txtTrace=document.getElementById("txtTrace");
            
        //    if (txtTrace!=null)
	//            txtTrace.value = txtTrace.value + sText + "\n";
        }
     
