var backOffFunc = {
	
	transp: function() {
		var greys = $$(".grey_opac")
		greys.each(function(item, index){
			item.setStyles({
				'opacity': '0.4',
				'background-image': 'url(images/transp_grad.gif)'
				});
		});
	},
	
	addovers: function() {
		$("headerimage").setStyles({
			'background-image': 'none',
			'background-image': 'url(images/business_banner2.jpg)',
			'background-position': 'top left',
			'background-repeat': 'no-repeat'
		});
		
		var moveAmount = 747, interval = 31; 
	 
		var bacc = $$("#banneracc .acContent");
	 	var stoptrans=false;
		var baccFx = new Fx.Elements(bacc, {wait: false, duration: 1500, transition: Fx.Transitions.Quint.easeOut});
		bacc.each(function(banner, i) {
			banner.setStyle("left", i * interval);
			banner.addEvent("mousedown", function(event) {
				var o = {};
				var l = banner.getStyle("left").toInt()
				o[i] = {left: [l, i * interval]}
				stoptrans=true;
				bacc.each(function(other, j) {
					var l2 = other.getStyle("left").toInt();
					if(l2 > 31 && (i+1) > j) {
						o[j] = {left: [l2, j * interval]};
						//var imgnmright = other.firstChild.firstChild.getProperty('src');
						//imgnmright = imgnmright.substr(0,(imgnmright.length-9));
						//imgnmright = imgnmright + ".gif";
						//other.firstChild.firstChild.setProperty('src', imgnmright);
						//stoptrans=false;
					}
					if(l2 < (((j * interval) + moveAmount)-1) && (i-1) < j) {
						//console.log("move it right");
						o[j] = {left: [l2, (j * interval) + moveAmount]};
						//var imgnmleft = other.firstChild.firstChild.getProperty('src');
						//imgnmleft = imgnmleft.substr(0,(imgnmleft.length-4));
						//imgnmleft = imgnmleft + "_left.gif";
						//other.firstChild.firstChild.setProperty('src', imgnmleft);
						//stoptrans=false;
					}
					
				});
				baccFx.start(o);
			});
		});
	},
	
	newElements: function() {
		var newSection = new Element('div', {'class': 'acContent addbg', 'id': 'new1'}).setHTML('<h2><img src="images/business_applications.gif" alt="" /></h2><div class="banner_image"><img src="images/software-tailoring_banner.jpg" alt="" /><div id="grey_opac1" class="grey_opac"></div><div id="business_app_text"><div class="bigtext">Creating Solutions that fit your needs 100%</div></div></div>').injectInside($("banneracc"));
		var newSection = new Element('div', {'class': 'acContent addbg', 'id': 'new2'}).setHTML('<h2><img src="images/software_tailoring.gif" alt="" /></h2><div class="banner_image"><img src="images/planning_banner.jpg" alt="" /><div id="grey_opac2" class="grey_opac"></div><div id="software_tailoring_text"><div class="bigtext">Identifying ways to improve your efficiency and increase your profitability through technology.</div></div>').injectInside($("banneracc"));
		var newSection = new Element('div', {'class': 'acContent addbg', 'id': 'new3'}).setHTML('<h2><img src="images/planning_consultancy.gif" alt="" /></h2><div class="banner_image"><img src="images/re-media-water.jpg" alt="" /></div></div>').injectInside($("banneracc"));
	},
	
	init: function(){
		//this.newElements();
		//this.addovers();
		this.transp();
	}
}