Toggle function left to right

<html> <div class=”pollSlider”> Text Goes Here </div> <!– close –> <div id=”pollSlider-button”>Button</div> </html> <java> $(document).ready(function(){ var slider_width = $(‘.pollSlider’).width();//get width automaticly $(‘#pollSlider-button’).click(function() { if($(this).css(“margin-right”) == slider_width+”px” && !$(this).is(‘:animated’)){ $(‘.pollSlider,#pollSlider-button’).animate({“margin-right”: ‘-=’+slider_width});}¬†else¬†{ if(!$(this).is(‘:animated’))//perevent double click to double margin { $(‘.pollSlider,#pollSlider-button’).animate({“margin-right”: ‘+=’+slider_width}); } } }); }); </java> <css> .pollSlider{position: fixed;height: 100%;background: #003471;width: 200px;right: 0px;margin-right: -200px; height: 700px; top:…