<!--
// 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=617,height=700,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

function Reserve(url) {
newWin=window.open(url,"window","resizable=1,toolbar=1,location=0,directories=0,status=1,menubar=1,scrollbars=1,copyhistory=0,width=800,height=400,top=10,left=0");
newWin.focus();
}

// Directions
function Directions(url) {
newWin=window.open(url,"dir","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=533,height=700,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Floor Plans and Fact Sheets
function FloorPlan(url) {
newWin=window.open(url,"fl","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=629,height=700,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Privacy Policy
function Privacy(url) {
newWin=window.open(url,"pr","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=533,height=700,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Express RFP
function E_RFP(url) {
newWin=window.open(url,"erfp","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=455,height=708,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Gallery & Take a Tour
function tourGallery(url) {
newWin=window.open(url,"tour","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=759,height=497,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

// Gallery & Take a Tour
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;
}

//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("http://www.magnetmail.net/actions/subscription_form_ihr_york.cfm","window1","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,copyhistory=0,width=437,height=675,scrollbars=0,top=0,left=0");
newWin.focus();
}



//open a new window
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


// Guest Comment Card
function GuestCommentCard(url) {
newWin=window.open(url,"dir","resizable=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,width=690,height=1101,top=0,left=0");
newWin.focus();
if (newWin.opener == null) newWin.opener = self;
}

//-->
