I've done some searching but I can't figure this one out... The following code is giving me an invalid argument error in IE...

Code:
function playVideo(video) {
    var container = document.getElementById('quicktime');    
    var width = '400';
    var height = '220';

    container.innerHTML = '';

    var object = document.createElement("object");
    object.setAttribute("width",width);
    object.setAttribute("height",height);
    object.setAttribute("id","movie");
    object.setAttribute("codebase","http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0");
    object.setAttribute("classid","clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B");

    param1 = generateParam(video,"src");

    object.appendChild(param1);

    var object1 = document.createElement("object");
    object1.setAttribute("width",width);
    object1.setAttribute("height",height);
    object1.setAttribute("id","movie-inner");
    object1.setAttribute("type","video/quicktime");
    object1.setAttribute("data",video);

    object.appendChild(object1);

    param2 = generateParam("true","autostart");
    param3 = generateParam("false","controller");
    param4 = generateParam("false","showlogo");
    param5 = generateParam("true","cache");
    param6 = generateParam("#000000","bgcolor");
    param7 = generateParam("true","saveembedtags");

    object1.appendChild(param2);
    object1.appendChild(param3);
    object1.appendChild(param4);
    object1.appendChild(param5);
    object1.appendChild(param6);
    object1.appendChild(param7);

    param8 = generateParam("true","autostart");
    param9 = generateParam("false","controller");
    param10 = generateParam("false","showlogo");
    param11 = generateParam("true","cache");
    param12 = generateParam("#000000","bgcolor");
    param13 = generateParam("true","saveembedtags");

    object.appendChild(param8);
    object.appendChild(param9);
    object.appendChild(param10);
    object.appendChild(param11);
    object.appendChild(param12);
    object.appendChild(param13);

    container.appendChild(object);
}
The line the error is on is 27 which is the blank line after the following code:

Code:
object.appendChild(object1);
Any ideas what I've done wrong?