Replace all that with the much simpler
:
Code:
<script type="text/javascript">
function hvMenuFramesInit(){
if(parent.frames[0]&&parent.frames['Menu'].Go)
parent.frames['Menu'].Go();
}
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", hvMenuFramesInit, false );
else if ( typeof window.attachEvent != "undefined" )
window.attachEvent( "onload", hvMenuFramesInit );
else {
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
hvMenuFramesInit();
};
}
else
window.onload = hvMenuFramesInit;
}
</script>
<body>
Untested but, should work. Don't forget to still include the body tag (shown in green above).
Bookmarks