// JavaScript Document

var things = new Array();

function info(){
	addstuff(
		function(){
				document.getElementById('email').innerHTML = '<p><a href="mailto:info@systemelectrical-sw.co.uk">info@systemelectrical-sw.co.uk</a></p>';
		}
	);
	//document.write('<a href="mailto:info@systemelectrical-sw.co.uk">info@systemelectrical-sw.co.uk</a>');
}
function contact(){
	addstuff(
		function(){
				document.getElementById('contactspace').innerHTML = '<a href="mailto:info@systemelectrical-sw.co.uk">info@systemelectrical-sw.co.uk</a>';
		}
	);	
	//document.write('<p><a href="mailto:info@systemelectrical-sw.co.uk">info@systemelectrical-sw.co.uk</a></p>');
}

function addstuff(what){
	things[(things.length)] = what;
}

function runstuff(s){
	for(var i = 0; i <= (things.length-1); i++){
		things[i].call();
	}
}

window.onload = function(){
	runstuff();	
	//SF 14/03/2011 this is really bad.... but so is all of this at the moment
	document.getElementById('email').className = '';
	sIFR.replace(neur, {
	  selector: '#email',
	  css: ['a {color: #ffffff; sLinkColor:#ffffff; sHoverColor:#1076BD; text-decoration: none; }', 'a:hover {color: #1076BD; }', '.sIFR-root { color: #ffffff; cursor:pointer;}'],
	  wmode: 'transparent'
	});
}


