function emailQuote() {
	var start = "sales";
	var end = "." + "com";
	var middle = "anderson" + "labs";
	var subject=encodeURIComponent("Request For Quote");
	parent.location="mailto:" + start + String.fromCharCode(64) + middle + end + "?subject=" + subject;
}

function hideServicesMenu() {
	document.getElementById('services_menu').style.display='none';	
} 

function initialRotate(){
	document.getElementById('header_image').style.backgroundImage=headerImages[Math.floor(headerImages.length*Math.random())];
}

function obfuscate_email() {
	var start = "sales";
	var end = "." + "com";
	var middle = "anderson" + "labs";
	document.getElementById('email').innerHTML=start + String.fromCharCode(64) + middle + end;
}

function rotateAdd(){
	var id=Math.floor(4*Math.random())+1;
	document.getElementById('random_add_'+id).style.display="";
}

function rotateAllAdds(){
	var id_1=Math.floor(4*Math.random())+1;
	var id_2;
	var id_3;
	do {
		id_2=Math.floor(4*Math.random())+1;
	}while(id_1 == id_2);
	do {
		id_3=Math.floor(4*Math.random())+1;
	}while(id_1 == id_3 || id_2 == id_3);
	document.getElementById('random_add_blue_'+id_1).style.display="";
	document.getElementById('random_add_lt_grey_'+id_2).style.display="";
	document.getElementById('random_add_med_grey_'+id_3).style.display="";
}

function rotateBottom2Adds(){
	var id_1=Math.floor(4*Math.random())+1;
	var id_2;
	do {
		id_2=Math.floor(4*Math.random())+1;
	}while(id_1 == id_2);
	document.getElementById('random_add_lt_grey_'+id_1).style.display="";
	document.getElementById('random_add_med_grey_'+id_2).style.display="";
}

function rotateImage(){
    document.getElementById('header_image').style.backgroundImage=headerImages[Math.floor(headerImages.length*Math.random())];
}

function rotateTop2Adds(){
	var id_1=Math.floor(4*Math.random())+1;
	var id_2;
	do {
		id_2=Math.floor(4*Math.random())+1;
	}while(id_1 == id_2);
	document.getElementById('random_add_blue_'+id_1).style.display="";
	document.getElementById('random_add_med_grey_'+id_2).style.display="";
}

function sendEmail() {
	var start = "sales";
	var end = "." + "com";
	var middle = "anderson" + "labs";
	var subject=encodeURIComponent("Request/Comment From Website");
	parent.location="mailto:" + start + String.fromCharCode(64) + middle + end + "?subject=" + subject;
}

function showServicesMenu() {
	document.getElementById('services_menu').style.display='';	
}


