var linknum;
var num;
function changebody(linknum)
{
  if(linknum == 1)
    document.getElementById("webdev1").style.color = "black";
  if(linknum == 2)
    document.getElementById("home1").style.color = "black";
  if(linknum == 3)
    document.getElementById("webmark1").style.color = "black";
  if(linknum == 4)
    document.getElementById("webmaint1").style.color = "black";
  if(linknum == 5)
    document.getElementById("webhost1").style.color = "black";
  if(linknum == 6)
    document.getElementById("webprices1").style.color = "black";
  if(linknum == 7)
    document.getElementById("ecomm1").style.color = "black";
  if(linknum == 8)
    document.getElementById("shopcart1").style.color = "black";
  if(linknum == 9)
    document.getElementById("contact1").style.color = "black";
  if(linknum == 10)
    document.getElementById("webstyles1").style.color = "black";
  if(linknum == 11)
    document.getElementById("webfaq1").style.color = "black";
  if(linknum == 12)
    document.getElementById("aboutus").style.color = "black";
  if(linknum == 13)
    document.getElementById("webguar1").style.color = "black";
  if(linknum == 14)
    document.getElementById("webterms1").style.color = "black";
  if(linknum == 15)
    document.getElementById("access1").style.color = "black";
  if(linknum == 16)
    document.getElementById("legal1").style.color = "black";	
  if(linknum == 20)
    document.getElementById("webdev2").style.color = "black";
  if(linknum == 21)
    document.getElementById("webhost2").style.color = "black";
  if(linknum == 22)
    document.getElementById("webmaint2").style.color = "black";
  if(linknum == 23)
    document.getElementById("webmark2").style.color = "black";
  if(linknum == 24)
    document.getElementById("mail1").style.color = "black";
  if(linknum == 25)
    document.getElementById("mail2").style.color = "black";
  if(linknum == 26)
    document.getElementById("ecomm2").style.color = "black";
  if(linknum == 27)
    document.getElementById("shopcart2").style.color = "black";
  if(linknum == 28)
    document.getElementById("webstyles2").style.color = "black";
  if(linknum == 29)
    document.getElementById("webstyles3").style.color = "black";
  if(linknum == 30)
    document.getElementById("store1").style.color = "black";
  if(linknum == 31)
    document.getElementById("store2").style.color = "black";
  if(linknum == 32)
    document.getElementById("store3").style.color = "black";
  if(linknum == 33)
    document.getElementById("store4").style.color = "black";
  if(linknum == 34)
    document.getElementById("webaccessserv1").style.color = "black";				

}


function changeback(num)
{
  if(num == 1)
    document.getElementById("webdev1").style.color = "blue";
  if(num == 2)
    document.getElementById("home1").style.color = "blue";
  if(num == 3)
    document.getElementById("webmark1").style.color = "blue";
  if(num == 4)
    document.getElementById("webmaint1").style.color = "blue";
  if(num == 5)
    document.getElementById("webhost1").style.color = "blue";
  if(num == 6)
    document.getElementById("webprices1").style.color = "blue";
  if(num == 7)
    document.getElementById("ecomm1").style.color = "blue";
  if(num == 8)
    document.getElementById("shopcart1").style.color = "blue";
  if(num == 9)
    document.getElementById("contact1").style.color = "blue";	
  if(num == 10)
    document.getElementById("webstyles1").style.color = "blue";
  if(num == 11)
    document.getElementById("webfaq1").style.color = "blue";
  if(num == 12)
    document.getElementById("aboutus").style.color = "blue";
  if(num == 13)
    document.getElementById("webguar1").style.color = "blue";
  if(num == 14)
    document.getElementById("webterms1").style.color = "blue";
  if(num == 15)
    document.getElementById("access1").style.color = "blue";
  if(num == 16)
    document.getElementById("legal1").style.color = "blue";
  if(num == 20)
    document.getElementById("webdev2").style.color = "blue";
  if(num == 21)
    document.getElementById("webhost2").style.color = "blue";
  if(num == 22)
    document.getElementById("webmaint2").style.color = "blue";
  if(num == 23)
    document.getElementById("webmark2").style.color = "blue";
  if(num == 24)
    document.getElementById("mail1").style.color = "blue";
  if(num == 25)
    document.getElementById("mail2").style.color = "blue";
  if(num == 26)
    document.getElementById("ecomm2").style.color = "blue";
  if(num == 27)
    document.getElementById("shopcart2").style.color = "blue";
  if(num == 28)
    document.getElementById("webstyles2").style.color = "blue";
  if(num == 29)
    document.getElementById("webstyles3").style.color = "blue";
  if(num == 30)
    document.getElementById("store1").style.color = "blue";
  if(num == 31)
    document.getElementById("store2").style.color = "blue";
  if(num == 32)
    document.getElementById("store3").style.color = "blue";	
  if(num == 33)
    document.getElementById("store4").style.color = "blue";	
  if(num == 34)
    document.getElementById("webaccessserv1").style.color = "blue";					
				
}


msgmark = "Search Engine Page ranking should not be underestimated!....";
spacemark=".";
posnmark=0;
function ScrollAcrossMark()
{
  var freshtextmark=msgmark.substring(posnmark, msgmark.length)+ 
      spacemark + msgmark.substring(0, posnmark);
  var tdind=document.getElementById("scrollmark");
  tdind.firstChild.nodeValue=freshtextmark;
  posnmark++;
  if(posnmark>msgmark.length) posnmark=0;
    if(stopv==0)
  {
  	window.setTimeout("ScrollAcrossMark()",300);
  }
}


msgdev = "Choose any website design style from our website design style page!...........";
spacedev=".";
posndev=0;
function ScrollAcrossDev()
{
  var freshtextdev=msgdev.substring(posndev, msgdev.length)+ 
      spacedev + msgdev.substring(0, posndev);
  var tdind=document.getElementById("scrolldev");
  tdind.firstChild.nodeValue=freshtextdev;
  posndev++;
  if(posndev>msgdev.length) posndev=0;
  if(stopv==0)
  {
    window.setTimeout("ScrollAcrossDev()",300);
  }
}

msgmaint = "Professional website maintenance from £12.50.........";
spacemaint=".";
posnmaint=0;
function ScrollAcrossMaint()
{
  var freshtextmaint=msgmaint.substring(posnmaint, msgmaint.length)+ 
      spacemaint + msgmaint.substring(0, posnmaint);
  var tdind=document.getElementById("scrollmaint");
  tdind.firstChild.nodeValue=freshtextmaint;
  posnmaint++;
  if(posnmaint>msgmaint.length) posnmaint=0;
  if(stopv==0)
  {
    window.setTimeout("ScrollAcrossMaint()",300);
  } 
}

msg = "Free 5 page £350 website when you buy hosting and a domain name!...........";
space=".";
posn=0;
stopv=0;
function ScrollAcross()
{
  var freshtext=msg.substring(posn, msg.length)+ 
      space + msg.substring(0, posn);
  var td=document.getElementById("scrollac");
  td.firstChild.nodeValue=freshtext;
  posn++;
  if(posn>msg.length) posn=0;
  if(stopv==0)
  {
    window.setTimeout("ScrollAcross()",300);
  }
}

msgecomm = "Amazing Guarantee, if your not satisfied with your store, you don't pay for it!....";
spaceecomm=".";
posnecomm=0;
function ScrollAcrossEcomm()
{
  var freshtext=msgecomm.substring(posnecomm, msgecomm.length)+ 
      spaceecomm + msgecomm.substring(0, posnecomm);
  var td=document.getElementById("scrollecomm");
  td.firstChild.nodeValue=freshtext;
  posnecomm++;
  if(posnecomm>msgecomm.length) posnecomm=0;
  if(stopv==0)
  {
    window.setTimeout("ScrollAcrossEcomm()",300);
  }
}

msgstyle = "Select the style you like best and give us a call or send us an e-mail!.......";
spacestyle=".";
posnstyle=0;
function ScrollAcrossStyle()
{
  var freshtext=msgstyle.substring(posnstyle, msgstyle.length)+ 
      spacestyle + msgstyle.substring(0, posnstyle);
  var td=document.getElementById("scrollstyle");
  td.firstChild.nodeValue=freshtext;
  posnstyle++;
  if(posnstyle>msgstyle.length) posnstyle=0;
  if(stopv==0)
  {
    window.setTimeout("ScrollAcrossStyle()",300);
  }
}
	  
function stop()
{
  stopv=1;
}

function go()
{
  stopv=0;
  ScrollAcross();
}

function goDev()
{
  stopv=0;
  ScrollAcrossDev();
}

function goEcomm()
{
  stopv=0;
  ScrollAcrossEcomm();
}

function goStyle()
{
  stopv=0;
  ScrollAcrossStyle();
}

function goMaint()
{
  stopv=0;
  ScrollAcrossMaint();
}

function goMark()
{
  stopv=0;
  ScrollAcrossMark();
}

function preloadImages() 
{ 
  a1=new Image();
  a1.src="images/overgo.gif";
  a2=new Image();
  a2.src="images/overstop.gif";
}


