I'm installing Magic Menus into a DotNetNuke page, therefore I can't touch the body tag which posses a problem as I need to add variables to it to get the menus working. So I'm using JavaScript to get the below working on a page load..

Am I just formatting the below incorrectly?
Code JavaScript:
<script type="text/javascript">
function load() {
if (window.addEventListener) { 
window.addEventListener('load', "P7_setMM2('none',1,3,'Sublink 1.2','p7tbdn');P7_trigMM2();P7_autoShowHide(0);MM_preloadImages()", false); 
} else if (window.attachEvent) { 
window.attachEvent('onload', "P7_setMM2('none',1,3,'Sublink 1.2','p7tbdn');P7_trigMM2();P7_autoShowHide(0);MM_preloadImages()"); 
}
}
</script>

The complete body tag that I WISH I could just put in is:
Code HTML4Strict:
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="P7_setMM2('none',1,3,'Sublink 1.2','p7tbdn');P7_trigMM2();P7_autoShowHide(0);MM_preloadImages();preloadImages();">

Thanks for any help!