/* Author: 

*/

function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

	
$(document).ready(function() {

	$('.print_page').click(function() {
	  window.print();
	});
	

	
	$('a.mainemailhere').each(function() { // <- our anonymous callback
		var em1a = 'mai';
		var em1b = 'lto:';
		var ema = $(this).attr('ema');
		var emb = $(this).attr('emb');
		var emc = $(this).attr('emc');
		var changeInsideTag = $(this).attr('changeInsideTag');
		
		if(emc){
			emc = '?subject='+emc;
		}else{
			emc = '';	
		}
		
		if(ema && emb){
			if(changeInsideTag == 'true' || !changeInsideTag){
				$(this).text( ema  + "@" + emb  );
			}
			
			$(this).attr(   'href'  ,  em1a  +  em1b  +  ema  +  "@"  + emb + emc   );
		}
	});
	
	
	
	
});















