function modelHomeResizeHandler(height) {
  $('#model-home').css({ height: height }); 
}

/** Save the innerXHTML of div#model-home content, which will be requested by the ModelContent application */
var mainContent = innerXHTML($('#model-home').get(0));

/** Create the SWFObject */
var swfo = new SWFObject(RESOURCES_PATH + '/flash/ModelContent.swf', 'modelContentApplication', '100%', '100%', '9', '#ffffff'); 
swfo.addParam("wmode", "transparent"); 
swfo.addParam("allowScriptAccess", "always"); 
swfo.addVariable("content", escape(mainContent).replace(/%u[0-9a-f]{4}/gi, function (a) { return unescape(a) })); 
swfo.addVariable("resizeHandler", "modelHomeResizeHandler");
swfo.write('model-home'); 

