var descriptionText = false;

if (document.images){ 
	rMission = new objRollover("mission");
	rReference = new objRollover("reference");
	rClinic = new objRollover("clinic");
	rNew = new objRollover("new");
	rInstruments = new objRollover("instruments");
	rLiterature = new objRollover("literature");
	rAccessories = new objRollover("accessories");
	rContact = new objRollover("contact");
	rStudent = new objRollover("student");
	rAdvanced = new objRollover("advanced");
}

var txtDefault = "";
txtMission = "Giving passion a voice.";
txtReference = "A helpful reference source developed to educate and answer common questions about string instruments.";
txtClinic = "An introduction to clinics, workshops, master classes and fund raising concerts we sponsor for string students and string educators.";
txtNew = "New products and news from Knilling.";
txtInstruments = "Our line of fine instruments for the student and advanced player.";
txtLiterature = "Helpful visual aides and literature for string education.";
txtAccessories = "An assortment of our other products for the beginning player to the advanced.";
txtContact = "Here is how to contact us at Knilling.";
txtStudent = "Our line of fine instruments for the student player.";
txtAdvanced = "Our line of fine instruments for the advanced player.";

function objRollover(name) {
		this.name = name;
		this.active = false;
		this.actImg=new Image();
		this.inaImg=new Image();
		this.actImg.src="images/" + name + "_on.jpg";
		this.inaImg.src="images/" + name + "_off.jpg";
}

function rolloverImage(sId,intMode) {
	if (document.images){
		if (intMode == 1) {	
			document.images[sId.name].src = sId.actImg.src;	
		}
		else { 
			document.images[sId.name].src = sId.inaImg.src;	
		}
	}
}

function writeText(text,id)
{
	if(descriptionText){
		if (document.getElementById)
		{
			x = document.getElementById(id);
			x.innerHTML = text;
		}
		else if (document.all)
		{
			x = document.all[id];
			x.innerHTML = text;
		}
		else if (document.layers)
		{
			x = document.layers[id];
			text2 = "<table height=100% width=100%><tr><td valign='middle' class='descriptionText'>" + text + "</td></tr></table>";
			x.document.open();
			x.document.write(text2);
			x.document.close();
		}
	}
}

function submitForm(sValue)
{
	document.form1.action = 'searchresults.htm';
	document.form1.submit();
}