var horseList = new Array();
var salesDetails;

salesDetails = 'Fancy 4 year old Medium Pony Gelding by Sugarbrook Blue Pacific <br> Started over fences with GREAT form, Cute mover <br> Stands on the line, Won at HITS <br> Very special show pony';
horseList[0] = new Array('Blue Note', 'bluenote_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=KzHyITAY5Uk" target="_new">Click here to view video</a>');

salesDetails = 'Medium Farnley Pony Gelding  <br> Champions in Childrens Pony, 11 and Under Eq- Does it all';
horseList[1] = new Array('Princeton', 'princeton_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=DoG5pM8gmWo" target="_new">Click here to view video</a>');

salesDetails = 'Great Child or Amateur Gelding <br> Has done Long Stirrups, Modified Childrens, Low Hunter with great ribbons';
horseList[2] = new Array('Ovation', 'ovation_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=BgfajYlGYuA" target="_new">Click here to view flat work video</a><br><br><a href="http://www.youtube.com/watch?v=7DZLTd9z3VM" target="_new">Click here to view jumping video</a>');

salesDetails = 'Medium Pony Gelding <br> Started showing less than 1 year ago and has already been Champion in Baby Green and Modified Adult at GOHJA <br> No spook, cute mover, quiet and fun';
horseList[4] = new Array('Junkyard', 'junkyard_large.jpg', salesDetails, '');

salesDetails = 'Up and coming Jumper Gelding <br> Loves to jump, clean and clear and winning at 3 foot';
horseList[5] = new Array('Broadway Joe', 'broadwayjoe_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=eqpz7HCOFZ0" target="_new">Click here to view video</a>');

salesDetails = '17h Warmblood Gelding <br> Fancy 3\'0 - 3\'6 hunter. Outstanding mover & jumper. <br> Ribbons in A/O at AA rated shows. Huge stride beautiful to watch.';
horseList[6] = new Array('Full Cruise', 'fullcruise_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=UVeq42orNBg" target="_new">Click here to view video</a>');

salesDetails = '4 yr. old fancy welsh pony <br> 13.1h, green, but going great jumps 2\'3 courses with lead changes';
horseList[7] = new Array('Tiny Dancer', 'tinydancer_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=_BMXb53piiA" target="_new">Click here to view video</a>');

salesDetails = 'Hunter or Equitation Warmblood Gelding. <br> Good ribbons in Adult Amateur Eq & Hunter HITS week 3.';
horseList[8] = new Array('Volpez', 'volpez_large.jpg', salesDetails, '');

salesDetails = ' 3\'0 to 3\'6 Hunter Gelding. <br> Good mover, great form over fences. Very smart and honest.';
horseList[9] = new Array('Montesquieu', 'montesquieu_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=PnTXc2Mzyrs" target="_new">Click here to view video</a>');

salesDetails = '15.3h Gelding <br> TB cross. Good mover, cute jumper, Great personality, fun to ride';
horseList[10] = new Array('Louis Comfort T', 'louiscomfortt_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=Mk3oOZBoE1I" target="_new">Click here to view video</a>');

salesDetails = '16.3h TB Gelding <br> Cute mover, great jump. Reserve Champ GOHJA 2007 Schooling Hunter. Fun childrens/adult hunter.';
horseList[11] = new Array('Sir James', 'sirjames_large.jpg', salesDetails, '');

salesDetails = '16.1h Appendix QH Gelding. <br> 10 years old proven 4-H Champion, English and Western. <br> Great all-around horse.';
horseList[12] = new Array('Label Me Zipit', 'labelmezipit_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=kCSmKXGOUc4" target="_new">Click here to view video</a>');

salesDetails = '16.2h+ Gelding. <br> 6 years old, big stride, easy to ride. Safe and sound. <br> Great dressage prospect!';
horseList[13] = new Array('Georgio', 'nophoto.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=HC8vy0T9Yl4" target="_new">Click here to view video</a>');

salesDetails = '17.0h+ Warmblood Gelding. 13 years old, amazing 3 foot horse.<br> Wins at A rated shows, jumps and hack. <br> Easy, fun and only available to approved home';
horseList[14] = new Array('Ontic', 'ontic_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=0Yhmu3zZG7M" target="_new">Click here to view video</a>');

salesDetails = '16.1h Warmblood Gelding. 11 years old, the ultimate 3 foot horse.<br> Great mover, easy ride, AA rated champion. <br> Quiet, great show mileage, ready to win for you.';
horseList[15] = new Array('Pavarotti', 'pavarotti_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=iXNPD89eKEs" target="_new">Click here to view video</a>');

salesDetails = '16.2h Thoroughbred Gelding. 12 years old, beautiful form.<br> Hack winner, textbook jump. <br> 3 foot proven winner with great personality.';
horseList[16] = new Array('Beach House', 'beachhouse_large.jpg', salesDetails, '');

salesDetails = '14.1h Quarter Horse Gelding. 12 years old, great pony!<br> No spook, easy lead change <br> Winner in Childrens Pony and Eq, ready for a new kid to teach!';
horseList[17] = new Array('My Kinda Guy', 'mykindaguy_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=FCk513EfO9k" target="_new">Click here to view video</a>');

salesDetails = '14.1h Welsh Cross Gelding. 7 years old, numerous High Point awards locally and championships at A rated shows.<br> Swaps, hacks, jumps great.  <br> Ready to win in Large or Childrens Pony';
horseList[18] = new Array("Daddy's Dollar", 'daddysdollar_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=DtW6WiL6xAU" target="_new">Click here to view video</a>');

salesDetails = '16.0h Thoroughbred Gelding. 10 years old, easy and fun.<br> Great mover, cute jump. <br> Low Hunter and Pre-Childrens Champ. Suitable for beginner or novice and will win!';
horseList[19] = new Array('Zack is Back', 'zackisback_large.jpg', salesDetails, '');

salesDetails = '16.0h Thoroughbred Gelding. 8 years old.<br> Top hack ribbons, great jump. <br> Pre-Adult and Low Hunter champ. Quiet with an easy lead change.';
horseList[20] = new Array('Howitzer', 'howitzer_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=vigyQwsP7kg" target="_new">Click here to view video</a>');

salesDetails = '16.2h Quarter Horse Gelding. 12 years old.<br> From the Rugged Lark line. Good mover, Great Jump. <br> Winner locally at everything from 2\'6 to 3\'3.<br> Numerous year end championships.';
horseList[21] = new Array('Gallant Lark', 'gallantlark_large.jpg', salesDetails, '');

salesDetails = '16.2h Thoroughbred Gelding. 8 years old.<br> Very brave and easy to ride. Great personality.  Shown successfully at local shows. Champion and Reserve in the Adult Hunter/Equitation at his last A-show in Tampa. ';
horseList[22] = new Array('Imagine', 'imagine_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=M1zj5CnD288" target="_new">Click here to view video</a>');

salesDetails = '16.1h Thoroughbred Gelding. 12 years old.<br> Low Hunter, Pre-Childrens Champ. Has done it all from Long Stirrups to 3 foot. Great personality.';
horseList[23] = new Array("Here's Johnny", 'heresjohnny_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=zzseNWqYldg" target="_new">Click here to view video</a>');

salesDetails = '14h Quarter Horse/Welsh Gelding. 4 years old, coming 5.<br> Green, but sweet, quiet and flashy.  Good ribbons in his first horse shows. Schooling 2"3" with the mind to be a true kids pony!';
horseList[24] = new Array("Saint Patrick", 'saintpatrick_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=FYCL4FCtFps" target="_new">Click here to view video</a>');

salesDetails = '16.2h and growing German Oldenburg Gelding. 3 years old.<br> Should mature at least 16.3 hands. This young gelding is an Art Deco grandbaby with outstanding movement. He is well started under saddle with a great disposition. Very flashy and should make an amazing hunter.';
horseList[25] = new Array("Art of War", 'artofwar_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=uLPQ-fanacQ" target="_new">Click here to view video</a>');

salesDetails = '14.2h QH Cross Gelding. 12 years old.<br> Permanent pony card. A true packer, beginner safe, but fun for more advanced riders. Walk Trot through Large Pony. No spook, always quiet- take him anywhere!';
horseList[26] = new Array("Scout's Honor", 'scout_large.jpg', salesDetails, '');

salesDetails = '16.2h Dutch Warmblood Gelding. 10 years old.<br> Great A/O Jumper. Recently Champion Level 5 at Fox Lea Farm. This one is fun AND easy! Offered for sale or lease.';
horseList[27] = new Array("Happy Together", 'happytogether_large.jpg', salesDetails, '');

salesDetails = '17.3h American Warmblood Gelding. 5 years old.<br> Purchased with experience in the jumper ring, but now started as a hunter. Big and brave! Several Baby Green Championships. ';
horseList[28] = new Array("Wy", 'wy_large.jpg', salesDetails, '');

salesDetails = '17.1h Thoroughbred Gelding. Aged.<br> Previous show experience in the jumpers and equitation. Doing well in the hunters now- Low Hunter Champion. Great stride and lead change. ';
horseList[29] = new Array("Flashback", 'flashback_large.jpg', salesDetails, '');

salesDetails = '16.3h American Warmblood Gelding. 6 years old. <br> Showing successfully in the Childrens and Schooling Hunters and just starting in the equitation. Big-bodied, big stride and quiet. No spook! ';
horseList[30] = new Array("Direct Approach", 'directapproach_large.jpg', salesDetails, '');

salesDetails = '16.0h Quarter Horse Cross Gelding. 6 years old. <br> Good mover with a cute jump! Easy lead change and quiet to ride. Great ribbons in 2 foot 6 locally and at A shows. Ready to move up! ';
horseList[31] = new Array("High Calypso", 'highcalypso_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=RJGpiwx0vr0" target="_new">Click here to view video</a>');

salesDetails = '16.2h TB/Percheron Mare. <br> Great broodmare or trail horse. Trade considered for 16.2h+ riding horse.';
horseList[32] = new Array("Jackie O", 'jackieo_large.jpg', salesDetails, '');

salesDetails = '14+h QH cross Gelding, 8 years old. <br> Wonderful pony for kids and suitable for most beginners and even lessons. Moves cute, jumps great, perfect to learn the ropes. <br> Champion in everything from Walk to Pony Hunters. Trade considered for first horse.';
horseList[33] = new Array("Nic Nac", 'nicnac_large.jpg', salesDetails, '');

salesDetails = '16.0h Appendix QH mare, 8 years old. <br> Cute pleasure or trail horse! Easy to ride and handle. ';
horseList[34] = new Array("Mimi", 'mimi_large.jpg', salesDetails, '');

salesDetails = '17.0h Dutch Warmblood Gelding. 10 years old. <br> Quiet, no prep, straight to the show ring and win! Jumps great, moves well, auto lead change. Perfect hunter or equitation horse. Always jumps, no spook. Easy enough for first horse after a pony or amateur. Local year-end and high point in just about everything. Numerous AA championships as well. The whole package!';
horseList[35] = new Array("Winchester G", 'winchesterg_large.jpg', salesDetails, '<a href="http://www.youtube.com/watch?v=UJo3R7oQIW8" target="_new">Click here to view video</a>');

salesDetails = '15.2h Appendix QH Gelding, 10 years old. <br> Shown successfully as a hunter AND a jumper. Quiet enough for either, but can do the jumper turns. Fun to ride! Easy lead change, no spook, no prep. Easy and fun to ride!<br> Champion Low Adult Hunter, Hopeful and Child/Amateur Jumpers, both 2 foot 6 and 3 foot!';
horseList[36] = new Array("Pocket Change", 'pocketchange_large.jpg', salesDetails, '');

function navigateTo(pageName, divId)
{
	new Effect.MoveBy(divId, 0, 250);
	window.setTimeout("new Effect.Fade('PageContent');",700);
	window.setTimeout("window.location='" + pageName + "';", 1700);
}

function navigationMouseOver(navigationLink)
{
		navigationLink.className = 'NavigationLinkOver';
}

function navigationMouseOut(navigationLink)
{
		navigationLink.className = 'NavigationLink';
}

var SalesRowMouseOver = function(e)
{
	this.className = 'SalesRowOver';
}

var SalesRowMouseOut = function(e)
{
	this.className = 'SalesRow';
}

var ShowSalesDetails = function(e)
{
	var detailsWindow = $('SalesDetailsPanel');
	detailsWindow.className = 'ShowDetails';	
}

function LoadSalesDetails(horseListIndex)
{
	var largeImage = $('LargeImageSource');
	var horseName = $('SalesDetailsName');
	var description = $('FullDescriptionSource');
	var videoLink = $('VideoLink');
	var largeImageDirectory = 'images/sales/large/';
			
	horseName.innerHTML = horseList[horseListIndex][0];
	largeImage.src = largeImageDirectory + horseList[horseListIndex][1];
	description.innerHTML = horseList[horseListIndex][2];
	videoLink.innerHTML = horseList[horseListIndex][3];
	
	var salesDetailsPanel = $('SalesDetailsPanel');
	new Effect.BlindDown(salesDetailsPanel);
}

function CloseSalesDetails()
{
	var salesDetailsPanel = $('SalesDetailsPanel');
	new Effect.BlindUp(salesDetailsPanel);
}

function AttachSalesPageEvents()
{
	
		
	var saleRows = YAHOO.util.Dom.getElementsByClassName('SalesRow', 'div');
	YAHOO.util.Event.addListener(saleRows, 'mouseover', SalesRowMouseOver);
	YAHOO.util.Event.addListener(saleRows, 'mouseout', SalesRowMouseOut);
	YAHOO.util.Event.addListener(saleRows, 'click', ShowSalesDetails);
	
	
}