function addToFavorite(favTitle){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
    window.external.AddFavorite(location.href, unescape(favTitle));
    }
  else window.alert('This function is supported only by IE 4.x browsers.\n If you are using a different browser,\n please press Ctrl+D (Netscape) or add this bookmark manually.');
    }

function newImage(arg) {
	if (document.images) {rslt = new Image();rslt.src = arg;return rslt;}
	}











function changeImage(ID, newImage){
document.getElementById(ID).src=newImage
}


function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}

var preloadFlag = false;

function preloadImages() {
	if (document.images) {
		image_1 = newImage("_images/arrow.gif");
		image_2 = newImage("_images/spacer.gif");
		preloadFlag = true;
		}
	}

ro = "ro";
en = "en"; 
de = "de"; 
categorie = "";
lang = 0;
project = 0; 
key_pic = 0;
popupWins = new Array();

function windowOpener(categ, lang, project, key_pic) {
  /******************************* 
  the popupWins array stores an object reference for
  each separate window that is called, based upon
  the name attribute that is supplied as an argument
  *******************************/
  if ( typeof( popupWins[name] ) != "object" ){
    width_popup = 1300;
    height_popup = 1300;
    if (key_pic > 99){
      width_popup = 1300;
      height_popup =1300;
      }
    popupWins[name] = window.open('zoom.php?categ='+categ+'&lang='+lang+'&project='+project+'&key_pic='+key_pic,categ,'WIDTH='+width_popup+',HEIGHT='+height_popup);
    }
  else {
    if (!popupWins[name].closed){
      popupWins[name].location.href = 'zoom.php?categ='+categ+'&lang='+lang+'&project='+project+'&key_pic='+key_pic;
      } 
    else {
      popupWins[name] = window.open('zoom.php?categ='+categ+'&lang='+lang+'&project='+project+'&key_pic='+key_pic,categ,'WIDTH='+width_popup+',HEIGHT='+height_popup);
      }
    }
  popupWins[name].focus();
  }

function changeOver(obj,color)
  {
  obj.style.borderColor=color;
  }
