//---------CSS---------

var browser_type=navigator.appName
var browser_version=parseInt(navigator.appVersion)
//if NS
if (browser_type=="Netscape")
document.write("<link REL='STYLESHEET' TYPE='TEXT/CSS' HREF='include/ns_style1.css'>")
else 
document.write("<link REL='STYLESHEET' TYPE='TEXT/CSS' HREF='include/ie_style1.css'>")


//----------END CSS------------

//--------breakout of frames-----

function jumpTo(url){
if (((navigator.appName.indexOf("Microsoft") != -1) && 
(parseInt(navigator.appVersion) > 3.02)) || 
location.replace) 
	top.location.replace(url);
else
	top.location.href = url;
}
if( top != self ) 
jumpTo(self.location.href);

//if (self.parent.frames.length != 0)
//        self.parent.location="index.htm";

//-------end breakout of frames-----

//---------disable right click---

var message="Copyright © 2001. All rights reserved.";
function click(e) {
if (document.all) {
if (event.button==2||event.button==3) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

//-----end disable right click------


function functionRoom()
{
openPopWin('images/news/functionroom.jpg','550','410','scrollbars','20','20');
}
function val_specials()
{
openPopWin('include/valentine_specials.htm','550','450','scrollbars','20','20');
}
function specials1()
{
	openPopWin('include/specials1.htm','550','450','scrollbars','20','20');
}
function specials2()
{
	openPopWin('include/specials2.htm','550','450','scrollbars','20','20');
}
function mailinglist()
{
	openPopWin('include/form_mailinglist.htm','320','370','','cen','cen');
}
function freewine()
{
	
	if (browser_type=="Netscape")
		openPopWin('include/free_wine_voucher_ns.htm','650','530','scrollbars','20','20')
		else
		openPopWin('include/free_wine_offer.htm','650','530','scrollbars','20','20');
}
function copyright()
{
	openPopWin('include/copyright.htm','300','275','scrollbars','cen','cen');
}
function gbook()
{
	openPopWin('include/form_gbook.htm','340','460','','cen','cen');
}
function voucher()
{
	openPopWin('include/free_wine_voucher.htm','650','500','scrollbars','cen','cen');
}

//-------POPWIN-------

var popWin = null    // use this when referring to pop-up window
var winCount = 0
var winName = "popWin"

function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){
  var d_winLeft = 20  // default, pixels from screen left to window left
  var d_winTop = 20   // default, pixels from screen top to window top
  winName = "popWin" + winCount++ //unique name for each pop-up window
  closePopWin()           // close any previously opened pop-up window
  if (openPopWin.arguments.length >= 4)  // any additional features? 
    winFeatures = "," + winFeatures
  else 
    winFeatures = "" 
  if (openPopWin.arguments.length == 6)  // location specified
    winFeatures += getLocation(winWidth, winHeight, winLeft, winTop)
  else
    winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop)
  popWin = window.open(winURL, winName, "width=" + winWidth 
           + ",height=" + winHeight + winFeatures)
  }

function closePopWin(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(popWin != null) if(!popWin.closed) popWin.close() 
  }

function getLocation(winWidth, winHeight, winLeft, winTop){
  return ""
  }

function getLocation(winWidth, winHeight, winLeft, winTop){
  var winLocation = ""
  if (winLeft < 0)
    winLeft = screen.width - winWidth + winLeft
  if (winTop < 0)
    winTop = screen.height - winHeight + winTop
  if (winTop == "cen")
    winTop = (screen.height - winHeight)/2 - 20
  if (winLeft == "cen")
    winLeft = (screen.width - winWidth)/2
  if (winLeft>0 & winTop>0)
    winLocation =  ",screenX=" + winLeft + ",left=" + winLeft	
                + ",screenY=" + winTop + ",top=" + winTop
  else
    winLocation = ""
  return winLocation
  }
//------------END POPWIN------------