<!--

function displayhomepageimage() {

// newer browsers
var v4b = (parseInt(navigator.appVersion) >= 4);

if (v4b) {

var PREFIX_URL = (location.href.substring(0,document.URL.indexOf(document.domain)));
var INDEX_URL = PREFIX_URL+document.domain+"/";
if (document.domain == "littlesally") {
  var INDEX_URL = INDEX_URL+"lingerie/";
}

  // set number of images to cycle through
  var numberofimages = 8;
  
  // don't change these settings
  var timenow = new Date()
  var secondsnow = timenow.getSeconds()
  var imagenow = secondsnow % numberofimages;
  imagenow +=1;

  // set common/default image variables
  var aurl="http://www.nudeprudelingerie.com/lingerie.cfm/Halloween-and-Costumes/";
  var imgwidth="450";
  var imgheight="333";
  var imgalt="The Ultimate Sexy Lingerie Collection";
  var imgsrc=INDEX_URL+"images/large-home-page-images/halloween2005-2.jpg";

  // customize any of the image variables from above for each image as needed
  // number of images detailed here should equal the 'numberofimages' variable set above
  if (imagenow==1) {
    // default
  }
  else if (imagenow==2) {
    aurl="";
    imgsrc=INDEX_URL+"images/large-home-page-images/lingeriehome8-new.jpg";
  }
  else if (imagenow==3) {
    aurl="";
    imgsrc=INDEX_URL+"images/large-home-page-images/lingeriehome13-new.jpg";
  }
  else if (imagenow==4) {
  var aurl="http://www.nudeprudelingerie.com/lingerie.cfm/Dresses-and-Skirt-Sets/Sexy-Gown-LA8891.html";
    imgsrc=INDEX_URL+"images/large-home-page-images/halloween2005-4.jpg";
  }
  else if (imagenow==5) {
    aurl="";
    imgsrc=INDEX_URL+"images/large-home-page-images/lingeriehome30-new.jpg";
  }
  else if (imagenow==6) {
    aurl="";
    imgsrc=INDEX_URL+"images/large-home-page-images/ellieshoes.jpg";
  }
  else if (imagenow==7) {
    aurl="http://www.nudeprudelingerie.com/lingerie.cfm/Valentine-Lingerie/";
    imgsrc=INDEX_URL+"images/large-home-page-images/valentine.jpg";
  }
  else if (imagenow==8) {
    aurl="http://www.nudeprudelingerie.com/lingerie.cfm/Shoes-and-Slippers/";
    imgsrc=INDEX_URL+"images/large-home-page-images/ellieshoes5.jpg";
  } else {
    // ignore
  }
  
  // write the image to the page with or without a link
  if (aurl != "") {
    document.write("<p>"
      + "<a href=\"" + aurl + "\">"
      + "    <img src=\"" + imgsrc + "\" width=\"" + imgwidth + "\" height=\"" + imgheight + "\" alt=\"" + imgalt + "\" border=\"0\" />"
      + "</a>"
      + "</p>\n");
  } else {
    document.write("<p>"
      + "    <img src=\"" + imgsrc + "\" width=\"" + imgwidth + "\" height=\"" + imgheight + "\" alt=\"" + imgalt + "\" border=\"0\" />"
      + "</p>\n");
  }

} else {
  // ignore older browsers
}
}

displayhomepageimage();

//-->
