float is a reserved keyword in javascript so, if you want to set the float css attribute with javascript you need to use :
node.style.cssFloat = "left";    //instead of  node.style.float
pretty good but our dear IE is not agree with that, with you should do :
node.style.styleFloat = "left";    //specific for our dear friend IE