<!--

function newImage(arg) {
  if (document.images) {
    rslt = new Image();
    rslt.src = arg;
    return rslt;
  }
}

function changeImages() {
  if (document.images && (preloadFlag == true)) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
    }
  }
}

var preloadFlag = false;
function preloadImages() {
  if (document.images) {
    contact_over = newImage("common/contact-on.gif");
    map_over = newImage("common/map-on.gif");
    packages_over = newImage("common/packages-on.gif");
    concierge_over = newImage("common/concierge-on.gif");    
    events_over = newImage("common/events-on.gif");
    press_over = newImage("common/press-on.gif");
    history_over = newImage("common/history-on.gif");
    weather_over = newImage("common/weather-on.gif");  
    rates_over = newImage("common/rates-on.gif");
    why_over = newImage("common/why-book-online-on.gif");    
    travel_over = newImage("common/travel-on.gif");  
    toursofia_over = newImage("common/toursofia-on.gif");
    promo_over = newImage("common/promo-on.gif");
    tourbutton_over = newImage("common/t-button-on.gif");
    restbutton_over = newImage("common/r-button-on.gif");      
    accommodations_over = newImage("common/accommodations-over.gif");
    business_over = newImage("common/business-over.gif");
    pleasure_over = newImage("common/pleasure-over.gif");
    dining_over = newImage("common/dining-over.gif");
    gallery_over = newImage("common/gallery-over.gif");    
    preloadFlag = true;
  }
}

// -->

<!-- 
function MyPopUpWin() {
var iMyWidth;
var iMyHeight;
//half the screen width minus half the new window width (plus 5 pixel borders).
iMyWidth = (window.screen.width/2) - (270 + 10);
//half the screen height minus half the new window height (plus title and status bars).
iMyHeight = (window.screen.height/2) - (150 + 50);
//Open the window.
var win2 = window.open("/video/sofia.html","Window2","status=no,height=320,width=570,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
win2.focus();
}

// -->

<!-- 
function MyPopUpWin2() {
var iMyWidth;
var iMyHeight;
//half the screen width minus half the new window width (plus 5 pixel borders).
iMyWidth = (window.screen.width/2) - (270 + 10);
//half the screen height minus half the new window height (plus title and status bars).
iMyHeight = (window.screen.height/2) - (150 + 50);
//Open the window.
var win2 = window.open("/video/currant.html","Window2","status=no,height=320,width=570,resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no");
win2.focus();
}

// -->