Event.observe(window, 'load', function(){
    new floatingAd({
        /*Required Params*/
        adImageUrl: '/v/images/floating-welcome-image2.png',
        adImageWidth: 500,
        adImageHeight: 265,    
        linkUrl: 'http://www.treetopia.com',
        closeLinkTopLeft: {x:0, y:158}, 
        closeLinkBottomRight: {x:95, y:184},
        hostingDomain:'treetopia.com',

        /*Optional Params*/
        expirationTimeInSeconds:604800,
        pagesToExclude:['ShoppingCart.asp', 'myaccount.asp', 'login.asp', 'one-page-checkout.asp'],
        transitionEffect: 'fadeIn',
        transitionDurationInSeconds: .5,
        positionOnPage:{x:10, y:200},
        fadeOutDurationInSeconds:.2,
        autoCloseTimeoutInSeconds:15
    });
});


// breakdown of the parameters, their datatypes, and their default values: 

// ***REQUIRED*** 
// adImageUrl: string representing an absolute or relative url 
// adImageWidth: integer (pixel value) ex: 100 
// adImageHeight: integer (pixel value) ex: 200 
// linkUrl: string representing an absolute or relative url 
// closeLinkTopLeft: coordinate object ex: {x:100, y:200} 
// closeLinkBottomRight: coordinate object ex: {x:100, y:200} 
// hostingDomain: domain where script will be placed ('mydomain.com')

// ***OPTIONAL*** 
// expirationTimeInSeconds: integer: default=3600 
// pagesToExclude: Array of strings 
// transitionEffect: string (options: 'fadeIn', 'leftToRight', 'rightToLeft'): default='fadeIn' 
// transitionDurationInSeconds: number (can be a decimal): default=1.5 
// positionOn Page: coordinate object ex: {x:100, y:200} or 'center': default='center' 
// fadeOutDurationInSeconds: number (can be a decimal):default=1.5 
// autoCloseTimeoutInSeconds: number:default=30 

//
