//------------------------------------------------------------------------------

    isExpanded = false;

     function initIt()
         { tempColl = document.all.tags("DIV");
         for (i=0; i<tempColl.length; i++){
             if (tempColl(i).className == "child") tempColl(i).style.display = "none";
             if ((tempColl(i).id == "level_<?=$_REQUEST[id_top_level]?>") || (tempColl(i).id == "level_<?=$_REQUEST[id_level]?>")) tempColl(i).style.display = "block";	     
         }
     }

     function expandIE(el){
	whichEl = eval(el);
	if (whichEl.style.display == "none"){
	    whichEl.style.display = "block";
	} else {
	    whichEl.style.display = "none";
	}
     }

//    onload = initIt;
    

function NewWin(w,h){
	if (document.frames['MyWin'])  
		   if(!document.frames['MyWin'].closed) {document.frames['MyWin'].resizeTo(w,h); document.frames['MyWin'].focus();  return;}
	           x=screen.width;
           y=screen.height;
	   x_crd = ((x/2)-(w/2));
	   y_crd = ((y/2)-(h/2));
	   h+=54;
	   strFeatures="scrollbars=0, titlebar=0, menubar=0, toolbar=0, Status=0, location=0, resizable=no,width=" + w+ ",height=" + h + ",left=" + x_crd + ", top= " + y_crd;
	      MyWin=window.open("", "MyWin", strFeatures );
	}

	function MakePopup(w,h,url,cnt)
	{
		window.name='mainwindow';
//if (document.frames['MyWin'])  
//		   if(!document.frames['MyWin'].closed) {document.frames['MyWin'].resizeTo(w,h); document.frames['MyWin'].focus();  return;}
           x=screen.width;
           y=screen.height;
	   x_crd = ((x/2)+(w/3));
	   y_crd = ((y/2));

		if (cnt%2==1) cnt2=-cnt; else cnt2=cnt-1;
		   strFeatures="scrollbars=0, titlebar=0, menubar=0, toolbar=0, Status=0, location='', resizable=no,width=" + w+ ",height=" + h + ",left=" + x_crd + ", top= " + (y_crd+(cnt2)*(h/2+35));
	      popwin=window.open(url, "_blank", strFeatures );
		  popwin.focus();
	}
//------------------------------------------------------------------------------

    function ic(imgName, imgSrc) {
        if (document.images) {
        	if (imgSrc != "none") {
            	document.images[imgName].src = imgSrc;
    	    }
	 	}
     }
											    						    
	function simplePreload() {
    	var args = simplePreload.arguments;
		document.imageArray = new Array(args.length);
		for(var i=0; i<args.length; i++)  {
			document.imageArray[i] = new Image;
			document.imageArray[i].src = args[i];
		}
	}
	
    simplePreload('/img/arrow3.jpg');

//------------------------------------------------------------------------------

	 
