var theImages = new Array()
theImages[0] = 'images/hpphoto1.jpg'
theImages[1] = 'images/hpphoto2.jpg'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
	preBuffer[i] = new Image()
	preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" width="505" height="472" border="0" alt="">');
}

function classChange(id, newClass)
{
	identity=document.getElementById(id);
	identity.className=newClass;
}

function SwapCustomer() {
	document.social.src="../images/social_r.png"
	document.fiscal.src="../images/fiscal_r.png"
	document.technical.src="../images/technical_r.png"
	document.employee.src="../images/employee_r.png"
}

function SwapCustomerBack() {
	document.social.src="../images/social.png"
	document.fiscal.src="../images/fiscal.png"
	document.technical.src="../images/technical.png"
	document.employee.src="../images/employee.png"
}

function SwapSocial() {
	document.customer.src="../images/customer_r.png"
	document.fiscal.src="../images/fiscal_r.png"
	document.technical.src="../images/technical_r.png"
	document.employee.src="../images/employee_r.png"
}

function SwapSocialBack() {
	document.customer.src="../images/customer.png"
	document.fiscal.src="../images/fiscal.png"
	document.technical.src="../images/technical.png"
	document.employee.src="../images/employee.png"
}

function SwapFiscal() {
	document.customer.src="../images/customer_r.png"
	document.social.src="../images/social_r.png"
	document.technical.src="../images/technical_r.png"
	document.employee.src="../images/employee_r.png"
}

function SwapFiscalBack() {
	document.customer.src="../images/customer.png"
	document.social.src="../images/social.png"
	document.technical.src="../images/technical.png"
	document.employee.src="../images/employee.png"
}

function SwapTechnical() {
	document.customer.src="../images/customer_r.png"
	document.social.src="../images/social_r.png"
	document.fiscal.src="../images/fiscal_r.png"
	document.employee.src="../images/employee_r.png"
}

function SwapTechnicalBack() {
	document.customer.src="../images/customer.png"
	document.social.src="../images/social.png"
	document.fiscal.src="../images/fiscal.png"
	document.employee.src="../images/employee.png"
}

function SwapEmployee() {
	document.customer.src="../images/customer_r.png"
	document.social.src="../images/social_r.png"
	document.fiscal.src="../images/fiscal_r.png"
	document.technical.src="../images/technical_r.png"
}

function SwapEmployeeBack() {
	document.customer.src="../images/customer.png"
	document.social.src="../images/social.png"
	document.fiscal.src="../images/fiscal.png"
	document.technical.src="../images/technical.png"
}

function changeSwf(file) {
	var so = new SWFObject(file, "mymovie", "416", "234", "9");
	so.addParam("menu", "false");
	so.addParam("wmode", "transparent");
	so.addParam("allowScriptAccess", "always");
	so.write("flashvideo");
}

window.defaultStatus ="Praxis Engineering";

