function create_mail(eNaam, eDomain, eTLD, eLabel) {
	var wMail = "";
	if (eLabel == "show") {
		eLabel = eNaam + '&#64;' + eDomain + '.' + eTLD;
	}
	wMail += '<a href="' + 'ma' + 'il' + 'to:' + eNaam;
	wMail += '&#64;' + eDomain + '.' + eTLD;
	wMail += '">' + eLabel + '<' + '/a>';
	document.write(wMail);
}

jQuery(document).ready(function () {
	//********************
	//image hover states
	//********************
	jQuery('img.imgFade').hover(function () {
		jQuery(this).stop().animate({ 'opacity': .6 }, 200);
	}, function () {
		jQuery(this).stop().animate({ 'opacity': 1 }, 500);
	});
	
	//********************
	//subnav functionality
	//********************
	var jqNavOn = jQuery('li.current_page_item');
	jQuery(jqNavOn).removeClass('page_item');
	jQuery(jqNavOn).children('a').addClass('snHover');

	var jqNavItem = jQuery('li.page_item');
	jQuery(jqNavItem).hover(function () {
		jQuery(this).removeClass('page_item');
		jQuery(this).addClass('navItemSelected');
		jQuery(this).children('a').addClass('snHover');
	}, function () {
		jQuery(this).removeClass('navItemSelected');
		jQuery(this).children('a').removeClass('snHover');
		jQuery(this).addClass('page_item');
	});

	var jqNavLink = jQuery('li.navLink');
	jQuery(jqNavLink).click(function (e) {
		e.preventDefault();
		window.location = jQuery(this).children('a').attr('href');
	});

	var jqNavNewWin = jQuery('li.newWin');
	jQuery(jqNavNewWin).click(function (e) {
		e.preventDefault();
		window.open(jQuery(this).children('a').attr('href'));
	});

	//********************
	//mainnav functionality
	//********************
	jQuery(function () {
		jQuery("img.imgReplace").hover(
			function () {
				this.src = this.src.replace("_off", "_on");
			},
			function () {
				this.src = this.src.replace("_on", "_off");
			}
		);
	})
	jQuery(document).ready(function () {
		jqMainNavLink = jQuery('.navItem');
		jqMainNavLink.hover(function () {
			jQuery(this).removeClass('navItem');
			jQuery(this).addClass('navItemHover');
		}, function () {
			jQuery(this).removeClass('navItemHover');
			jQuery(this).addClass('navItem');
		});
	})

})
