// Control visual elements.

var welcomeTxt = '<h1>Welcome to Taawon Website</h1><h2>Taawon For the Scientific and Medical Supplies (Taawon); one of the leading companies in the Middle East in the field of supplying instruments and solutions for Industrial and Medical sectors.</h2><h2>Taawon is specialized in supplying solutions for Weighing, Advanced Analytical Instruments, Fertility (IVF), Metrology, Material Testing and Process Measurements &amp; Control.</h2><h2>Below is a lineup of our key partners:</h2><div id="part_logos"><a href="http://www.nikoninstruments.com/" target="_blank"><img src="imgs/partners/nikon_logo.gif" width="86" height="85" /></a><a href="http://mt.com/" target="_blank"><img src="imgs/partners/mettler_logo.gif" width="152" height="78" /></a><a href="http://www.leica-microsystems.com/" target="_blank"><img src="imgs/partners/leica_logo.gif" width="110" height="70" /></a><a href="http://www.duran-group.com/" target="_blank"><img src="imgs/partners/duran_logo.gif" width="141" height="59" /></a><a href="http://www.humiditycontrol.com/" target="_blank"><img src="imgs/partners/pgc_logo.gif" width="101" height="68" /></a><a href="http://www.pmeasuring.com/" target="_blank"><img src="imgs/partners/particle_logo.gif" width="152" height="42" /></a><a href="http://www.rotronic.com/" target="_blank"><img src="imgs/partners/rotronic_logo.gif" width="123" height="34" /></a><a href="http://www.pharma-test.de/" target="_blank"><img src="imgs/partners/pharma_logo.gif" width="112" height="58" /></a><a href="http://www.tka.de/" target="_blank"><img src="imgs/partners/tka_logo.gif" width="110" height="38" /></a><a href="http://www.hamiltonthorne.com/" target="_blank"><img src="imgs/partners/hamilton_logo.gif" width="130" height="51" /></a><a href="http://www.ika.net/" target="_blank"><img src="imgs/partners/ika_logo.gif" width="99" height="37" /></a><a href="http://www.foss.dk/" target="_blank"><img src="imgs/partners/foss_logo.gif" width="126" height="23" /></a></div>'

var weighingTxt = "<h1>Weighing Solutions</h1><h2>Under construction</h2>"

var analyticalTxt = "<h1>Analytical Instruments</h1><h2>Under construction</h2>"

var fertilityTxt = "<h1>Fertility (IVF)</h1><h2>Under construction</h2>"

var metrologyTxt = "<h1>Metrology</h1><h2>Under construction</h2>"

var materialTxt = "<h1>Material Testing</h1><h2>Under construction</h2>"

var processTxt = "<h1>Process Measurement & Control</h1><h2>Under construction</h2>"

function cont_up(para) {
	
	document.getElementById('welcome').innerHTML = "<a href='#'><img src='imgs/tabs/welcome.gif' /></a>";
	document.getElementById('weighing').innerHTML = "<a href='#'><img src='imgs/tabs/weighing.gif' /></a>";
	document.getElementById('analytical').innerHTML = "<a href='#'><img src='imgs/tabs/analytical.gif' /></a>";
	document.getElementById('fertility').innerHTML = "<a href='#'><img src='imgs/tabs/fertility.gif' /></a>";
	document.getElementById('metrology').innerHTML = "<a href='#'><img src='imgs/tabs/metrology.gif' /></a>";
	document.getElementById('material').innerHTML = "<a href='#'><img src='imgs/tabs/material.gif' /></a>";
	document.getElementById('process').innerHTML = "<a href='#'><img src='imgs/tabs/process.gif' /></a>";
	
	document.getElementById(para).innerHTML = "<a href='#'><img src='imgs/tabs/" + para + "_up.gif' /></a>";
	
	if (para == "welcome") {
		document.getElementById('cont_txt').innerHTML = welcomeTxt;
	} else if (para == "weighing") {
		document.getElementById('cont_txt').innerHTML = weighingTxt;
	} else if (para == "analytical") {
		document.getElementById('cont_txt').innerHTML = analyticalTxt;
	} else if (para == "fertility") {
		document.getElementById('cont_txt').innerHTML = fertilityTxt;
	} else if (para == "metrology") {
		document.getElementById('cont_txt').innerHTML = metrologyTxt;
	} else if (para == "material") {
		document.getElementById('cont_txt').innerHTML = materialTxt;
	} else if (para == "process") {
		document.getElementById('cont_txt').innerHTML = processTxt;
	}
}
