<!--
if (document.images)
{
Image1on= new Image(25,25); 
Image1on.src="/textbooks/images/0415314178/book_1_square.gif"; 
Image1off= new Image(25,25); 
Image1off.src="/textbooks/images/generic/grey_square.gif";

Image2on= new Image(25,25); 
Image2on.src="/textbooks/images/0415314178/book_2_square.gif"; 
Image2off= new Image(25,25); 
Image2off.src="/textbooks/images/generic/grey_square.gif";

Image3on= new Image(25,25); 
Image3on.src="/textbooks/images/0415314178/book_3_square.gif"; 
Image3off= new Image(25,25); 
Image3off.src="/textbooks/images/generic/grey_square.gif";

Image4on= new Image(25,25); 
Image4on.src="/textbooks/images/0415314178/book_4_square.gif"; 
Image4off= new Image(25,25); 
Image4off.src="/textbooks/images/generic/grey_square.gif";

Image5on= new Image(25,25); 
Image5on.src="/textbooks/images/0415314178/book_5_square.gif"; 
Image5off= new Image(25,25); 
Image5off.src="/textbooks/images/generic/grey_square.gif";

Image6on= new Image(25,25); 
Image6on.src="/textbooks/images/0415314178/book_6_square.gif"; 
Image6off= new Image(25,25); 
Image6off.src="/textbooks/images/generic/grey_square.gif";
}


function swapImg(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function returnImg(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }

//-->


function catalogueLink(ISBN)
{
catWin = window.open('/shopping_cart/products/product_detail.asp?sku=&isbn='+ISBN+'&pc=', 'catWin', 'width=650,height=400,resizable=yes,toolbar=no,scrollbars=yes,left=0,top=0')
catWin.focus()
}

adImages = new Array("/textbooks/images/0415314178/advert_1.gif","/textbooks/images/0415314178/advert_2.gif")
adURL = new Array("javascript:catalogueLink('041531416X')","/textbooks/0415314178/inspection.asp")
thisAd = 0
imgCt = adImages.length


function rotate() {
if (document.images) {
if (document.adBanner.complete){
thisAd++
if (thisAd == imgCt) {
thisAd = 0
}

document.adBanner.src=adImages[thisAd]
}

setTimeout("rotate()", 10 * 1000)
}
}

function newLocation() {

document.location.href = adURL[thisAd]
}
