var preload = new Array();
preload[0] = new Image();
preload[0].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C5798926094767BAF6D88ACB8B064846E816189566D8C';
preload[1] = new Image();
preload[1].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989260926F82AF6D88ACB8B064846E816189566D8C';
preload[2] = new Image();
preload[2].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618E7283AF6D88ACB8B064846E816189566D8C';
preload[3] = new Image();
preload[3].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618E717CAF6D88ACB8B064846E816189566D8C';
preload[4] = new Image();
preload[4].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618C6F83AF6D88ACB8B064846E816189566D8C';
preload[5] = new Image();
preload[5].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C5798926093717EAF6D88ACB8B064846E816189566D8C';
preload[6] = new Image();
preload[6].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C5798926191707BAF6D88ACB8B064846E816189566D8C';
preload[7] = new Image();
preload[7].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C5798926091757BAF6D88ACB8B064846E816189566D8C';
preload[8] = new Image();
preload[8].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989260956F7DAF6D88ACB8B064846E816189566D8C';
preload[9] = new Image();
preload[9].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989260937382AF6D88ACB8B064846E816189566D8C';
preload[10] = new Image();
preload[10].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618F7582AF6D88ACB8B064846E816189566D8C';
preload[11] = new Image();
preload[11].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989261906F82AF6D88ACB8B064846E816189566D8C';
preload[12] = new Image();
preload[12].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989261907081AF6D88ACB8B064846E816189566D8C';
preload[13] = new Image();
preload[13].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618D7681AF6D88ACB8B064846E816189566D8C';
preload[14] = new Image();
preload[14].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989260907681AF6D88ACB8B064846E816189566D8C';
preload[15] = new Image();
preload[15].src = 'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892608F707CAF6D88ACB8B064846E816189566D8C';


/***********************************************
* Memory Ticker script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

//configure i_tickercontents[] to set the messges you wish be displayed (HTML codes accepted)
//Backslash any apostrophes within your text (ie: I\'m the king of the world!)
var i_tickercontents = new Array(
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=71890\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C5798926094767BAF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>3118  Oak Mountain Trail</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 4 &nbsp;<b>Baths:</b> 3</div><div class=\'sqft\'><b>Sq. Ft.:</b> 3301</div><div class=\'price\'>$299,950</div><div class=\'more\'><a href=\'idx.php?mls=71890\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=71627\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989260926F82AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>8150  Loop 570</div><div>Wall, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2+</div><div class=\'sqft\'><b>Sq. Ft.:</b> 2814</div><div class=\'price\'>$265,000</div><div class=\'more\'><a href=\'idx.php?mls=71627\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=72258\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618E7283AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>235  Loch Ness Rd</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 4 &nbsp;<b>Baths:</b> 2+</div><div class=\'sqft\'><b>Sq. Ft.:</b> 2684</div><div class=\'price\'>$244,900</div><div class=\'more\'><a href=\'idx.php?mls=72258\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=72241\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618E717CAF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>4905  Royal Oak Dr</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 2058</div><div class=\'price\'>$179,900</div><div class=\'more\'><a href=\'idx.php?mls=72241\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=72028\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618C6F83AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>3502  Clearview Dr</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 2011</div><div class=\'price\'>$174,900</div><div class=\'more\'><a href=\'idx.php?mls=72028\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=71743\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C5798926093717EAF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>1422  Mackenzie St</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1896</div><div class=\'price\'>$159,500</div><div class=\'more\'><a href=\'idx.php?mls=71743\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=72530\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C5798926191707BAF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>4063  Green Meadow Dr</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1724</div><div class=\'price\'>$154,500</div><div class=\'more\'><a href=\'idx.php?mls=72530\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=71580\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C5798926091757BAF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>2803 W Ave N</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 3</div><div class=\'sqft\'><b>Sq. Ft.:</b> 2040</div><div class=\'price\'>$144,900</div><div class=\'more\'><a href=\'idx.php?mls=71580\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=71922\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989260956F7DAF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>4055  Green Meadow Dr</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1537</div><div class=\'price\'>$139,000</div><div class=\'more\'><a href=\'idx.php?mls=71922\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=71767\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989260937382AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>3829  Millbrook Dr</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1913</div><div class=\'price\'>$134,900</div><div class=\'more\'><a href=\'idx.php?mls=71767\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=72387\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618F7582AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>1210  Joseph Lane</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1362</div><div class=\'price\'>$114,500</div><div class=\'more\'><a href=\'idx.php?mls=72387\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=72427\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989261906F82AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>1302  Tres Rios Dr</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 4 &nbsp;<b>Baths:</b> 2+</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1542</div><div class=\'price\'>$111,000</div><div class=\'more\'><a href=\'idx.php?mls=72427\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=72436\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989261907081AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>3244  Cornell Ave</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1353</div><div class=\'price\'>$109,000</div><div class=\'more\'><a href=\'idx.php?mls=72436\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=72196\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892618D7681AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>1102  Cyndi Lane</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1307</div><div class=\'price\'>$98,000</div><div class=\'more\'><a href=\'idx.php?mls=72196\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=71496\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C57989260907681AF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>1454  Tres Rios Dr</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1228</div><div class=\'price\'>$87,500</div><div class=\'more\'><a href=\'idx.php?mls=71496\'>Click for Details</a></div> </td></tr></table>",
"<table class=\'idx_featured\' border=\'0\' cellspacing=\'0\' cellpadding=\'2\' style=\'width: 100%\'><tr> <td align=\'center\'><a href=\'idx.php?mls=71331\'><img class=\'thumb\' src=\'http://tp.usamls.net/getMLPhoto.asp?l=8C5C579892608F707CAF6D88ACB8B064846E816189566D8C\' border=\'0\' width=\'150\'></a> </td></tr><tr> <td><div class=\'address\'><div>206  Paint Rock Rd</div><div>San Angelo, TX</div></div><div class=\'beds\'><b>Beds:</b> 3 &nbsp;<b>Baths:</b> 2</div><div class=\'sqft\'><b>Sq. Ft.:</b> 1388</div><div class=\'price\'>$59,900</div><div class=\'more\'><a href=\'idx.php?mls=71331\'>Click for Details</a></div> </td></tr></table>"
);

var i_persistlastviewedmsg=1 //should messages' order persist after users navigate away (1=yes, 0=no)?
var i_persistmsgbehavior="onload" //set to "onload" or "onclick".

//configure the below variable to determine the delay between ticking of messages (in miliseconds):
var i_tickdelay=6000

////Do not edit pass this line////////////////

var i_divonclick=(i_persistlastviewedmsg && i_persistmsgbehavior=="onclick")? 'onClick="i_savelastmsg()" ' : ''
var i_currentmessage=0

function i_changetickercontent() {
	if (crosstick.filters && crosstick.filters.length>0)
		crosstick.filters[0].Apply()
	crosstick.innerHTML=i_tickercontents[i_currentmessage]
	if (crosstick.filters && crosstick.filters.length>0)
		crosstick.filters[0].Play()
	i_currentmessage=(i_currentmessage==i_tickercontents.length-1)? i_currentmessage=0 : i_currentmessage+1
	var filterduration=(crosstick.filters&&crosstick.filters.length>0)? crosstick.filters[0].duration*1000 : 0
	setTimeout("i_changetickercontent()",i_tickdelay+filterduration)
}

function i_beginticker() {
	if (i_persistlastviewedmsg && i_get_cookie("lastmsgnum")!="")
		i_revivelastmsg()
	crosstick=document.getElementById? document.getElementById("memoryticker") : document.all.memoryticker
	i_changetickercontent()
}

function i_get_cookie(Name) {
	var search = Name + "="
	var returnvalue = ""
	if (document.cookie.length > 0) {
		offset = document.cookie.indexOf(search)
		if (offset != -1) {
			offset += search.length
			end = document.cookie.indexOf(";", offset)
			if (end == -1)
				end = document.cookie.length;
			returnvalue=unescape(document.cookie.substring(offset, end))
		}
	}
	return returnvalue;
}

function i_savelastmsg() {
	document.cookie="lastmsgnum="+i_currentmessage
}

function i_revivelastmsg() {
	i_currentmessage=parseInt(i_get_cookie("lastmsgnum"))
	if (i_currentmessage >= i_tickercontents.length) i_currentmessage = 0 // bug fix
	i_currentmessage=(i_currentmessage==0)? i_tickercontents.length-1 : i_currentmessage-1
}

if (i_persistlastviewedmsg && i_persistmsgbehavior=="onload")
	window.onunload=i_savelastmsg

if (document.all||document.getElementById)
	document.write('<div id="memoryticker" '+i_divonclick+'></div>')
if (window.addEventListener)
	window.addEventListener("load", i_beginticker, false)
else if (window.attachEvent)
	window.attachEvent("onload", i_beginticker)
else if (document.all || document.getElementById)
	window.onload=i_beginticker
