if (document.getElementById && document.getElementsByTagName && window.RegExp)
	window.onload = init;

function alpha() {
	var obj = null;
	var src = null;
	var i = null;
	for (i = 0; i < imgs.length; i++) {
		if (!document.getElementById (imgs[i])) continue;
		obj = document.getElementById (imgs[i]);
		if (!obj.src) continue;
		obj.src = obj.src.replace (non_alpha_formats, '.png');
	}
}

function init() {
	if (top != self) top.location.href = self.location.href;
	else {
		if (window.file_canvas) replaceCosmos ();
		if (window.ie_alpha) ie_alpha ();
		else if (window.alpha) alpha ();
		if (window.file_interface && window.file_control) initNavEvents ();
	}
}

