/* library.js */

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,top=100,left=100,width=470,height=415');");
}

function popUp1(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,top=100,left=100,width=740,height=500');");
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,top=100,left=100,width=550,height=515');");
}

function popUp3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,top=100,left=100,width=600,height=450');");
}

function popUp4(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,top=100,left=100,width=568,height=427');");
}

function preloadImages()
{
  var iObj = null;
  var iSrc = null;
  var argLen = preloadImages.arguments.length;
  if(document.images)
  {
    for(var i = 0; i < argLen; i = i + 2)
    {
      iObj = preloadImages.arguments[i];
      iPath = preloadImages.arguments[i + 1];
      self[iObj] = new Image();
      self[iObj].src = iPath;
    }   
  }
}

function rolloverImages()
{
  var iObj = null;
  var iSrc = null;
  var argLen = rolloverImages.arguments.length;
  if(document.images)
  {
    for(var i = 0; i < argLen; i = i + 2)
    {
      iObj = rolloverImages.arguments[i];
      iSrc = rolloverImages.arguments[i + 1];
      if(document.images[iObj])
      {
        if(self[iObj + '_' + iSrc])
          document.images[iObj].src = self[iObj + '_' + iSrc].src;
        else if(self[iObj])
          document.images[iObj].src = self[iObj].src;
      }
    }
  }
}

preloadImages(
  't_space_1', 'images/space.gif', 't_space_1_left_on', 'images/space_on_left.gif', 't_space_1_right_on', 'images/space_on_right.gif'
, 't_space_2', 'images/space.gif', 't_space_2_left_on', 'images/space_on_left.gif', 't_space_2_right_on', 'images/space_on_right.gif'
, 't_space_3', 'images/space.gif', 't_space_3_left_on', 'images/space_on_left.gif', 't_space_3_right_on', 'images/space_on_right.gif'
, 't_space_4', 'images/space.gif', 't_space_4_left_on', 'images/space_on_left.gif', 't_space_4_right_on', 'images/space_on_right.gif'
, 't_space_5', 'images/space.gif', 't_space_5_left_on', 'images/space_on_left.gif', 't_space_5_right_on', 'images/space_on_right.gif'
, 't_space_6', 'images/space.gif', 't_space_6_left_on', 'images/space_on_left.gif', 't_space_6_right_on', 'images/space_on_right.gif'
, 't_space_7', 'images/space.gif', 't_space_7_left_on', 'images/space_on_left.gif', 't_space_7_right_on', 'images/space_on_right.gif'
, 't_space_8', 'images/space.gif', 't_space_8_left_on', 'images/space_on_left.gif', 't_space_8_right_on', 'images/space_on_right.gif'
, 't_websitehosting_off',             'images/webhosting.gif',                 't_websitehosting_on',             'images/webhosting_on.gif'
, 't_websitehosting_products_off',    'images/websitehosting_products.gif',    't_websitehosting_products_on',    'images/websitehosting_products_on.gif'
, 't_websitehosting_corporate_off',   'images/websitehosting_corporate.gif',   't_websitehosting_corporate_on',   'images/websitehosting_corporate_on.gif'
, 't_websitehosting_site_map_off',    'images/websitehosting_site_map.gif',    't_websitehosting_site_map_on',    'images/websitehosting_site_map_on.gif'
, 't_websitehosting_data_center_off', 'images/websitehosting_data_center.gif', 't_websitehosting_data_center_on', 'images/websitehosting_data_center_on.gif'
, 't_websitehosting_resources_off',   'images/websitehosting_resources.gif',   't_websitehosting_resources_on',   'images/websitehosting_resources_on.gif'
, 't_websitehosting_support_off',     'images/websitehosting_support.gif',     't_websitehosting_support_on',     'images/websitehosting_support_on.gif'
, 't_websitehosting_home_off',        'images/websitehosting_home.gif',        't_websitehosting_home_on',        'images/websitehosting_home_on.gif'
, 't_websitehosting_contact_off',     'images/websitehosting_contact.gif',     't_websitehosting_contact_on',     'images/websitehosting_contact_on.gif'

, 'b_space_1', 'images/space.gif', 'b_space_1_left_on', 'images/space_on_left.gif', 'b_space_1_right_on', 'images/space_on_right.gif'
, 'b_space_2', 'images/space.gif', 'b_space_2_left_on', 'images/space_on_left.gif', 'b_space_2_right_on', 'images/space_on_right.gif'
, 'b_space_3', 'images/space.gif', 'b_space_3_left_on', 'images/space_on_left.gif', 'b_space_3_right_on', 'images/space_on_right.gif'
, 'b_space_4', 'images/space.gif', 'b_space_4_left_on', 'images/space_on_left.gif', 'b_space_4_right_on', 'images/space_on_right.gif'
, 'b_space_5', 'images/space.gif', 'b_space_5_left_on', 'images/space_on_left.gif', 'b_space_5_right_on', 'images/space_on_right.gif'
, 'b_space_6', 'images/space.gif', 'b_space_6_left_on', 'images/space_on_left.gif', 'b_space_6_right_on', 'images/space_on_right.gif'
, 'b_space_7', 'images/space.gif', 'b_space_7_left_on', 'images/space_on_left.gif', 'b_space_7_right_on', 'images/space_on_right.gif'
, 'b_space_8', 'images/space.gif', 'b_space_8_left_on', 'images/space_on_left.gif', 'b_space_8_right_on', 'images/space_on_right.gif'
, 'b_websitehosting_off',             'images/webhosting.gif',                 'b_websitehosting_on',             'images/webhosting_on.gif'
, 'b_websitehosting_products_off',    'images/websitehosting_products.gif',    'b_websitehosting_products_on',    'images/websitehosting_products_on.gif'
, 'b_websitehosting_corporate_off',   'images/websitehosting_corporate.gif',   'b_websitehosting_corporate_on',   'images/websitehosting_corporate_on.gif'
, 'b_websitehosting_site_map_off',    'images/websitehosting_site_map.gif',    'b_websitehosting_site_map_on',    'images/websitehosting_site_map_on.gif'
, 'b_websitehosting_data_center_off', 'images/websitehosting_data_center.gif', 'b_websitehosting_data_center_on', 'images/websitehosting_data_center_on.gif'
, 'b_websitehosting_resources_off',   'images/websitehosting_resources.gif',   'b_websitehosting_resources_on',   'images/websitehosting_resources_on.gif'
, 'b_websitehosting_support_off',     'images/websitehosting_support.gif',     'b_websitehosting_support_on',     'images/websitehosting_support_on.gif'
, 'b_websitehosting_home_off',        'images/websitehosting_home.gif',        'b_websitehosting_home_on',        'images/websitehosting_home_on.gif'
, 'b_websitehosting_contact_off',     'images/websitehosting_contact.gif',     'b_websitehosting_contact_on',     'images/websitehosting_contact_on.gif'
);

