		
var t=0;
var idClose="";

function show(id, parentid,alignid)
{
   var iHtWin=0;
   var iWidthWin=0;
   var iAlnHt;
   var elAlign=document.getElementById(alignid);



  if (parentid!='none')
  {
    el=document.getElementById(id);
    document.getElementById(id).style.left = 1;
    if (elAlign!=null)
      document.getElementById(id).style.top = elAlign.style.top;
    var iPos=0;
    var iLeft=0;
    elIt=document.getElementById(alignid);

    var i=0;
    elIt=document.getElementById(alignid);
    while (elIt!=null & elIt.id!="QLTD")
    {
      iLeft+=elIt.offsetLeft;
      elIt=elIt.parentNode;
    }
     if (parseInt(navigator.appVersion)>3)
     {
       if (navigator.appName=="Netscape")
       {
          iHtWin = window.innerHeight;
          iWidthWin = window.innerWidth;
       }
       if (navigator.appName.indexOf("Microsoft")!=-1)
       {
         iHtWin = document.body.offsetHeight;
         iWidthWin = document.body.offsetWidth;
       }
    }
  	document.getElementById(id).style.left = -50;

     document.getElementById(id).style.top=iPos;
     // 50 pixels makes the menus look less tight against the bottom of the window
  	
  }

  idClose=id;
  document.getElementById(id).style.visibility = 'visible';
}




function hide(id)
{
  document.getElementById(id).style.visibility = 'hidden';
//  t = setTimeout("timerClose('"+id+"')", 400)
}

function timerClose(id)
{
  document.getElementById(id).style.visibility = 'hidden';
  if (t!=0)
  {
    clearTimeout(t);
    t=0;
  }
}

function hideElement (elementId) {
var element;
if (document.all)
element = document.all[elementId];
else if (document.getElementById)
element = document.getElementById(elementId);
if (element && element.style)
element.style.display = 'none';
}
function showElement (elementId) {
var element;
if (document.all)
element = document.all[elementId];
else if (document.getElementById)
element = document.getElementById(elementId);
if (element && element.style)
element.style.display = '';
}


function SimpleSwap(el,which){
  el.src=el.getAttribute(which || "origsrc");
}

function SimpleSwapSetup(){
  var x = document.getElementsByTagName("img");
  for (var i=0;i<x.length;i++){
    var oversrc = x[i].getAttribute("oversrc");
    if (!oversrc) continue;
      
    // preload image
    // comment the next two lines to disable image pre-loading
    x[i].oversrc_img = new Image();
    x[i].oversrc_img.src=oversrc;
    // set event handlers
    x[i].onmouseover = new Function("SimpleSwap(this,'oversrc');");
    x[i].onmouseout = new Function("SimpleSwap(this);");
    // save original src
    x[i].setAttribute("origsrc",x[i].src);
  }
}

function setOpacity(value) {
	testObj.style.opacity = value/10;
	testObj.style.filter = 'alpha(opacity=' + value*10 + ')';
}

var PreSimpleSwapOnload =(window.onload)? window.onload : function(){};
window.onload = function(){PreSimpleSwapOnload(); SimpleSwapSetup();}