// *********************************************************************************************************//
// newslettersignup                                                                                         //
// *********************************************************************************************************//
function newslettersignup(){
	//alert("newslettersignup");
	var params = 'email=' + $('nl_email').value;
	params += '&lang=' + $('lang').value;
	params += '&ci=' + $('ci').value;
	params += '&z='+ new Date().getTime();
	//alert ('ajax_nlsignup.php?'+params);

	new Ajax.Request('/ajax_nlsignup.php', {
		method: 'get',
		parameters: params,
		onSuccess: function(xhrResponse){
			var content = xhrResponse.responseText;
			//alert (content);
			//alert("total_count: "+pagin_array[0]+" - this_page_count: "+pagin_array[1]+" - max_entry_per_page: "+pagin_array[2]+" - page_number: "+pagin_array[3]);
			$('newsletterInfo').update(content);
			 },
		onFailure:function(xhrResponse) {
			alert('Ajax Request Failure\n'.xhrResponse.statusText);
			}
		});
}

// *********************************************************************************************************//
// nlemail                                                                                         //
// *********************************************************************************************************//
function nlemail(e){
	if (e!=null) {
		var eKey=(e.keyCode ? e.keyCode : e.which);
		}
	if(eKey==13 || e==null){newslettersignup();}
}

// *********************************************************************************************************//
// navigation functions                                                                                     //
// *********************************************************************************************************//
function showhome(){
	new Ajax.Request('/inc_home.php', {method: 'get',
		onSuccess: function(xhrResponse){$('container').update(xhrResponse.responseText);},
		onFailure:function(xhrResponse) {alert('Ajax Request Failure\n'.xhrResponse.statusText);}
		});
	}
function shownews(){
	new Ajax.Request('/inc_news.php', {method: 'get',
		onSuccess: function(xhrResponse){$('container').update(xhrResponse.responseText); },
		onFailure:function(xhrResponse) {alert('Ajax Request Failure\n'.xhrResponse.statusText);}
		});
	}
function showdates(){
	new Ajax.Request('/inc_dates.php', {method: 'get',
		onSuccess: function(xhrResponse){$('container').update(xhrResponse.responseText); },
		onFailure:function(xhrResponse) {alert('Ajax Request Failure\n'.xhrResponse.statusText);}
		});
	}
function showreleases(){
	new Ajax.Request('/inc_releases.php', {method: 'get',
		onSuccess: function(xhrResponse){$('container').update(xhrResponse.responseText); },
		onFailure:function(xhrResponse) {alert('Ajax Request Failure\n'.xhrResponse.statusText);}
		});
	}
function showdownloads(){
	new Ajax.Request('/inc_downloads.php', {method: 'get',
		onSuccess: function(xhrResponse){$('container').update(xhrResponse.responseText); },
		onFailure:function(xhrResponse) {alert('Ajax Request Failure\n'.xhrResponse.statusText);}
		});
	}

