// Show ad before game starts
document.getElementById('ad-container').style.display = 'block';
// Wait for 5 seconds to show the ad, then start the game
setTimeout(function() {
// Hide the ad
document.getElementById('ad-container').style.display = 'none';
// Start the game
cr_createRuntime("c2canvas");
}, 5000); // Adjust the time (5000 ms = 5 seconds) as needed