// JavaScript Document
function unblur() {
	this.blur();
}

function blurLinks() {
	links = document.getElementsByTagName("a");
	for(i=0; i<links.length; i++) {
		links[i].onfocus = unblur;
	}
	inputs = document.getElementsByTagName("input");
	for(i=0; i<inputs.length; i++) {
		if (inputs[i].type == 'button' || inputs[i].type == 'submit') {
			inputs[i].onfocus = unblur;
		}
	}

}

function setFocus(obj) {
	x = document.getElementById(obj);
	x.focus();
}

function flashObjects (objPath,objWidth,objHeight,objTitle,objParam,wmode,altPath,altWidth,altHeight,altTitle) {
	document.write('<object type="application/x-shockwave-flash" data="'+objPath+'"width="'+objWidth+'" height="'+objHeight+'" '+objParam+'> \
					<param name="movie" value="'+objPath+'" /> \
					<param name="quality" value="high" /> \
					<param name="wmode" value="'+wmode+'" /> \
					<img src="'+altPath+'" width="'+altWidth+'" height="'+altHeight+'" alt="'+altTitle+'" /></object>');
}

function gotoURL (url) {
	window.location = url;
}

function showMap(mapLocation) {
//	document.body.style.overflow = 'hidden';
	document.getElementById('mapOverlay').style.display = 'block';	
	
	if (mapLocation == 'pl') {	
		mapContainer = document.getElementById('mapLocation');
	} else {
		mapContainer = document.getElementById('mapLocation2');
	}
	mapContainer.style.display = 'block';
	
	closeBtn = document.getElementById('close');
	closeBtn.style.display = 'block';	
}

function hideMap() {
	document.getElementById('mapOverlay').style.display = 'none';
	mapContainer = document.getElementById('mapLocation');
	mapContainer.style.display = 'none';

	mapContainer2 = document.getElementById('mapLocation2');
	mapContainer2.style.display = 'none';

//	document.body.style.overflow = 'auto';	

	closeBtn = document.getElementById('close');
	closeBtn.style.display = 'none';
}