
var dom = (document.getElementById)? true : false
var op = (window.opera)?true : false
var op5 = (op && dom)?true : false
var ns = (window.outerWidth && !op)?true : false
var ns6 = (ns && dom)?true : false
var ns4 = (ns && !dom)?true : false
var ie = (document.all && !op)?true : false
var ie5 = (ie && dom)?true : false
var ie4 = (ie && !dom)?true : false

function attach(id) { var obj
                      
                      if(ns4) obj = document.layers[id]
                       else if(ie4) obj = document.all[id]
                        else 
                         if(ie5 || ns6) obj = document.getElementById(id)
                      return obj
                   }
                   
function hide_obj(id) { temp_Obj = attach(id)
                        if(ns4) temp_Obj.visibility = "hide"
                         else temp_Obj.style.visibility = "hidden"
                      }
function is_hidden(id) { temp_Obj = attach(id)
                         if(ns4) return (temp_Obj.visibility == "hide")
                          else return (temp_Obj.style.visibility == "hidden")
                      }
function show_obj(id) { temp_Obj = attach(id)
                        if(ns4) temp_Obj.visibility = "show"
                         else temp_Obj.style.visibility = "visible"
                      }
function move_left(id) { step = 5
                         temp_Obj = attach(id)
                         if(ns4) temp_Obj.left = parseInt(temp_Obj.left) - step
                          else temp_Obj.style.left = parseInt(temp_Obj.style.left) - step
                       }
function move_top(id) { step = 5
                        temp_Obj = attach(id)
                        if(ns4) temp_Obj.top = parseInt(temp_Obj.top) - step
                         else temp_Obj.style.top = parseInt(temp_Obj.style.top) - step
                      }
 
function make_title(id, title) { document.write ("<DIV ID='"+id+"' STYLE='position: absolute; top: -72; left: 216; visibility: visible'>")
                                 document.write ("<table border='0' cellspacing='2' cellpadding='0' width='148'>")
                                 document.write ("<tr><td width='100%'><p align='center'><font style='FONT: 9pt verdana' color=#F7A678>"+title+"<br></font></td></tr></table></DIV>")
                               }

function make_sub_title(id, title) { document.write ("<DIV ID='"+id+"' STYLE='position: absolute; top: -58; left: 216; visibility: hidden'>")
                                     document.write ("<table border='0' cellspacing='2' cellpadding='0' width='148'>")
                                     document.write ("<tr><td width='100%'><p align='center'><font style='FONT: 7pt verdana' color=#F7A678>"+title+"<br></font></td></tr></table></DIV>")
                                   }
function create_menu (id_title, id_txt, title, menu_txt, l1, l2, l3, l4)
                                   { make_title (id_title, title)
                                     hide_obj (id_title)
                                     document.write ("<DIV ID='"+id_txt+"' STYLE='position: absolute; top: -33; left: 196; width: 186; height: 282; visibility: hidden'>")
                                     document.write ("<table border='0' cellspacing='2' cellpadding='0'><tr><td valign='top' align='center'><font style='FONT: 7pt verdana' color=#72706F>")
                                     document.write (menu_txt)
                                     document.write ("</font></td></tr><tr><td valign='top' align='right'><font style='FONT: 7pt verdana' color=#72706F>")
                                     if (l1.length)
									  document.write ("&euro; ")
									 document.write (l1+"</font></td></tr><tr><td valign='top' align='center' height='2'></td></tr><tr><td valign='top' align='center'><font style='FONT: 7pt verdana' color=#72706F>"+l2+"</font></td></tr>")
                                     document.write ("<tr><td valign='top' align='center' height='2'></td></tr>")
                                     document.write ("<tr><td valign='top' align='right'><font style='FONT: 7pt verdana' color=#72706F>"+l3+"</font></td></tr>")
                                     document.write ("<tr><td valign='top' align='center' height='2'></td></tr>")
                                     document.write ("<tr><td valign='top' align='center'><font style='FONT: 7pt verdana' color=#72706F>"+l4+"</font></td></tr>")
                                     document.write ("</table></DIV>")
                         }

 function hide_show_gallery_menu () { hide_obj("D_cantina_menu")
                                      if (is_hidden("D_gallery_menu"))
                                       show_obj ("D_gallery_menu")
                                      else
                                       hide_obj ("D_gallery_menu")
                                    }
 function hide_show_cantina_menu () { hide_obj("D_gallery_menu")
                                      if (is_hidden("D_cantina_menu"))
                                       show_obj ("D_cantina_menu")
                                      else
                                       hide_obj ("D_cantina_menu")
                                    }
function doMouseDown() { return true
                       }

function doMouseUp() { return true
                     }

document.onmousedown = doMouseDown
document.onmouseup = doMouseUp
