//This function colors the navigation bar
function changeColor(tabcolor, textcolor){

var y = tabcolor;
var z = textcolor;
var a = new Array ("tbabout", "tbcoaching", "tbservices", "tbassest", "tbcontact", "tbclient");
var t = new Array("hltext1", "hltext2", "hltext3", "hltext4", "hltext5", "hltext6");	

	
	//This highlight each tab 
	for(var i=0;i<a.length;i++){
		if (y == a[i]){
		//alert(y);
		document.getElementById(a[i]).style.background = "#D9F8D2";
		}else{
		document.getElementById(a[i]).style.background = "#91AA8C";
		}
	}
	
	//This changes the color of the text in the tab if the tab is highlighted
	for(var x=0; x<t.length; x++){
		if (z ==t[x]){
		document.getElementById(t[x]).style.color = "#51614E";
		}else{
		document.getElementById(t[x]).style.color = "#FFFFFF";
		}
	}

	//This displays the div for the section that is selected and hides the other divs

}



var myWindow;

function popitup(url)
{
 if (myWindow && !myWindow.closed){
  //alert('window is alreadyopened');
      myWindow.location.href = url;
      myWindow.focus();
   }else{
     // alert('window is notopened');
      myWindow = window.open(url,'myWindow','height=600,width=550');
   }
 
   if (window.focus){
   myWindow.focus()
   }
 }
  
 
var newwindow;
function poptastic(url)
{
	newwindow=window.open(url,'name','height=400,width=200');
	if (window.focus) {newwindow.focus()}
}

function highlight(x,t){
document.getElementById(x).style.background = "#D9F8D2";
document.getElementById(t).style.color = "#51614E";
}
