//show pop-up boxes

function showBox(boxName,x,y) {
	if (document.all && !document.getElementById) {
		styleObj = eval('document.all.' + boxName);
		styleObj.style.pixelTop = y;
		styleObj.style.pixelLeft = x;
	} 
	if (document.layers) {
		styleObj = eval('document.' + boxName);
		styleObj.top = y;
		styleObj.left = x;
	}
	if (document.getElementById) {
		styleObj = document.getElementById(boxName);
		styleObj.style.top = y +"px";
		styleObj.style.left = x + "px";
	}
}

//initialize images

imgArray = new Array;
for (i=0;i<6;i++) {
	if (document.images) {
		imgArray[i] = new Image;
	}
}

//define image array SRCs

imgArray[0].src="images/viewoff.gif";
imgArray[1].src="images/viewon.gif";
imgArray[2].src="images/payoff.gif";
imgArray[3].src="images/payon.gif";
imgArray[4].src="images/reprintoff.gif";
imgArray[5].src="images/reprinton.gif";

//image rollover effect

function chgImg(imgName, imgNum) {
	if (document.images) {
	document[imgName].src = imgArray[imgNum].src;
	}
}

//testimonial array

myTests = new Array;

myTests[0] = "I have enjoyed working with Crystal Vandegrift on several occasions over the last two years. She has done event photography, scenic work, sports shots, and photograph retouching for the Public Relations Office. I have always found her reliable, pleasant, accommodating, and highly professional. The quality of her work is excellent. I recommend her with confidence.</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Thomas H. Shomo, Director of Public Relations, Hampden-Sydney College";
myTests[1] = "Crystal's photography is of professional quality and reliably on time. It is a pleasure to work with her.</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Catherine W. Kincaid, L'Art de Theo Ltd.";
myTests[2] = "Crystal had everything under control. She always had an encouraging word for the Bride-to-Be. I am very camera shy, but, somehow, Crystal knew exactly what to do and what to say to get me to smile and pose for the camera. Crystal was able to capture a picture-perfect wedding day!</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Denise Williams, Alexandria, VA";
myTests[3] = "We wanted to let you know how impressed we were with the photographs you restored for our family. We were really happy with the way they turned out. I know my husband mom will be thrilled and thanks for helping to make our Christmas even more special!</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Angie and Bryan Morris, Charlotte Court House, VA";
myTests[4] = "Crystal Image Photography and Restoration has provided us with the finest quialty of services and our customers have been very satisfied. They take extra care to details and have always been a pleasure to work with.</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Aris Gallery, Farmville, VA";
myTests[5] = "It was a great pleasure to work with your studio on the restoration of my family portrait. The quality was excellent!</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Vanessa Duffer, Chase City, VA";
myTests[6] = "I was very pleased with the service from Crystal Image Photography. Both my portrait and wedding photographs turned out excellent and I received prompt turn-around time on both. I've had great comments from family and friends on the great quality of the pictures and have recommended Crystal's services to several people in the short time since the wedding. I wouldn't have changed a thing in regards to my wedding portrait and wedding day picture experience.</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Angie Winans Beasley, Appomattox, VA" ;
myTests[7] = "Crystal was a calm presence throughout the whirlwind of activity and excitement on our wedding day. With her camera, she was somehow able to capture the magic of that day. We treasure each picture and appreciate her talent as a photographer.</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Blythe and Pete Irausquin, Dillwyn, VA" ;
myTests[8] = "Thanks to you! I have received many compliments about your professionalism at the church and reception.</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Jackie Reid, Mother of the Bride, Blackstone, VA";
myTests[9] = "Greg & I were very satisfied with the results of our photos. We felt that the wedding & engagement photos were very unique and portrayed us in a very special light. Thank you for making our day special and memorable.</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Michelle & Greg Owens, FL";
myTests[10] = "I loved my photographs!!!!!! They were absolutely beautiful! I cannot thank you enough for your outstanding work on photographing our wedding! You are truly talented! Thank you, again, for everything! Billy &amp; I are so pleased!</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Leigh Ann &amp; Billy Self, Lynchburg, VA";
myTests[11] = "We have found CIP to be an extremely professional and quality focused business. We have used Crystal's services for a number of projects for our company: annual reports, newspaper advertisements, trade show/exhibit board design &amp; layout, and photography services at company sponsered events. I have been truly impressed with her skills.         Her ability to listen to the description of our desired outcomes and to always excede those expectations is remarkable.</p><p style=\"font:75% Arial,Helvetica,sans-serif;color:#000099;margin:5px 50px;text-align:right\">Sharon L. Harrup, Executive Director, STEPS Inc."

//show random testimonial from customer

testCt = myTests.length;

function showQuote() {
	randNum = Math.floor ((Math.random() * testCt));
	document.write(myTests[randNum] + '<br><p class="regular" align="center"><a href="testimonials.html">more testimonials</a></p>');
}