// JavaScript Document
function getContent(whichcontent) {
if (whichcontent == "about1") {
	new Ajax.Updater('scrollGreen', 'copy/about_about.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}
else if (whichcontent == "about2") {
	new Ajax.Updater('scrollGreen', 'copy/about_contact.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}	
else if (whichcontent == "about3") {
	new Ajax.Updater('scrollGreen', 'copy/about_directions.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}		
else if (whichcontent == "about4") {
	new Ajax.Updater('scrollGreen', 'copy/about_specials.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}			

if (whichcontent == "eyewear1") {
	new Ajax.Updater('scrollBlue', 'copy/eyewear_frames.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}
else if (whichcontent == "eyewear2") {
	new Ajax.Updater('scrollBlue', 'copy/eyewear_lenses.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}	
else if (whichcontent == "eyewear3") {
	new Ajax.Updater('scrollBlue', 'copy/eyewear_sun.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}		
else if (whichcontent == "eyewear4") {
	new Ajax.Updater('scrollBlue', 'copy/eyewear_accessories.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}			
	
if (whichcontent == "eyecare1") {
	new Ajax.Updater('scrollYellow', 'copy/eyecare_exams.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}
else if (whichcontent == "eyecare2") {
	new Ajax.Updater('scrollYellow', 'copy/eyecare_injuries.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}	
else if (whichcontent == "eyecare3") {
	new Ajax.Updater('scrollYellow', 'copy/eyecare_dryeye.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}		
else if (whichcontent == "eyecare4") {
	new Ajax.Updater('scrollYellow', 'copy/eyecare_disease.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}	
else if (whichcontent == "eyecare5") {
	new Ajax.Updater('scrollYellow', 'copy/eyecare_contacts.php', {asynchronous:true, evalScripts:true, queue: 'end'});
	}				
	
} 
