  function mouseOverPopUp(){
	    EnableFading= false;
    }

    function mouseOutPopUp(){
	    EnableFading= true;
    }

    function fadeInBalloon(opacityValue, imageId, timeInterval, callback) {

	   var img = document.getElementById(imageId);
       var timeOutDelay = timeInterval/100;
	   if ( img != null ) {
    	
		    opacityValue += 1;
		    if ( opacityValue < 100 ) 
		    {
    			
			    img.style.MozOpacity = opacityValue/100;
			    img.style.filter = 'alpha(opacity=' + opacityValue + ')';
			    
			    window.setTimeout(function () { fadeInBalloon(opacityValue,imageId, timeInterval, callback ); }, timeOutDelay);
				
		    }
		    else if ( callback!=null ) 
		    {
		        //function to be called once the fading is complete (typically a call to the fade out function)   
		       callback();
		    } 			
	    } 	
    }

    function fadeBalloon( opacityValue, imageId, timeInterval) {

        var timeOutDelay = timeInterval/100;
	    var img = document.getElementById(imageId);
    	
	    if ( img != null ) {
    	
		    if ( opacityValue >= 0 ) {
			
			    if (EnableFading)
			    {
				    opacityValue -= 1;
				    img.style.MozOpacity = opacityValue/100;
				    img.style.filter = 'alpha(opacity=' + opacityValue + ')';
			    }
			    window.setTimeout("fadeBalloon(" + opacityValue  + ", '" + imageId +"'," + timeInterval+ ");", timeOutDelay );			
		    } 				
	    } 	
    }


