$(function() {
 		$("#content .wrapper .column").hover(function() {
 			$(this).toggleClass("column_hover");
		});
});


function showMsg(htmlCode, msgType) {
	$(function() {
		$('<div class="bar"><div class="'+msgType+'">'+htmlCode+'</div></div>').fadeIn(500).delay(2000).fadeOut('slow').prependTo('#header');
	});
	
}

function valid_email(email) {
    var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);  
    return pattern.test(email);
} 

// Numeric only control handler
jQuery.fn.ForceNumericOnly =
function()
{
	return this.each(function()
	{
		$(this).keydown(function(e)
		{
		    var key = e.charCode || e.keyCode || 0;
		    // allow backspace, tab, delete, arrows, numbers and keypad numbers ONLY
		    return (
		        key == 8 || 
		        key == 9 ||
		        key == 46 ||
		        (key >= 37 && key <= 40) ||
		        (key >= 48 && key <= 57) ||
		        (key >= 96 && key <= 105));
		});
	});
};

