<%
if(classes === undefined){
	var classes = "";
}
if(containerClasses === undefined){
	var containerClasses = "";
}
if(msg === undefined){
	var msg = "";
}
if(includeEmail === undefined){
	if((classes.indexOf("warning") > -1) || (classes.indexOf("error") > -1))
		var includeEmail = true;
	else
		var includeEmail = false;
}
var email = "";
if(includeEmail && appModel.get("emailContact")){
	email = "<span class='webmaster-email'><i class='icon-envelope-alt icon'></i>Need help? Email us at <a href='mailto:" + appModel.get('emailContact') + "'>" + appModel.get('emailContact') + "</a></span>";
}
%>

<div class="alert-container <%=containerClasses%>">
	<div class="alert <%=classes%>">
	<%=msg%>
	<%=email%>
	</div>
</div>