
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: '36157138-1422-1BE4-4997103C2742E8D8',  beds: 0, baths: 0, price: '$ 130,000', img: 'Father_and_Son,_Putting_Green.jpg', status: 'Available' }, 
{ id: 'A7434F3C-1422-1BE4-49D84F5102A28935',  beds: 3, baths: 2, price: '$ 995,000', img: 'Lot_3_spec_planweb.jpg', status: 'Available' }, 
{ id: '060333CB-1422-1BE4-49A632E197938841',  beds: 0, baths: 0, price: '$ 369,500', img: 'COPPER_HILL_web.jpg', status: 'SOLD' }, 
{ id: '6D1589D1-1422-1BE4-499CF7FF2C4CAC5C',  beds: 0, baths: 0, price: '$ 210,000', img: 'lot-13.jpg', status: 'Available' }, 
{ id: 'A6D90850-1422-1BE4-49CC49A11A48BCE8',  beds: 3, baths: 2, price: '$ 385,000', img: 'gardenia6810.jpg', status: 'Plan' }, 
{ id: '6D1D01BE-1422-1BE4-49E3C2AFD4AD6932',  beds: 0, baths: 0, price: '$ 200,000', img: 'lot-20.jpg', status: 'SOLD' }, 
{ id: '6D11D005-1422-1BE4-497C070E174663C1',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-10.jpg', status: 'Available' }, 
{ id: 'A6FBBFF2-1422-1BE4-4925B3FDBE206AC3',  beds: 3, baths: 2, price: '$ 450,000', img: 'ironwood6840.jpg', status: 'Plan' }, 
{ id: '6D0C414A-1422-1BE4-49E55B9E710EB390',  beds: 0, baths: 0, price: '$ 170,000', img: 'lot-7.jpg', status: 'Available' }, 
{ id: '6D335794-1422-1BE4-49BC7A4E7043A14A',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-26.jpg', status: 'Available' }, 
{ id: '060D720C-1422-1BE4-4992A134DD9DC2DC',  beds: 0, baths: 0, price: '$ 375,000', img: 'Copper_Hill_web04.jpg', status: 'Available' }, 
{ id: '6D186C86-1422-1BE4-4998C71515ED9D57',  beds: 0, baths: 0, price: '$ 210,000', img: 'lot-16.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: '060FE01E-1422-1BE4-49C5ADA2C4AC4B9F',  beds: 0, baths: 0, price: '$ 459,900', img: 'Copper_Hill_web04.jpg', status: 'SOLD' }, 
{ id: '6D16D1E1-1422-1BE4-49E35E4B2326D0C6',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-14.jpg', status: 'Available' }, 
{ id: '6D1BF2A0-1422-1BE4-49A443E3CDC555BF',  beds: 0, baths: 0, price: '$ 200,000', img: 'lot-19.jpg', status: 'Available' }, 
{ id: 'B68BE482-1422-1BE4-49AB538AB9798808',  beds: 4, baths: 3, price: '$ 789,500', img: 'Forza_tuscan_elev.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: 'A6E28BCC-1422-1BE4-49071ED52EE5C548',  beds: 3, baths: 2, price: '$ 420,000', img: 'cypress6820.jpg', status: 'Plan' }, 
{ id: 'AEEBF47A-1422-1BE4-49110D86C68F3E8F',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-12.jpg', status: 'SOLD' }, 
{ id: 'B67D9915-1422-1BE4-49EB440F59E2A7EE',  beds: 4, baths: 3, price: '$ 699,900', img: '14280_navajo_st_MLS559095_HID530119_ROOMexteriorfront1.jpg', status: 'SOLD' }, 
{ id: '77902746-1422-1BE4-49DB9B1143232B55',  beds: 5, baths: 4, price: '$ 749,500', img: 'cw-1B.jpg', status: 'Plan' }, 
{ id: '6D36AD95-1422-1BE4-490174CC82755BFA',  beds: 0, baths: 0, price: '$ 170,000', img: 'lot-29.jpg', status: 'Available' }, 
{ id: '9741B44C-1422-1BE4-49D18F1397FEBC06',  beds: 5, baths: 3, price: '$ 749,500', img: 'HT_new_Exterior.jpg', status: 'Plan' }, 
{ id: '6D377FC9-1422-1BE4-4932C99B2341F34F',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-30.jpg', status: 'Available' }, 
{ id: 'A710CDA8-1422-1BE4-4914577C9A2B6431',  beds: 3, baths: 4, price: '$ 475,000', img: 'walden6850.jpg', status: 'Plan' }, 
{ id: '6CF3DC9A-1422-1BE4-49D545ED5000200F',  beds: 0, baths: 0, price: '$ 150,000', img: 'lot-5.jpg', status: 'Available' }, 
{ id: '05FB5D43-1422-1BE4-493370F8EB3D4F03',  beds: 0, baths: 0, price: '$ 450,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: 'F46F50F5-1422-1BE4-49F7E5ACA2E87116',  beds: 3, baths: 2, price: '$ 680,000', img: 'HT_RanchPlan-web2.jpg', status: 'Plan' }, 
{ id: '6D35AC03-1422-1BE4-4928C92FC757EFBD',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-28.jpg', status: 'Available' }, 
{ id: '6D1096F9-1422-1BE4-497769C70AFD88BD',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-9.jpg', status: 'Available' }, 
{ id: '6CF18888-1422-1BE4-49E16A3E110DBD13',  beds: 0, baths: 0, price: '$ 160,000', img: 'lot-4.jpg', status: 'SOLD' }, 
{ id: '6D1F1A5D-1422-1BE4-491ED92364F3B94D',  beds: 0, baths: 0, price: '$ 200,000', img: 'lot-22.jpg', status: 'Available' }, 
{ id: '6D1DA7A3-1422-1BE4-49E32B27CE207D2D',  beds: 0, baths: 0, price: '$ 195,000', img: 'lot-21.jpg', status: 'Available' }, 
{ id: '6D132E9B-1422-1BE4-49004C34F6E9EA3F',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-11.jpg', status: 'Available' }, 
{ id: '6D312E1C-1422-1BE4-49CA221FA6C81C0B',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-24.jpg', status: 'Available' }, 
{ id: '77836BA2-1422-1BE4-499DF38479D2449E',  beds: 4, baths: 3, price: '$ 689,500', img: '14290_navajo_MLS559386_HID530124_ROOMexteriorfront.jpg', status: 'Plan' }, 
{ id: 'B6058F97-1422-1BE4-49F8948E60BC3CA4',  beds: 4, baths: 3, price: '$ 774,000', img: 'caprice.jpg', status: 'Available' }, 
{ id: '9B0E7772-1422-1BE4-4979CED3F7E7D4AA',  beds: 5, baths: 4, price: '$ 799,900', img: '14275_north_navajo_street_MLS558932_HID444016_ROOMMainExterior.jpg', status: 'Available' }, 
{ id: '9124102F-1422-1BE4-492AE8537D2DBDE7',  beds: 3, baths: 2, price: '$ 412,065', img: '6810_Gardenia_Craftsman_sm.jpg', status: 'Available' }, 
{ id: '4ED6FE92-1422-1BE4-490CC280E00FC4F7',  beds: 0, baths: 0, price: '$ 400,000', img: '80th_view.jpg', status: 'Available' }, 
{ id: '6D2F2FAC-1422-1BE4-49A629EE8A33CFB2',  beds: 0, baths: 0, price: '$ 210,000', img: 'lot-23.jpg', status: 'Available' }, 
{ id: '060B8455-1422-1BE4-493EF867E1C37772',  beds: 0, baths: 0, price: '$ 385,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: '977AD4BD-1422-1BE4-49C4AEC458F00F64',  beds: 2, baths: 1, price: '$ 400,000', img: 'indianpeaksmon.jpg', status: 'Plan' }, 
{ id: '6D0E46A0-1422-1BE4-4967753D08177761',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-8.jpg', status: 'SOLD' }, 
{ id: '6D388245-1422-1BE4-492BA0564DCC13A8',  beds: 0, baths: 0, price: '$ 185,000', img: 'lot-31.jpg', status: 'Available' }, 
{ id: '6D324970-1422-1BE4-493C179B3AD674CB',  beds: 0, baths: 0, price: '$ 175,000', img: 'lot-25.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);


