Consider using is_rtl() instead.

Instead of `get_bloginfo( 'text_direction' )` consider using `is_rtl()`.
http://codex.wordpress.org/Function_Reference/is_rtl#Notes