	var khSponsor = Class.create({

		initialize: function(uniqueName, imgSmall, importance) {
			this.uniqueName = uniqueName;
			this.imgSmall = imgSmall;
			this.importance = importance;
		},

		setBG: function(imgBig, repeat, bgColour){
			this.imgBig = imgBig;
			this.repeat = repeat;
			this.bgColour = bgColour;
		},

		setOverlay: function(ovTitle, ovSlogan, ovURL){
			this.ovTitle = ovTitle;
			this.ovSlogan = ovSlogan;
			this.ovURL = ovURL;
		},

		placeOnBar: function(){
			$('sponsoringbar').down('li.' + this.uniqueName).setStyle( { backgroundImage: "url('/wp-content/themes/shawne/img/sponsoring/klein/" + this.imgSmall + "')" } );
			$('sponsoringbar').down('li.' + this.uniqueName).observe('mouseover', function(event){
				this.switchBackground(event.pointerY(), true);
			}.bind(this));
		},

		switchBackground: function(mouseY, showOverlay){
			bgStyles = {
				backgroundImage: "url('/wp-content/themes/shawne/img/sponsoring/gross/" + this.imgBig + "')",
				backgroundRepeat: this.repeat,
				backgroundColor: this.bgColour
			};
			$$('body')[0].setStyle(bgStyles);

			if(showOverlay){
				styles = { display: 'block', top: '100px' }
				if(this.uniqueName == 'info'){
					styles = { display: 'none' }
				}
				else{
					styles = { position: 'absolute', top: (mouseY-13) + 'px', right: '30px', backgroundImage: "url('/wp-content/themes/shawne/img/layout/tooltip-bg.png')", display: 'block', width: '90px', height: '117px', zIndex: '120' }
				}
				$('sponsoringtooltip').setStyle(styles);

				$('sponsoringtooltip').down('.title').innerHTML = this.ovTitle;
				$('sponsoringtooltip').down('.text').innerHTML = this.ovSlogan;
				$('sponsoringtooltip').down('.link').innerHTML = '<a href="' + this.ovURL + '">Website</a>';
			}
		}
		
	});