function getRefToDiv(divID,oDoc) {
  if( document.getElementById ) {
    return document.getElementById(divID); }
  if( document.all ) {
    return document.all[divID]; }
  if( !oDoc ) { oDoc = document; }
  if( document.layers ) {
    if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
      for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
        y = getRefToDiv(divID,oDoc.layers[x].document); }
    return y; } }
  return false;
}

function showDiv(divID_as_a_string) {
  myReference = getRefToDiv(divID_as_a_string);
  if( !myReference ) {
   /* window.alert('This browser does not support this menu');*/
    return;
  }
  if( myReference.style ) {
    //DOM & proprietary DOM
    (myReference.style.visibility = 'hidden')
		
		myReference.style.visibility = 'visible';
	
  } else {
    //layers syntax
    myReference.visibility = 'show';
  }
}


function hideDiv(divID_as_a_string) {
  myReference = getRefToDiv(divID_as_a_string);
  if( !myReference ) {
  /*  window.alert('Nothing works in this browser');*/
    return;
  }
  if( myReference.style ) {
    myReference.style.visibility = 'hidden';
  } else {
    myReference.visibility = "hide";
  }
}

function positionDiv(div,top){
	 myReference = getRefToDiv(div);
	 myReference.style.top=top+'px';

}

