function popup(url, title) {

	newWindow(url,title,'550','450','resizable=1,scrollbars=1,status=0,toolbar=0');
}

var tinfoUtil_win = null;
function newWindow(mypage, myname, w, h, features) {
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';
	settings += 'top=' + wint + ',';
	settings += 'left=' + winl + ',';
	settings += features;
	tinfoUtil_win = window.open(mypage,myname,settings);
	tinfoUtil_win.window.focus();
}

var tinfoUtil_suffix = new Array("", "_1", "_2", "_3", "_4", "_5");
var tinfoUtil_show = false;

function tinfoUtil_themeHideFlash() {
	tinfoUtil_show = false;
	for (i=0; i<tinfoUtil_suffix.length; i++) { 
		var idFlash = "flash" + tinfoUtil_suffix[i];
		if(document.getElementById(idFlash) != null) {
			document.getElementById(idFlash).style.visibility = 'hidden';
		}
	}
}

function tinfoUtil_themeShowFlash1() {
	if (tinfoUtil_show) {
		for (i=0; i<tinfoUtil_suffix.length; i++) { 
			var idFlash = "flash" + tinfoUtil_suffix[i];
			if(document.getElementById(idFlash) != null) {
				document.getElementById(idFlash).style.visibility = 'visible';
			}
		}
	}
}

function tinfoUtil_themeShowFlash() {
	tinfoUtil_show = true;
	setTimeout('tinfoUtil_themeShowFlash1()', 1000);
}
