function news()
{window.open('editrice/newsletter/newletter_leg.htm','news','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=370,height=200,left=200,top=100')}

function cleartext(elm){
	if (!elm.base) elm.base = elm.value
	if (elm.value == elm.base) elm.value = "";
	else if (elm.value == "") elm.value = elm.base;
}

function privacy()
{window.open('file/privacy.htm','mod','menubars=1,toolbars=0,location=no,scrollbars=no,resizable=no,width=450,height=460,left=150,top=100')}
function webleg(){
var popurl=""
winpops=window.open(popurl,"hyperdict","width=640,height=368,scrollbars,toolbar,menubar,resizable,top=0,left=0")}


var add_url="http://www.leg.it/index.html"
var add_titolo="LIBRERIA EDITRICE GORIZIANA"

function add(){
if (document.all)
window.external.AddFavorite(add_url,add_titolo)
}

function doveleg()
{window.open('http://www.leg.it/antiqua/api_map.htm','mod','width=615,height=415,top=0,left=0')}

/* toggleElement() */
function toggleElement(id) {

  var element = document.getElementById("element" + id);
  var grop    = document.getElementById("grop" + id);

  if(element.style.display == "none") {

    element.style.display = "block";
    grop.src = "img/grop2.gif";
  }

  else {

    element.style.display = "none";
    grop.src = "img/grop.gif";
  }
}

function toggleElement2(id) {

  var element = document.getElementById("element2" + id);
  var grop    = document.getElementById("grop" + id);

  if(element2.style.display == "none") {

    element2.style.display = "block";
    grop.src = "img/grop2.gif";
  }

  else {

    element2.style.display = "none";
    grop.src = "img/grop.gif";
  }
}


/* email encode*/
function sendMailTo(name, company, domain) {
      locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain;
      window.location.replace(locationstring);}


function sendMailTo2(name, company, domain) {
      locationstring = 'mai' + 'lto:' + name + '@' + company + '.' + domain;
      window.location.replace(locationstring);}




/* per literatur*/
function mOvr(src,clrOver) {
 if (!src.contains(event.fromElement)) {
	 src.style.cursor = 'hand';
	 src.bgColor = clrOver;
	}
 }
 function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	 src.style.cursor = 'default';
	 src.bgColor = clrIn;
	}
 }
 function mClk(src) {
 if(event.srcElement.tagName=='TD')
	 src.children.tags('A')[0].click();
 }

function cleartext(elm){
	if (!elm.base) elm.base = elm.value
	if (elm.value == elm.base) elm.value = "";
	else if (elm.value == "") elm.value = elm.base;
}




function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}