var i = 0; var goAuto = 1; var path = new Array(); var desc = new Array(); var title = new Array(); var price = new Array(); var cart = new Array(); var slideURL = new Array(); function clearInput(e) { if(e.value == 'Your Email Address') { e.value = ""; } } function resetIntput(e) { if(e.value == '' && e.id == 'ctl00_txtNewsletter') { e.value = "Your Email Address"; } } path[0] = "Img.aspx?Table=CartProducts&ID=1236&IDColumn=ProductID&Width=200"; slideURL[0] = "Prod-1236.aspx"; title[0] = "The Complete Performance Review Toolkit"; price[0] = "$199.00"; desc[0] = "This toolkit contains customizable, ready-to-use forms that save time, help document results and make it simple to prepare and conduct effective performance reviews."; cart[0] = "Cart.aspx?ID=1236"; path[1] = "Img.aspx?Table=CartProducts&ID=1577&IDColumn=ProductID&Width=200"; slideURL[1] = "Prod-1577.aspx"; title[1] = "Essential Skills for First-Time Supervisors"; price[1] = "$287.00"; desc[1] = "This comprehensive multimedia product is full of action-oriented tips meant to guide first-time supervisors through those first tricky months of leading a team."; cart[1] = "Cart.aspx?ID=1577"; path[2] = "Img.aspx?Table=CartProducts&ID=1239&IDColumn=ProductID&Width=200"; slideURL[2] = "Prod-1239.aspx"; title[2] = "Mastering Difficult Conversations"; price[2] = "$345.00"; desc[2] = "When managers are uncomfortable, they will avoid handling delicate situations. Give your supervisors the training they need to feel more confident, and deal with the problems before they do more harm."; cart[2] = "Cart.aspx?ID=1239"; function swapImage(x, setAuto) { if(goAuto == 1 || setAuto == 0) { if(setAuto == 0) goAuto = 0; if(x == -1) { if(i == 1) { i = path.length - 1; } else { if(i == 0) { i = path.length - 2; } else { i = i - 2; } } } document.slide.src = path[i]; string = 'thelink2 = document.getElementById("theLink");'; eval(string); if(thelink2 != null) { thelink2.href = slideURL[i]; } string = 'theTarget = document.getElementById("thetitle");'; eval(string); if(theTarget != null) { theTarget.innerHTML = title[i]; } string = 'theTarget = document.getElementById("price");'; eval(string); if(theTarget != null) { theTarget.innerHTML = price[i] + ' '; } string = 'theTarget = document.getElementById("desc");'; eval(string); if(theTarget != null) { theTarget.innerHTML = desc[i]; } string = 'theTarget = document.getElementById("cart");'; eval(string); if(theTarget != null) { theTarget.href = cart[i]; } if(i < path.length - 1) i++; else i = 0; if(setAuto == 1) { setTimeout("swapImage(0, 1)",5000); } } else { goAuto = 1; setTimeout("swapImage(0, 1)",5000); } } function toggleDiv(divid){ if(document.getElementById(divid).style.display == 'none'){ document.getElementById(divid).style.display = 'block'; }else{ document.getElementById(divid).style.display = 'none'; } }