




active1 = new Image(26,26);
active1.src = "assets/menu/but1b.jpg";
inactive1 = new Image(26,26);
inactive1.src = "assets/menu/but1a.jpg";

active2 = new Image(26,26);
active2.src = "assets/menu/but2b.jpg";
inactive2 = new Image(26,26);
inactive2.src = "assets/menu/but2a.jpg";

active3 = new Image(26,26);
active3.src = "assets/menu/but3b.jpg>";
inactive3 = new Image(26,26);
inactive3.src = "assets/menu/but3a.jpg";

active4 = new Image(26,26);
active4.src = "assets/menu/but4b.jpg";
inactive4 = new Image(26,26);
inactive4.src = "assets/menu/but4a.jpg";

active5 = new Image(26,26);
active5.src = "assets/menu/but5b.jpg";
inactive5 = new Image(26,26);
inactive5.src = "assets/menu/but5a.jpg";

active6 = new Image(26,26);
active6.src = "assets/menu/but6b.jpg";
inactive6 = new Image(26,26);
inactive6.src = "assets/menu/but6a.jpg";

active7 = new Image(26,26);
active7.src = "assets/menu/but7b.jpg";
inactive7 = new Image(26,26);
inactive7.src = "assets/menu/but7a.jpg";

active8 = new Image(26,26);
active8.src = "assets/menu/but8b.jpg";
inactive8 = new Image(26,26);
inactive8.src = "assets/menu/but8a.jpg";



active9 = new Image(26,26);
active9.src = "assets/siteback/more_detail_Orange.gif";
inactive9 = new Image(26,26);
inactive9.src = "assets/siteback/more_detail.gif";

active10 = new Image(26,26);
active10.src = "assets/siteback/more_detail_Orange.gif";
inactive10 = new Image(26,26);
inactive10.src = "assets/siteback/more_detail.gif";

active11 = new Image(26,26);
active11.src = "assets/siteback/more_detail_Orange.gif";
inactive11 = new Image(26,26);
inactive11.src = "assets/siteback/more_detail.gif";

active12 = new Image(26,26);
active12.src = "assets/siteback/more_detail_Orange.gif";
inactive12 = new Image(26,26);
inactive12.src = "assets/siteback/more_detail.gif";

function compute(form) {
	totalseats = (parseInt(form.stdseats.value,10));

	if (totalseats > 0 && totalseats < 4) {
			totalcost = (form.stdseats.value * 44.99);
			form.save.value = ("$ " + Math.round(totalcost));
			}	
  	else if (totalseats > 3 && totalseats < 11) {
			totalcost = (form.stdseats.value * 39.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 10 && totalseats < 21) {
			totalcost = (form.stdseats.value * 34.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 20 && totalseats < 31) {
			totalcost = (form.stdseats.value * 32.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 30 && totalseats < 41) {
			totalcost = (form.stdseats.value * 30.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 40 && totalseats < 51) {
			totalcost = (form.stdseats.value * 28.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 50 && totalseats < 61) {
			totalcost = (form.stdseats.value * 26.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 60 && totalseats < 71) {
			totalcost = (form.stdseats.value * 24.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 70 && totalseats < 81) {
			totalcost = (form.stdseats.value * 22.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 80 && totalseats < 101) {
			totalcost = (form.stdseats.value * 20.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 100 && totalseats < 151) {
			totalcost = (form.stdseats.value * 18.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 150) {
		  alert("Please contact us for even better pricing above 150 seats");
		  }
		else {
			alert("Incorrect data. Please try again.");
			}
}

function clearform(form) {
  	form.stdseats.value = "0";
  	form.save.value = "$ 0";
  	}
	
function compute2(form) {
	totalseats = (parseInt(form.stdseats.value,10));

	if (totalseats > 0 && totalseats < 4) {
			totalcost = (form.stdseats.value * 54.99);
			form.save.value = ("$ " + Math.round(totalcost));
			}	
  	else if (totalseats > 3 && totalseats < 11) {
			totalcost = (form.stdseats.value * 49.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 10 && totalseats < 21) {
			totalcost = (form.stdseats.value * 44.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 20 && totalseats < 31) {
			totalcost = (form.stdseats.value * 42.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 30 && totalseats < 41) {
			totalcost = (form.stdseats.value * 40.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 40 && totalseats < 51) {
			totalcost = (form.stdseats.value * 38.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 50 && totalseats < 61) {
			totalcost = (form.stdseats.value * 36.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 60 && totalseats < 71) {
			totalcost = (form.stdseats.value * 34.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 70 && totalseats < 81) {
			totalcost = (form.stdseats.value * 32.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 80 && totalseats < 101) {
			totalcost = (form.stdseats.value * 30.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 100 && totalseats < 151) {
			totalcost = (form.stdseats.value * 28.99);
			form.save.value = ("$ " + Math.round(totalcost));
		}
		else if (totalseats > 150) {
		  alert("Please contact us for even better pricing above 150 seats.");
		  }
		else {
			alert("Incorrect data. Please try again.");
			}
}
//random generator for the color side bar
rannum = Math.random()*3;
rannum = (Math.round(rannum))+1;
function genNumbers() 
{
  return rannum;
}
//end
//random generator for the top picture in the color bar
rannum2 = Math.random()*9;
rannum2 = (Math.round(rannum2))+1;
function genNumbers2() 
{
  return rannum2 + ".jpg";
}
//end
//random generator for the bottom picture in the color bar
rannum3 = Math.random()*9;
rannum3 = (Math.round(rannum3))+1;
function genNumbers3() 
{
  return rannum3 + ".jpg";
}
//end
function eScram (user, sufix) {
	var host = "direktel."+sufix;
	var link = user + "@" + host;
	document.write("<a hre" + "f=ma" + "ilto:" + user + "@" + host + ">" + link + "</a>");
}



