var win = 0;
function maps(pc)
{
url = "http://www.multimap.com/map/browse.cgi?client=public&&pc=" + pc;
var width = parseInt( screen.width * 0.9 );
var height = parseInt( screen.height * 0.6 );
var left = parseInt( ( screen.width - width ) /2 );
if (win){win.close();}win=window.open(url,"Map","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}
function m(url)
{
root = "http://www.hotelsinyorkshire.com/cgi-bin/map_area.pl?h=" + url;
if (win){win.close();}win=window.open(root,"MultiMap","toolbar=0,menubar=0,scrollbars=1,resizable=1,width=600,height=420");
}
function c(url)
{
root = "http://www.currency-convertor.com/cgibin/c?a=" + url + "&l=44&x=UKA01029";
if (win){win.close();}win=window.open(root,"Currency","toolbar=0,menubar=0,scrollbars=0,resizable=0,width=588,height=252");
}
function bookmark(url,title)
{
if (document.all)
{
root = "http://www.hotelsinyorkshire.com/docs/" + url;
window.external.AddFavorite(root,title);}
}
function details(id,lang)
{
root = "http://www.hotelsinyorkshire.com/cgi-bin/details.pl?id=" + id + "&lang=" + lang;
var width = parseInt( screen.width * 0.9 );
var height = 450;
var left = parseInt( ( screen.width - width ) /2 );
if (win){win.close();}win=window.open(root,"Details","toolbar=1,menubar=0,location=0,status,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}
function bookings(id)
{
root = "http://www.hotelsinyorkshire.com/cgi-bin/bookings.pl?id=" + id;
var width = parseInt( screen.width * 0.9 );
var height = 450;
var left = parseInt( ( screen.width - width ) /2 );
if (win){win.close();}win=window.open(root,"Details","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}
function contact(page)
{
mail_str = "mailto:info@";
mail_str = mail_str + "hotelsinyorkshire.com";
mail_str = mail_str + "&subject=Enquiry";
if (page){mail_str = mail_str + "%20from%20" + page;}
mail_str = mail_str + "&body=";
var width = parseInt( screen.width * 0.9 );
var height = parseInt( screen.height * 0.6 );
var left = parseInt( ( screen.width - width ) /2 );
if (win){win.close();}
win=window.open(mail_str,"Mail","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}
