/*This script i've found in http://clagnut.com/sandbox/imagefades/ */
/* I've customized the original script a bit to fit in this case */

var maximages =23; // how many fade images do you have?
var pictures = new Array(maximages); // enter all the fade images here
// the first item should be 0, then numbered through 1 less than your maximages

//pictures[20] = ImageRoot+"images/testimonial/boeing.gif";

pictures[0] = ImageRoot+"images/testimonial/siemens.gif";
pictures[1] = ImageRoot+"images/testimonial/lexmark.gif";
pictures[2] = ImageRoot+"images/testimonial/pike.gif";
pictures[3] = ImageRoot+"images/testimonial/mindtribe.gif";
pictures[4] = ImageRoot+"images/testimonial/tekelec.gif";
pictures[5] = ImageRoot+"images/testimonial/mortara.gif";
pictures[6] = ImageRoot+"images/testimonial/envirosoft.gif";
pictures[7] = ImageRoot+"images/testimonial/telegent.gif";
pictures[8] = ImageRoot+"images/testimonial/battlle.gif";
pictures[9] = ImageRoot+"images/testimonial/transition.gif";
pictures[10] = ImageRoot+"images/testimonial/gdi.gif";
pictures[11] = ImageRoot+"images/testimonial/rockwell.gif";
pictures[12] = ImageRoot+"images/testimonial/keiser.gif";
pictures[13] = ImageRoot+"images/testimonial/celadon.gif";
pictures[14] = ImageRoot+"images/testimonial/usnavy.gif";
pictures[15] = ImageRoot+"images/testimonial/summa.gif";
pictures[16] = ImageRoot+"images/testimonial/nxp.gif";
pictures[17] = ImageRoot+"images/testimonial/aep.gif";
pictures[18] = ImageRoot+"images/testimonial/luxtera.gif";
pictures[19] = ImageRoot+"images/testimonial/lockheed.gif";
pictures[20] = ImageRoot+"images/testimonial/apple.gif";
pictures[21] = ImageRoot+"images/testimonial/radiance.gif";
pictures[22] = ImageRoot+"images/testimonial/perkinelmer.gif";


var fcontent=new Array(maximages);
begintag='<font face="Verdana, Arial, Helvetica," size=1>'; //set opening tag, such as font declarations
/*fcontent[20]="I am very pleased with the overall quality of your PCBs. Another big plus is that you shipped them a day early!<br><br><b>Roy A.<br>Boeing, Inc.<br>www.boeing.com</b>";*/
fcontent[0]="Please convey to all the Sierra Proto Express team our thanks for a job well done.  We received the boards as promised and they are now in use in our production test areas.<br><br><b>Earl B.<br>Project Administrator,<br>Siemens Medical Solutions</b>"
fcontent[1]="Thanks for the great work on the boards!  Your company is at the top of my list for future work. <br><br><b>Matt L.<br>Lexmark<br>www.lexmark.com</b>"
fcontent[2]="Great job. First time I've used Sierra Proto Express. Silk screen was incredible, the smallest text was readable. Thru-hole drills where dead center. Solder mask, perfect. Nothing else I can say, just perfect, very perfect. I'll be using your company from now on. <br><br><b>Mike S.<br>Pike Aerospace Research <br>Ontario, Canada<br></b>"
fcontent[3]="Just received the boards -- you guys rule!! Thanks for making it happen so quickly. <br><br><b>Adam R.<br>MindTribe. Engineering Moxie.<br>Palo Alto, CA<br>www.mindtribe.com</b>"
fcontent[4]="..I enjoyed meeting you and viewing your presentation at the PCB Design show. I think your Micro-Electronics division is leading edge technology in the PCB industry. My connection with Sierra Proto Express goes back many years, spanning several companies. Your quotes have always been right on target and shipments have always been on time with exceptional end product quality. No matter what company I have worked with,regardless of business model, I always find a spot for Sierra Proto Express that fits my company's requirements. <br><br><b>Tony C.<br>Printed Circuit Design Engineer<br>Tekelec Inc.<br>www.tekelec.com<br></b>"
fcontent[5]="...we don't even send our Request For Quotes to any other company!<br>Why would we?... Sierra Proto Express ROCKS! <br><br><b>Andrew Z.<br>PCB Designer<br>Mortara Instrument, Inc.<br>www.mortara.com<br></b>"
fcontent[6]="...this is the second time Sierra Proto Express has worked with us on a critical project. I wanted to express my deepest appreciation to the staff your company. I am a 100% satisfied customer and I have come to believe that your company is an icon of quality, professionalism, dedication and friendliness. <br><br><b>Syed H.<br>Vice President<br>EnviroSoft, Inc.<br>Houston, TX 77099</b>"
fcontent[7]="Thank you very much for the great job with my previous order! Everything was built right on time and quality was good! <br><br><b> Michael K. <br>Principal Engineer <br>Telegent Systems<br> Sunnyvale, CA 94085</b>"
fcontent[8]="Just got the boards in my office.  They look great! To you and your team a hearty thank you! <br><br><b>Ryan S. <br>Electronics Group, <br>Battelle Science & Technology International<br>www.battelle.com</b>"
fcontent[9]="The boards are here and in the hands of the people who need them.  Good job by Sierra!  That's the kind of service customers appreciate. <br><br><b>Tom F. <br>Design Engineer<br> Transition Network Inc. <br>Eden Prairie, MN</b>"

fcontent[10]="Thanks to you all for your diligent and expedient help! You all make an awesome team. <br><br><b>Lesley H.<br> GDI Communications </b>"
fcontent[11]="Wanted to let you know that quality and delivery over the past several months has been very good. Quality has been 100%.  Delivery at 100 or 99%. Good job and thank you!<br><br><b>James B.<br>Buyer<br> Rockwell Automation </b>"
fcontent[12]="..you guys are a 1st class company and great to work with.<br><br><b>Randy D.<br>Keiser, Inc.<br>www.keiser.com</b>"
fcontent[13]="The PCBs have arrived right on time and look great.  Thank you for your continued excellence in service and product!<br><br><b>Matthew P.<br>Product Design Engineer<br>Celadon Systems, Inc.<br>Burnsville, MN</b>"
fcontent[14]="Thanks for all your help.  I'm very impressed with the boards and how quickly they were turned!<br><br><b>Jason R.<br>Advanced ICs and Sensors<br>United States Navy</b>"
fcontent[15]="..we have two senior executives here, both VPs, who once were associated with the board building process. When they heard how fast Sierra can turn out boards with the quality that Sierra has, they were amazed and a little disbelieving at first. They have never seen such good quality come with such quick turn around time. Kudos to the Sierra Proto team!<br><br><b>Kenny V.<br>Senior Project Manager<br>SUMMA Technology, Inc.<br>www.summa.com</b>"

fcontent[16]="Thanks for all of your help. You have great engineers. They were on phone with me constantly until I fixed all design/manufacturability issues. I really do appreciate the service.<br><br><b>Zubin L.<br>NXP Semiconductors (formerly, Phillips Electronics)<br>San Jose, CA<br>www.nxp.com</b>"
fcontent[17]="The new no-touch process worked very well and the boards look great as always. Thanks for improving your already-excellent service.<br><br><b>Paul Z.<br>American Electric Power<br>www.aep.com</b>"
fcontent[18]="I must say your customer service is beyond excellent! You have always gotten right back to me as soon as I call you and are super to work with due to your positive attitude. Thanks for saving our company money and delivering on time.<br><br><b>Anne M.<br>Luxtera, Inc.<br>Carlsbad, CA<br>www.luxtera.com</b>";
fcontent[19]="You know - you are one of my favorite suppliers.. You help us through so many jams! Thanks for getting this order done so quickly.<br><br><b>Kathy W.<br>Buyer<br>Lockheed Martin Inc.</b>";
fcontent[20]="Sierra Proto Express has been consistent with great level of service, product quality, timely delivery of PCBs, and timely responses to all questions.<br><br><b>Jose C.<br>Engineer,<br>Apple, Inc.<br>Cupertino, CA<br>www.apple.com</b>"
fcontent[21]="I wanted to take the time to thank you for all your hard work and effort towards producing so many boards this year.  I have been amazed at the level of service you and everyone else at Sierra have provided. I have had 95% of all my boards produced through Sierra because of the high production quality and the attention to customer's needs.  I look forward to continue working with you and I keep recommending Sierra to anyone needing PCB services.<br>Thank you for everything!<br><br><b>Jonathon H.<br>Systems Engineer,<br>Radiance Technologies<br>Huntsville, AL</b>";
fcontent[22]="I have found Sierra Circuits to be EXTREMELY supportive in resolving any issues in our PCB/Assembly.  I feel they have consistently met me more than half way, which makes my job easier.<br><br><b>Paul M<br>PerkinElmer<br>Miamisburg, OH<br><a href='www.perkinelmer.com'>www.perkinelmer.com</a></b>";




var pictureNumber = 0;
var totalNumber = pictures.length;

function previous(){
	jQuery('#divContent').slideUp(200);
	if (document.images){
		if (pictureNumber > 0)
			pictureNumber--;
		else             
			pictureNumber = totalNumber-1;		
		initImage(pictures[pictureNumber],pictureNumber);
	}
	
}
function next(){
	jQuery('#divContent').slideUp(200);
	if (document.images){
		if (pictureNumber < totalNumber-1)
			pictureNumber++;
		else                    
			pictureNumber = 0;	 
		initImage(pictures[pictureNumber],pictureNumber);
	}
	
}  
function initImage(newImage, arrayElm) {
	//alert(newImage);
	var divContent = document.getElementById("divContent");
	divContent.innerHTML = fcontent[arrayElm];
	jQuery('#divContent').slideDown(1000);
	imageId = 'thephoto';	
	image = document.getElementById(imageId);
	image.src = newImage;
	setOpacity(image, 0);	
	fadeIn(imageId,0);	
}

function setOpacity(obj, opacity) {
	opacity = (opacity == 100)?99.999:opacity;
	//alert(opacity);
// IE/Win
	obj.style.filter = "alpha(opacity:"+opacity+")";
	
// Safari<1.2, Konqueror
	obj.style.KHTMLOpacity = opacity/100;
	
// Older Mozilla and Firefox
	obj.style.MozOpacity = opacity/100;
	
// Safari 1.2, newer Firefox and Mozilla, CSS3
	obj.style.opacity = opacity/100;
}

function fadeIn(objId,opacity) {
	//alert('inside fadein');
	if (document.getElementById) {
		obj = document.getElementById(objId);
		if (opacity <= 100) {
			setOpacity(obj, opacity);
			opacity += 1;
			window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 1);
		}
	}
}

function doNothing(){}
initImage(pictures[0],0);