$(document).ready(function() {
   	$('h1').flash(
					{ 
						src: '/100hours/swf/helv_neue_light_32.swf',  
						flashvars: { 
							css: [
								'* { color: #EF8201; }',
								'a { color: #0055CC; text-decoration: none; }',
								'a:hover { text-decoration: underline; }'
							].join(' ')
						}
					},
					{ version: 7 },
					function(htmlOptions) {
						htmlOptions.flashvars.txt = this.innerHTML;
						this.innerHTML = '<span>'+this.innerHTML+'</span>';
						var $alt = $(this.firstChild);
						htmlOptions.height = $alt.height();
						htmlOptions.width = $alt.width();
						$alt.addClass('alt');
						$(this)
							.addClass('flash-replaced')
							.prepend($.fn.flash.transform(htmlOptions));						
					}
				);
				
				$('h2.flash').flash(
					{ 
						src: '/100hours/swf/helv_neue_light_32.swf',  
						flashvars: { 
							css: [
								'* { color: #666666; }',
								'a { color: #0055CC; text-decoration: none; }',
								'a:hover { text-decoration: underline; }'
							
							].join(' ')
						}
					},
					{ version: 7 },
					function(htmlOptions) {
						htmlOptions.flashvars.txt = this.innerHTML;
						this.innerHTML = '<span>'+this.innerHTML+'</span>';
						var $alt = $(this.firstChild);
						htmlOptions.height = $alt.height();
						htmlOptions.width = $alt.width();
						$alt.addClass('alt');
						$(this)
							.addClass('flash-replaced')
							.prepend($.fn.flash.transform(htmlOptions));						
					}
				);
				$('h2.flashwhite').flash(
					{ 
						src: '/100hours/swf/helv_neue_light_white_32.swf',  
						flashvars: { 
							css: [
								'* { color: #ffffff; }',
								'a { color: #0055CC; text-decoration: none; }',
								'a:hover { text-decoration: underline; }'
							
							].join(' ')
						}
					},
					{ version: 7 },
					function(htmlOptions) {
						htmlOptions.flashvars.txt = this.innerHTML;
						this.innerHTML = '<span>'+this.innerHTML+'</span>';
						var $alt = $(this.firstChild);
						htmlOptions.height = $alt.height();
						htmlOptions.width = $alt.width();
						$alt.addClass('alt');
						$(this)
							.addClass('flash-replaced')
							.prepend($.fn.flash.transform(htmlOptions));						
					}
				);


$('.calendarFocus').datepicker({ nextText: '>', prevText: '<', dateFormat: 'dd/mm/yy' });

 $('#participants').listnav({ noMatchText: 'No Organisations matched your filter, please click another letter.', 
    showCounts: false, prefixes: ['the','a']});

});
