var place = 80;   // change the # 80 to adjust the placement of the menu from the top of the page. The greater
                  // number the lower will the menu be placed.
(document.getElementById && !document.all) ? dom = true : dom = false;

var posNow = 0;
var posMax = 260;
var leftInit = posMax - ((posMax*2) + 5);

function moveIt() {
	if (posNow != posMax) {
		if (dom) {document.getElementById('beLinksBox').style.left = parseInt(document.getElementById('beLinksBox').style.left) + posMax + "px";}
		if (document.all) {document.all["beLinksBox"].style.pixelLeft = parseInt(document.all["beLinksBox"].style.pixelLeft) + posMax;}
		document.getElementById('beOpen').style.display = 'none';
		document.getElementById('beClose').style.display = 'block';
		posNow = 260;
	}
}

function backIn() {
	if (posNow != 0) {
		if (dom) {document.getElementById('beLinksBox').style.left = parseInt(document.getElementById('beLinksBox').style.left) - posMax + "px";}
		if (document.all) {document.all["beLinksBox"].style.pixelLeft = parseInt(document.all["beLinksBox"].style.pixelLeft) - posMax;}
		document.getElementById('beClose').style.display = 'none';
		document.getElementById('beOpen').style.display = 'block';
		posNow = 0;
	}
}

function typeStart() {
  if (dom || document.all) {
	//document.write('<div id="beLinksBox" style="z-index:50;position:fixed; left:' + leftInit + 'px; top:10px; visibility:visible; cursor:hand; cursor:pointer" onmouseover="" onclick="moveIt()">');
	document.write('<div id="beLinksBox" style="z-index:50;position:fixed; left:-265px; top:10px; visibility:visible; cursor:hand; cursor:pointer" >');
	}
}

function typeEnd() { if (dom || document.all) { document.write('</div>') } }

function placeIt() {
  if (dom) {document.getElementById("beLinksBox").style.top = window.pageYOffset + place + "px";}
  if (document.all) {document.all["beLinksBox"].style.top = document.documentElement.scrollTop + place + "px"}
  window.setTimeout("placeIt()", 10); }
