schedule("window", insertSWFs); 


/*
    ** Each SWF file that needs to be inserted should have a separate function.
*/
function insertSWFs() 
{
    if(document.getElementById('artwork')) insertArtworkSWF();
};

function insertArtworkSWF() 
{ 
    var so = new SWFObject("media/flash/rotating-artwork.swf", "artworkINS", "525", "335", "8", "#FFCC00");
    so.addParam("wmode", "transparent");
    so.write("artwork");
};