(function () {
	window.addEvent('domready',function () {
		var harley = [];
		
		if (browserType() == 'ie') {
			harley = [$('harley-link-image'),$('harley-link-text')];
		} else {
			harley = document.body.getElements('a[href="#"][rel="harley"]');
		}
		
		if (harley.length > 0) {
			Array.each(harley,function (el) {
				el.addEvent('click',function (e) {
					e.stop();
					
					if ($('harley-photo')) { $('harley-photo').destroy(); }
					
					if (typeOf($('temp_image')) == "element") {
						var harley = $('temp_image').clone();
							harley.setStyle('display','block');
							harley.setProperty('id','harley-photo');
							harley.setStyle('zIndex',zIndex($(WebForge.body_id)));
							harley.inject(document.body,'bottom');
						
						var frame = harley.getElement('div.frame');
							frame.setStyles({ marginTop: '12px', marginBottom: '10px', width: '750px', height: '85%' });
						
						var body = harley.getElement('div.body');
							body.setStyle('height','430px');
						
						var div = new Element('div',{ });
							div.setStyles({ width: '300px', height: '430px' });
							div.setStyle('float','left');
							div.inject(body,'bottom');
							
						var img = new Element('img',{ src: '/x/harley.jpg', alt: 'John \'Harley\' Kellock' });
							img.setStyles({ width:'290px', height: '419px' });
							img.addEvent('mouseover',function (e) { this.style.cursor = 'pointer'; });
							img.addEvent('click',function (e) { $('harley-photo').destroy(); });
							img.inject(div,'top');
							
							div = new Element('div',{ });
							div.setStyle('width','415px');
							div.setStyle('height','430px');
							div.setStyle('float','left');
							div.inject(body,'bottom');
							
						var desc = new Element('div',{ html: 'NWF was incorporated in late 2004. Harley Kellock became a member of the company\'s Board of Directors soon after. During 2007, he served as Vice President, becoming the company\'s President in late 2007. Harley served the company with dedication and boundless energy and enthusiasm until his untimely passing on November 14, 2009.' });
							desc.addClass('harley_description');
							desc.inject(div,'bottom');
							
						var name = new Element('div',{ html: 'John "Harley" Kellock' });
							name.addClass('harley_name');
							name.inject(desc,'top');
							
						var close = new Element('a',{ href: '#', html: 'Close this window?' });
							close.addClass('harley_close');
							close.addEvent('click',function () { $('harley-photo').destroy(); });
							close.inject(div,'bottom');
					}
				});
			});
		}
	});
})();

