var auto0 = new Image()
var auto1 = new Image()

var cycle0 = new Image()
var cycle1 = new Image()

var home0 = new Image()
var home1 = new Image()

var life0 = new Image()
var life1 = new Image()

auto0.src="images/auto0.gif"
auto1.src="images/auto1.gif"

cycle0.src="images/cycle0.gif"
cycle1.src="images/cycle1.gif"

home0.src="images/home0.gif"
home1.src="images/home1.gif"

life0.src="images/life0.gif"
life1.src="images/life1.gif"

function droplist(id,vis)
{

var currlist = document.getElementById(id)

currlist.style.visibility=vis


}

function swap(x)
{

var b1 = document.getElementById('b1')

var swaps = new Array()

swaps[0] = "Mark W Insurance and Insurance Countrywide; servicing Georgia customers for over 20 years!"
swaps[1] = "Back to our Homepage!"
swaps[2] = "Directions to one of our offices"
swaps[3] = "Our Decatur location just outside of i-285 on Covington Hwy."
swaps[4] = "Our Smyrna location located on Old Concord Rd."
swaps[5] = "Information on vehicle tags and registration."
swaps[6] = "Make an informed decision and get a quote on auto, motorcycle, home or life insurance!"
swaps[7] = "Keep that car covered! Get a quote on car insurance today!"
swaps[8] = "Gearing up for riding season? Keep that bike covered through one of our great Insurance Companies!"
swaps[9] = "Closing on a house? Trying to get a better rate on that Homeowner's Insurance? Get a quote today!"
swaps[10] = "Protect those that are most precious to you and get a Life Insurance quote today!"
swaps[11] = "Company use only."

b1.innerHTML=swaps[x]

}

function swapimg(source)
{
  var auto = document.getElementById("tdauto")
	var cycle = document.getElementById("tdcycle")
	var home = document.getElementById("tdhome")
	var life = document.getElementById("tdlife")
	
	switch(source)
	{
	 case(source="auto0"): auto.style.backgroundImage="url("+auto0.src+")"; break
	 case(source="auto1"): auto.style.backgroundImage="url("+auto1.src+")"; break
	 case(source="cycle0"): cycle.style.backgroundImage="url("+cycle0.src+")"; break
	 case(source="cycle1"): cycle.style.backgroundImage="url("+cycle1.src+")"; break
	 case(source="home0"): home.style.backgroundImage="url("+home0.src+")"; break
	 case(source="home1"): home.style.backgroundImage="url("+home1.src+")"; break
	 case(source="life0"): life.style.backgroundImage="url("+life0.src+")"; break
	 case(source="life1"): life.style.backgroundImage="url("+life1.src+")"; break
	}
}

function showbig(event)
{
  var x = event.clientX
	var y = event.clientY
	var showbig = document.getElementById("showbig")
	
	showbig.style.top=y+"px"
	showbig.style.left=x+"px"
	showbig.style.visibility="visible"							
	
	
}

function show_drv(y)
{
  for(var x=0; x<=4; x++)
	{
	  var count_el = document.getElementById("dr"+(x+1))
		if(x<=y)
		{
			count_el.style.display="block"
		} else {
		  count_el.style.display="none"
		}
	}
}

function show_veh(y)
{
  for(var x=0; x<=4; x++)
	{
	  var count_el = document.getElementById("v"+(x+1))
		if(x<=y)
		{
			count_el.style.display="block"
		} else {
		  count_el.style.display="none"
		}
	}
}