var win = 0;
function bookmark(url,title)
{
if (document.all)
{
root = "http://www.las-vegas-hotel-directory.com/";
if (url){root = root + url;}
window.external.AddFavorite(root,title);}
}
function contact(page)
{
mail_str = "mailto:contact@";
mail_str = mail_str + "las-vegas-hotel-directory.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");
}
function link(theForm)
{
root = "http://www.las-vegas-hotel-directory.com/cgi-bin/search.pl?id=TN-x&city=" + theForm.city.value;
var width = parseInt( screen.width * 0.9 );
var height = 450;
var left = parseInt( ( screen.width - width ) /2 );
window.open(root,"Details","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
return false;
}
function photogallery(id)
{
root = "http://travel.ian.com/hotels/photos.jsp?locale=en_uk_UK&currencyCode=GBP&cid=3402&additionalDataString=vrBookingSource&hotelID=" + id;
var width = parseInt( screen.width * 0.6 );
var height = 450;
var left = parseInt( ( screen.width - width ) /2 );
if (win){win.close();}
window.open(root,"Photos","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}
function showmap(id)
{
root = "http://travel.ian.com/hotels/info/map.jsp?locale=en_uk_UK&currencyCode=GBP&cid=3402&prop=" + id;
var width = parseInt( screen.width * 0.6 );
var height = 450;
var left = parseInt( ( screen.width - width ) /2 );
if (win){win.close();}
window.open(root,"Map","toolbar=1,menubar=0,location=0,status=1,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}
function bookings(ref)
{
var width = parseInt( screen.width * 0.9 );
var height = 400;
var left = parseInt( ( screen.width - width ) /2 );
var top = parseInt( ( screen.height - height ) /2 );
root = "http://www.las-vegas-hotel-directory.com/cgi-bin/booknow.pl?id=" + ref;
if (win){win.close();}
window.open(root,"Bookings","status=1,toolbar=1,menubar=0,location=0,scrollbars=1,resizable=1,height=" + height + ",width=" + width + ",left=" + left + ",top=0");
}

