

function showElement(elmnt)
  {
    document.getElementById(elmnt).style.visibility="visible";
    document.getElementById(elmnt).style.display="";
  }
function hideElement(elmnt)
  {
    document.getElementById(elmnt).style.visibility="hidden";
    document.getElementById(elmnt).style.display="none";
  }
function showBackground()
{
 /* show background help text and position relative to navlink tag height */ 
/*figure out top of the navlink to set top of the popup */
var thisParent = document.getElementById('NavLink');

//now walk up the DOM until the BODY element is reached.
var myLeft = 0;
var myTop = 0;
var trParent = thisParent.offsetParent;
myLeft += trParent.offsetLeft;
myTop += trParent.offsetTop;	


while (trParent.offsetParent.tagName != 'BODY'){
	trParent = trParent.offsetParent;	//get the next parent up the nest
	myLeft += trParent.offsetLeft;
	myTop += trParent.offsetTop;
}

 var object=document.getElementById('info_background');
 object.style.top=myTop + thisParent.offsetTop + thisParent.offsetHeight + 3 + 'px';
 object.style.visibility="visible";
 object.style.display="";
 
}
function hideBackground()
{
 /* show background help text and position relative to nav height */
 var object=document.getElementById('info_background');
 object.style.visibility="hidden";
 object.style.display="none";
}

function showNavHelp(elmnt)
{
 var object=document.getElementById('info_background');
 switch (elmnt){
 case "AboutUs":{
    object.innerText="Protecting the Golf Industry since 1974";
	break;}
 case "InsPrograms":{
    object.innerText="Insurance Programs for the Golf Club, the Golf Professional and Golf Events";
	break;}
 case "CpgaMembers":{
    object.innerText ="Click here to enter the Cpga Preferred Insurance Programs section";
	break;}
 case "ContactUs":{
    object.innerText="Email, Phone and Fax contact information for our Toronto, Calgary and Montreal offices"
	break;}
 }
 
}
function hideNavHelp(elmnt)
{
 /* show background help text and position relative to nav height */
 var object=document.getElementById('info_background');
 object.style.visibility="hidden";
 object.style.display="none";
}

//blur any links
function blurAll() { 
 if(document.all) {
   var total = document.links.length;
   for (var n = 0; n < total; n++){
   document.links[n].onfocus=document.links[n].blur;
   }
 }
}

function ShowIntro () {
//delete the cookie
 document.cookie = 'SimmlandsIntroMovie' + "=" +
		 "; expires=Thu, 01-Jan-70 00:00:01 GMT" +  "; path=/";
 window.location = "index_modified.htm";
}

