jQuery.fn.safe_mail = function(username, domain_name, domain_ext, link_text) {
	if(link_text) {
		link_txt = link_text;
	} else {
		link_txt = "link"	
	}
	
	// If no link text(link_txt) is specified, or if the user explicitally sets link_txt to "link"
	if(link_txt == "link") {
		// Use the link its self as the link text
		mail_link = "<a " + "href" + "=" + "'mail" + "to" + ":" + username + "@" + domain_name + "." + domain_ext +"'>" + username + "@" + domain_name + "." + domain_ext +"</a>";
	} else {
		// Otherwise use the user provided link text
		mail_link = "<a " + "href" + "=" + "'mail" + "to" + ":" + username + "@" + domain_name + "." + domain_ext +"'>" + link_txt +"</a>";
	}
	
	$(this).append(mail_link);
};
	
	$(document).ready(function() {
		
		// Preload all rollovers
		$("#nav img").each(function() {
			// Set the original src
			rollsrc = $(this).attr("src");
			rollON = rollsrc.replace(/.jpg$/ig,"_over.jpg");
			$("<img>").attr("src", rollON);
		});
		
		// Navigation rollovers
		$("#nav a").mouseover(function(){
			imgsrc = $(this).children("img").attr("src");
			matches = imgsrc.match(/_over/);
			
			// don't do the rollover if state is already ON
			if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_over.jpg"); // strip off extension
			$(this).children("img").attr("src", imgsrcON);
			}
			
		});
		$("#nav a").mouseout(function(){
			$(this).children("img").attr("src", imgsrc);
		});
		
		$('#sidhelpInfo').safe_mail("info", "sidhelp", "com");
		
	
	});