
//<script>


//**************************************
//* This script pre-loads all the 
//* menu images do eliminate delay when
//* first hovering over the menu.
//**************************************

{
  servicesoff = new Image(90,23);
  servicesoff.src = "/images/b_services.gif";
  serviceson = new Image(90,23);
  serviceson.src = "/images/b_services_h.gif";
  servicesdown = new Image(90,23);
  servicesdown.src = "/images/b_services_a.gif";
  ourportfoliooff = new Image(120,23);
  ourportfoliooff.src = "/images/b_ourportfolio.gif";
  ourportfolioon = new Image(120,23);
  ourportfolioon.src = "/images/b_ourportfolio_h.gif";
  ourportfoliodown = new Image(120,23);
  ourportfoliodown.src = "/images/b_ourportfolio_a.gif";
  cbbtrioblogoff = new Image(124,23);
  cbbtrioblogoff.src = "/images/b_cbbtrioblog.gif";
  cbbtrioblogon = new Image(124,23);
  cbbtrioblogon.src = "/images/b_cbbtrioblog_h.gif";
  cbbtrioblogdown = new Image(124,23);
  cbbtrioblogdown.src = "/images/b_cbbtrioblog_a.gif";
  triogroupoff = new Image(128,23);
  triogroupoff.src = "/images/b_triogroup.gif";
  triogroupon = new Image(128,23);
  triogroupon.src = "/images/b_triogroup_h.gif";
  triogroupdown = new Image(128,23);
  triogroupdown.src = "/images/b_triogroup_a.gif";
  findtriooff = new Image(95,23);
  findtriooff.src = "/images/b_findus.gif";
  findtrioon = new Image(95,23);
  findtrioon.src = "/images/b_findus_h.gif";
  findtriodown = new Image(95,23);
  findtriodown.src = "/images/b_findus_a.gif";
  portbackoff = new Image(169,10);
  portbackoff.src = "/images/port_back.gif";
  portbackon = new Image(169,10);
  portbackon.src = "/images/port_back_h.gif";
  ttgbackoff = new Image(167,10);
  ttgbackoff.src = "/images/ttg_back.gif";
  ttgbackon = new Image(167,10);
  ttgbackon.src = "/images/ttg_back_h.gif";
  servbackoff = new Image(119,10);
  servbackoff.src = "/images/serv_back.gif";
  servbackon = new Image(119,10);
  servbackon.src = "/images/serv_back_h.gif";
  bpbackoff = new Image(170,10);
  bpbackoff.src = "/images/h_serv_backtoblueprints.gif";
  bpbackon = new Image(170,10);
  bpbackon.src = "/images/h_serv_backtoblueprints_h.gif";
  cwdoff = new Image(146,29);
  cwdoff.src = "/images/bs_customwebsitedesign.gif";
  cwdon = new Image(146,29);
  cwdon.src = "/images/bs_customwebsitedesign_h.gif";
  cwddown = new Image(146,29);
  cwddown.src = "/images/bs_customwebsitedesign_a.gif";
  waoff = new Image(146,29);
  waoff.src = "/images/bs_websiteanalytics.gif";
  waon = new Image(146,29);
  waon.src = "/images/bs_websiteanalytics_h.gif";
  wadown = new Image(146,29);
  wadown.src = "/images/bs_websiteanalytics_a.gif";
  bsnoff = new Image(203,29);
  bsnoff.src = "/images/bs_bloggingsocial.gif";
  bsnon = new Image(203,29);
  bsnon.src = "/images/bs_bloggingsocial_h.gif";
  bsndown = new Image(203,29);
  bsndown.src = "/images/bs_bloggingsocial_a.gif";
  wupoff = new Image(102,29);
  wupoff.src = "/images/bs_websiteupdates.gif";
  wupon = new Image(102,29);
  wupon.src = "/images/bs_websiteupdates_h.gif";
  wupdown = new Image(102,29);
  wupdown.src = "/images/bs_websiteupdates_a.gif";
  hostingoff = new Image(205,29);
  hostingoff.src = "/images/bs_domainregistration.gif";
  hostingon = new Image(205,29);
  hostingon.src = "/images/bs_domainregistration_h.gif";
  hostingdown = new Image(205,29);
  hostingdown.src = "/images/bs_domainregistration_a.gif";
  blueprintsoff = new Image(102,29);
  blueprintsoff.src = "/images/bs_trioblueprints.gif";
  blueprintson = new Image(102,29);
  blueprintson.src = "/images/bs_trioblueprints_h.gif";
  blueprintsdown = new Image(102,29);
  blueprintsdown.src = "/images/bs_trioblueprints_a.gif";
}


//**************************************
//* This script changes the
//* pre-loaded images when the mouse
//* pointer hovers over them.
//**************************************

function imgSwap(imgName, imgState)
{
  document.getElementById(imgName).src = eval(imgName + imgState + ".src");
}


//**************************************
//* This script controls
//* the drop down menus
//**************************************

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

function mopen(id)
{	
	mcancelclosetime();
	if(ddmenuitem) ddmenuitem.style.display = 'none';
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.display = '';
}

function mclose()
{
	if(ddmenuitem) ddmenuitem.style.display = 'none';
}

function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

document.onclick = mclose;
