var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}

preloadimages("images/space.gif")

var g_nExpando=0;
function putItemInState(n,bState)
{
    var oItem,oGif;
    eval('oItem=document.all.descr'+n);
    eval('oGif=document.all.expandoGif'+n);

    if (bState=='toggle')
    	bState=(oItem.style.display=='block');

    if(bState)
    {
		bState=(oItem.style.display='none');
        bState=(oGif.src='images/cross.gif');
    }
    else
    {
        bState=(oItem.style.display='block');
        bState=(oGif.src='images/noncross.gif');
    }
}


function expand(nItem)
{
    putItemInState(nItem,'toggle');  //toggle the nth item
}


function expandAll()
{
    if (!g_nExpando)  //cannot expand all unless fully rendered
    {
        document.all.chkFlag.checked=false; //force unchecked
        return;
    }
    var bState=!document.all.chkFlag.checked;  //probably faster to cache this dom result
    for(var i=0; i<g_nExpando; i++)
        putItemInState(i,bState);
}

var tns6=document.getElementById&&!document.all
var ie=document.all

function show_text(thetext, whichdiv){
if (ie) {eval("document.all."+whichdiv).innerHTML=thetext;}
else if (tns6) {document.getElementById(whichdiv).innerHTML=thetext;}
}

function resetit(whichdiv){
if (ie) eval("document.all."+whichdiv).innerHTML=''
else if (tns6) document.getElementById(whichdiv).innerHTML=''
}
var newwindow;
function popdetails(url)
{
  newwindow=window.open(url,'popdetails','height=500,width=500,resizable=yes,scrollbars=yes,status=yes');
  if (window.focus) {newwindow.focus()}
}