<!-- // If your browser knew Java

// MAIN JAVASCRIPT
// file: main.js
// Copyright © 2001-2004, M.L. Belanger, All Rights Reserved

// These functions are common to all main pages: cover, curves, cusine, etc.


// Main Page Menu URLs

var COVER = "index.shtml";
var CURVES = "curves/popup.shtml;popup";
var COMMUNITY = "http://groups.yahoo.com/group/CMmodelSearch/;www";
var CONTRABAND = "contraband/popup.shtml;popup;600400";
var CONTENTS = "contents/index.shtml;popup;600400";

var NEWSLETTER = "newsletter/index.shtml;popup";
var ECARDS = "ecards/popup.shtml;popup;360480";
var WALLPAPER = "wallpaper/index.shtml;popup";
var PROBLEMS = "problems/index.shtml;popup";
var QUESTIONS = "questions/index.shtml;popup";
var SUGGESTIONS = "suggestions/index.shtml;popup";
var WEBMASTERS = "webmasters/index.shtml;popup;600450";
var PRESS = "press/index.shtml;popup";
var ADVERTISE = "advertise/index.shtml;popup;360560";

var CLUB = "club_curvaceous/index.shtml";
var MODEL = "model_search/index.shtml";

var TERMS = "questions/index.shtml#terms;popup";
var PRIVACY = "questions/index.shtml#privacy;popup";


// Global Variables

var MAIN_BACKGROUND; // root name for background images



// set Functions

function setMain(folder)
{
  MAIN_BACKGROUND = getDomain() + "graphics/main/" + folder + "/";
}




// get Functions

function getMain()
{
  return MAIN_BACKGROUND
}



// initialization Functions

function initMain()
{
  self.name = "main";

  if ( getUnavailable() )
    document.location = "unavailable/maintenance.html?hours=" + getUnavailable();
  else
  {

    // Load Main Page Framework Images

    if (isPrivate())
      document.title_left.src = getMain() + "title_left_p.jpg";
    else
      document.title_left.src = getMain() + "title_left.jpg";

    document.feature_space_left.src = getMain() + "feature_space_left.jpg";
    document.feature_1.src = getMain() + "feature_1.jpg";
    document.feature_space_1.src = getMain() + "feature_space_1.jpg";
    document.feature_2.src = getMain() + "feature_2.jpg";
    document.feature_space_2.src = getMain() + "feature_space_2.jpg";
    document.feature_3.src = getMain() + "feature_3.jpg";
    document.feature_space_3.src = getMain() + "feature_space_3.jpg";

    document.upper_cover.src = getMain() + "upper_cover.jpg";
    document.upper_curves.src = getMain() + "upper_curves.jpg";
    document.upper_community.src = getMain() + "upper_community.jpg";
    document.upper_contraband.src = getMain() + "upper_contraband.jpg";
    document.upper_other.src = getMain() + "upper_other.jpg";
    document.upper_contents.src = getMain() + "upper_contents.jpg";
    document.upper_space.src = getMain() + "upper_space.jpg";

    document.lower_space_1.src = getMain() + "lower_space_1.jpg";
    document.newsletter.src = getMain() + "lower_newsletter.jpg";
    document.ecards.src = getMain() + "lower_ecards.jpg";
    document.wallpaper.src = getMain() + "lower_wallpaper.jpg";
    document.lower_space_2.src = getMain() + "lower_space_2.jpg";
    document.problems.src = getMain() + "lower_problems.jpg";
    document.questions.src = getMain() + "lower_questions.jpg";
    document.suggestions.src = getMain() + "lower_suggestions.jpg";
    document.lower_space_3.src = getMain() + "lower_space_3.jpg";

    document.webmasters.src = getMain() + "lower_webmasters.jpg";
    document.press.src = getMain() + "lower_press.jpg";
    document.advertise.src = getMain() + "lower_advertise.jpg";
    document.lower_space_4.src = getMain() + "lower_space_4.jpg";

    document.banner_space_1.src = getMain() + "banner_space_1.jpg";
    document.club_curvaceous.src = getDomain() + "graphics/banner/club_curvaceous.jpg";
    document.banner_space_2.src = getMain() + "banner_space_2.jpg";
    document.banner_space_3.src = getMain() + "banner_space_3.jpg";
    document.model_search.src = getDomain() + "graphics/banner/model_search.jpg";
    document.banner_space_4.src = getMain() + "banner_space_4.jpg";

    document.bottom.src = getMain() + "bottom.jpg";


    // Load Main Page Framework Titles

    document.upper_cover.title="The Lastest News!";
    document.upper_curves.title="This months Cover-Girl!";
    document.upper_community.title="Join the Discussion in our Official Yahoo! Group";
    document.upper_contraband.title="Get your Curvaceous DVDs Here!";
    document.upper_contents.title="Click here for everything else!";

    document.newsletter.title = "Keep up to date with all our curvy developments";
    document.ecards.title = "Give the gift that keeps on giving";
    document.wallpaper.title = "Curvify that desktop!";
    document.problems.title = "What'd we screw up?";
    document.questions.title = "Ask the wizard";
    document.suggestions.title = "Unlike at YOUR job, we actually read them";
    document.webmasters.title = "Add a Curvaceous banner to your site!";
    document.press.title = "Press Releases and Photo Downloads";
    document.advertise.title = "You've got a banner, we've got a website...";
    document.club_curvaceous.title = "12 months of Curvaceous Beauty for only $24";
    document.model_search.title = "Join our search for the World's curviest women!";

    

    // Load Feature Images If Defined

    if (FEATURE_IMAGE[0])
    {
    document.feature_1.src = getDomain() + featureBin + FEATURE_IMAGE[0];
    document.feature_1.title = FEATURE_TITLE[0];
    }

    if (FEATURE_IMAGE[1])
    {
    document.feature_2.src = getDomain() + featureBin + FEATURE_IMAGE[1];
    document.feature_2.title = FEATURE_TITLE[1];
    }

    if (FEATURE_IMAGE[2])
    {
    document.feature_3.src = getDomain() + featureBin + FEATURE_IMAGE[2];
    document.feature_3.title = FEATURE_TITLE[2];
    }

  }

}


function doFeature(index)
{
  index = index -1;

  if (FEATURE_URL[index] != EMPTY)
    smartGOTO(FEATURE_URL[index]);
}




//  this part would be hillarious --> 
