// PRELOADED IMAGES ARRAY
// To add more images, simply add it to the list below.
// Make sure it is in the images folder, since the preloader references that folder.
// Do not put a comma after the last image in the list.

arImageSrc = new Array (
	"btn_home_on.gif",
        	"btn_capabilities_on.gif",
	"btn_portfolio_on",
	"btn_sites_on",
	"btn_contact_on"
)

// This part actually does the preload.
// You shouldn't have to touch this, unless you want to remove the reference to the images directory.

function preloadem(){
	arImageList = new Array ();
	sDirectory = "images/";

	for (counter in arImageSrc) {
		arImageList[counter] = new Image();
        	arImageList[counter].src = sDirectory + arImageSrc[counter];
    	}
}

// IMAGE ROLLOVER FUNCTION
// This rollover function works with images that have "_off" and "_on" at the end of their file names
// (e.g. "myimage_off" will switch to "myimage_on").

function changeIt(oImage){
	var sSrc = oImage.src;
	var iUnderscore = sSrc.lastIndexOf("_");
	var iDot = sSrc.lastIndexOf(".");
	var sState = sSrc.slice(iUnderscore, iDot);
	var sNewImg = sSrc.slice(0, iUnderscore);
	var sExtension = sSrc.slice(iDot);
	if(sState == "_off")
	{
		sNewImg = sNewImg + "_on" + sExtension;
		eval(oImage).src = sNewImg;
	}
	else
	{
		sNewImg = sNewImg + "_off" + sExtension;
		eval(oImage).src = sNewImg;
	}
	
}

// RANDOMIZE THE TESTIMONIALS
// First create an array with the testimonials in it.
// To add more testimonials, simply add another element to the testimonial array as below.

var testimonial = new Array();

testimonial[0] = '<font face="Arial" color="#666666" size="2"><b>JT Direct</b> delivers what is promised, on budget, and within very tight timeframes.<p><b>Scott Fiene</b><br></font><font face="Arial" color="#666666" size="1">Vice President, Marketing<br>Principal Residential Mortgages, Inc.</font></p>';
testimonial[1] = '<font face="Arial" color="#666666" size="2"><b>JT Direct</b> provides a wealth of knowledge about state-of-the-art printing and production techniques, marketing strategy and expertise. We often invite <b>JT Direct</b> to consult with us on new marketing projects and initiatives because they always provide a fresh perspective, new solutions to old problems, and a &quot;can do&quot; work ethic.<p><b>Dana W. McNeill</b><br></font><font face="Arial" color="#666666" size="1">Vice President,<br>Corporate &amp; Marketing Communications<br>Wellmark Blue Cross Blue Shield</font></p>';
testimonial[2] = '<font face="Arial" color="#666666" size="2">When creating a new program, Farm Bureau and <b>JT Direct</b> meet to discuss the scope of our initiative and brainstorm to determine best options... many times, pointing out the <i>least expensive options as the best options for a more efficient and effective outcome</i>.<p><b>Brenda Golwitzer</b><br></font><font face="Arial" color="#666666" size="1">Director, Relationship Marketing<br>Farm Bureau Financial Services</font></p>';
testimonial[3] = '<font face="Arial" color="#666666" size="2">One aspect that sets <b>JT Direct</b> apart from other companies involves how they manage our account.&nbsp; <b>JT Direct</b> frequently sets up team meetings to understand the nature of the project.<p><b>JT Direct</b> has become an important link in our program each year.&nbsp; I can always count on <b>JT Direct</b> to bring innovative ideas to the table and then to deliver on what they quote.</p><p><b>Fred Gedden</b><br></font><font face="Arial" color="#666666" size="1">Director of Program Administration<br>ITA Group</font></p>';
// testimonial[4] = '<font face="Arial" color="#666666" size="2"><b>JT Direct</b> has earned their slot on our preferred partner\'s list.&nbsp; The commitment and quality granted our account and projects by Jim Thrasher\'s team is very much appreciated, valued and demonstrated with each and every initiative.<p><b>Steven D. Gilbert</b><br></font><font face="Arial" color="#666666" size="1">President<br>Strategic America Direct</font></p>';

// Select a random random testimonial

num = Math.floor(Math.random() * testimonial.length);