Add this line (for example) to the form tag of the generic content (in this case my-generic3.html):
onsubmit="parent.adpHide('tplayercustom1');parent.DFS.adv.initLayer('tplayervideo1',0);