// JavaScript Document


	function changeIt(elid, foto) {
	  if (document.getElementById){
            document.getElementById(elid).src = '/images/' + foto; 
        }  
		
	}
	function leafAnimation(visi, top, left) {
		var imgel  = document.getElementById('imgleaf'); 
		imgel.style.display = visi;
		imgel.innerHTML = "<img width='71' src='/images/menu/leaf.gif' alt='' />"; //set image
		imgel.style.left = left + 'px';
		imgel.style.top = top + 'px';		
	}
	function hideLeaf() {
	var imgel  = document.getElementById('imgleaf'); 
		imgel.style.display = 'none';
	}
	function openPopUp(path) {
		//alert('opening ' + "images/" + path);
		window.open("/popup.asp?path=images/" + path,"_blank","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=750, height=600,bgcolor=#000000");
		anotherwindow.bgColor="black"
	}
	function ChangeClass(elID, cssclass) {
		document.getElementById(elID).className = cssclass;		
	}
	/*
preloadImages('file.gif', 'http://www.x.com/y.gif');

function preloadImages()
{

  if(document.images)
  {
    if(!document.imageArray) document.imageArray = new Array();

    var i,j = document.imageArray.length, args = preloadImages.arguments;    

    for(i=0; i<args.length; i++)
    {
      if (args[i].indexOf("#")!=0)
      {
        document.imageArray[j] = new Image;
        document.imageArray[j++].src = args[i];
      }
    }
  }
}
*/
