<!--
urlbase = "http://www.ranchobernardoinn.com/";

// Fact Sheets
function iwedding(url) {
newWin=window.open(url,"iwedding","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=647,height=600,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Meeting Schedules
function meeting_schedule(meeting) {
newWin=window.open("meetingschedule/meeting-schedule.php?meeting="+meeting,"meetingschedule","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=615,height=600,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Fact Sheets
function FactSheetBig(url) {
newWin=window.open(url,"fsbig","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=630,height=600,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Fact Sheets
function FactSheet(url) {
newWin=window.open(url,"fs","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=611,height=600,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Fact Sheets Short
function FactSheetShort(url) {
newWin=window.open(url,"fs","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=611,height=520,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Specials Pop
function special(num) {
newWin=window.open("specialspop.php#" + num,"fs","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=715,height=750,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Meetings Fact Sheets
function FactSheetMeetings(url) {
newWin=window.open(url,"mfs","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=630,height=600,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// calendar event summary popup
function popsummary(event) {
newWin=window.open("../popup/event.php?event="+event,"event_window","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=613,height=780,top=30,left=50");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// calendar event summary popup
function popreview(event) {
newWin=window.open("../popup/review.php?event="+event,"event_window","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=613,height=780,top=30,left=50");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Privacy Policy
function PrivacyPolicy(url) {
newWin=window.open(url,"pv","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=615,height=600,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Specials
function chooseImage(url) {
uploadWin=window.open(url,"upload","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=500,height=150,top=0,left=0");
uploadWin.focus();
if (uploadWin.opener == null) uploadWin.opener = self;
}

// Property Map
function propMap(url) {
newWin=window.open(url,"map","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,top=0,left=100");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

//popup for meetings full rfp
function fullrfp() {
newWin1=window.open("rfp/rfp-full2.php","form_window3","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,copyhistory=0,width=523,height=700,top=5,left=10");
window.newWin1.focus();
}

//media interface
function mediaInt() {
newWin=window.open(urlbase + "media/","form_window1","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=850,height=675,top=5,left=10");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

//media interface
function mediaInt2() {
newWin=window.open(urlbase + "media/photogallery.php?gallery=events","form_window1","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=850,height=675,top=5,left=10");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

function mediaSpa() {
newWin=window.open(urlbase + "media/photogallery.php?gallery=spa","form_window1","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=850,height=675,top=5,left=10");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

function onlineComm() {
newWin=window.open(urlbase + "imessage/","Online_Commercial","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=850,height=675,top=5,left=10");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

function onlineComm2() {
newWin=window.open(urlbase + "weddingOC/","Online_Commercial","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=850,height=675,top=5,left=10");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

//media interface
function mediaIntMap() {
newWin=window.open("http://www.jcresorts.com/interactivemap/","intmap","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=840,height=550,top=5,left=10");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}


//Print Window - close window script
function printWindow(){
   browserVer = parseInt(navigator.appVersion)
   if (browserVer >= 4) window.print()
}
// featured products
function featProd(url) {
newWin=window.open(url,"form_window2","resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=690,height=547,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}
// product thumbnails

function thumbNails(url, height, width, name, parms) {
   var left = Math.floor( (screen.width - width) / 2);
   var top = Math.floor( (screen.height - height) / 2);
   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
   if (parms) { winParms += "," + parms; }
   var win = window.open(url, name, winParms);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   return win;
}

// featured products
function thumbNailsScroll(url) {
newWin=window.open(url,"form_window3","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=708,height=650,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}



// Subscriber popup
function Subscribe() {
newWin=window.open(urlbase + "popup/form.html?email=","window1","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=455,height=700,scrollbars,top=0,left=0");
newWin.focus();
}



//open a new window
function NewWindow(mypage, myname, w, h, scrolling) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scrolling+',resizable';
win = window.open(mypage, myname, winprops);
//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// Opener window
function openerlink(url) {
opener.location.href = urlbase + url;
}
//-->