/**
 * Executed when document is finished loading elements into DOM
 */
$(document).ready(function() {
	//
});

/**
 * 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>");
}

/**
 * Get address hash (averything after that "#" thingy in address bar)
 *
 * @return string
 */
function getHash() {
	return window.location.hash.substring(1);
}