	function isValidEmailAddress(emailAddress) {
 		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(emailAddress);
	}
	function NumericOnly(event) {
		var limit = 15;
		var self = $(this);
		// Backspace, tab, enter, end, home, left, right
		// We don't support the del key in Opera because del == . == 46.
		var controlKeys = [8, 9, 13, 35, 36, 37, 39];
		// IE doesn't support indexOf
		var isControlKey = controlKeys.join(",").match(new RegExp(event.which));
		// Some browsers just don't raise events for control keys. Easy.
		// e.g. Safari backspace.
		if (!event.which || // Control keys in most browsers. e.g. Firefox tab is 0
			(49 <= event.which && event.which <= 57) || // Always 1 through 9
			(48 == event.which && $(this).attr("value")) || // No 0 first digit
			isControlKey) { // Opera assigns values for control keys.
			var val = $(self).val();
			var length = val.length;
			if(length > limit){
				$(self).val($(self).val().substring(0,limit));
			}
		    return;
		} else {
		  event.preventDefault();
		}
	}
function loadMain() {
//	$("ul#menu li:last-child a").addClass("last");
//	$("ul#menu li:first-child a").addClass("first");
	if($('.list_row').length!=0) {
		$("ul.list_row li a img").css('opacity',0.7);
		$("ul.list_row li a img").hover(function() {
			$(this).stop().animate({ opacity: 1 }, 100);
		},	function() {
			$(this).stop().animate({ opacity: 0.7 }, 200);
		});
		$("ul.list_row li").equalizeCols();
	}
	if($('.thumbthis').length!=0) {
			$('.thumbthis').fancybox({
				'titleShow' : true,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic',
				'overlayShow'	:	true,
				'padding' : 2,
				'autoDimensions' : true,
				'centerOnScroll' : false,
				'hideOnContentClick' : true
			});
	}
	if($('#box2 ul li').length!=0) {
			$('#box2 ul').easyListSplitter({ colNumber: 3 });
			$("#box2 ul li").equalizeCols();
	}
	$('#leftside form input, #leftside form textarea').each(function() {
						if ($(this).attr('hint')) {
							var hintpos = $(this).attr('hintpos');
							$(this).tipsy({
								 trigger: 'hover',
								 gravity: hintpos,
								 fade:true,
								 html:true,
								 fallback:'Field is mandatory',
								 title: function() {
									 var dodo = this.getAttribute('hint');//"<img src='/content/members/thumbs/"+this.getAttribute('rel')+"' width='139' height='209'/>"
									 return dodo;
								 }
							});
						}		
	});
	
	$('#leftside form input, #leftside form textarea').focus(function(){
						if ( $(this).val() == $(this).attr('defaultVal') ){	  $(this).val('');	}
						$(this).css({color:'#ffffff'});
					});
					$('#leftside form input, #leftside form textarea').blur(function(){
						if ( $(this).val() == '' ){	  $(this).val($(this).attr('defaultVal'));  $(this).css({color:'#6d6d6d'});	}
					});	
	if($('ul.imagelist').length!=0) {
		$("ul.imagelist a img").css('opacity',0.7);
		$("ul.imagelist a img").hover(function() {
			$(this).stop().animate({ opacity: 1 }, 100);
		},	function() {
			$(this).stop().animate({ opacity: 0.7 }, 200);
		});
	}
	
}
function startup() {
		$("#leftside, #rightside").equalizeCols();
}
