var blendControls = {
	"init" : function(intervalSpeed) {
		this.first  = true;
		this.isPlay = false;
		this.bleInt;
		this.blendSpeed = intervalSpeed;
		
		homeBlend.changeOpac(100, 'loading');
		homeBlend.shiftOpacity('loading', 500);
	},
	"play" : function() {
		if(this.isPlay == true) {
		  this.isPlay = false;
		  document.getElementById('pause').id = 'play';
		  clearInterval(this.bleInt);
		}
		else {
		  this.isPlay = true;
		  document.getElementById('play').id = 'pause';
		  this.bleInt = setInterval("homeBlend.toggle();", this.blendSpeed);
		  //do not want to skip the first one on load. 
		  if(this.first == false) {
			if(homeBlend.inuse == false)
				homeBlend.toggle();
		  }
		  else {
		   this.first = false;
		  }
		}
	},
	"forward" : function() {
		if(homeBlend.inuse == true)
			return;

		if(this.isPlay == true)
			clearInterval(this.bleInt);
		homeBlend.toggle();
		if(this.isPlay == true)
			this.bleInt = setInterval("homeBlend.toggle();", this.blendSpeed);
	},
	"back" : function() {
		if(homeBlend.inuse == true)
			return;

		if(this.isPlay == true)
			clearInterval(this.bleInt);
		homeBlend.toggleBack();
		if(this.isPlay == true)
			this.bleInt = setInterval("homeBlend.toggle();", this.blendSpeed);
	}
}
