<!--

var browser = {
	dom:(document.getElementById != null),
	ie:(document.all && parseInt(navigator.appVersion) >= 4),
	ns:(document.layers && parseInt(navigator.appVersion) >= 4)
}

function openW(urlW, width_w, height_w, scroll_bar) {
	
	center_x = Math.round((window.screen.availWidth - width_w) / 2);
	center_y = Math.round((window.screen.availHeight - height_w) / 2);
	
	window.open(urlW,'_blank','top=' + center_y + ',left=' + center_x + ',width=' + width_w + ',height=' + height_w + ',status=no,titlebar=no,toolbar=no,menubar=no,location=no,resizable=no,directories=no,scrollbars=' + scroll_bar);
	
}

function getLayer(name) {
	if (browser.dom) return document.getElementById(name);
	else if (browser.ie) return document.all[name];
	else if (browser.ns) return document.layers[name];
}

function frmSend(name) {

	if (name == "loginfrm") showiFrame();
	eval("document." + name + ".submit();");

}

function swapBlocks(name, blocks, suffix) {

	var i;
	
	for (i = 0; i < blocks.length; i++) {
		_box = getLayer(suffix + blocks[i]);
		
		if (_box != null) {
			if (name == blocks[i]) _box.style.display = "block";
				else _box.style.display = "none";
		}
		
	}

}

function showiFrame() {

	_box_iframe = getLayer("iFrame");
	_box_content = getLayer("barContent");
	
	_box_iframe.style.display = "block";
	_box_content.style.display = "none";

}

_home_boxes = new Array("One", "Two", "Three");

//-->