var curr_headline = 0;
var headlines = [4];

headlines[0] = 'Behind on your mortgage payments? You have options';
headlines[1] = 'Foreclosehelp.com: Pre-Foreclosure  Specialists';
headlines[2] = 'We provide solutions to foreclosure that homeowners want and need';

setInterval("changeHeadline()", 5000);

function changeHeadline() {
	curr_headline++;
	
	if(curr_headline >= headlines.length)
		curr_headline = 0;
	
	var hl = document.getElementById('headlines');
	hl.innerHTML = headlines[curr_headline];
}

function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}

function transfer()
{
	window.location.href = "index.html";
}

/*
function linkrotate(which){

var mylinks=new Array()
mylinks[0]="http://www.abcnews.com"
mylinks[1]="http://www.cnn.com"
mylinks[2]="http://www.geocities.com"

window.location=mylinks[which]
}
*/
function showimage()
{

// = document.mygallery.picture.value
if (!document.images)
return
document.images.old1.src = "images/propertypics/" + document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value + "-old1.jpg";
document.images.new1.src = "images/propertypics/" + document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value + "-new1.jpg";
document.images.old2.src = "images/propertypics/" + document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value + "-old2.jpg";
document.images.new2.src = "images/propertypics/" + document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value + "-new2.jpg";
document.images.old3.src = "images/propertypics/" + document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value + "-old3.jpg";
document.images.new3.src = "images/propertypics/" + document.mygallery.picture.options[document.mygallery.picture.selectedIndex].value + "-new3.jpg";
}