Wp Enviroment problem with included file

The error indicates that your file “floater.php” is being called outside of a WordPress generated page. Add this to the top of the file to be able to use WordPress functions.

EDIT: See Brian Fegter response on using the server path for your include.

if ( !function_exists( 'get_bloginfo' ) )
    require( '../../../wp-blog-header.php' ); // check path leads to root of your WordPress install

Regarding your setPaths function, you can either set those as global variables or use constants. Depending on what you are using these for, you can likely define these directly in your functions.php file instead of calling an additional function.

function setPaths() {
    // option one
    global $templateUrl, $imagesUrl;
    $templateUrl = get_bloginfo( 'template_url' );
    $imagesUrl = $templateUrl . "/images/"; // no need to call get_bloginfo again

    // option two preferred assuming these values are not changing.
    define( 'TEMPLATE_URL', get_bloginfo( 'template_url' ) );
    define( 'IMAGES_URL', TEMPLATE_URL . '/images/' );
}
/*
setPaths();
global $templateUrl, $imagesUrl;
echo $templateUrl;
echo $imagesUrl;
echo TEMPLATE_URL;
echo IMAGES_URL;
*/