var ua = navigator.userAgent.toLowerCase(); 
var ns4 = (parseInt(ua.substring(ua.lastIndexOf('/')+1)) == 4 && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var ns6 = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var ns7 = (parseInt(ua.substring(ua.lastIndexOf('/')+1)) == 7 && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var ie4 = (document.all) ? 1 : 0;
var isMac = (navigator.appVersion.indexOf("Mac") != -1);
var aListed = 0
var delay=0
var hC1 = ''
if (ie4) { if (isMac){delay=500}}
//
function hideLayer(name) {
 var layer = getLayer(name);
 if (document.layers)
  layer.visibility = "hide";
 if (document.all || ns6)
  layer.visibility = "hidden";
}
//
function showLayer(name) {
 var layer = getLayer(name);
 if (document.layers) {layer.visibility = "show";}
 if (document.all || ns6 || ns7) {layer.visibility = "visible";}
}
//
function getLayer(name) {
 if (document.layers)
  return(document.layers[name]);
 else if (document.all) {
  layer = eval('document.all.' + name + '.style');
  return(layer);
 }
 else if (document.getElementById) {
  layer = eval('document.getElementById("'+name+'").style');
  return(layer);
 }
 else
  return(null);
}
//
function layerWrite(id,nestref,text) {
 if (ns4) {
  if (nestref) var lyr = eval('document.'+nestref+'.document.'+id+'.document')
  else var lyr = document.layers[id].document
   lyr.open()
   lyr.write(text)
   lyr.close()
  }
 else if (ns6) {document.getElementById(id).innerHTML = text }
 else if (ie4) { document.all[id].innerHTML = text }
}
//
function FlashInstalled() {
 result = false;
 if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) {
  result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
 }
 else if (document.all && (navigator.appVersion.indexOf("Mac")==-1)) {
 // IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
 eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
 }
 return result;
}
//
function enlargeImage(oPos,ndx) {
 aList=parent.bot_frame.aList
 oList=parent.bot_frame.oList
 iPath=parent.bot_frame.iPath
 iName=parent.bot_frame.iName
 aName=parent.bot_frame.aName
 sName=parent.bot_frame.sName
 i=eval(ndx*1)
 j=eval(oPos*1)
 //
 var iW = 700; var iH = 700
 var iW2 = 880; var iH2 = 712
 if (screen.width < 850 ) {iW = 540; iH = 540; iW2 = 780; iH2 = 540}
 //
 if (ndx==1) {
  url = 'imgFull.asp?iName=' + iPath + 'galleria%5C' + iName + '&iW=' + iW + '&iH=' + iH  + '&iMode=' + i + '&aNdx=' + j
  sPos='width=' + iW2 + ', height=' + iH2 + ', left=0, top=0, scrollbars=no, status=no, resizable=no'
  remote = open(url, "remote", sPos);
 }
 //
 if (ndx==2) {
  url = 'imgFull.asp?iName=' + iPath + 'mostre%5C' + sName + '%5C' + iName + '&iW=' + iW + '&iH=' + iH  + '&iMode=' + i + '&aNdx=' + j
  sPos='width=' + iW2 + ', height=' + iH2 + ', left=0, top=0, scrollbars=no, status=no, resizable=no'
  remote = open(url, "remote", sPos);
 }
 //
 if (ndx==3) {
  url = 'imgFull.asp?iName=' + iPath + 'artisti%5C' + aName + '%5Cimg%5C'+ escape(oList[oPos][4]) + '&iW=' + iW + '&iH=' + iH + '&iMode=' + i + '&aNdx=' + j
  sPos='width=' + iW2 + ', height=' + iH2 + ', left=0, top=0, scrollbars=no, status=no, resizable=no'
  remote = open(url, "remote", sPos);
 }
}
//
function listAll() {
 var oldGname=''
 var newGname=''

 nArt=parent.bot_frame.nArt
 aList=parent.bot_frame.aList
 nPag=parent.bot_frame.nPag
 pCur=parent.bot_frame.pCur
 parent.bot_frame.layerWrite('Inf2',null,'Attendere caricamento in corso...')  
 parent.bot_frame.layerWrite('Img1',null,'') 
 parent.bot_frame.layerWrite('dLyr',null,'') 
 parent.bot_frame.layerWrite('lAut',null,'') 
 var tW=0
 var iW=0
 var iH=0

 if (screen.width>850) {tW=920; iW=30; iH=30; htmlCode1='<img src="images/Art2_ita.gif" border="0" colspan="4">'}

 htmlCode1=htmlCode1+'<table width="' + tW + '" border="0" cellspacing="0" cellpadding="0">'
 var k=0
 var j=1
 var l=0

 for (i=0; i < aList.length; i++) {

  aName=aList[i][0]
  if (aList[i][4].length > 0) { aName=aName + '_' +  aList[i][4] }

  if (l==0) {htmlCode1=htmlCode1+'<tr>';}
  if (l==4) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  if (l==8) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  if (l==12) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  if (l==16) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  if (l==20) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  if (l==24) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  if (l==28) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  if (l==32) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  if (l==36) {htmlCode1=htmlCode1+'<tr>';j=j+1}
  
  oldGname=aList[i][5]

  if (i==0) { newGname=aList[i][5]
   if (screen.width>850) { htmlCode1 = htmlCode1 + '<td colspan="4" >&nbsp;</td></tr> <tr>'}
  }
  
  if (oldGname != newGname) {

   var r = j*4
   r = r - l

   if ( r < 4 || r > 0) {
    for (m=0; m < r; m++) {
     if (screen.width>850) { htmlCode1 = htmlCode1 + '<td width="230" >&nbsp;</td>'  }
     l=l+1
     k=k+1
    }
    j=j+1
   }

   if (screen.width>850) { htmlCode1 = htmlCode1 + '</tr>  <tr><td colspan="4">&nbsp; ></td></tr>   <tr><td width="230" align="left" valign="top" >'}
  
  } else {
   if (screen.width>850) { htmlCode1 = htmlCode1 + '<td width="230" height="70" align="center" valign="middle" background="images/bgCell3.jpg">'  }
  }
  htmlCode1 = htmlCode1 + '<a href="" onclick="to_Artist(' + aList[i][2] + ',' + i + '); return false" onfocus="blur()">';

  htmlCode1 = htmlCode1 + '<img src="images/artisti/' + aName + '/logo/' + aList[i][3] + '" border="0"  hspace="0" vspace="0" align="absmiddle" />'
  htmlCode1 = htmlCode1 + '&nbsp;&nbsp;'
  
  // aName = aList[i][0]
  // if (aList[i][4].length > 0) { aName=aName + ' ' +  aList[i][4] }
  // htmlCode1 = htmlCode1 + '&nbsp;' + aName + '</a>'
  htmlCode1 = htmlCode1 + '</td>'


  newGname=aList[i][5]

  if (k==3) {htmlCode1=htmlCode1+'</tr>'}
  if (k==7) {htmlCode1=htmlCode1+'</tr>'}
  if (k==11) {htmlCode1=htmlCode1+'</tr>'}
  if (k==15) {htmlCode1=htmlCode1+'</tr>'}
  if (k==19) {htmlCode1=htmlCode1+'</tr>'}
  if (k==23) {htmlCode1=htmlCode1+'</tr>'}
  if (k==27) {htmlCode1=htmlCode1+'</tr>'}
  if (k==31) {htmlCode1=htmlCode1+'</tr>'}
  if (k==35) {htmlCode1=htmlCode1+'</tr>'}
  if (k==39) {htmlCode1=htmlCode1+'</tr>'}
  if (k==43) {htmlCode1=htmlCode1+'</tr>'}
  l=l+1
  k=k+1
 }

 htmlCode1 = htmlCode1 + '</table>'

 parent.bot_frame.layerWrite('lAut',null,htmlCode1) 
 setTimeout("parent.bot_frame.layerWrite('Inf2',null,'') ",1000);
 
}
//
function dAdet(iArt,aPos) {
 aList=parent.bot_frame.aList
 oList=parent.bot_frame.oList
 iPath=parent.bot_frame.iPath
 isVideo=parent.bot_frame.isVideo
 iArt=parent.bot_frame.iArt
 
 i=eval(aPos*1)
 aName=aList[i][0]
 if (aList[i][4].length > 0) { aName=aName + '_' +  aList[i][4] }
 parent.bot_frame.aName=aName

 botTxt=botTxt = '<div align="center">' + oList[0][0] + '&nbsp;&nbsp;-&nbsp;&nbsp;' + oList[0][1]  + '&nbsp;&nbsp;-&nbsp;&nbsp;' + oList[0][2] + '&nbsp;&nbsp;-&nbsp;&nbsp;' + oList[0][3]  + '</div>' 

 iW=400; iH=400; resMode=5;
 if (screen.width < 850) {iW=335; iH=335; resMode=6;}

 hC1 = '<div id="cImg"><table cellspacing="0" cellpadding="0"><tr>'
 hC1 = hC1 + '<td width="' + iW + '" height="' + iH + '" align="center" valign="middle" nowrap >'
 hC1 = hC1 + '<A href="#" onclick="enlargeImage(0,3,0); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
 hC1 = hC1 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[0][4]) + '&resMode=' + resMode + '" border="0" alt="click to enlarge image"></a></td></tr></table></div>'

 setTimeout("parent.bot_frame.layerWrite('Img1',null,unescape(hC1))",200);

 cW = 76; cH = 85; fS = 3 ; resMode=3;
 // if (screen.width < 850 ) {fS = 2; resMode=4; cW = 76; cH = 76;}

 cSet='<td align="center" valign="middle" width="' + cW + '" height="' + cH + '" ' 

 htmlCode2 = '<span class="ist4">' + '&nbsp;' + aList[aPos][4] + '&nbsp;' + aList[aPos][0] + '</span><br><br><table width="304" border="0" cellspacing="0" cellpadding="0"><tr>'
 htmlCode2 = htmlCode2 + '<td valign="middle" colspan="4" nowrap height="20" >'
 
 if (aList[aPos][3]=='na') {
 //  htmlCode2 = htmlCode2 +  '<span class="ist4">' + aList[aPos][0] + '</span>&nbsp;'
 } else {
  // htmlCode2 = htmlCode2 +  '<img src="images/artisti/' + aName + '/logo/' + aList[aPos][3] + '" border="0">'
  // htmlCode2 = htmlCode2 +  '<span class="ist4">' + aList[aPos][0] + '</span>'
 }
 htmlCode2 = htmlCode2 + '</td></tr>'

 htmlCode2 = htmlCode2 + '<tr>'
 htmlCode2 = htmlCode2 + cSet
 if ( oList[0][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap><A href="#" onclick="chgAitem(0,iArt,aPos); return false" onfocus="blur()"><img src="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[0][4]) + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 } else {htmlCode2 = htmlCode2 + '>&nbsp;</td>'}

 htmlCode2 = htmlCode2 + cSet
 if ( oList[1][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap><A href="#" onclick="chgAitem(1,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[1][4]) + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 } else { htmlCode2 = htmlCode2 + '>&nbsp;</td>'}

 htmlCode2 = htmlCode2 + cSet
 if ( oList[2][0]) {
  htmlCode2 = htmlCode2 + ' nowrap><A href="#" onclick="chgAitem(2,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[2][4]) + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 } else {htmlCode2 = htmlCode2 + '>&nbsp;</td>'}

 htmlCode2 = htmlCode2 + cSet
 if ( oList[3][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap><A href="#" onclick="chgAitem(3,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[3][4]) + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 } else { htmlCode2 = htmlCode2 + '>&nbsp;</td>'}
 htmlCode2 = htmlCode2 + '</tr><tr>'

 htmlCode2 = htmlCode2 + cSet
 if ( oList[4][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap ><A href="#" onclick="chgAitem(4,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[4][4]) + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 } else {htmlCode2 = htmlCode2 + ' nowrap >&nbsp;</td>'}

 htmlCode2 = htmlCode2 + cSet
 if ( oList[5][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap ><A href="#" onclick="chgAitem(5,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[5][4]) + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 } else {htmlCode2 = htmlCode2 + ' nowrap >&nbsp;</td>'}

 htmlCode2 = htmlCode2 + cSet
 if ( oList[6][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap ><A href="#" onclick="chgAitem(6,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[6][4]) + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 } else {htmlCode2 = htmlCode2 + ' nowrap >&nbsp;</td>'}

 htmlCode2 = htmlCode2 + cSet
 if ( oList[7][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap ><A href="#" onclick="chgAitem(7,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[7][4]) + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 } else { htmlCode2 = htmlCode2 + ' nowrap >&nbsp;</td>' }
 htmlCode2 = htmlCode2 + '</tr><tr>'
 htmlCode2 = htmlCode2 + cSet
 if ( oList[8][0] ) {
  htmlCode2 = htmlCode2 + '  nowrap ><A href="#" onclick="chgAitem(8,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[8][4]) + '&resMode=' + resMode + '" border="0" alt="click to enlarge image"></a></td>'
 } else { htmlCode2 = htmlCode2 + ' nowrap >&nbsp;</td>' }
 htmlCode2 = htmlCode2 + cSet
 if ( oList[9][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap ><A href="#" onclick="chgAitem(9,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[9][4]) + '&resMode=' + resMode + '" border="0" alt="click to enlarge image"></a></td>'
 } else {
  htmlCode2 = htmlCode2 + ' nowrap >&nbsp;</td>'
 }
 htmlCode2 = htmlCode2 + cSet
 if ( oList[10][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap ><A href="#" onclick="chgAitem(10,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[10][4]) + '&resMode=' + resMode + '" border="0" alt="click to enlarge image"></a></td>'
 } else {
  htmlCode2 = htmlCode2 + ' nowrap >&nbsp;</td>'
 }
 htmlCode2 = htmlCode2 + cSet
 if ( oList[11][0] ) {
  htmlCode2 = htmlCode2 + ' nowrap ><A href="#" onclick="chgAitem(11,iArt,aPos); return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='
  htmlCode2 = htmlCode2 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[11][4]) + '&resMode=' + resMode + '" border="0" alt="click to enlarge image"></a></td>'
 } else {
  htmlCode2 = htmlCode2 + ' nowrap >&nbsp;</td>'
 }
 htmlCode2 = htmlCode2 + '</tr>'
 htmlCode2 = htmlCode2 + '<tr valign="middle"><td colspan="4">&nbsp;</td></tr>'
 if (screen.width > 850) {
  htmlCode2 = htmlCode2 + '<tr valign="middle"><td colspan="4">&nbsp;</td></tr>'
  htmlCode2 = htmlCode2 + '<tr valign="middle"><td colspan="4">&nbsp;</td></tr>'
 }
 htmlCode2 = htmlCode2 + '</table>'

 htmlCode2 = htmlCode2 + '<div id="dMnu"><table border="0" cellspacing="0" cellpadding="0" width="280">'

 htmlCode2 = htmlCode2 + '<tr><td colspan="4" align="right" valign="middle" height="20" nowrap>&nbsp;</td></tr>'
 htmlCode2 = htmlCode2 + '<tr><td colspan="4" align="left" valign="middle" height="20" nowrap><a class="L2" href="" onclick="enlargeImage(0,3,0); return false" onfocus="blur()"><img src="images/zoom1_ita.gif" border="0" align="middle"></a>&nbsp;&nbsp;&nbsp;<a class="L2" href="" onclick="to_bio(' + iArt + ',' + '0' + ',' + aPos + '); return false" onfocus="blur()"><img src="images/bio1_ita.gif" border="0" align="middle"></a></td></tr>'
 htmlCode2 = htmlCode2 + '<tr><td colspan="4" align="right" valign="middle" height="20" nowrap></td></tr>'
 if (isVideo==1) {
  htmlCode2 = htmlCode2 + '<tr><td colspan="4" align="right" valign="middle" height="20" nowrap><a class="L2" href="video/video.asp?iArt=' + iArt + '" target="_blank" onfocus="blur()">Video&nbsp;&nbsp;<img src="images/dot5_off.gif" border="0" align="middle"></a></td></tr>'

 }
 pOpe=eval(oList[0][6]*1)
 // if (pOpe>=0) { htmlCode2 = htmlCode2 + '<tr><td colspan="4" valign="middle" height="20" nowrap><a class="L2" href="" onclick="         return false" onfocus="blur()">prezzo&nbsp;&nbsp;' + pOpe + ' Euro&nbsp;&nbsp;<img src="images/dot2_off.gif" width="8" height="8" border="0" align="middle"></a></td></tr>' }
 // else {         htmlCode2 = htmlCode2 + '<tr><td colspan="4" valign="middle" height="20" nowrap><a class="L2" href="" onclick="         return false" onfocus="blur()">OPERA VENDUTA!&nbsp;&nbsp;<img src="images/dot2_off.gif" width="8" height="8" border="0" align="middle"></a></td></tr>' }
 htmlCode2 = htmlCode2 + '</table></div>'

 htmlCode2 = '<div id="dTxt">' + unescape(htmlCode2) + '</div>'
 setTimeout("parent.bot_frame.layerWrite('dLyr',null,htmlCode2)",1200)
 setTimeout("parent.bot_frame.showLayer('Img1')",1200);
 setTimeout("parent.bot_frame.layerWrite('Inf2',null,unescape(botTxt))",1400);
}
//
function chgAitem(oPos,iArt,aPos) {
 i=eval(oPos*1)
 j=eval(aPos*1)
 aName=aList[j][0]
 if (aList[j][4].length > 0) { aName=aName + '_' +  aList[j][4] }
 aList=parent.bot_frame.aList
 oList=parent.bot_frame.oList
 iPath=parent.bot_frame.iPath
 parent.bot_frame.iName=escape(oList[oPos][4])

 iW=400; iH=400; resMode=5;
 if (screen.width < 850) {iW=335; iH=335; resMode=6;}

 if ( oList[oPos][0].length > 0 ) {
  htmlCode1 = '<div id="cImg"><table cellspacing="0" cellpadding="0"><tr>'
  htmlCode1 = htmlCode1 + '<td width="' + iW + '" height="' + iH + '" align="center" valign="middle" nowrap >'
  htmlCode1 = htmlCode1 + '<A href="#" onclick="enlargeImage(' + oPos + ',3); return false" onfocus="blur()"><img src="sendbinary.asp?path='
  htmlCode1 = htmlCode1 + iPath + 'artisti%5C' + aName + '%5Cimg%5C' + escape(oList[oPos][4]) + '&resMode=' + resMode + '" border="0" alt="click to enlarge image"></a></td>'
  htmlCode1 = htmlCode1 + '</tr></table>'
  setTimeout("parent.bot_frame.layerWrite('Img1',null,unescape(htmlCode1))",100);
 }

 botTxt = '<div align="center">' + oList[oPos][0] + '&nbsp;&nbsp;-&nbsp;&nbsp;' + oList[oPos][1]  + '&nbsp;&nbsp;-&nbsp;&nbsp;' + oList[oPos][2] + '&nbsp;&nbsp;-&nbsp;&nbsp;' + oList[oPos][3]  + '</div>' 

 setTimeout("parent.bot_frame.layerWrite('Inf2',null,unescape(botTxt))",300);
}
//
function dFrm1() { setTimeout("displayFrm1(0,6)",300) }
//
function displayFrm1(iOp,ndx) {
 aPos=parent.bot_frame.aPos
 aList=parent.bot_frame.aList
 oList=parent.bot_frame.oList
 parent.bot_frame.iMenu=ndx
 sInfo='Artista: ' + aList[aPos][0] +  '\r' + '\n' + 'Opera: ' + oList[iOp][0] + '\r' + '\n' + 'Data: ' + oList[iOp][1]
 parent.bot_frame.sInfo=sInfo
 parent.bot_frame.layerWrite('dFrm',null,cF1);
 parent.bot_frame.showFrm1()

 var delay=0
 if (ie4) { if (isMac){delay=500}}
 delay = 400 + delay
 setTimeout("parent.bot_frame.nomeForm(1)",delay);
}
//
function to_bio(iArt,oPos,aPos) { parent.exe_frame.location='bArt_ita.asp?iArt='+iArt+'&oPos='+oPos+'&aPos='+aPos }
//
function closeBio(iArt,oPos,aPos) {
 i=eval(oPos*1)
 j=eval(iArt*1)
 k=eval(aPos*1)
 parent.bot_frame.layerWrite('Inf1',null,'');
 parent.bot_frame.layerWrite('Img1',null,'');
 setTimeout("chgAitem(i,j,k)",200);
}
//
function displayFrm1_2() {
 // sInfo='Richiesta informazioni per gli artisti elencati'
 // parent.bot_frame.sInfo=sInfo
 // parent.bot_frame.layerWrite('dFrm',null,cF1);
 // parent.bot_frame.showFrm1_2()
 setTimeout("parent.bot_frame.nomeForm(2)",100);
 setTimeout("parent.bot_frame.layerWrite('Inf2',null,'')",200);
}
//
function displayShow(ndx) {
 iW=400; iH=400; i=ndx
 iPath=parent.bot_frame.iPath
 sList=parent.bot_frame.sList
 lCode=parent.bot_frame.lCode

 resMode=7; fS1=11; fS2=9; cW=115; cH=100

 iCell_1 = '<td width="'+ cW + '" height="' + cH  + '" align="center" valign="middle" >'
 iCell_1 = iCell_1 + '<A href="#" onclick="'
 iCell_2 ='; return false" onfocus="blur()"><IMG SRC="sendbinary.asp?path='

 msgText = '<span class="iSt6"><img src="images/tit1_ita.gif" border="0" />'
 msgText = msgText + '</span><br>'
 msgText = msgText + '<table width="350" border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" height="30" bgcolor="white">'
 msgText = msgText + '<img src="images/Art1_ita.gif" border="0" align="top" /><span class="ist11">' + sList[0][1] + '</span>'
 msgText = msgText + '</td></tr></table>'
 msgText = msgText + '<br><span class="iSt8"><img src="images/Dal1_ita.gif" border="0" align="absmiddle" />' + sList[0][2] + '</span><br>'
 msgText = msgText + '<div id="Pad1">' + sList[0][3] + '</div>'

 hCd2 = '<img src="images/mst1_ita.gif" border="0" >'
 hCd2 = hCd2 + '<table width="355" border="0" cellspacing="0" cellpadding="0" id="tItem">'
 hCd2 = hCd2 + '<tr>'
 hCd2 = hCd2 + '<td valign="top" height="125"  colspan="5" bgcolor="white">'
 hCd2 = hCd2 + msgText + '</td>'
 hCd2 = hCd2 + '</tr>'

 if (screen.width > 850) {hCd2 = hCd2 + '<tr><td colspan="5" valign="top" height="36" ><a target="_blank"  href="' + 'pdf/' + sList[0][10] + '" onfocus="blur()"><img src="images/cSt1_ita.gif" border="0" ></a></td></tr>'}
 //
 sName=escape(sList[0][0])
 iName=escape(sList[0][4])
 parent.bot_frame.iName=iName
 parent.bot_frame.sName=sName
 //
 hCd2 = hCd2 + '<tr>'
 hCd2 = hCd2 + '<td width="1" >&nbsp;</td>'
 hCd2 = hCd2 + iCell_1 + 'chgGall(sList[0][4],2,11)' + iCell_2 + iPath + 'mostre%5C' + sName + '%5C' + sList[0][4] + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 hCd2 = hCd2 + iCell_1 + 'chgGall(sList[0][5],2,12)' + iCell_2 + iPath + 'mostre%5C' + sName + '%5C' + sList[0][5] + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 hCd2 = hCd2 + iCell_1 + 'chgGall(sList[0][6],2,13)' + iCell_2 + iPath + 'mostre%5C' + sName + '%5C' + sList[0][6] + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>' 
 hCd2 = hCd2 + '<td width="9" ></td></tr>'

 hCd2 = hCd2 + '<tr><td height="15" colspan="5" >&nbsp;</td></tr>'

 hCd2 = hCd2 + '<tr>'
 hCd2 = hCd2 + '<td width="1" >&nbsp;</td>'
 hCd2 = hCd2 + iCell_1 + 'chgGall(sList[0][7],2,14)' + iCell_2 + iPath + 'mostre%5C' + sName + '%5C' + sList[0][7] + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 hCd2 = hCd2 + iCell_1 + 'chgGall(sList[0][8],2,15)' + iCell_2 + iPath + 'mostre%5C' + sName + '%5C' + sList[0][8] +  '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>'
 hCd2 = hCd2 + iCell_1 + 'chgGall(sList[0][9],2,16)' + iCell_2 + iPath + 'mostre%5C' + sName + '%5C' + sList[0][9]  + '&resMode=' + resMode + '" border="0" alt="click to change image"></a></td>' 
 hCd2 = hCd2 + '<td width="9" >&nbsp;</td></tr>'

 hCd2 = hCd2 + '</table>'
 hCd2 = '<div id="dTxt">' + unescape(hCd2) + '</div>'

 if (screen.width > 850) { setTimeout("parent.bot_frame.repos_dLyr(40)",100) }

 setTimeout("parent.bot_frame.layerWrite('dLyr',null,hCd2)",500);

 iW=400; iH=400; resMode=5
 if (screen.width < 850) {iW=310; iH=310; resMode=6; }

 hCd1='<div id="cImg"><table cellspacing="0" cellpadding="0"><tr><td width="' + iW + '" height="' + iH + '" align="center" valign="middle" nowrap >'
 hCd1=hCd1 + '<A href="" onclick="enlargeImage(0,2); return false" onfocus="blur()"><img src="sendbinary.asp?path='
 hCd1=hCd1 + iPath + 'mostre%5C' + sName + '%5C' + sList[0][4] + '&resMode=' + resMode + '" border="0" alt="click to enlarge image" ></a></td></tr></table>'

 var delay=0
 if (ie4) { if (isMac){delay=500}}
 delay = 400 + delay
 setTimeout("parent.bot_frame.layerWrite('Img1',null,unescape(hCd1))",300);

 //setTimeout("parent.bot_frame.display_Scroll()",100); 
 //setTimeout("parent.bot_frame.initLyrs(0)",1300); 
 //setTimeout("parent.bot_frame.showLayer('dLyr')",500); 

 if (ie4) {
 } else {
  parent.bot_frame.repos_dFrm1()
 }
 setTimeout("if (i==1) { parent.bot_frame.layerWrite('dFrm1',null,unescape(lCode)) }", 600 );
 infTxt=unescape('<div align=' + '%22' + 'center' + '%22' + '>' + sList[0][11] + '</div>')
 setTimeout("parent.bot_frame.layerWrite('Inf2',null,infTxt)", 700 );
 setTimeout("parent.bot_frame.blurList1()", 1500 );
}
//
function displayEvents() {
 eList=parent.bot_frame.eList
 setTimeout("parent.bot_frame.layerWrite('Inf2',null,'<center>Attendere caricamento in corso...</center>')",20);
 setTimeout("parent.bot_frame.layerWrite('Inf1',null,''))",50);
 parent.bot_frame.repos_dTab(570)

 tCode='<br><table width="420" border="0" cellpadding="0" cellspacing="0" id="tItem">'
 i=eList.length

 for (i=0; i < eList.length; i++) {
  tCode= tCode + '<tr>'
  tCode= tCode + '<td width="25"  height="30" valign="middle"><img src="images/gLogo1.jpg" /></td>'
  tCode= tCode + '<td height="30" valign="middle"><a class="L4" href="" onclick="getEve(' + i + '); return false" onfocus="blur()">' + eList[i][3] + ' - ' + eList[i][0] + '</a></td>'
  tCode= tCode + '</tr>'
 }
 
 tCode= tCode + '</table>'

 setTimeout("parent.bot_frame.layerWrite('dLyr',null,'')",40);
 setTimeout("parent.bot_frame.layerWrite('dTab',null,unescape(tCode))",50);
 setTimeout("parent.bot_frame.getEve(0)",600);
 setTimeout("parent.bot_frame.layerWrite('Inf2',null,'')", 1000 );
}
//
