var title = "TDA Interiors"; 
var url = "index.html"; 

function switchImages ($source) {
	what = document.getElementById('bigImage');
	what.src=$source; 
}

function sfHover() {
	var sfEls = document.getElementById("buttex").getElementsByTagName("input");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
//if (window.attachEvent) window.attachEvent("onload", sfHover);

var d=document;
function expandCL(id,plusid) {
	e=document.getElementById(id);
	f=document.getElementById(plusid);
	if (e.style.display == 'none' || e.style.display =="") {
		e.style.display = 'block';
		f.src = "images/contract.gif";
	} else {
		e.style.display = 'none';
		f.src = "images/expand.gif";
	}
}

function hideCL() {
	contractCL('Airlines');
	contractCL('Banking');
	contractCL('Building');
	contractCL('Chartered');
	contractCL('Consultants');
	contractCL('Construction');
	contractCL('Commerce');
	contractCL('Education');
	contractCL('Energy');
	contractCL('Entertainment');
	contractCL('Food');
	contractCL('Government');
	contractCL('Insurance');
	contractCL('IT');
	contractCL('Law');
	contractCL('Manufacturing');
	contractCL('Marketing');
	contractCL('Media');
	contractCL('Medical');
	contractCL('Motor');
	contractCL('Pest');
	contractCL('Petro');
	contractCL('Pharma');
	contractCL('Property');
	contractCL('Retail');
	contractCL('Software');
	contractCL('Solicitors');
	contractCL('Telecoms');
	contractCL('Training');
	contractCL('Travel');
	contractCL('Unions');
	contractCL('Waste');
}

function contractCL(id) {
	e=document.getElementById(id);
	e.style.display = 'none';
}
