//Javascript reference for Clicky s 2, Beacon Dodsworth August 2000
//                                     updated          08 Jan 2003

function dispButtons()
{
aleft = mzjsButtonsEdgeLeft
atop = mzjsButtonsEdgeTop
          
displayButton('b_uk', 'uk.png', aleft, atop, 
              "b_uk_onMouseover(); this.src=httpButtonImageLocation+'uk_.png'", 
              "killpop(); this.src=httpButtonImageLocation+'uk.png'", 
              "b_uk_onClick(); this.src=httpButtonImageLocation+'uk.png'")
}

//-----------------------------------

function displayButton(buttonName,buttonImage,left,top,MouseOver,MouseOut,OnClick)
{
//alert('displayButton:'+left+" "+top);

var htmlTxt = ''
htmlTxt += '<div ID="' + buttonName + '_innerDiv">'
htmlTxt += '<img src="' + httpButtonImageLocation + buttonImage + '"'
htmlTxt += 'style="cursor:hand"'
htmlTxt += 'name="' + buttonName + '_inner"'
htmlTxt += 'onmouseOver="' + MouseOver + '"'
htmlTxt += 'onmouseOut="' + MouseOut + '"'
htmlTxt += 'onClick="' + OnClick + '">'
htmlTxt += '</div>'

try
    {
    document.all[buttonName].innerHTML = htmlTxt
    }
catch(E)
    {
    alert('displayButton:innerHtml:A:'+htmlTxt);
    }

try
    {
    document.all[buttonName].style.position = "absolute"
    document.all[buttonName].style.left = left; 
    document.all[buttonName].style.top = top; 
    document.all[buttonName].style.visibility = "visible"; 
    document.all[buttonName].style.zIndex = 100
    }
catch(E)
    {
    alert('displayButton:innerHtml:B:'+htmlTxt);
    }
}

//-----------------------------------
function b_uk_onMouseover()
{
var tipTxt;
tipTxt = '';

tipTxt += 'Click here to go to<br>'; 	
tipTxt += 'the UK map'; 	
 	
displayButtonPopup(tipTxt)
}
//-----------------
function b_uk_onClick()
{
document.location='uk.htm';
}

//-----------------------------------

function displayButtonPopup(tipTxt)
{
var htmlTxt;

htmlTxt = ''

htmlTxt += '<table border=0 cellpadding=2 cellspacing=0 bgcolor="green">';
htmlTxt += '<tr><td>';
htmlTxt += '<table width=100% border=0 cellpadding=2 cellspacing=0 bgcolor="white">';
htmlTxt += '<tr><td>' + tipTxt + '</td></tr>';
htmlTxt += '</table>';
htmlTxt += '</td></tr>';
htmlTxt += '</table>';

currentPopupOffsetX = mzjsButtonPopupOffsetX;
currentPopupOffsetY = mzjsButtonPopupOffsetY;

//document.all['popDiv'].innerHTML = htmlTxt
popDiv.innerHTML = htmlTxt; 
popDiv.style.visibility = "visible"; 
popDiv.style.zIndex = 101
}

//-----------------------------------


