﻿var aCrossSells = new Array()
var LastCS = 2
var increment = 3

function objCrossSell(imageURL, title, navURL) {
    this.imageURL=imageURL;
    this.title=title;
    this.navURL=navURL;
    this.place=CS_Place;
    }
    
    function CS_Place(index) {
        document.getElementById('cs' + index + '_url1').href = this.navURL;
        document.getElementById('cs' + index + '_url2').href = this.navURL;
        document.getElementById('cs' + index + '_img').src = this.imageURL;
        document.getElementById('cs' + index + '_title').innerHTML = this.title;
        }
    
function CS_Advance() {
    for (var i = 1; i <= increment; ++i) {
        if (LastCS+1 >= aCrossSells.length) {LastCS=-1};
		aCrossSells[LastCS+1].place(i)
		LastCS = LastCS + 1;
		}
    }
    
function menuHover(img,hover) {
    //if (hover) {document.getElementById(img).src = document.getElementById(img).src.replace('.gif','over.gif')}
        //else {document.getElementById(img).src = document.getElementById(img).src.replace('over.gif','.gif')}
    }