nvm..

paste the first above the onload handler
and the second inside it..

this is an onload handler..
[quote]if (!attachOnLoadHandler(function(){embed()})) window.onload = function(){embed()};
function embed(){}setTimeout("embed()",10000);[/quote]
so your final codes should go as follows:

[quote][b]
first code goes here[/b]
if (!attachOnLoadHandler(function(){embed()})) window.onload = function(){embed()};
function embed(){
[b]second code goes here[/b]
}setTimeout("embed()",10000);[/quote]
hope you can get that, that's already very detailed..