function ow(o) {
	window.open(o.href, '');
	return false;
}

function metaRf(m_title,m_desc) {
	var mtitle = document.getElementsByName('title')[0].setAttribute('content',m_title);
	var mdesc = document.getElementsByName('description')[0].setAttribute('content',m_desc);
}
function formClear(el,postal) {
	if(el.value == postal) { el.value = ''; }
}
function formPaste(el,postal) {
	if(el.value == '') { el.value = postal; }
}
function iContact() {
	if($('btnSend')) {
		$('btnSend').addEvent('click', function(event) {
			new Request({
				method: 'post',
				url: 'include/ajax/contact.php',
				evalScripts: true,
				onSuccess: function(textus)
				{
					$('corps').set('html', textus);
					iContact();
				}
			}).post($('contactForm'));
		});
	}
}

function iNl() {
	if($('btnOk')) {
		$('btnOk').addEvent('click', function(event) {
			new Request({
				method: 'post',
				url: 'include/php/checkMail.php',
				evalScripts: true,
				onSuccess: function(textus)
				{
					$('nlFormTxt').set('html', textus);
				}
			}).post($('nlForm'));
		});
	}
}

window.addEvent('domready',function(){
	$$('#nav div a').addEvent('click', function() {
		$$('#nav div a').removeClass('active');
		this.addClass('active');
	});
});
