function newSize(datoY) { theId = 'flashcontent'; if (document.all && !document.getElementById) { document.all[theId].style.pixelHeight = datoY; } else { document.getElementById(theId).style.height = datoY+'px'; } $("#flashcontent object").css("height",datoY+"px") }