var services_enlarge = '';
var download_file = '';

function hideshow(which,arrow){
	if (!document.getElementById)
	return
	if (which.style.display=="block") {
		which.style.display="none"
		arrow.src = "graphics/arrow_closed.gif"
	} else {
		which.style.display="block"
		arrow.src = "graphics/arrow_open.gif"
	}
}

function swapmap(which){
	regmap.src=which
}

function services(services,image){
	self.name="main"
	if (!services_enlarge.closed && services_enlarge.location) {
		services_enlarge.close()
	}

	services_enlarge = window.open( "services_enlarge.php?service="+services+"&image="+image, "services_enlarge", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=800,height=530")
	services_enlarge.focus()	
}


function download(file){
	self.name="main"
	if (!download_file.closed && download_file.location) {
		download_file.close()
	}

	download_file = window.open( "download.php?file="+file, "download_file", "toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=650")
	download_file.focus()	
}