// JavaScript Document
function breadcrumbs(){
    sURL = new String;
    bits = new Object;
    var x = 0;
    var stop = 0;
    var output = "<A HREF=\"/\">Home</A> | ";

    sURL = location.href;
    sURL = sURL.slice(8,sURL.length);
    chunkStart = sURL.indexOf("/");
    sURL = sURL.slice(chunkStart+1,sURL.length)
   
    while(!stop){
      chunkStart = sURL.indexOf("/");
      if (chunkStart != -1){
        bits[x] = sURL.slice(0,chunkStart)
        sURL = sURL.slice(chunkStart+1,sURL.length);
 
   }else{
        stop = 1;
      }
      x++;
    }

    for(var i in bits){
      output += "<A HREF=\"";
      for(y=1;y<x-i;y++){
        output += "../";
      }
      output += bits[i] + "/\">" + replace(bits[i],'_',' ') + "</A> | ";

    }    
	 document.write(output + document.title);
}
  
function ShowImage() {

var theImages = new Array()

theImages[0] = '/images/lsf_main_ban1'
theImages[1] = '/images/lsf_main_ban2'
theImages[2] = '/images/lsf_main_ban3'
theImages[3] = '/images/lsf_main_ban4'
theImages[4] = '/images/lsf_main_ban5'

// theImages[2] = 'lsf_main_ban3'
// theImages[3] = 'lsf_main_ban4'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

document.write('<td colspan="3"><img src="'+theImages[whichImage]+'a.jpg" width="257" height="130"></td>');
document.write('<td colspan="4"><img src="'+theImages[whichImage]+'b.jpg" width="514" height="130"></td>');
}

function ShowImageContent() {

var theImages = new Array()

theImages[0] = '/images/lsf_main_content_ban1'
theImages[1] = '/images/lsf_main_content_ban2'
theImages[2] = '/images/lsf_main_content_ban3'
theImages[3] = '/images/lsf_main_content_ban4'
theImages[4] = '/images/lsf_main_content_ban5'

// theImages[2] = 'lsf_main_ban3'
// theImages[3] = 'lsf_main_ban4'

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));

document.write('<td colspan="3"><img src="'+theImages[whichImage]+'a.jpg" width="257" height="63"></td>');
document.write('<td colspan="4"><img src="'+theImages[whichImage]+'b.jpg" width="514" height="63"></td>');
}
