// include overlib.js

var currently_over = 0; // nothing initially

function hi() {
	currently_over = 0;
	nd();
	return true;
}

function si(content, caption) {
	if ( is_firefox ) {
		overlib(content, CAPTION, caption);
	} else {
		currently_over = Math.floor(Math.random()*1000000) + 1; // generate an id (random number between 1 and 1,000,000)
		var exec_string = "timer_func('" + content + "','" + caption + "'," + currently_over + ")";
		setTimeout(exec_string, 100); // time this for fluidity (100ms)
	}
	return true;
}

function timer_func(content, caption, id) {
	if ( currently_over == id ) { // make sure the user has not rolled off it yet
		nd(); // clear any other overlibs
		overlib(content, CAPTION, caption);
	}
}
