/**
 * Email link-generating JavaScript
 */


/**
 * Inserts the link into the DOM
 */
function placeLink () {
	/* Create the variables to use for insert */
	var e_name = 'ivanabobic';
	var e_domain = 'gmail.com';
	var e_subject = 'Contact from Showreel';
	var code  = '<a class="button mail" href="mailto:'+e_name+'@'+e_domain+'?subject='+e_subject+'">';
		code += '&nbsp;';
		code += '<span>';
		code += e_name+'@'+e_domain;
		code += '</span>';
		code += '</a>';
		
	/* Put in the code */
	$('#email-link').html(code);
}


/* Listen for page load to run the placement */
$(function () {
	placeLink();
});