//rollOver
function smartOver() {
smartRollover('lNavi');
smartRollover('localNavigation');
smartRollover('howtoMenu');
smartRollover('guideNavi');
smartRollover('bnrArea');
}

function smartRollover(idName) {

if (document.getElementById(idName) != null){
	
	if(document.getElementsByTagName) {
	var images = document.getElementById(idName).getElementsByTagName("img");
	
	for(var i=0; i < images.length; i++) {
	
		

	
	
	
		images[i].onmouseover = function() {
		this.setAttribute("src", this.getAttribute("src").replace(".gif", "_on.gif"));
		}
		images[i].onmouseout = function() {
		this.setAttribute("src", this.getAttribute("src").replace("_on.gif", ".gif"));
		}
		}
}
}
}

//popup
function doPopup() {
	if (!document.getElementsByTagName) return false;
	var links = document.getElementsByTagName("a");
	
	for (var i=0; i < links.length; i++) {
		if (links[i].className.match("popup")) {
			links[i].onclick = function() {
			window.open(this.href ,"popwWindow","scrollbars=yes,width=385,height=400");
			return false;
			}
			
		}
		
		else if (links[i].className.match("popmorelia")) {
			links[i].onclick = function() {
			window.open(this.href ,"popwWindow","scrollbars=yes,width=650,height=800");
			return false;
			}
			
		}
		
		else if (links[i].className.match("popL")) {
			links[i].onclick = function() {
			window.open(this.href ,"popwWindow","scrollbars=yes,width=860,height=500");
			return false;
			}
			
		}
	}
}

window.onload = function() {
	smartOver();
	doPopup();
	}
	

