<!--//
//
//	A javascript menu system.
//
//	The source files for the images, and the rollover images,
//	without the directory path (to save some space),
//	along with the height and width of the images (in this case,
//	both are the same, but it could happen that you are changing
//	the size of the thing you are rolling to or from).
//
var source = new Array("b_injuries",
					   "b_s_carpal_tunnel_syndrome",
					   "b_s_golf_and_tennis_elbow",
					   "b_s_frozen_shoulder",
					   "b_s_rotator_cuff_injuries",
					   "b_s_neck_pain",
					   "b_s_lower_back_pain",
					   "b_s_plantar_fasciitis",
					   "b_back_pain_relief",
					   "b_fit_pregnancy_prenatal_protocol",
					   "b_postpartum_weight_loss",
					   "b_weight_loss_program",
					   "b_medically_based_gym",
					   "b_nutrametrix_web_portal",
					   "b_community_outreach",
					   "b_physical_therapy_about_ns",
					   "b_physical_therapists",
					   "b_doctor_patient_reviews",
					   "b_newsletter_pdf",
					   "b_patient_intake_form",
					   "ns_physical_therapy_locations",
					   "contact_north_south_pt",
					   "b_10th_anniversary_newsletter",					   
					   "b_spanish_fisioterapia",
					   "b_portuguese_fisioterapia");
					   
var sourceOver = new Array("b_injuries_o",
						   "b_s_carpal_tunnel_syndrome_o",
						   "b_s_golf_and_tennis_elbow_o",
						   "b_s_frozen_shoulder_o",
						   "b_s_rotator_cuff_injuries_o",
						   "b_s_neck_pain_o",
						   "b_s_lower_back_pain_o",
						   "b_s_plantar_fasciitis_o",
						   "b_back_pain_relief_o",
						   "b_fit_pregnancy_prenatal_protocol_o",
						   "b_postpartum_weight_loss_o",
						   "b_weight_loss_program_o",
						   "b_medically_based_gym_o",
					  	   "b_nutrametrix_web_portal_o",
						   "b_community_outreach_o",
						   "b_physical_therapy_about_ns_o",
						   "b_physical_therapists_o",
						   "b_doctor_patient_reviews_o",
					   	   "b_newsletter_pdf_o",
						   "b_patient_intake_form_o",
						   "ns_physical_therapy_locations_o",
						   "contact_north_south_pt_o",
					   	   "b_10th_anniversary_newsletter_o",				   
						   "b_spanish_fisioterapia_o",
						   "b_portuguese_fisioterapia_o");
						   
var width =  new Array("154","154","154","154","154","154","154","154","154","154","154","154","154","154","154","154","154","154","154","154","66","69","154","154","154");
var height = new Array("17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","17","34","17","34","18","18","34","34","34");

var imageCount = 25;
//
//	These arrays will store the pre-loaded images, so that there is
//	no annoying lag when mousing over the menu items.
//	Preloading is a good thing!
//
var image = new Array(imageCount);
var image_o = new Array(imageCount);

for (var i = 0; i < imageCount; i++)  {
	
	image[i] = new Image(width[i], height[i]);
	image[i].src = "images/" + source[i] + ".jpg";
	
	image_o[i] = new Image(width[i], height[i]);
	image_o[i].src = "images/" + sourceOver[i] + ".jpg";
}
//
//	Swap the image to the over graphic...
//
function imageOver(num, id) {
	document.getElementById(id).src = image_o[num].src;
	document.getElementById(id).width = image_o[num].width;
	document.getElementById(id).height = image_o[num].height;
}
//
//	... and swap it back
//
function imageOut(num, id) {
	document.getElementById(id).src = image[num].src;
	document.getElementById(id).width = image[num].width;
	document.getElementById(id).height = image[num].height;
}
//-->