jQuery(document).ready(function(){
	initHome();
});

function initHome(){
	if (!FF2Mac) {
  	$('#flash-content').each(function(){
  		var $a = $('a', this);
  		if ($a.attr('rel') !== '') {
  			var config = {
  				src: $a.attr('rel'),
  				height: $(this).height(),
  				width: $(this).width(),
  				wmode: 'opaque',
  				bgcolor: '#394e60',
  				version: [8, 0, 0],
  				onFail: function(){
  					$('#flash-replace, #flash-content img').css('display', 'block');
  				}
  			};
  			var flashvars = {
  				strUrl: $a.attr('href'),
  				strTarget: $a.attr('target'),
  				strLogoPath: $('#vca-logo').attr('src')
  			};
  			$(this).flashembed(config, flashvars);
  			$('.header img, #flash-replace').css('display', 'none');
  		}
  	});
  } else {
		$('#flash-replace, #flash-content img').css('display', 'block');
	}
}
