document.write('<table cellspacing=0 cellpadding=0 border=0 align="center"><tr><td><div style="float: left;"><img src="../_images/laleft.gif" border=0 width=18 height=27></div><div id="menu" class="v11" style="float: left;"><div id="menudt"><a href="../ricette.htm" title="Ricette di cucina"><img src="../_images/recipes.gif" alt="ricette di cucina" width=16 height=15 border=0 align="top">Ricette</a></div><div id="menudt"><a href="../community.htm" title="Community"><img src="../_images/visit.gif" alt="Community" width=16 height=15 border=0 align="top">Community</a></div><div id="menudt"><a href="../magazine.htm" title="Magazine"><img src="../_images/rubriche.gif" alt="Magazine" width=16 height=15 border=0 align="top"> Magazine</a></div><div id="menudt"><a href="http://www.forumcucina.mrcarota.it" title="Forum"><img src="../_images/icon_mini_message.gif" alt="Forum" width=16 height=15 border=0 align="top"> Forum</a></div><div id="menudt"><a href="../arspeciali.htm" title="Ricette illustrate"><img src="../_images/illustrate.gif" alt="Ricette illustrate" width=16 height=15 border=0 align="top"> Ricette illustrate</a></div><div id="menudt"><a href="../idiete.htm" title="Diete e calorie"><img src="../_images/dietecalorie.gif" alt="Diete e calorie" width=16 height=15 border=0 align="top"> Diete&amp;calorie</a></div><div id="menudt"><a href="../vostre/trucchi.php" title="Trucchi e consigli"><img src="../_images/magic.jpg" alt="Trucchi e consigli" width=16 height=15 border=0 align="top"> Trucchi e consigli</a></div><div id="menudt"><a href="../shop/" title="Shopping online"><b style="font-size:v12">&euro;</b> Shop</a></div></div><div style="float: left"><img src="../_images/laright.gif" border=0 width=17 height=27></div></td></tr><tr><td align="right"><script type="text/javascript" language="javascript" src="../mailing/ctrlareai.php"></script></td></tr></table>');

function scrivimenu() {
}
function vedi() {
aprica=open('../script/carrello.php?azione=4','aprica','toolbar=0,location=1,status=0,menubar=1,scrollbars=1,resizable=1,width=450,height=450,top=0,left=400,screenX=400,screenY=0');
location.href=this.location;
}
var resolution = window.screen.width + 'x' +
                 window.screen.height;

document.write(
  '<img src="../script/image.php?' +
  'resolution='               + resolution +
  '" alt="" width="1" height="1" />'
);

document.write('<!-- *** Login Area Iscritti Newsletter *** --><div class="login" id="popup" style="display: none;"><div class="menu_form_header" id="popup_drag" style="cursor: move;"><img class="menu_form_exit" id="popup_exit" src="../_images/form_exit.png" alt="" />&nbsp;&nbsp;&nbsp;Login Area Iscritti Newsletter</div><div class="menu_form_body"><form action="../mailing/areaiscritti.php"><table><tr><th>Email Newsletter</th><td><input class="field" type="text" onfocus="select();" name="utente" /></td></tr>	<tr><th>Password:</th><td><input class="field" type="password" onfocus="select();" name="passwu" /></td></tr>	<tr><th></th><td><input class="bott"   type="submit"   value="Entra" /></td></tr></table></form></div></div><!-- ******************* -->');

// Copyright (C) 2005-2008 Ilya S. Lyubinskiy. All rights reserved.
// Technical support: http://www.php-development.ru/
//
// YOU MAY NOT
// (1) Remove or modify this copyright notice.
// (2) Re-distribute this code or any part of it.
//     Instead, you may link to the homepage of this code:
//     http://www.php-development.ru/javascripts/popup-window.php
//
// YOU MAY
// (1) Use this code on your website.
// (2) Use this code as part of another product.
//
// NO WARRANTY
// This code is provided "as is" without warranty of any kind.
// You expressly acknowledge and agree that use of this code is at your own risk.

// USAGE
//
// function popup_show(id, drag_id, exit_id, position, x, y, position_id)
//
// id          - id of a popup window;
// drag_id     - id of an element within popup window intended for dragging it
// exit_id     - id of an element within popup window intended for hiding it
// position    - positioning type:
//               "element", "element-right", "element-bottom", "mouse",
//               "screen-top-left", "screen-center", "screen-bottom-right"
// x, y        - offset
// position_id - id of an element relative to which popup window will be positioned


// ***** Variables *************************************************************

var popup_dragging = false;
var popup_target;
var popup_mouseX;
var popup_mouseY;
var popup_mouseposX;
var popup_mouseposY;
var popup_oldfunction;


// ***** popup_mousedown *******************************************************

function popup_mousedown(e)
{
  var ie = navigator.appName == "Microsoft Internet Explorer";

  popup_mouseposX = ie ? window.event.clientX : e.clientX;
  popup_mouseposY = ie ? window.event.clientY : e.clientY;
}


// ***** popup_mousedown_window ************************************************

function popup_mousedown_window(e)
{
  var ie = navigator.appName == "Microsoft Internet Explorer";

  if ( ie && window.event.button != 1) return;
  if (!ie && e.button            != 0) return;

  popup_dragging = true;
  popup_target   = this['target'];
  popup_mouseX   = ie ? window.event.clientX : e.clientX;
  popup_mouseY   = ie ? window.event.clientY : e.clientY;

  if (ie)
       popup_oldfunction = document.onselectstart;
  else popup_oldfunction = document.onmousedown;

  if (ie)
       document.onselectstart = new Function("return false;");
  else document.onmousedown   = new Function("return false;");
}


// ***** popup_mousemove *******************************************************

function popup_mousemove(e)
{
  var ie      = navigator.appName == "Microsoft Internet Explorer";
  var element = document.getElementById(popup_target);
  var mouseX  = ie ? window.event.clientX : e.clientX;
  var mouseY  = ie ? window.event.clientY : e.clientY;

  if (!popup_dragging) return;

  element.style.left = (element.offsetLeft+mouseX-popup_mouseX)+'px';
  element.style.top  = (element.offsetTop +mouseY-popup_mouseY)+'px';

  popup_mouseX = ie ? window.event.clientX : e.clientX;
  popup_mouseY = ie ? window.event.clientY : e.clientY;
}

// ***** popup_mouseup *********************************************************

function popup_mouseup(e)
{
  var ie      = navigator.appName == "Microsoft Internet Explorer";
  var element = document.getElementById(popup_target);

  if (!popup_dragging) return;

  popup_dragging = false;

  if (ie)
       document.onselectstart = popup_oldfunction;
  else document.onmousedown   = popup_oldfunction;
}

// ***** popup_exit ************************************************************

function popup_exit(e)
{
  var ie      = navigator.appName == "Microsoft Internet Explorer";
  var element = document.getElementById(popup_target);

  popup_mouseup(e);
  element.style.display = 'none';
}


// ***** popup_show ************************************************************

function popup_show(id, drag_id, exit_id, position, x, y, position_id)
{
  var element      = document.getElementById(id);
  var drag_element = document.getElementById(drag_id);
  var exit_element = document.getElementById(exit_id);

  var width        = window.innerWidth  ? window.innerWidth  : document.documentElement.clientWidth;
  var height       = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight;

  element.style.position = "absolute";
  element.style.display  = "block";

  if (position == "element" || position == "element-right" || position == "element-bottom")
  {
    var position_element = document.getElementById(position_id);

    for (var p = position_element; p; p = p.offsetParent)
      if (p.style.position != 'absolute')
      {
        x += p.offsetLeft;
        y += p.offsetTop;
      }

    if (position == "element-right" ) x += position_element.clientWidth;
    if (position == "element-bottom") y += position_element.clientHeight;

    element.style.left = x+'px';
    element.style.top  = y+'px';
  }

  if (position == "mouse")
  {
    element.style.left = (document.documentElement.scrollLeft+popup_mouseposX+x)+'px';
    element.style.top  = (document.documentElement.scrollTop +popup_mouseposY+y)+'px';
  }

  if (position == "screen-top-left")
  {
    element.style.left = (document.documentElement.scrollLeft+x)+'px';
    element.style.top  = (document.documentElement.scrollTop +y)+'px';
  }

  if (position == "screen-center")
  {
    element.style.left = (document.documentElement.scrollLeft+(width -element.clientWidth )/2+x)+'px';
    element.style.top  = (document.documentElement.scrollTop +(height-element.clientHeight)/2+y)+'px';
  }

  if (position == "screen-bottom-right")
  {
    element.style.left = (document.documentElement.scrollLeft+(width -element.clientWidth )  +x)+'px';
    element.style.top  = (document.documentElement.scrollTop +(height-element.clientHeight)  +y)+'px';
  }

  drag_element['target']   = id;
  drag_element.onmousedown = popup_mousedown_window;

  exit_element.onclick     = popup_exit;
}


// ***** Attach Events *********************************************************

if (navigator.appName == "Microsoft Internet Explorer")
     document.attachEvent   ('onmousedown', popup_mousedown);
else document.addEventListener('mousedown', popup_mousedown, false);

if (navigator.appName == "Microsoft Internet Explorer")
     document.attachEvent   ('onmousemove', popup_mousemove);
else document.addEventListener('mousemove', popup_mousemove, false);

if (navigator.appName == "Microsoft Internet Explorer")
     document.attachEvent   ('onmouseup', popup_mouseup);
else document.addEventListener('mouseup', popup_mouseup, false);
