<!-- my js -->


function msgsend()
    {  
var OpenWindow=window.open("", "msgwin", "height=550,width=500");
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>SEND a message to Le Vigne</TITLE>")
OpenWindow.document.write("<BODY bgcolor='#9393CA'>")
OpenWindow.document.write("<FONT style='color:navy; font-family: verdana, arial, helvetica, sans-serif; font-size: 10pt'>")
OpenWindow.document.write("<form method='post' action='gdform.php'>")
OpenWindow.document.write("<P><b>Booking Inquiry</b><br>")
OpenWindow.document.write("for Le Vigne<br>")
OpenWindow.document.write("<div align='right'><font color=red>* required</font></div>")
OpenWindow.document.write("<P>Your name:<font color=red>*</font><br>") 
OpenWindow.document.write("<INPUT NAME='yourname' Size=50 Type='text'><br><br>")
OpenWindow.document.write("<P>Your email address:<font color=red>*</font><br>")
OpenWindow.document.write("<i>(be accurate or we will be unable to reach you)</i><br>")
OpenWindow.document.write("<INPUT NAME='email' Size=50 Type='text'><br><br>")
OpenWindow.document.write("<P>Please write your message below:<font color=red>*</font><br>")
OpenWindow.document.write("<TEXTAREA NAME='message' ROWS=7 COLS=50></TEXTAREA><br><br>")
OpenWindow.document.write("<P align='center'>")
OpenWindow.document.write("<INPUT TYPE='submit' Value='Send'>&nbsp;&nbsp;")
OpenWindow.document.write("<INPUT TYPE='reset' Value='Clear'><br><br></p>")
OpenWindow.document.write("<P>Thanks for your message!</p>")
OpenWindow.document.write("<a href='' onClick='self.close()'>Close Window</a>")
OpenWindow.document.write("<INPUT TYPE='hidden' NAME='to' VALUE='info@levigne.net'>")
OpenWindow.document.write("<INPUT TYPE='hidden' NAME='subject' VALUE='Le Vigne: Booking Inquiry'>")
OpenWindow.document.write("<INPUT TYPE='hidden' NAME='redirect' VALUE='thanks.htm'>")
OpenWindow.document.write("</FORM>")
OpenWindow.document.write("</FONT>")
OpenWindow.document.write("</HTML>")
    }

 

function lgimgdisplay(file)
    {  
var OpenWindow=window.open("", "lgimgwin", "height=550,width=620");
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>Le Vigne in Umbria, photos</TITLE>")
OpenWindow.document.write("<BODY bgcolor='9393CA' alink='silver' vlink='silver'>")
OpenWindow.document.write("<P>&nbsp;")
OpenWindow.document.write("<P align='center'><img src='"+file+"'>")
OpenWindow.document.write("<P align='center'>&nbsp;")
OpenWindow.document.write("<font color='white' face='arial' size='-1'>")
OpenWindow.document.write("<a href='' onClick='self.close()'>Close</a> </font></p>")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")
    }


function winopen(winname,h,w,scr)
	{
var OpenWindow=window.open(winname,"newwin","height="+h+",width="+w+",scrollbars="+scr+",left=20")

	}


/***********************************************
* Image Thumbnail viewer- © Dynamic Drive (www.dynamicdrive.com)
* Last updated Sept 26th, 03'. This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var ie=document.all
var ns6=document.getElementById&&!document.all

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat" && !window.opera)? document.documentElement : document.body
}

function enlarge(which, e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
if (position=="center"){
pgyoffset=ns6? parseInt(pageYOffset) : parseInt(ietruebody().scrollTop)
horzpos=ns6? pageXOffset+window.innerWidth/2-imgwidth/2 : ietruebody().scrollLeft+ietruebody().clientWidth/2-imgwidth/2
vertpos=ns6? pgyoffset+window.innerHeight/2-imgheight/2 : pgyoffset+ietruebody().clientHeight/2-imgheight/2
if (window.opera && window.innerHeight) //compensate for Opera toolbar
vertpos=pgyoffset+window.innerHeight/2-imgheight/2
vertpos=Math.max(pgyoffset, vertpos)
}
else{
var horzpos=ns6? pageXOffset+e.clientX : ietruebody().scrollLeft+event.clientX
var vertpos=ns6? pageYOffset+e.clientY : ietruebody().scrollTop+event.clientY
}
crossobj.style.left=horzpos+"px"
crossobj.style.top=vertpos+"px"

crossobj.innerHTML='<div align="left" id="dragbar"><span id="closetext" onClick="closepreview()">Close</span> </div><img src="'+which+'">'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}

function closepreview(){
crossobj.style.visibility="hidden"
}

function drag_drop(e){
if (ie&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx+"px"
crossobj.style.top=tempy+event.clientY-offsety+"px"
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
}
return false
}

function initializedrag(e){
if (ie&&event.srcElement.id=="dragbar"||ns6&&e.target.id=="dragbar"){
offsetx=ie? event.clientX : e.clientX
offsety=ie? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}

document.onmousedown=initializedrag
document.onmouseup=new Function("dragapproved=false")

