jQuery(document).ready(function($){

//home page right-hand-side box - add page [content] (image + link) inside specified div tag
if ( $('body#home').length > 0 ) {
		$('.homeIntro #homeRight').load("default.asp?id=53");
} 

	//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 +'');
	});

	$('span.deg').each(function() {
		var $deg = $(this);
		var degree = $deg.text()
		.replace(/\s*\[deg\]\s*/g, '&deg;');
		$deg.html(''+ degree +'');
	});

	$('span.tm').each(function() {
		var $tm = $(this);
		var trademark = $tm.text()
		.replace(/\s*\[tm\]\s*/g, '&trade;');
		$tm.html(''+ trademark +'');
	});
	
	
	
	
	
	
	
	
	//Homepage Nav Rollovers
	
	$('#trans-square li').hover(function(){
		var selected = $("#trans-square li").index(this);
		$('.homeIntro .promo:eq(' + selected + ')').addClass('current-promo');
	},function(){
		$('.homeIntro div').removeClass('current-promo');
	});
});


