// There should really be five images in rotation for this to work properly.

var banners = new Array(
	'/client/client_images/indexpage/rotator/7975.jpg',					
	'/client/client_images/indexpage/rotator/8309.jpg',
	'/client/client_images/indexpage/rotator/7982.jpg',
	'/client/client_images/indexpage/rotator/7692.jpg',
	'/client/client_images/indexpage/rotator/8088.jpg');
var linx = new Array(
	'/productdetails.cfm?SKU=7975',				 
	'/productdetails.cfm?SKU=8309',
	'/productdetails.cfm?SKU=7982',
	'/productdetails.cfm?SKU=7692',
	'/productdetails.cfm?SKU=8088');
var mydesc = new Array(
	'<a href="javascript:sendpage()" class="title">Exploring Anatomy and Physiology in the Laboratory</a><br><span class="authorBold"> by Erin C. Amerman</span><br> Exploring Anatomy &amp; Physiology Laboratory (EAPL) by Erin C. Amerman is a comprehensive manual appropriate for two-semester A&amp;P courses. This beautifully illustrated and affordably priced lab manual uses an innovative approach to engage your students and help ensure a deeper understanding of A&amp;P.',				   
	'<a href="javascript:sendpage()" class="title">Microbiology: Laboratory Theory and Application, Third Edition</a><br><span class="authorBold"> by Michael J. Leboffe, Burton E. Pierce</span><br> This full-color laboratory manual is designed for major and non-major students taking an introductory level microbiology lab course. Whether your course caters to pre-health professional students, microbiology majors or pre-med students, everything they need for a thorough introduction to the subject of microbiology is right here.',
	'<a href="javascript:sendpage()" class="title">Exploring Zoology: A Laboratory Guide</a><br> Exploring Zoology: A Laboratory Guide is designed to provide a comprehensive, hands-on introduction to the field of zoology. This full-color manual provides a diverse series of observational and investigative exercises, delving into the anatomy, behavior, physiology, and ecology of the major invertebrate and vertebrate lineages.',
	'<a href="javascript:sendpage()" class="title">Case Mysteries in Pathophysiology with Answers to Student Questions</a><br><span class="authorBold"> by Patricia J. Neafsey</span><br> Case Mysteries in Pathophysiology is intended for health science students eager to use their knowledge of anatomy, physiology, and pathophysiology in clinical applications. This book offers opportunities to apply critical thinking skills to case studies.',
	'<a href="javascript:sendpage()" class="title">An Illustrated Atlas of the Skeletal Muscles</a><br><span class="authorBold"> by Bradley S. Bowden and Joan  M. Bowden</span><br> An Illustrated Atlas of the Skeletal Muscles is designed as a functional reference, supplement, and study guide for students and health professionals with a broad diversity of interests in the normal structure and function of skeletal-muscular systems.');
var old = -1;
var current = -1;
function fresh()
{
	if (!document.images) return
	while (current == old)
	{
		if (current < (banners.length - 1)) {
			current = current + 1;
		} else {
			current = 0;
		}
		// current = Math.floor(Math.random()*banners.length);
	}
	old = current;
	document.images['banner'].src = banners[current];
	MM_changeProp('dyHomeText','','innerHTML',mydesc[current],'DIV')
	setTimeout('fresh()',8000);
}

function sendpage()
{
	location.href = linx[current];
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}