//
//Dynamic site links
//
function doLinks()
{
  var link = "";
  link += "<table border=\"0\" width=\"78\" cellspacing=\"0\" cellpadding=\"1\" onMouseover=\"over_effect(event,'outset')\" onMouseout=\"over_effect(event,'solid')\" onMousedown=\"over_effect(event,'inset')\" onMouseup=\"over_effect(event,'outset')\" style=\"background-color:#F0F0F0\" align=\"center\">";

  link += "<tr>";
  link += "<td width=\"100%\" bgcolor=\"#005F0F\"><font class=\"links-head\">Link Utili</font></td>";
  link += "</tr>";
  link += "<tr>";
  link += "<td width=\"100%\" class=\"menulines\"><font class=\"links\"><a target=\"_new\" href=\"http://www.fise.it\">FISE - Federazione Italiana Sport Equestri</a></font></td>";
  link += "</tr>";
  link += "<tr>";
  link += "<td width=\"100%\" class=\"menulines\"><font class=\"links\"><a target=\"_new\" href=\"http://www.completo.org\">Concorso Completo</a></font></td>";
  link += "</tr>";
  link += "<tr>";
  link += "<td width=\"100%\" class=\"menulines\"><font class=\"links\"><a target=\"_new\" href=\"http://www.eventing.it\">Eventing</a></font></td>";
  link += "</tr>";
  link += "<td width=\"100%\" class=\"menulines\"><font class=\"links\"><a target=\"_new\" href=\"http://www.horsesport.org\">Federazione Equestre Internazionale</a></font></td>";
  link += "</tr>";
  link += "<tr>";
  link += "<td width=\"100%\" class=\"menulines\"><center>";
  link += "<IFRAME src=\"http://www.sceree.com/counter/count.php\" width=\"90\" height=\"15\" scrolling=\"no\" frameborder=\"0\"></IFRAME>";
  link += "</center></td></tr>";
  link += "<tr>";
  link += "<td width=\"100%\" class=\"menulines\"><center>";
  link += "<IFRAME src=\"http://www.sceree.com/ip2c/ip2csceree.php\" width=\"90\" height=\"45\" scrolling=\"no\" frameborder=\"0\"></IFRAME>";
  link += "</center></td></tr>";

  link += "</table>";
  document.write(link);
}

//

function doFooter()
{
  //return;

  var link = "";
  link += "<tr>";
  link += "<td colspan=\"3\" rowspan=\"2\" background=\"images/3.jpg\" valign=\"bottom\">";
  link += "<OBJECT id=sceree codeBase=http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0 height=60 width=300 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME=\"movie\" VALUE=\"sceree.swf\"><PARAM NAME=\"quality\" VALUE=\"high\"><PARAM NAME=\"bgcolor\" VALUE=\"#008000\">";
  link += "<EMBED src=\"sceree.swf\" quality=high bgcolor=#008000 WIDTH=300 HEIGHT=60";
  link += " TYPE=\"application/x-shockwave-flash\"";
  link += " PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">";
  link += "</EMBED></OBJECT>";
  link += "<img src=\"images/luca.jpg\"/><img src=\"images/bimbi.jpg\"/><img src=\"images/maneggio.jpg\"/>";
  link += "</td>";
  link += "<td rowspan=\"2\" width=\"40\" height=\"79\" background=\"images/5.jpg\"><img src=\"images/blue_bars_6.jpg\" width=\"40\" height=\"96\"/></td>";
  link += "<td height=\"47\"><font class=\"links\"><center><img src=\"images/email.gif\"><a href=\"mailto:elisabetta.moranzoni@sceree.com\">contattaci</a></center></font></td>";
  link += "</tr>";
  link += "<tr><td height=\"47\" background=\"images/4.jpg\">&nbsp;</td>";
  link += "</tr>";
  document.write(link);
}

function doLayout()
{
  var link = "";
  link += "<td bgcolor=\"#008000\"><img src=\"images/space.gif\" width=\"80\" height=\"1\"/></td>";
  link += "<td bgcolor=\"#008000\"><img src=\"images/space.gif\" width=\"40\" height=\"1\"/></td>";
  link += "<td bgcolor=\"#008000\"><img src=\"images/space.gif\" width=\"500\" height=\"1\"/></td>";
  link += "<td bgcolor=\"#008000\"><img src=\"images/space.gif\" width=\"40\" height=\"1\"/></td>";
  link += "<td bgcolor=\"#008000\"><img src=\"images/space.gif\" width=\"180\" height=\"1\"/></td>";
  document.write(link);
}

function doHeader()
{
  var link = "";
  link += "<td background=\"images/2.jpg\" valign=\"top\" height=\"33\">&nbsp;</td>";
  link += "<td rowspan=\"2\" width=\"40\" background=\"images/1.jpg\"><img src=\"images/blue_bars_1.jpg\" width=\"40\" height=\"104\"/></td>";
  link += "<td colspan=\"3\" rowspan=\"2\" background=\"images/1.jpg\"><img src=\"images/ferro.jpg\"/><img src=\"images/panorama.jpg\" align=\"top\" height=\"70\" width=\"500\"/></td>";
  document.write(link);
}

function image( img, width, style, text, alt )
{
var html = "";
html+="<div style=\""+ style + " font-size: 10pt;\">";
html+="<table style=\"font-size: 10pt;\" width=\"10\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
html+="<tr>";
html+="<td><img src=\"images/b01.jpg\" width=\"12\" height=\"12\"></td>";
html+="<td align=\"left\" background=\"images/b04.jpg\"><img src=\"images/b02.jpg\" width=\"16\" height=\"12\"></td>";
html+="<td align=\"right\" background=\"images/b04.jpg\"><img src=\"images/b06.jpg\" width=\"16\" height=\"12\"></td>";
html+="<td><img src=\"images/b07.jpg\" width=\"12\" height=\"12\"></td>";
html+="</tr>";
html+="<tr>";
html+="<td valign=\"top\" background=\"images/b13.jpg\"><img src=\"images/b08.jpg\" width=\"12\" height=\"16\"></td>";
html+="<td colspan=\"2\" rowspan=\"2\"><img src=\"" + img +"\" width=\"" + width + "\"></td>";
html+="<td valign=\"top\" background=\"images/b14.jpg\"><img src=\"images/b10.jpg\" width=\"12\" height=\"16\"></td>";
html+="</tr>";
html+="<tr>";
html+="<td valign=\"bottom\" background=\"images/b13.jpg\"><img src=\"images/b17.jpg\" width=\"12\" height=\"16\"></td>";
html+="<td valign=\"bottom\" background=\"images/b14.jpg\"><img src=\"images/b18.jpg\" width=\"12\" height=\"16\"></td>";
html+="</tr>";
html+="<tr>";
html+="<td><img src=\"images/b19.jpg\" width=\"12\" height=\"12\"></td>";
html+="<td align=\"left\" background=\"images/b22.jpg\"><img src=\"images/b20.jpg\" width=\"16\" height=\"12\"></td>";
html+="<td align=\"right\" background=\"images/b22.jpg\"><img src=\"images/b24.jpg\" width=\"16\" height=\"12\"></td>";
html+="<td><img src=\"images/b25.jpg\" width=\"12\" height=\"12\"></td>";
html+="</tr>";
if( text != null )
{
  html+="<tr><td colspan=\"4\" align=\"center\"><font class=\"dida\">" + text + "</font></td></tr>";
}
html+="</table>";
html+="</div>";
document.write(html);
}

function over_effect(e,state)
{
  if (document.all)
    source4=event.srcElement
  else if (document.getElementById)
    source4=e.target
  if (source4.className=="menulines")
    source4.style.borderStyle=state
  else
  {
    while(source4.tagName!="TABLE")
    {
      source4=document.getElementById? source4.parentNode : source4.parentElement
      if (source4.className=="menulines")
        source4.style.borderStyle=state
    }
  }
}
