function Show(id) {
	obj = document.getElementsByTagName("div");
	obj[id].style.display = 'block';
	}

function Hide(id) {
	obj = document.getElementsByTagName("div");
	obj[id].style.display = 'none';
	}


function popUp(URL, SCROLL, myWIDTH, myHEIGHT, isCenter) {
	if(window.screen)if(isCenter)if(isCenter=="true") {
		var myLeft = (screen.width-myWIDTH)/2;
		var myTop = (screen.height-myHEIGHT)/2;
		}
	window.open(URL, '', 'toolbar=0,scrollbars='+SCROLL+',location=0,statusbar=0,menubar=0,resizable=no,width='+myWIDTH+',height='+myHEIGHT+',left='+myLeft+',top='+myTop+', screenX=50,screenY=50,resizable=1');
	}

function changeImages(img_name,img_src) {
	document[img_name].src=img_src;
	}
	
// ------[ Main Onload ]------------------------------------------------- //
function main() {
	var agt=navigator.userAgent.toLowerCase();
	var find_ie6=agt.indexOf('msie 6');
	var find_ie7=agt.indexOf('msie 7');

	if (find_ie6>0) navInit();
	if (find_ie6>0 || find_ie7>0) flashHack();
	}
window.onload = main;


// Navigation Hack IE6.
// ------[ Navigation ]------------------------------------------------- //
function navInit() {
	obj = document.getElementById("navigation");
	if(obj) navLoop(obj)
	}
	
function navLoop(obj) {
	for (var i=0; i<obj.childNodes.length; i++) {
		node = obj.childNodes[i];
		
		if(node.nodeName=="LI") {
			if(!node.className) node.className = "null";
			node.onmouseover = function() {
				this.className += ' hover';
				};
			node.onmouseout = function() {
				this.className = this.className.replace(new RegExp(" hover\\b"), '');
				};					
			}
		if(node.childNodes) navLoop(node);
		}
	}
	
//  This fixes the IE bug that forces clicks on flash content on pages
//  have 'active' content. --jkl
function flashHack() {
	objects = document.getElementsByTagName("object");
			
	for (var i = 0; i < objects.length; i++) {
		objects[i].outerHTML = objects[i].outerHTML;
		}
	}
	
