function sharePage() {
	$('.headerSharePage').trigger('click'); 
}

$(document).ready(function() {
	// EMAIL PAGE
	$(".headerSharePage").fancybox({
		'overlayColor': '#000000',
		'overlayOpacity': 0.75,
		'width': 504,
		'height': 407,
		'titleShow': false
	});
	
	// SOUNDMANAGER
	//$("soundManager").onready(function(){
	//	mySound.play();
	//});
	
	// REMOVE BORDER FROM LAST TD IN TABLE
	$("td:last-child").css({
		'border-right':"1px solid #d2d5d7"
		})
	
	// ADDING STYLE TO FIRST TD IN HISTORY
	$(".history td:first-child").css({
		'background':"url(/skins/altalink/images/history-grad.jpg) repeat-y top left",
		'padding':"11px 8px 0 10px",
		'width':"58px",		
		'text-align':"center"		
		})	
	
	// UNIT PNG FIX
	if ($.browser.msie && $.browser.version.substr(0,1)<7) {
		fixPng();
	}
	
	// EMAIL CLOAKING
	$(".emailCloak").each(function(){
		var ats, dots, address, i, foundDots;
		ats = [ ' at ', ' (at) ', ' [at] ' ];
		dots = [ ' dot ', ' (dot) ', ' [dot] ' ];
		address = $(this).html();
		for ( i = 0; i < ats.length; i++ ) {
			address = address.replace(ats[i], '@');
		}
		for ( i = 0; i < dots.length; i++ ) {
			foundDots = [];
			foundDots = address.split(dots[i]);
			for(var j=1; j<foundDots.length; j++) {
				address = address.replace(dots[i], '.');
			}
		}
		$(this).html('<a href="mailto:' + address + '">' + address + '</a>');
	});
	
	//ZEBRA TABLES	
	$('.zebra tr:even').addClass("even");
	
	//TABLE CELL EXPAND & COLLAPSE	
	$(".expandLink").click(
		function(){
			//$("div.expandContent").slideUp(200);			
			$(this).parent().parent().parent().find("div.expandContent").slideToggle(200);	
		}
	);
});
	
	

