if (document.images) {
//NAV
abo_on = new Image();	abo_on.src = "images/roll/about_on.gif";
abo_off = new Image();	abo_off.src = "images/roll/about_off.gif";
tes_on = new Image();	tes_on.src = "images/roll/test_on.gif";
tes_off = new Image();	tes_off.src = "images/roll/test_off.gif";
myl_on = new Image();	myl_on.src = "images/roll/mylist_on.gif";
myl_off = new Image();	myl_off.src = "images/roll/mylist_off.gif";
sea_on = new Image();	sea_on.src = "images/roll/searchmls_on.gif";
sea_off = new Image();	sea_off.src = "images/roll/searchmls_off.gif";
mar_on = new Image();	mar_on.src = "images/roll/marin_on.gif";
mar_off = new Image();	mar_off.src = "images/roll/marin_off.gif";
con_on = new Image();	con_on.src = "images/roll/contact_on.gif";
con_off = new Image();	con_off.src = "images/roll/contact_off.gif";
fin_on = new Image();	fin_on.src = "images/roll/financing_on.gif";
fin_off = new Image();	fin_off.src = "images/roll/financing_off.gif";

//FHAs
fhh_on = new Image();	fhh_on.src = "images/roll/fha_on.gif";
fhh_off = new Image();	fhh_off.src = "images/roll/fha_off.gif";
fhs_on = new Image();	fhs_on.src = "images/roll/fha_sub_on.gif";
fhs_off = new Image();	fhs_off.src = "images/roll/fha_sub_off.gif";
fhl_on = new Image();	fhl_on.src = "images/roll/fha_list_on.gif";
fhl_off = new Image();	fhl_off.src = "images/roll/fha_list_off.gif";
fho_on = new Image();	fho_on.src = "images/roll/fha_only_on.gif";
fho_off = new Image();	fho_off.src = "images/roll/fha_only_off.gif";
}
function swapem (sname,rname) {
sname.src = rname.src;
}

var random = Math.random() ;
var toppicnum = Math.round(random*1)+1;

var random = Math.random() ;
var botpicnum = Math.round(random*3)+1;

var random = Math.random() ;
var lrgpicnum = Math.round(random*2)+1;

var random = Math.random() ;
var smpicnum = Math.round(random*2)+1;

function signup_validate(f) {
	var AtSym = f.elements.email.value.indexOf('@')
	var dot = f.elements.email.value.lastIndexOf('.')
	var space = f.elements.email.value.indexOf(' ')
	var length = f.elements.email.value.length

	if ((AtSym < 1 ) ||   // '@' can't be first
    	 (dot <= AtSym +1 ) || //one char between '@' and '.'
	     (dot == length - 1 ) ||  //one char after '.'
	     (space  != -1))  //no spaces allowed
	   {  
	    alert("Please enter a valid e-mail address");
	    return false;
	   }
	   
	if (f.elements.email == '') {
		alert('You must provide an EMAIL ADDRESS!');
		return false;
	} 

	f.submit();

}


//drop-down menu code

if (!document.layers&&!document.all&&!document.getElementById)
event="test"
function showtip(current,e,text){

if (document.all||document.getElementById){
thetitle=text.split('<br>')
if (thetitle.length>1){
thetitles=''
for (i=0;i<thetitle.length;i++)
thetitles+=thetitle[i]
current.title=thetitles
}
else
current.title=text
}

else if (document.layers){
document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
document.tooltip.document.close()
document.tooltip.left=e.pageX+5
document.tooltip.top=e.pageY+5
document.tooltip.visibility="show"
}
}
function hidetip(){
if (document.layers)
document.tooltip.visibility="hidden"
}

function change(id, newClass)
{
	identity=document.getElementById(id);
	identity.className=newClass;
}

document.writeln ("");

