if(window.event) {window.event.cancelBubble = true}

function poppup (url)
{
window.open(url + '.html','mywindow','width=500,height=500,scrollbars=yes')
}


function applyColors(){/*
	var bgColor = '#eeeeee';
	var tbl = document.getElementById('alt_table');
	for (j=0;j<tbl.rows.length;j++)
		if(j%2==0) tbl.rows[j].style.background= bgColor;
}
window.onload=applyColors();
*/
}

function include(id, url) {
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
 if (!element) { 
  alert("Bad id " + id + 
   "passed to clientSideInclude." +
   "You need a div or span element " +
   "with this id in your page.");
  return;
 }
  if (req) {
    // Synchronous request, wait till we have it all
    req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } else {
    element.innerHTML =
   "Sorry, your browser does not support " +
      "XMLHTTPRequest objects. This page requires " +
      "Internet Explorer 5 or better for Windows, " +
      "or Firefox for any system, or Safari. Other " +
      "compatible browsers may also exist.";
  }
}

function callpage(page,pagetitle,showit)
{

if(document.location.search == '')
{dropdown(showit)
document.title = pagetitle
include('content', page + '.html')


}
else
{
var filename = document.location.search.split('?').join('')
include('content', filename)
}



}

function callpage(page,pagetitle,showit)
{
//alert(showit);

//dropdown(showit)
//document.title = pagetitle
//include('content', page + '.html')

document.location='/' + page + '.shtml'

}




function dropdown(showit)
{
//alert(showit)
//document.getElementById('flashdrop').style.display = 'block'
document.getElementById('suki').style.display = showit
}

function checkdiv() 
{
if (event.srcElement.tagName == "DIV") 
{dropdown('none')}

}

function changebutton(button)
{

document.getElementById('td1').background = "images/site/buttonmaster.jpg"
document.getElementById('td2').background = "images/site/buttonmaster.jpg"
document.getElementById('td3').background = "images/site/buttonmaster.jpg"
document.getElementById('td4').background = "images/site/buttonmaster.jpg"
document.getElementById('td5').background = "images/site/buttonmaster.jpg"
document.getElementById('td6').background = "images/site/buttonmaster.jpg"
document.getElementById('td7').background = "images/site/buttonmaster.jpg"
document.getElementById('td8').background = "images/site/buttonmaster.jpg"
document.getElementById('td9').background = "images/site/buttonmaster.jpg"
document.getElementById(button).background = "images/site/buttonmaster_active.jpg"

}

function inq_link ()

{

document.write('<a href="mailto:coach' + '@knightsbrid' + 'gecoaching.com?sub' + 'ject=Inquiry">Click here to send an inquiry by email.</a>')
}