// JavaScript Document

function Rev1(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("PDF/Reviews/Rivoli_SanFrancisco.pdf","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=0, menubar=0, location=0");
	winPress.focus();
}

function Rev2(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("PDF/Reviews/Rivoli_Datebook.pdf","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=0, menubar=0, location=0");
	winPress.focus();
}

function Rev3(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("PDF/Reviews/Rivoli_Gourmet.pdf","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=0, menubar=0, location=0");
	winPress.focus();
}

function Rev4(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("PDF/Reviews/Rivoli_Zagat.pdf","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=0, menubar=0, location=0");
	winPress.focus();
}

function Dinner(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("PDF/Menus/Rivoli_Dinner.pdf","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=0, menubar=0, location=0");
	winPress.focus();
}

function Dessert(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("PDF/Menus/Rivoli_Dessert.pdf","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=0, menubar=0, location=0");
	winPress.focus();
}

function WineList(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("PDF/Menus/Rivoli_WineList.pdf","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=0, menubar=0, location=0");
	winPress.focus();
}

function WineLine(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("PDF/Menus/Rivoli_WineLine.pdf","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=0, menubar=0, location=0");
	winPress.focus();
}

function OpenTable(theURL,winName,features) { //v2.0
	var iMyWidth;
	var iMyHeight;
	//gets top and left positions based on user's resolution so hint window is centered.
	iMyWidth = (window.screen.width/2) - (425 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - (350 + 50); //half the screen height minus half the new window height (plus title and status bars).
	var winPress = window.open("http://www.opentable.com/single.aspx?rid=7013&restref=7013","","status,height=700,width=850,resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes, directories=yes, menubar=yes, location=yes");
	winPress.focus();
}



