function pngFixer(el)
{
	try {
		if (Browser.Engine.trident4){
			el = $(el);
			var imgURL2 = el.getStyle('background-image');
			if (imgURL2.test(/\((.+)\)/)){
				el.setStyle('background-image','none');
				el.setStyle('filter',"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src=" + imgURL2.match(/\((.+)\)/)[1] + ")");
			}
		} 
	}catch(e){ }
}

window.addEvent('domready',function(){
	$$('.pngfix').each(function(el){
		pngFixer(el);
	});
	$$('.transunionimg').each(function(el){
		el.addEvent('mouseenter',function(){
			$('externalLinkText').fade('in');														
		});	
		el.addEvent('mouseleave',function(){
			$('externalLinkText').fade('out');														
		});	
	});
	
	$$('.nav_link').each(function(el){
		el.addEvent('mouseenter',function(){
			el.getFirst().fade('in');
		});
		el.addEvent('mouseleave',function(){
			el.getFirst().fade('out');
		});								
																			
	});
});

function ShowPopupSurvey(){

var SURVEY_URL = "http://surveys.amfam.com/se.ashx?s=59D2666D7B04572B";
	//This is the information that is passed to a hidden field of the survey that will determine where the floating icon was clicked
	var urlParam = "&site=" + location.pathname;
	var options = "height=480,width=900,toolbar=no,left=0,top=0,scrollbars=yes,resizable=yes,status=yes";
	window.open(SURVEY_URL + urlParam, "_blank", options);
}

