// Preload Buttons
var home_ov = new Image();
home_ov.src = "images/nav/home_hover.gif";

var about_us_ov = new Image();
about_us_ov.src = "images/nav/about-us_hover.gif";

var solutions_ov = new Image();
solutions_ov.src = "images/nav/solutions_hover.gif";

var services_ov = new Image();
services_ov.src = "images/nav/services_hover.gif";

var partners_ov = new Image();
partners_ov.src = "images/nav/partners_hover.gif";

var contact_us_ov = new Image();
contact_us_ov.src = "images/nav/contact-us_hover.gif";

var banner_attend_btn_ov = new Image();
banner_attend_btn_ov.src = "images/buttons/banner-attend-btn-ov.gif";

var banner_learn_more_btn_ov = new Image();
banner_learn_more_btn_ov.src = "images/buttons/banner-learn-more-btn-ov.gif";

// Functions
function onclickClear( thisfield, defaulttext )
{
	if ( thisfield.value == defaulttext )
	{
		thisfield.value = "";
	}
}

function getTestimonials()
{
	var randnum = Math.ceil( Math.random() * 4 );
	var wots, wotsString;
	
	switch( randnum )
	{
		case 1:
			wots = "&quot;After years of frustrating efforts to gather, combine and report financial data from many traditional databases, GRID Dynamics entered the picture, and using the Palo Suite, they transformed our budgeting and reporting processes from manual, labour-intensive, spreadsheet-based activities, to fully automated processes.&quot;";
			break;
		case 2:
			wots = "&quot;GRID Dynamics was instrumental in helping us implement Palo as our Business Intelligence Reporting Engine, and I found their staff a delight to work with.&quot;";
			break;
		case 3:
			wots = "&quot;GRID Dynamics has worked on several projects for me related to defining business solutions for a situtation, and then designing the tools to implement the solution.&quot;";
			break;
		case 4:
			wots = "&quot;Our partners at GRID Dynamics are highly motivated and very professional individuals. They are focused and results driven.&quot;";
			break;
	}
	
	wotsString = "<p class='color-bar'><img src='images/content/color-bar.gif' alt='' width='47' height='12' /></p><h3>Client Testimonials</h3><p>" + wots + "</p><a href='testimonials.shtml#" + randnum + "' title='Read More' class='read-more'>Read More &raquo;</a>";
	
	$( "div#testimonials").html( wotsString );
}


$(document).ready(function(){
	getTestimonials();
});
