var homeon = new Image();
homeon.src = 'toolbar/home2.jpg';
var homeoff = new Image();
homeoff.src = 'toolbar/home1.jpg';
var profileon = new Image();
profileon.src = 'toolbar/profile2.jpg';
var profileoff = new Image();
profileoff.src = 'toolbar/profile1.jpg';
var storeon = new Image();
storeon.src = 'toolbar/store2.jpg';
var storeoff = new Image();
storeoff.src = 'toolbar/store1.jpg';
var faqon = new Image();
faqon.src = 'toolbar/faq2.jpg';
var faqoff = new Image();
faqoff.src = 'toolbar/faq1.jpg';
var recipeson = new Image();
recipeson.src = 'toolbar/recipes2.jpg';
var recipesoff = new Image();
recipesoff.src = 'toolbar/recipes1.jpg';
var contacton = new Image();
contacton.src = 'toolbar/contact2.jpg';
var contactoff = new Image();
contactoff.src = 'toolbar/contact1.jpg';


function imgOn(imgName) {

if (document.images){
	document.images[imgName].src = eval(imgName + "on.src");
}

}
function imgOff(imgName) {

if (document.images){
	document.images[imgName].src = eval(imgName + "off.src");
}

}

function clicked(imgName) {

	if (document.images) {

			if(imgName=='home'){
				homeoff.src= 'toolbar/home2.jpg';
				profileoff.src = 'toolbar/profile1.jpg';
				storeoff.src = 'toolbar/store1.jpg';
				faqoff.src = 'toolbar/faq1.jpg';
				recipesoff.src = 'toolbar/recipes1.jpg';
				contactoff.src = 'toolbar/contact1.jpg';
				imgOff('profile');
				imgOff('store');
				imgOff('faq');
				imgOff('recipes');
				imgOff('contact');
				}
			else if(imgName=='profile'){
				homeoff.src= 'toolbar/home1.jpg';
				profileoff.src = 'toolbar/profile2.jpg';
				storeoff.src = 'toolbar/store1.jpg';
				faqoff.src = 'toolbar/faq1.jpg';
				recipesoff.src = 'toolbar/recipes1.jpg';
				contactoff.src = 'toolbar/contact1.jpg';
				imgOff('home');
				imgOff('store');
				imgOff('faq');
				imgOff('recipes');
				imgOff('contact');
				}
			else if(imgName=='store'){
				homeoff.src= 'toolbar/home1.jpg';
				profileoff.src = 'toolbar/profile1.jpg';
				storeoff.src = 'toolbar/store2.jpg';
				faqoff.src = 'toolbar/faq1.jpg';
				recipesoff.src = 'toolbar/recipes1.jpg';
				contactoff.src = 'toolbar/contact1.jpg';
				imgOff('home');
				imgOff('profile');
				imgOff('faq');
				imgOff('recipes');
				imgOff('contact');
				}
			else if(imgName=='faq'){
				homeoff.src= 'toolbar/home1.jpg';
				profileoff.src = 'toolbar/profile1.jpg';
				storeoff.src = 'toolbar/store1.jpg';
				faqoff.src = 'toolbar/faq2.jpg';
				recipesoff.src = 'toolbar/recipes1.jpg';
				contactoff.src = 'toolbar/contact1.jpg';
				imgOff('home');
				imgOff('profile');
				imgOff('store');
				imgOff('recipes');
				imgOff('contact');
				}
			else if(imgName=='recipes'){
				homeoff.src= 'toolbar/home1.jpg';
				profileoff.src = 'toolbar/profile1.jpg';
				storeoff.src = 'toolbar/store1.jpg';
				faqoff.src = 'toolbar/faq1.jpg';
				recipesoff.src = 'toolbar/recipes2.jpg';
				contactoff.src = 'toolbar/contact1.jpg';
				imgOff('home');
				imgOff('profile');
				imgOff('store');
				imgOff('faq');
				imgOff('contact');
				}
			else if(imgName=='contact'){
				homeoff.src= 'toolbar/home1.jpg';
				profileoff.src = 'toolbar/profile1.jpg';
				storeoff.src = 'toolbar/store1.jpg';
				faqoff.src = 'toolbar/faq1.jpg';
				recipesoff.src = 'toolbar/recipes1.jpg';
				contactoff.src = 'toolbar/contact2.jpg';
				imgOff('home');
				imgOff('profile');
				imgOff('store');
				imgOff('faq');
				imgOff('recipes');
				}
		}
	}


	
function writeHeader1() {
document.write("<div>");
document.write("<table background='images/top.jpg' cellpadding='0' cellspacing='0' width='100%' height='100' align='center' border='0'>");
document.write("<tr valign='top'>");
document.write("<td  align='left'>");
document.write("<img src='images/plant1.gif' height='80' border='0'>");
document.write("</td>");
document.write("<td align='center'>");
document.write("<table>");
document.write("<tr>");
document.write("<td align='center'>");



document.write("<img src='images/header.jpg' width='500' height='78'>");
document.write("</td>");
document.write("</tr>");
document.write("</table></td>");
document.write("<td align='right'><img src='images/plant2.gif' height='80' border='0'></td>");
document.write("</tr>");
document.write("</table>");

document.write("</div>");
document.write("<div class='tools' align='center' >");

document.write("<table  bgColor='#666666' align='center' width='100%' border='0' cellspacing='0' cellpadding='0'>");
document.write("<tbody>");




document.write("<tr valign='top' align='center'>");


document.write("<td  width='16%'>");
document.write("<a href='index.html' onMouseOver=\"imgOn('home'); window.status='Return to the Home Page';return true;\"  onMouseOut=\"imgOff('home'); window.status='';\">");
document.write("<img name='home' src='toolbar/home1.jpg' alt='Click Here' border='0'></a>");
document.write("</td>");

document.write("<td width='17%'>");
document.write("<a href='profile.html'  onMouseOver=\"imgOn('profile'); window.status='About Northern Quinoa Corp'; return true;\" onMouseOut=\"imgOff('profile'); window.status='';\">");
document.write("<img  src='toolbar/profile1.jpg' name='profile' alt='Click Here' border='0'></a>");
document.write("</td>");


document.write("<td width='16%'><a href='/store'  target='_top' onMouseOver=\"imgOn('store');window.status='Visit Our Online Store!';return true;\" onMouseOut=\"imgOff('store');window.status='';\">");
document.write("<img  src='toolbar/store1.jpg' name='store' alt='Click Here' border='0'></a>");
document.write("</td>");


document.write("<td width='16%'><a href='faq/faq.html' onMouseOver=\"imgOn('faq');window.status='Frequently Asked Questions';return true;\" onMouseOut=\"imgOff('faq');window.status='';\">");
document.write("<img src='toolbar/faq1.jpg' name='faq' alt='Click Here' border='0'></a>");
document.write("</td>");


document.write("<td width='16%'><a href='recipes/recipes.html' onMouseOver=\"imgOn('recipes');window.status='Try Our Delicious Recipes';return true;\" onMouseOut=\"imgOff('recipes');window.status='';\">");
document.write("<img  src='toolbar/recipes1.jpg' name='recipes' alt='Click Here' border='0'></a>");
document.write("</td>");


document.write("<td width='16%'><a href='contact.html' onMouseOver=\"imgOn('contact');window.status='Contact Northern Quinoa Corp';return true;\" onMouseOut=\"imgOff('contact');window.status='';\">");
document.write("<img  src='toolbar/contact1.jpg' name='contact' alt='Click Here' border='0'></a>");
document.write("</td>");


document.write("</tr>");
document.write("</tbody>");
document.write("</table>");

document.write("</div>");

}
