﻿/**
 * Print email link (protection from spambots)
 * If javascript is disabled, nothing is visible
 *
 * @param string p1 Part 1 - this is username
 * @param string p2 Part 2 - this is domain and TLD
 * @param string name (optional) Display value
 */
function writemail(p1, p2, name) {
	if (typeof(name) == 'undefined') {
		name = p1+'@'+p2;
	}
	document.write('<a href="mailto:'+p1+'@'+p2+'">'+name+'</a>');
}

/**
 * jQuery functions in public part
 */

$(document).ready(function(){	
	$('div#banners li a').hover(function() {
		$('div.entry').hide();
		$('div#' + $(this).attr('rel')).show();
	}, 
	function() {
		$('div#' + $(this).attr('rel')).hide();
		$('div#home').show();
	});
});


