	
	jQuery(document).ready(function () {
		jq.milon.team.init();
	});
	
	jq.milon.team = {
		
		_lib: jq.milon.lib,
		
		init: function() {
			this.hrefs = jQuery('#content-left a.download').get();
			this.trgImg = jQuery('#info-box-content img');
			this.trgText = jQuery('#info-box-content .csc-textpic-text p.bodytext');
			
			jQuery(this.trgImg).bind('load', {fn: 'onImgLoad', scope: this}, this._lib.onEvent);
			jQuery(this.hrefs).attr('onclick', '');
			jQuery(this.hrefs).bind('click', {fn: 'onClick', scope: this}, this._lib.onEvent);
		},
		
		onClick: function(e) {
			e.preventDefault();
			e.stopPropagation();
			var trg = jQuery(e.currentTarget);
			
			this.curImg = trg.attr('href');
			this.curText = trg.html();
			
			this.trgImg.fadeTo(600, 0.00, function() {
					jQuery(this).attr('src', trg.attr('href'));
				}
			);

		},
		
		onImgLoad: function() {
			this.trgImg.fadeTo(600 ,1);
			this.trgText.html(this.curText);
		}
		
	};
	
	
	
