//jQuery.noConflict();
jQuery(document).ready(function($){
	
	//email spam protection - Example Markup: <span class="email">name[at]domain[dot]com</span>
	$('.email').each(function() {
		var $email = $(this);
		var address = $email.text()
		.replace(/\s*\[at\]\s*/, '@')
		.replace(/\s*\[dot\]\s*/g, '.');
		$email.html('<a href="mailto:' + address + '">'+ address +'</a>');
	});

	$('sup.reg').each(function() {
		var $sup = $(this);
		var registered = $sup.text()
		.replace(/\s*\[r\]\s*/g, '&reg;');
		$sup.html(''+ registered +'');
	});
	
	$('span.copy').each(function() {
		var $copy = $(this);
		var copyright = $copy.text()
		.replace(/\s*\[c\]\s*/g, '&copy;');
		$copy.html(''+ copyright +'');
	});

	/*$('ul.gallery-ul li a').click(function() {
		$('ul.gallery-ul li img').css('border','2px solid #222');
		$(this).children().css('border','2px solid #FFF');
	});*/
	

	$('td.photogalleryItem a img').each(function() {
		$(this).attr('width','70').attr('height','70').css('border','2px solid #222');
	});

	//$('td.photogalleryItem a img').hover(function() {
	//	$(this).css('filter','alpha(opacity=70);opacity:0.7;-moz-opacity:0.7;-khtml-opacity:0.7')
	//},
	//	function() {
	//	$(this).css('filter','alpha(opacity=100);opacity:1.0;-moz-opacity:1.0;-khtml-opacity:1.0')	
	//});

	
	//Fade in hidden menu's
	$('.menu-outer').fadeIn('fast');

	
});
