//window.onload = fn_onload;

function fn_onload (event) {

	//fn_sifr();
	//fn_ahref();

}

function fn_ahref() {

	if (!document.getElementsByTagName) return;
	arr_nodes = document.getElementsByTagName('A');

	for (i = 0; i < arr_nodes.length; i++) {
		obj_node = arr_nodes[i];
		if (obj_node.getAttribute('href') && obj_node.getAttribute('rel') == 'external')
		obj_node.target = '_blank';
	}

}

function fn_sifr() {

	if (typeof sIFR == "function") {
		var template = named ({sFlashSrc : "/images/gillb.swf", sCase : "upper", sColor : "#D56717", sBgColor : "#FFF"});
		sIFR.replaceElement ("h1", template);
		var template = named ({sFlashSrc : "/images/gill.swf", sColor : "#2A333E", sBgColor : "#FFF"});
		sIFR.replaceElement ("h2", template);
		var template = named ({sFlashSrc : "/images/gill.swf", sColor : "#2A333E", sBgColor : "#E8ECF2"});
		sIFR.replaceElement ("h3", template);
	}

}


/**************************************************
	Popup window related functions
**************************************************/
function popup(url, title, width, height, scroll) {
	var s = 'menubar=no,toolbar=no,location=no,resizable=yes,status=yes'
	s += ',scrollbars=' + scroll
	s += ',width=' + width + ',height=' + height;
	s += ',top=' + (screen.availHeight - height) / 2 + ',left=' + (screen.availWidth - width) / 2;

	//close existing window
	if (navigator.newwindow) navigator.newwindow.close();
	
	//save new window object in navigator object and activate
	navigator.newwindow = self.open(url, title, s);
	navigator.newwindow.focus();
	
	return false;
}