    /* Script by: www.jtricks.com 
      * Version: 20071017 
      * Latest version: 
      * www.jtricks.com/javascript/navigation/floating.html 
      */  
     var floatingMenuId2  = 'sucesspopup';  
     var floatingMenu2 =  
    {  
       targetX1: 'center',  
        targetY1: 150,  
     
        hasInner: typeof(window.innerWidth) == 'number',  
       hasElement: typeof(document.documentElement) == 'object'  
           && typeof(document.documentElement.clientWidth) == 'number',  
      
        menu:  
            document.getElementById  
            ? document.getElementById(floatingMenuId2)  
           : document.all  
              ? document.all[floatingMenuId2]  
             : document.layers[floatingMenuId2]  
    };  
      
   floatingMenu2.move = function ()  
   {  
       floatingMenu2.menu.style.left = floatingMenu2.nextX + 'px';  
	 //  alert(floatingMenu2.menu.style.left);
        floatingMenu2.menu.style.top = floatingMenu2.nextY + 'px';  
			  // alert(floatingMenu2.menu.style.top);
    }  
      
   floatingMenu2.computeShifts = function ()  
    {  
      var de = document.documentElement;  
    
      floatingMenu2.shiftX =    
           floatingMenu2.hasInner    
           ? pageXOffset    
            : floatingMenu2.hasElement    
             ? de.scrollLeft    
              : document.body.scrollLeft;    
       if (floatingMenu2.targetX1 < 0)  
        {  
            floatingMenu2.shiftX +=  
               floatingMenu2.hasElement  
                ? de.clientWidth  
               : document.body.clientWidth;  
        }  
      
        floatingMenu2.shiftY =   
           floatingMenu2.hasInner  
            ? pageYOffset  
           : floatingMenu2.hasElement  
              ? de.scrollTop  
              : document.body.scrollTop;  
        if (floatingMenu2.targetY1 < 0)  
        {  
           if (floatingMenu2.hasElement && floatingMenu2.hasInner)  
           {  
                // Handle Opera 8 problems  
                floatingMenu2.shiftY +=  
                   de.clientHeight > window.innerHeight  
                   ? window.innerHeight  
                   : de.clientHeight  
           }  
            else  
            {  
               floatingMenu2.shiftY +=  
                   floatingMenu2.hasElement  
                  ? de.clientHeight  
                   : document.body.clientHeight;  
            }  
        }  
    }  
      
      floatingMenu2.calculateCornerX = function()  
   {  
       if (floatingMenu2.targetX1 != 'center')  
            return floatingMenu2.shiftX + floatingMenu2.targetX1;  
      
        var width = parseInt(floatingMenu2.menu.offsetWidth);  
       var cornerX =  
            floatingMenu2.hasElement  
            ? (floatingMenu2.hasInner  
               ? pageXOffset  
               : document.documentElement.scrollLeft) +   
              (document.documentElement.clientWidth - width)/2  
            : document.body.scrollLeft +   
              (document.body.clientWidth - width)/2; 
			 
       return cornerX;  
    };  
      
    floatingMenu2.calculateCornerY = function()  
    {  
        if (floatingMenu2.targetY1 != 'center')  
           return floatingMenu2.shiftY + floatingMenu2.targetY1;  
     
       var height = parseInt(floatingMenu2.menu.offsetHeight);  
        // Handle Opera 8 problems  
       var clientHeight =   
           floatingMenu2.hasElement && floatingMenu2.hasInner  
           && document.documentElement.clientHeight   
              > window.innerHeight  
           ? window.innerHeight  
           : document.documentElement.clientHeight  
       var cornerY =  
           floatingMenu2.hasElement  
         ? (floatingMenu2.hasInner    
             ? pageYOffset  
             : document.documentElement.scrollTop) +   
             (clientHeight - height)/2  
          : document.body.scrollTop +   
            (document.body.clientHeight - height)/2;  
			 
       return cornerY;  
   };  
  floatingMenu2.doFloat = function()  
  {  
      var stepX, stepY;  
     
       floatingMenu2.computeShifts();  
      var cornerX = floatingMenu2.calculateCornerX();  
       var stepX = (cornerX - floatingMenu2.nextX) * .07;  
       if (Math.abs(stepX) < .5)  
       {  
           stepX = cornerX - floatingMenu2.nextX;  
      }  
       var cornerY = floatingMenu2.calculateCornerY();  
       var stepY = (cornerY - floatingMenu2.nextY) * .07;  
       if (Math.abs(stepY) < .5)  
       {  
           stepY = cornerY - floatingMenu2.nextY;  
       }  
      if (Math.abs(stepX) > 0 ||  
          Math.abs(stepY) > 0)  
      {  
          floatingMenu2.nextX += stepX;  
          floatingMenu2.nextY += stepY;  
         floatingMenu2.move();  
      }  
       setTimeout('floatingMenu2.doFloat()', 20);  
  };  
   // addEvent designed by Aaron Moore  
  floatingMenu2.addEvent = function(element, listener, handler)  
   {  
       if(typeof element[listener] != 'function' ||   
          typeof element[listener + '_num'] == 'undefined')  
      {  
           element[listener + '_num'] = 0;  
           if (typeof element[listener] == 'function')  
           {  
               element[listener + 0] = element[listener];  
              element[listener + '_num']++;  
          }  
          element[listener] = function(e)  
           {  
               var r = true;  
             e = (e) ? e : window.event;  
               for(var i = element[listener + '_num'] -1; i >= 0; i--)  
               {  
                   if(element[listener + i](e) == false)  
                       r = false;  
             }  
               return r;  
           }  
       }  
       //if handler is not already stored, assign it  
       for(var i = 0; i < element[listener + '_num']; i++)  
           if(element[listener + i] == handler)  
              return;  
       element[listener + element[listener + '_num']] = handler;  
       element[listener + '_num']++;  
   };  
  floatingMenu2.init = function()  
  {  
       floatingMenu2.initSecondary();  
       floatingMenu2.doFloat();  
   };  
  // Some browsers init scrollbars only after  
   // full document load.  
   floatingMenu2.initSecondary = function()  
  {  
      floatingMenu2.computeShifts();  
       floatingMenu2.nextX = floatingMenu2.calculateCornerX();  
      floatingMenu2.nextY = floatingMenu2.calculateCornerY();  
	  //alert( floatingMenu2.nextX);
	    //alert(  floatingMenu2.nextY);
      floatingMenu2.move();  
   }  
     
   if (document.layers)  
       floatingMenu2.addEvent(window, 'onload', floatingMenu2.init);  
   else  
   {  
       floatingMenu2.init();  
       floatingMenu2.addEvent(window, 'onload',  
           floatingMenu2.initSecondary);  
   }  