// JavaScript Document
function open_window1(url,nome,uno,due,tre,quattro) {
email = window.open(url,nome,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + uno + ',resizable=' + due + ',width='+ tre + ',height=' + quattro +', ');
}
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 b_alto()
{
document.write('<div class="intesta">');
document.write('<table bgcolor="#066206" cellpadding="0" cellspacing="0" border="0" width="100%" align=left>');
document.write(' <tr valign="top">');
document.write('<td align="left"><img src="../images/zin-sa.gif"></td>');
document.write('  <td width="110">&nbsp;</td>');
document.write(' <td align="right"><img src="../images/zin-da.gif"></td>');
document.write(' </tr></table>');
document.write('</div>');
}
function b_basso()
{
document.write('<div class="intesta3">');
document.write('<table bgcolor="#066206" cellpadding="0" cellspacing="0" border="0" width="100%" align=left>');
document.write('<tr valign="top">');
document.write('<td align="left" bgcolor="#066206"><img src="../images/zin-sb.gif"></td>');
document.write('<td width="131" bgcolor="#066206">&nbsp;</td>');
document.write('</tr></table>');
document.write('</div>');
}
function g_alto()
{
document.write('<div class="intesta2">');
document.write('<table bgcolor="#FFCC00" cellpadding="0" cellspacing="0" border="0" width="100%" align=left>');
document.write('<tr valign="top">');
document.write('<td align="left"><img src="../images/zinb-sa.gif"></td>');
document.write('<td width="110">&nbsp;</td>');
document.write('<td align="right"><img src="../images/zinb-da.gif"></td>');
document.write(' </tr></table>');
document.write('</div>');
}
function g_basso()
{
document.write('<div class="intesta2">');
document.write('<table bgcolor="#FFCC00" cellpadding="0" cellspacing="0" border="0" width="100%" align=left>');
document.write(' <tr valign="top">');
document.write('<td align="left"><img src="../images/zinb-sb.gif"></td>');
document.write('<td width="131" bgcolor="#FFCC00">&nbsp;</td>');
document.write(' </tr></table>');
document.write('</div>');
}
function m_alto()
{
document.write('<div class="merc">');
document.write('<table bgcolor="#FFCC00" cellpadding="0" cellspacing="0" border="0" width="510" align=left>');
document.write(' <tr valign="top">');
document.write('<td align="left"><img src="../images/zinb-sa.gif"></td>');
document.write(' <td width="470">&nbsp;</td>');
document.write(' <td align="right"><img src="../images/zinb-da.gif"></td>');
document.write(' </tr></table>');
document.write('</div>');
}
function m_basso()
{
document.write('<div class="merc">');
document.write('<table bgcolor="#FFCC00" cellpadding="0" cellspacing="0" border="0" width="510" align=left>');
document.write(' <tr valign="top">');
document.write('<td align="left"><img src="../images/zinb-sb.gif"></td>');
document.write(' <td width="470">&nbsp;</td>');
document.write(' <td align="right"><img src="../images/zinb-db.gif"></td>');
document.write(' </tr></table>');
document.write('</div>');
}

function randomNumber(limit){
  return Math.floor(Math.random()*limit);
}

function randomImage(imgArr)
{
  var imgSrc, imgW, imgH, r;
  r = randomNumber(imgArr.length / 3)-1;
  if (r == -1 )
  {
  r=0;
  };
  imgSrc = imgArr[r * 3];
  imgW = imgArr[(r * 3)+1];
  imgH = imgArr[(r * 3)+2];
  
  document.write('<IMG SRC=../images/'+imgSrc+' WIDTH='+imgW+' HEIGHT='+imgH+'>');
}
function popupim(burl,bla,bal,bcos,tit,dove){ 
//if (dove==2)
//{
ati="http://www.cdppz.net/hdh/ark/"+burl;	
//}else{
//ati="../../ark/"+burl;
//}
popup="openph.php?nome="+ati+"&largo="+bla+"&alto="+bal+"&cosa="+bcos
open_window1(popup,tit,0,0,bla,bal+25);
}
