
document.write('<div id="IMG_CONTENT"></div>');

var client_root = 'http://newhomes.coloradonewhomes.com/clients/copperwestcolo/';
var img_root = client_root + 'newhomes/images/elevations/';
var link_root = client_root + 'newhomes/listing_details.cfm?LISTING_ID=';
var css_root = client_root + 'css/';
var img_width = 200;
var t_out = 10000;

var i = [
{ id: 'B67D9915-1422-1BE4-49EB440F59E2A7EE',  beds: 4, baths: 3, price: '$ 699,900', img: '14280_navajo_st_MLS559095_HID530119_ROOMexteriorfront1.jpg', status: 'SOLD' }, 
{ id: '6D11D005-1422-1BE4-497C070E174663C1',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-10.jpg', status: 'Available' }, 
{ id: '362AE43F-1422-1BE4-493C803E392D0583',  beds: 0, baths: 0, price: '$ 128,000', img: 'Father_and_Son,_Putting_Green.jpg', status: 'Available' }, 
{ id: 'B6058F97-1422-1BE4-49F8948E60BC3CA4',  beds: 4, baths: 3, price: '$ 767,825', img: 'DSC01830.jpg', status: 'SOLD' }, 
{ id: '6D1096F9-1422-1BE4-497769C70AFD88BD',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-9.jpg', status: 'Available' }, 
{ id: '7794E747-1422-1BE4-495B198E1EC66F1D',  beds: 4, baths: 3, price: '$ 667,500', img: 'Caprice_Exterior.jpg', status: 'Plan' }, 
{ id: '060B8455-1422-1BE4-493EF867E1C37772',  beds: 0, baths: 0, price: '$ 385,000', img: '80th_view.jpg', status: 'Available' }, 
{ id: 'F46F50F5-1422-1BE4-49F7E5ACA2E87116',  beds: 3, baths: 2, price: '$ 680,000', img: 'HT_RanchPlan-web2.jpg', status: 'Plan' }, 
{ id: 'B68BE482-1422-1BE4-49AB538AB9798808',  beds: 4, baths: 3, price: '$ 699,900', img: 'DSC00478.jpg', status: 'Available' }, 
{ id: '87AB8FEF-1422-1BE4-49C5C31CB0A700A8',  beds: 4, baths: 3, price: '$ 749,000', img: '524206_500.jpg', status: 'Available' }, 
{ id: '361EEB3E-1422-1BE4-49ED222FD2D11BFC',  beds: 0, baths: 0, price: '$ 143,000', img: 'Father_and_Son,_Putting_Green.jpg', status: 'Available' }, 
{ id: '06004175-1422-1BE4-49C6C54DE387A461',  beds: 0, baths: 0, price: '$ 400,000', img: '80th_view.jpg', status: 'SOLD' }, 
{ id: '37980577-1422-1BE4-492AB8DCB45DC91E',  beds: 5, baths: 4, price: '$ 674,500', img: 'front_elev.jpg', status: 'SOLD' }, 
{ id: '060FE01E-1422-1BE4-49C5ADA2C4AC4B9F',  beds: 0, baths: 0, price: '$ 459,900', img: 'Copper_Hill_web04.jpg', status: 'SOLD' }, 
{ id: '6D2F2FAC-1422-1BE4-49A629EE8A33CFB2',  beds: 0, baths: 0, price: '$ 210,000', img: 'lot-23.jpg', status: 'Available' }, 
{ id: '05FB5D43-1422-1BE4-493370F8EB3D4F03',  beds: 0, baths: 0, price: '$ 450,000', img: '80th_view.jpg', status: 'Available' }, 
{ id: '361AA02F-1422-1BE4-499FB0542D79C9E2',  beds: 0, baths: 0, price: '$ 162,000', img: 'Father_and_Son,_Putting_Green.jpg', status: 'Available' }, 
{ id: '6D0C414A-1422-1BE4-49E55B9E710EB390',  beds: 0, baths: 0, price: '$ 170,000', img: 'lot-7.jpg', status: 'Available' }, 
{ id: '6D324970-1422-1BE4-493C179B3AD674CB',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-25.jpg', status: 'Available' }, 
{ id: '6D1589D1-1422-1BE4-499CF7FF2C4CAC5C',  beds: 0, baths: 0, price: '$ 210,000', img: 'lot-13.jpg', status: 'Available' }, 
{ id: '935DC000-1422-1BE4-496FF8C49375131A',  beds: 3, baths: 3, price: '$1,495,500', img: '5700_indiana_MLS_HID538129_ROOMcityview.jpg', status: 'Available' }, 
{ id: '77902746-1422-1BE4-49DB9B1143232B55',  beds: 5, baths: 4, price: '$ 749,500', img: 'cw-1B.jpg', status: 'Plan' }, 
{ id: '6D1AD77C-1422-1BE4-499D825F2CCD6D5F',  beds: 0, baths: 0, price: '$ 210,000', img: 'lot-18.jpg', status: 'Available' }, 
{ id: '6D36AD95-1422-1BE4-490174CC82755BFA',  beds: 0, baths: 0, price: '$ 170,000', img: 'lot-29.jpg', status: 'Available' }, 
{ id: '36157138-1422-1BE4-4997103C2742E8D8',  beds: 0, baths: 0, price: '$ 130,000', img: 'Father_and_Son,_Putting_Green.jpg', status: 'Available' }, 
{ id: '6CF3DC9A-1422-1BE4-49D545ED5000200F',  beds: 0, baths: 0, price: '$ 150,000', img: 'lot-5.jpg', status: 'Available' }, 
{ id: '6D08F3B6-1422-1BE4-49A98A401AFF4733',  beds: 0, baths: 0, price: '$ 150,000', img: 'lot-6.jpg', status: 'Available' }, 
{ id: 'A7434F3C-1422-1BE4-49D84F5102A28935',  beds: 3, baths: 2, price: '$ 995,000', img: 'Lot_3_spec_planweb.jpg', status: 'Available' }, 
{ id: '4EDAFFF6-1422-1BE4-49E3DB950925FD03',  beds: 0, baths: 0, price: '$ 400,000', img: '80th_view.jpg', status: 'Available' }, 
{ id: '6D19E24E-1422-1BE4-49C82A46601A1418',  beds: 0, baths: 0, price: '$ 210,000', img: 'lot-17.jpg', status: 'Available' }, 
{ id: '6D186C86-1422-1BE4-4998C71515ED9D57',  beds: 0, baths: 0, price: '$ 210,000', img: 'lot-16.jpg', status: 'Available' }, 
{ id: '6D17C54A-1422-1BE4-491D3E8FC4974B50',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-15.jpg', status: 'SOLD' }, 
{ id: '060D720C-1422-1BE4-4992A134DD9DC2DC',  beds: 0, baths: 0, price: '$ 375,000', img: 'Copper_Hill_web04.jpg', status: 'Available' }, 
{ id: '9741B44C-1422-1BE4-49D18F1397FEBC06',  beds: 5, baths: 3, price: '$ 749,500', img: 'HT_new_Exterior.jpg', status: 'Plan' }, 
{ id: '6D335794-1422-1BE4-49BC7A4E7043A14A',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-26.jpg', status: 'Available' }, 
{ id: '779267E0-1422-1BE4-49EED6AE6E526C2A',  beds: 4, baths: 3, price: '$ 697,500', img: '14280_navajo_st_MLS559095_HID530119_ROOMexteriorfront.jpg', status: 'Plan' }, 
{ id: '6D1F1A5D-1422-1BE4-491ED92364F3B94D',  beds: 0, baths: 0, price: '$ 200,000', img: 'lot-22.jpg', status: 'Available' }, 
{ id: '4ED6FE92-1422-1BE4-490CC280E00FC4F7',  beds: 0, baths: 0, price: '$ 400,000', img: '80th_view.jpg', status: 'Available' }, 
{ id: '9A89FFCE-1422-1BE4-49E6D297C44BB187',  beds: 5, baths: 3, price: '$ 877,500', img: 'HT_new_Exterior.jpg', status: 'SOLD' }, 
{ id: '77836BA2-1422-1BE4-499DF38479D2449E',  beds: 4, baths: 3, price: '$ 689,500', img: '14290_navajo_MLS559386_HID530124_ROOMexteriorfront.jpg', status: 'Plan' }, 
{ id: '6D1DA7A3-1422-1BE4-49E32B27CE207D2D',  beds: 0, baths: 0, price: '$ 195,000', img: 'lot-21.jpg', status: 'Available' }, 
{ id: '6D35AC03-1422-1BE4-4928C92FC757EFBD',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-28.jpg', status: 'Available' }, 
{ id: '6D388245-1422-1BE4-492BA0564DCC13A8',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-31.jpg', status: 'Available' }, 
{ id: '9AE997CF-1422-1BE4-49B7C60C3FDC6F19',  beds: 5, baths: 4, price: '$ 897,500', img: 'HT_new_Exterior.jpg', status: 'Available' }, 
{ id: '6D1BF2A0-1422-1BE4-49A443E3CDC555BF',  beds: 0, baths: 0, price: '$ 200,000', img: 'lot-19.jpg', status: 'Available' }, 
{ id: '6CF18888-1422-1BE4-49E16A3E110DBD13',  beds: 0, baths: 0, price: '$ 160,000', img: 'lot-4.jpg', status: 'SOLD' }, 
{ id: '6D312E1C-1422-1BE4-49CA221FA6C81C0B',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-24.jpg', status: 'Available' }, 
{ id: '9AE3AA1B-1422-1BE4-491543F314C365E2',  beds: 0, baths: 0, price: '$ 150,000', img: 'golfDad_and_Daughter.jpg', status: 'Available' }, 
{ id: '6D1D01BE-1422-1BE4-49E3C2AFD4AD6932',  beds: 0, baths: 0, price: '$ 200,000', img: 'lot-20.jpg', status: 'SOLD' }, 
{ id: '6D132E9B-1422-1BE4-49004C34F6E9EA3F',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-11.jpg', status: 'Available' } 

];

function f_win_open(win_name, where, type_val) {
	var win_type = new Array();
	var W = new Array();
	var H = new Array();

	win_type[0]="width=750,height=600,left=250,top=100,RESIZABLE,SCROLLBARS";	W[0]="640";	H[0]="480";

	win_name = window.open(where, win_name, win_type[type_val]);
	try {
		var l = (screen.width) ? (screen.width - W[type_val])/2 : 0;
		var t = (screen.height) ? (screen.height - H[type_val])/2 : 0;
		win_name.moveTo(l,t);
	}
	catch(e) {}
	win_name.focus();
}

function img_list(s, c) {
	
	var t = '';
	if (c >= i.length) { c = i.length; }
	
	for(var a=s; a<c; a++) {
		t += '<div id="IMG_' + a + '" class="IMG_FRAME" style="font-family: Arial; font-size: 9pt; margin-bottom: 7px; width: 204px; font-family: Arial;">';
		t += '	<div class="IMG_SRC"><img src="' + img_root + i[a].img + '" width="' + img_width + '"></div>';
		t += '	<div class="IMG_NOTES">';
		t += '		<div><b style="float: left; width: 80px;">Beds:</b><span>' + i[a].beds + '</span></div>';
		t += '		<div><b style="float: left; width: 80px;">Baths:</b><span>' + i[a].baths + '</span></div>';
		t += '		<div><b style="float: left; width: 80px;">Price:</b><span>' + i[a].price + '</span></div>';
		t += '		<div><b style="float: left; width: 80px;">Availability:</b><span>' + i[a].status + '</span></div>';
		t += '	</div>';
		t += '	<div class="IMG_BUTTON" stlye="clear: both; border: 1px solid black; font-size: 9pt; text-align: center; margin-top: 10px;">';
		
		t += '		<div align="center" onClick="f_win_open(\'LISTINGS\', \'' + link_root + i[a].id + '\', 0)" style="padding: 2px 5px 2px 5px; cursor: pointer; background: #BA8748  url(http://newhomes.coloradonewhomes.com/clients/copperwestcolo/horiz-menu-bg.png) 50% 100% repeat-x; color: #012652;">View Property</div>';
		t += '	</div>';
		t += '</div>';
		t += '<div style="height: 20px;"></div>';
	}

	document.getElementById('IMG_CONTENT').innerHTML = t;

	s = c;
	c += c;
	
	if (s >= i.length) {
		s=0;
		c=3;
	}
	setTimeout('img_list(' + s + ', ' + c + ')', t_out);
}


img_list(0,3);


