// Images Scripts

if (document.images) {            // Active Images

m_help = new MakeArray(36)

m_help[1].src = "http://www.claiborneone.org/homer/g/hmr4i3.gif" // Homer

m_help[2].src = "http://www.claiborneone.org/g/homer/help-mayor.jpg" // mayor

m_help[3].src = "http://www.claiborneone.org/homer/g/tr4i3.gif"	// council	

m_help[4].src = "http://www.claiborneone.org/homer/g/dr4i3.gif"	//dept	

m_help[5].src = "http://www.claiborneone.org/homer/g/nr4i3.gif"	//news	

m_help[6].src = "http://www.claiborneone.org/homer/g/ar4i3.gif"	//attr			

m_help[7].src = "http://www.claiborneone.org/homer/g/pr4i3.gif"	//parks	

m_help[8].src = "http://www.claiborneone.org/homer/g/sr4i3.gif"	//schools	

m_help[9].src = "http://www.claiborneone.org/homer/g/srr4i3.gif"	//site search	

m_help[10].src = "http://www.claiborneone.org/homer/g/chr4i3.gif" //cla one home

m_help[11].src = "http://www.claiborneone.org/homer/g/cocr4i3.gif" // coc

m_help[12].src = "http://www.claiborneone.org/homer/g/hayr4i3.gif" // haynesville	

m_help[13].src = "http://www.claiborneone.org/homer/g/laker4i3.gif" // lakes

m_help[14].src = "http://www.claiborneone.org/homer/g/indr4i3.gif" // Industr

m_help[15].src = "http://www.claiborneone.org/homer/g/claparr4i3.gif" // clapar

m_help[16].src = "http://www.claiborneone.org/homer/g/newsr4i3.gif" // news br

m_help[17].src = "http://www.claiborneone.org/homer/g/dirr4i3.gif" // dir		

m_help[18].src = "http://www.claiborneone.org/homer/g/weatherr4i3.gif" //weather

m_help[19].src = "http://www.claiborneone.org/homer/g/eventsr4i3.gif" //Events

m_help[20].src = BaseDir + "cppj/helprealtors.jpg" //Realtors		

m_help[21].src = "http://www.claiborneone.org/homer/g/contactr4i3.gif" //Contact

m_help[22].src = "http://www.claiborneone.org/homer/g/gbr4i3.gif" //GB

m_help[23].src = "http://www.claiborneone.org/homer/g/netr4i3.gif" //net

m_help[24].src = "http://www.claiborneone.org/homer/g/sponr4i3.gif" //spons

m_help[25].src = "http://www.claiborneone.org/homer/g/localr4i3.gif" //local	

m_help[26].src = "http://www.claiborneone.org/homer/g/athensr4i3.gif" //athens

m_help[27].src = "http://www.claiborneone.org/homer/g/ruralr4i3.gif" //rural

m_help[28].src = "http://www.claiborneone.org/g/cppj/helpcppjabout.jpg" //pjabout

m_help[29].src = BaseDir + "cppj/helpcppjmembers.jpg" //pjabout

m_help[30].src = BaseDir + "cppj/helpcppjdept.jpg" 

m_help[31].src = BaseDir + "cppj/helpcppjmembers.jpg" 

m_help[32].src = BaseDir + "cppj/helpcppjproc.jpg"

m_help[33].src = BaseDir + "cppj/helpcppjfaq.jpg"

m_help[34].src = BaseDir + "cppj/helpcppjhistory.jpg"

m_help[35].src = BaseDir + "cppj/helpcppjhome.jpg"

m_help[36].src = BaseDir + "cppj/helpcsd.jpg"
}

function MakeArray(n) {

this.length = n

for (var i = 1; i<=n; i++) {

this[i] = new Image()

}

return this

}

function helpover(num,imgName,imgName1,imgName2,yn,yn1,yn2) {

if (document.images) {

						    if (num) {

						  	  document['help'].src = m_help[num].src;

//document.images[19].src = m_help[num].src

									  }

							if (yn) {

									   img_act(imgName)

									 }

							if (yn1 == 1) {

									   img_act(imgName1)

									 }

							if (yn1 == 2) {

									   img_actA(imgName1)

									 }

							if (yn2 == 1) {

									   img_act(imgName2)

									 }

							if (yn2 == 2) {

									   img_actA(imgName2)

									 }

							//switch (yn1) {

							 // case 1 :

							    //img_act(imgName1);

								//break;

							//  case 2 :

							  //  img_actA(imgName1);

						//		break;

							//  default : ; }

							//switch (yn2) {

							  //case 1 :

							    //img_act(imgName2);

							//break;

							//  case 2 :

							  //  img_actA(imgName2);

								//break;

							  //default : ; }

}

}

function helpout(num,imgName,imgName1,imgName2,yn,yn1,yn2) {

if (document.images) {

								    if (num) {

						  	  document['help'].src = m_help[eval(MainHelpImg) ].src;

// document.images[19].src = m_help[2].src

									   }

							if (yn) {

							   img_inact(imgName)

							   }

							if (yn1) {

							   img_inact(imgName1)

							   }

							if (yn2) {

							   img_inact(imgName2)

							   }

}

}

function helpoverB(num,imgName,yn) {

if (document.images) {

						  	  document['helpbott'].src = m_help[num].src;

//document.images[19].src = m_help[num].src

							if (yn) {

									   img_act(imgName)

									 }

}

}

function helpoutB(num,imgName,yn) {

if (document.images) {

						  	  document['helpbott'].src = m_help[eval(MainHelpImg) ].src;

// document.images[19].src = m_help[10].src

							if (yn) {

							   img_inact(imgName)

							   }

}

}


// Function to 'activate' images.

function img_actA(imgName) {

if (document.images) {

document[imgName].src = eval(imgName + "sa.src");

}

}

// Function to 'activate' images.

function img_act(imgName) {

if (document.images) {

document[imgName].src = eval(imgName + "s.src");

}

}

	

// Function to 'deactivate' images.

function img_inact(imgName) {

if (document.images) {

document[imgName].src = eval(imgName + ".src");

}

}

