
   function sendMailTo(name, company, domain) {
      locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain;
      window.location.replace(locationstring);
   }


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

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) {
                buttons_01_over = newImage("../../images/b_bttn.gif");
                buttons_02_over = newImage("../../images/br_bttn.gif");
                buttons_03_over = newImage("../../images/a_bttn.gif");
                preloadFlag = true;
        }
}

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}

function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=40
}

function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=20
else if (window.highlighting)
clearInterval(highlighting)
}


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.');
}


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 = 520;
    height_popup = 520;
    if (key_pic > 99){
      width_popup = 520;
      height_popup = 520;
      }
    popupWins[name] = window.open('../../_global/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 = '../../_global/zoom.php?categ='+categ+'&lang='+lang+'&project='+project+'&key_pic='+key_pic;
      } 
    else {
      popupWins[name] = window.open('../../_global/zoom.php?categ='+categ+'&lang='+lang+'&project='+project+'&key_pic='+key_pic,categ,'WIDTH='+width_popup+',HEIGHT='+height_popup);
      }
    }
  popupWins[name].focus();
  }
