var image="";
var banners=0;
function cycle() {
  if (++banners > 12) banners=1;
    loadbanners();
    document.banner1.src = image;
	 urlswitch();
    window.setTimeout('cycle();',7000);
  }
function loadbanners() {
   if (banners==1)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/1.gif";
      }
   if (banners==2)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/2.gif";
      }
   if (banners==3)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/3.gif";
      }
	     if (banners==4)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/4.gif";
      }
	     if (banners==5)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/5.gif";
      }
	     if (banners==6)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/6.gif";
      }
	     if (banners==7)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/7.gif";
      }
 if (banners==8)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/8.gif";
      }
if (banners==9)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/9.gif";
      }
 if (banners==10)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/10.gif";
      }
 if (banners==11)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/11.gif";
      }
 if (banners==12)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/12.gif";
      }
  if (banners==13)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/13.gif";
      }
if (banners==14)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/14.gif";
      }
  if (banners==15)
      {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/15.gif";
      }
  if (banners==16)
     {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/16.gif";
      }
	    if (banners==17)
     {
      image="http://www.galaxywd.com/portfolio/projects/thumbs/17.gif";
      }
	  //alert(image);
}

var link = "www.galaxytravel.com"
function urlswitch() {
if (banners==1)
{
link = "www.antiagingandhealth.com";
}
if (banners==2)
{
link = "www.brookhollownorth.com";
}
if (banners==3)
{
link = "www.cherylfairbanks.com";
}
if (banners==4)
{
link = "www.covingtoncolleyville.com";
}
if (banners==5)
{
link = "www.cruxstudentministry.org";
}
if (banners==6)
{
link = "www.directfloralsource.com";
//link = "galaxywd.com/directfloralsource/store.html";
}
if (banners==7)
{
link = "www.galaxywd.com";
}
if (banners==8)
{
link = "www.insightmerchandising.com";
}
if (banners==9)
{
link = "www.kilgorelawyer.com";
}
if (banners==10)
{
link = "www.myacworks.com";
link = "myacworks.publishpath.com";
}
if (banners==11)
{
link = "www.newtonteamhomes.com";
}
if (banners==12)
{
link = "www.ratinghq.com";
link = "www.galaxywd.com/ratinghq";
}
if (banners==13)
{
link = "www.rockpointegroups.org";
}
if (banners==14)
{
link = "www.southlaketownsquare.com";
}
if (banners==15)
{
link = "www.tvscompany.com";
}
if (banners==16)
{
link = "www.vapeworld.com";
}
if (banners==17)
{
link = "www.xiser.com";
}

//document.getElementById("new_url").href="http://"+link;
//document.getElementById("new_url1").innerHTML=link;

return "http://"+link;
}
window.setTimeout('cycle();',7000);(loadbanners());(urlswitch());