<!--
//animation script
var timer = null
var i = 0
var j = 0

function animate() {
    clearTimeout(timer);
    timer = setTimeout("animate()", 3000);

    j++;
    if (j > noBlanks.length - 1){
            j = 1;
    }
    
	if (document.myPic) {
	    document.myPic.src = noBlanks[j].src;
	    document.myPic.width = noBlanks[j].width;
	    document.myPic.height = noBlanks[j].height;
	}
}

function coverLink() {
    if (j == 0) {
        x = 1;
    } else {
        x = j;
    }
    window.location = links[x];
}

var noBlanks = new Array();

noBlanks[1] = new Image();
noBlanks[1].src = "http://www.halleonard.com/item_gif/00700200.gif";
noBlanks[1].width = "135";
noBlanks[1].height = "180";

noBlanks[2] = new Image();
noBlanks[2].src = "http://www.halleonard.com/item_gif/00696047.gif";
noBlanks[2].width = "135";
noBlanks[2].height = "180";

noBlanks[3] = new Image();
noBlanks[3].src = "http://www.halleonard.com/item_gif/02501397.gif";
noBlanks[3].width = "135";
noBlanks[3].height = "180";

noBlanks[4] = new Image();
noBlanks[4].src = "http://www.halleonard.com/item_gif/00701246.gif";
noBlanks[4].width = "135";
noBlanks[4].height = "180";

noBlanks[5] = new Image();
noBlanks[5].src = "http://www.halleonard.com/item_gif/00700466.gif";
noBlanks[5].width = "135";
noBlanks[5].height = "180";

noBlanks[6] = new Image();
noBlanks[6].src = "http://www.halleonard.com/item_gif/00701058.gif";
noBlanks[6].width = "135";
noBlanks[6].height = "180";

noBlanks[7] = new Image();
noBlanks[7].src = "http://www.halleonard.com/item_gif/00332868.gif";
noBlanks[7].width = "135";
noBlanks[7].height = "180";

var links = new Array();

links[1] = "/product/viewproduct.do?itemid=700200";
links[2] = "/product/viewproduct.do?itemid=696047";
links[3] = "/product/viewproduct.do?itemid=2501397"; 
links[4] = "/product/viewproduct.do?itemid=701246"; 
links[5] = "/product/viewproduct.do?itemid=700466"; 
links[6] = "/product/viewproduct.do?itemid=701058"; 
links[7] = "/product/viewproduct.do?itemid=332868"; 

/*

<body ONLOAD="animate();">

<a href="JavaScript:coverLink()">
<img src="http://www.guitarinstructor.com/images/blankCoverImage.jpg" name="myPic">
</a>

*/


