window.onload = function(){

for(i=1; i<11; i++){
	document.getElementById("nav_button_" + i).onmouseover = function(){
		this.style.color = "#7e9802";
	}
	document.getElementById("nav_button_" + i).onmouseout = function(){
		this.style.color = "#ffffff";
	}
	document.getElementById("nav_button_" + i).onmousedown = function(){
		this.style.color = "#987102";
	}
	document.getElementById("nav_button_div_" + i).onmouseover = function(){
		document.getElementById("nav_button_" + this.id.split("_")[3]).style.color = "#7e9802";
	}
	document.getElementById("nav_button_div_" + i).onmouseout = function(){
		document.getElementById("nav_button_" + this.id.split("_")[3]).style.color = "#ffffff";
	}
	document.getElementById("nav_button_div_" + i).onmousedown = function(){
		document.getElementById("nav_button_" + this.id.split("_")[3]).style.color = "#987102";
	}
	document.getElementById("nav_button_div_" + i).onmouseup = function(){
		document.getElementById("nav_button_" + this.id.split("_")[3]).style.color = "#7e9802";
	}
}
if(document.getElementById("homepage_title")){document.getElementById("homepage_title").innerHTML = homepage_title_text;}
if(document.getElementById("homepage_main")){document.getElementById("homepage_main").innerHTML = homepage_main_text;}
if(document.getElementById("about_title")){document.getElementById("about_title").innerHTML = about_title_text;}
if(document.getElementById("about_main")){document.getElementById("about_main").innerHTML = about_main_text;}
if(document.getElementById("product_title")){document.getElementById("product_title").innerHTML = product_title_text;}
if(document.getElementById("product_main")){document.getElementById("product_main").innerHTML = product_main_text;}
if(document.getElementById("service_title")){document.getElementById("service_title").innerHTML = service_title_text;}
if(document.getElementById("service_main")){document.getElementById("service_main").innerHTML = service_main_text;}
if(document.getElementById("hire_title_1")){document.getElementById("hire_title_1").innerHTML = hire_title_1_text;}
if(document.getElementById("hire_main_1")){document.getElementById("hire_main_1").innerHTML = hire_main_1_text;}
if(document.getElementById("hire_title_2")){document.getElementById("hire_title_2").innerHTML = hire_title_2_text;}
if(document.getElementById("hire_main_2")){document.getElementById("hire_main_2").innerHTML = hire_main_2_text;}
if(document.getElementById("contact_title")){document.getElementById("contact_title").innerHTML = contact_title_text;}
if(document.getElementById("contact_main")){document.getElementById("contact_main").innerHTML = contact_main_text;}
if(document.getElementById("exam_title_1")){document.getElementById("exam_title_1").innerHTML = exam_title_1_text;}
if(document.getElementById("exam_title_2")){document.getElementById("exam_title_2").innerHTML = exam_title_2_text;}
if(document.getElementById("exam_title_3")){document.getElementById("exam_title_3").innerHTML = exam_title_3_text;}
if(document.getElementById("exam_title_4")){document.getElementById("exam_title_4").innerHTML = exam_title_4_text;}
if(document.getElementById("exam_main_1")){document.getElementById("exam_main_1").innerHTML = exam_main_1_text;}
if(document.getElementById("exam_main_2")){document.getElementById("exam_main_2").innerHTML = exam_main_2_text;}
if(document.getElementById("exam_main_3")){document.getElementById("exam_main_3").innerHTML = exam_main_3_text;}

if(document.getElementById("about_image_1")){document.getElementById("about_image_1").src = about_image_1;}
if(document.getElementById("about_image_1_under")){document.getElementById("about_image_1_under").src = about_image_1;}
if(document.getElementById("about_image_2")){document.getElementById("about_image_2").src = about_image_2;}
if(document.getElementById("about_image_2_under")){document.getElementById("about_image_2_under").src = about_image_2;}
if(document.getElementById("about_image_3")){document.getElementById("about_image_3").src = about_image_3;}
if(document.getElementById("about_image_3_under")){document.getElementById("about_image_3_under").src = about_image_3;}

if(document.getElementById("product_image_1")){document.getElementById("product_image_1").src = product_image_1;}
}

var about_imgs = [];
about_imgs[0] = "15|340"
about_imgs[1] = "330|340"
about_imgs[2] = "645|340"

function about_image_over(i){
	if(document.getElementById("about_image_"+i).src.split("/")[document.getElementById("about_image_"+i).src.split("/").length - 1].split(".")[0] != "clear"){
		document.getElementById("about_image_"+i).style.left = "10px";
		document.getElementById("about_image_"+i).style.top = "10px";
		document.getElementById("about_image_"+i).style.width = "960px";
		document.getElementById("about_image_"+i).style.height = "256px";
		document.getElementById("about_image_"+i+"_cover").style.left = "10px";
		document.getElementById("about_image_"+i+"_cover").style.top = "10px";
		document.getElementById("about_image_"+i+"_cover").style.width = "960px";
		document.getElementById("about_image_"+i+"_cover").style.height = "318px";
		document.getElementById("about_image_"+i+"_cover").src = "images/photos/cover3.png";
		if(i==1){document.getElementById("about_image_text").innerHTML = about_image_1_text;}
		if(i==2){document.getElementById("about_image_text").innerHTML = about_image_2_text;}
		if(i==3){document.getElementById("about_image_text").innerHTML = about_image_3_text;}
	}
}

function about_image_out(i){
		document.getElementById("about_image_"+i).style.left = about_imgs[i-1].split("|")[0] + "px";
		document.getElementById("about_image_"+i).style.top = about_imgs[i-1].split("|")[1] + "px";
		document.getElementById("about_image_"+i).style.width = "300px";
		document.getElementById("about_image_"+i).style.height = "80px";
		document.getElementById("about_image_"+i+"_cover").style.left = about_imgs[i-1].split("|")[0] + "px";
		document.getElementById("about_image_"+i+"_cover").style.top = about_imgs[i-1].split("|")[1] + "px";
		document.getElementById("about_image_"+i+"_cover").style.width = "300px";
		document.getElementById("about_image_"+i+"_cover").style.height = "80px";
		document.getElementById("about_image_"+i+"_cover").src = "images/photos/cover2.png";	
		document.getElementById("about_image_text").innerHTML = "";
}
