// JavaScript Document
function getElementById(tagid){
	return document.getElementById(tagid);
}

function CheckCountry(){
	
	var country = getElementById("_country").options[getElementById("_country").selectedIndex].text
	var city = getElementById("_city").value;
	
	//var Location = city + "," + country;	
	var Location = city;	
	GetLatLong(Location);
	GetGoogleAddr(city);
	
}

function GetManifesto(filename){
	
	var zipname = "";
	if(filename.length > 0){	   
	   zipname = filename.replace(".jpg",".zip");	   	   
	   window.location.assign(zipname);
	}
	
}

function openLayer(){
	
	// select the overlay element - and "make it an overlay" 
	$("#layer").overlay({ 
	 
		// custom top position 
		top: 272, 
	 
		// some expose tweaks suitable for facebox-looking dialogs 
		expose: { 
	 
			// you might also consider a "transparent" color for the mask 
			color: '#999999', 
	 
			// load mask a little faster 
			loadSpeed: 200, 
	 
			// highly transparent 
			opacity: 0.5 
		}, 
	 
		// disable this for modal dialog-type of overlays 
		closeOnClick: true, 
	 
		// we want to use the programming API 
		api: true 
	 
	// load it immediately after the construction 
	}).load();
	
}