function clarify(id){
 var d=document.getElementById(id);
 if (d){d.innerHTML= id+'<span class="breadcrumb">(click for menu)</span>';}
}
function unClarify(id){
 var d=document.getElementById(id);
 if (d){d.innerHTML=id;}
}
/*global GBrowserIsCompatible,GControlPosition,GEvent,GLatLng,GMap2,GMapTypeControl,GSize,GSmallMapControl,G_ANCHOR_BOTTOM_RIGHT,G_ANCHOR_TOP_RIGHT,G_HYBRID_MAP */
function load(id){
 if (GBrowserIsCompatible()){var map=new GMap2(document.getElementById("map")); map.setCenter(new GLatLng(51.558,-1.815),15); 
  var mapTypeControl=new GMapTypeControl();
  var topRight=new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(10,10));
  var bottomRight=new GControlPosition(G_ANCHOR_BOTTOM_RIGHT,new GSize(10,10));
  map.addControl(mapTypeControl,topRight);
  GEvent.addListener(map,"dblclick",function(){
   map.removeControl(mapTypeControl);map.addControl(new GMapTypeControl(), bottomRight);});
  map.addControl(new GSmallMapControl());
  map.setMapType(G_HYBRID_MAP);}  
 var d=document.getElementById(id);
 if (d){if (d.style.display=='none'){d.style.display='block';}
 else{d.style.display='none';}}else{
  for (var i=1;i<=10;i++){if (document.getElementById('subMenu'+i)){
    document.getElementById('subMenu'+i).style.display='none';}}}
}
var cX=0;var cY=0; var rX=0; var rY=0;
function UpdateCursorPosition(e){cX=e.pageX;cY=e.pageY;}
function UpdateCursorPositionDocAll(e){cX=event.clientX;cY=event.clientY;}
 if(document.all){document.onmousemove=UpdateCursorPositionDocAll;}
 else{document.onmousemove=UpdateCursorPosition;}
 function AssignPosition(d){
  if(self.pageYOffset){rX=self.pageXOffset;rY=self.pageYOffset;}
  else if(document.documentElement && document.documentElement.scrollTop){
   rX=document.documentElement.scrollLeft;rY=document.documentElement.scrollTop;}
  else if(document.body){rX=document.body.scrollLeft;rY=document.body.scrollTop;}
  if(document.all){cX+=rX;cY+=rY;}
   d.style.left=(cX+10)+"px";
   d.style.top=(cY+10)+"px";
 }
 function HideText(d){
  if(d.length<1){return;}
   document.getElementById(d).style.display = "none";
 }
 function ShowText(d){
  if(d.length<1){return;}
  var dd=document.getElementById(d);
   AssignPosition(dd);
   dd.style.display="block";
 }
 function ReverseContentDisplay(d){
  if(d.length<1){return;}
   var dd=document.getElementById(d);
   AssignPosition(dd);
  if(dd.style.display=="none"){dd.style.display="block";}
   else{dd.style.display="none";}
 } 
 function show(id){
  var d=document.getElementById(id);
  if (d){if (d.style.display=='none'){d.style.display='block';}else{d.style.display='none';}}else{
   for (var i=1;i<=10;i++){
    if (document.getElementById('subMenu'+i)){document.getElementById('subMenu' + i).style.display='none';}}}
}
menu_status = new Array();
function showHide(theid){
 if (document.getElementById){
  var switch_id = document.getElementById(theid);
  if(menu_status[theid] != 'show'){
    switch_id.className = 'show';
    menu_status[theid] = 'show';}else{
    switch_id.className = 'hide';
    menu_status[theid] = 'hide';}}
}
function checkform (form){
  if (form.name.value == ""){
    alert("Please enter your Name.");
    form.name.focus();
    return false;}
  if (form.email.value == ""){
    alert("Please enter your email address.");
    form.email.focus();
    return false;}
  return true;
}
