var slide_number = 2;

var header1 = 'Meet Ray Brady, Expert on Washes, Silicones, Specialty Products & Cleaners'
var header2 = 'Meet Dan Roll, Expert on Fountain Solutions and Alcohol Substitutes'
var header3 = 'Meet Chuck Malspeis, Expert on Aqueous Coatings and UV Coatings'

var slideText1 = "Ray Brady is one of the leading formulators in the pressroom chemical business. With 25 years of experience developing presswash and silicones for industry leaders like Anchor, Ray is the chemist behind Nova's unique line of products. He has extensive on press experience and works closely with press manufacturers. If you have a question about sheetfed / web washes, automatic blanket washes, low VOC washes or silicones, Ray's help and advice is just a click away. <a href='bradyForm.cfm'>Ask Ray!</a>";
var slideText2 = "Dan Roll played a major role as a pioneer in the development of alcohol-free printing in North America. His career includes over 25 years formulating experience with Anchor / Fuji Hunt. He now heads Nova's Fountain Solution Product Development Group. As a former printer, Dan has a unique perspective and believes that fountain solutions should enable the press operator to achieve higher quality and more consistent results. His knowledge of presses and dampening systems is extensive. If you have a problem or a question with a sheetfed or web fountain solution, <a href='rollForm.cfm'>Ask Dan!</a>";
var slideText3 = "Chuck Malspeis has formulated, technically supported and serviced Graphic Arts aqueous and UV coatings for over 20 years.  Chuck heads up Nova's Coating Group and is responsible for the NovaCoat Aqueous and UV product line which includes unique new products like Soft Touch Matte Aqueous and Strike-Through UV Coating. Chuck understands the coating environment, so if you need help or advice for an inline or offline application, have questions about anilox rollers or UV lamps, <a href='malspeisForm.cfm'>Ask Chuck!</a>";

function wiz_slideshow() {
	setTimeout("wiz_fadeout()", 10000);
}

function wiz_fadeout() {
	Effect.Fade($('wizard'), { duration: 1.0, queue: { position: 'end', scope: 'wiz_slides'}, afterFinish: change_wizard});
}

function wiz_fadein() {
	Effect.Appear($('wizard'), {duration: 1.0, queue: { position: 'end', scope: 'wiz_slides'}, afterFinish: wiz_slideshow});
}

function change_wizard() {

	if(slide_number == 1) {
		header = header1;
		slideText = slideText1;
	} else if(slide_number == 2) {
		header = header2;
		slideText = slideText2;
	} else if(slide_number == 3) {
		header = header3;
		slideText = slideText3;
	}
	
	document.getElementById('wiz_header').innerHTML = '<span style="font-size:16px; font-weight:bold;">' + header + '</span>';
	document.getElementById('wiz_desc').innerHTML = slideText;
	
	if(slide_number < 3) {
		slide_number++;
	} else {
		slide_number = 1;
	}
	
	wiz_fadein();
}

function open_wizard() {

}
