function createParam(nameStr, valueStr) {
	var el = document.createElement('param');
	el.setAttribute('value', valueStr);
	el.setAttribute('name', nameStr);
	return el;
}

function loadFlash(){
	var obj;

obj = document.createElement('object');
	if (document.all){
		//IE
	    flashBox.appendChild(obj);
	}
	else if (document.getElementById){
		//Firefox
	    document.getElementById("flashBox").appendChild(obj);
	}

	obj.type = "application/x-shockwave-flash";
	obj.movie = "/flash/rotateImages.swf";
	obj.data = "/flash/rotateImages.swf";
	obj.width = "560px";
	obj.height = "84px";
	obj.id = "rotateImages";
	obj.name = "rotateImages";
	obj.menu = "false";
	obj.loop = "true";
	
	obj.appendChild(createParam('menu', 'false'));
	obj.appendChild(createParam('loop', 'true'));
}