//Top Products=================//

//Top Product One Variables
var stiTitleOne = 'Wii';
var stiLinkOne = '/shop/products--catId_1001311__refinedTerm_wii__sortBy_5__itemsPerPage_30__locale_fr__catCrumbIds_1000007-1001311__page_1.html';
var stiImageOne = 'http://img1.shoptoit.ca/ss/media/25175000/25175618.jpg';

//Top Product Two Variables
var stiTitleTwo = 'Parfums';
var stiLinkTwo = '/shop/products--catId_1000051__catCrumbIds_1000001-1000055-1000051__sortBy_5__locale_fr__itemsPerPage_30__page_2.html';
var stiImageTwo = 'http://img1.shoptoit.ca/ss/media/21940000/21940794.jpg';

//Top Product Three Variables
var stiTitleThree = 'Bijoux';
var stiLinkThree = '/shop/category--catId_1003142__locale_fr__catCrumbIds_1000003.html';
var stiImageThree = 'http://img1.shoptoit.ca/ss/media/54543000/54543158.jpg';

//Top Product Four Variables
var stiTitleFour = 'MaternitŽ';
var stiLinkFour = '/shop/category--catId_1002074__locale_fr__catCrumbIds_1000002.html';
var stiImageFour = 'http://img1.shoptoit.ca/ss/media/49665000/49665043.jpg';

//Top Product Five Variables
var stiTitleFive = 'Sports';
var stiLinkFive = '/shop/category--catId_1001251__locale_fr.html';
var stiImageFive = 'http://img1.shoptoit.ca/ss/media/15768000/15768370.jpg';

//Top Product Six Variables
var stiTitleSix = 'Mode vacances';
var stiLinkSix = '/bibliotheque/quoi-porter-en-croisiere/617';
var stiImageSix = 'http://img1.shoptoit.ca/ss/media/51821000/51821672.jpg';

//Top Product Seven Variables
var stiTitleSeven = 'Chandelles et accessoires';
var stiLinkSeven = '/shop/products--catId_1002328__locale_fr__catCrumbIds_1001199-1001204__sortBy_5__page_1.html';
var stiImageSeven = 'http://img1.shoptoit.ca/ss/media/53787000/53787147.jpg';

//Top Product Eight Variables
var stiTitleEight = 'Bottes de pluie pour enfants';
var stiLinkEight = '/shop/products--catId_1002547__locale_fr__catCrumbIds_1000002-1002546__sortBy_5__page_1.html';
var stiImageEight = 'http://img1.shoptoit.ca/ss/media/1566000/1566527.jpg';


//An Array that contains the code for each top product
var stiProducts = new Array()
stiProducts[0] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="'+stiLinkOne+'"><img src="' + stiImageOne + '" alt="Hot Product 1"></a></span><a href="'+stiLinkOne+'">'+stiTitleOne+'</a></span>'

stiProducts[1] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="'+stiLinkTwo+'"><img src="' + stiImageTwo + '" alt="Hot Product 2"></a></span><a href="'+stiLinkTwo+'">'+stiTitleTwo+'</a></span>'

stiProducts[2] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="'+stiLinkThree+'"><img src="' + stiImageThree + '" alt="Hot Product 3"></a></span><a href="'+stiLinkThree+'">'+stiTitleThree+'</a></span>'

stiProducts[3] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="'+stiLinkFour+'"><img src="' + stiImageFour + '" alt="Hot Product 4"></a></span><a href="'+stiLinkFour+'">'+stiTitleFour+'</a></span>'

stiProducts[4] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="'+stiLinkFive+'"><img src="' + stiImageFive + '" alt="Hot Product 5"></a></span><a href="'+stiLinkFive+'">'+stiTitleFive+'</a></span>'

stiProducts[5] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="'+stiLinkSix+'"><img src="' + stiImageSix + '" alt="Hot Product 6"></a></span><a href="'+stiLinkSix+'">'+stiTitleSix+'</a></span>'

stiProducts[6] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="'+stiLinkSeven+'"><img src="' + stiImageSeven + '" alt="Hot Product 7"></a></span><a href="'+stiLinkSeven+'">'+stiTitleSeven+'</a></span>'

stiProducts[7] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="'+stiLinkEight+'"><img src="' + stiImageEight + '" alt="Hot Product 8"></a></span><a href="'+stiLinkEight+'">'+stiTitleEight+'</a></span>';



//An Array that contains the code for each top product within an Ajax Carousel
var stiProductsCarousel = new Array()
stiProductsCarousel[0] = '<li><span class="HotProductWrapper"><a href="'+stiLinkOne+'"><img src="' + stiImageOne + '" alt="Hot Product 1"></a></span><a href="'+stiLinkOne+'">'+stiTitleOne+'</a></li>'

stiProductsCarousel[1] = '<li><span class="HotProductWrapper"><a href="'+stiLinkTwo+'"><img src="' + stiImageTwo + '" alt="Hot Product 2"></a></span><a href="'+stiLinkTwo+'">'+stiTitleTwo+'</a></li>'

stiProductsCarousel[2] = '<li><span class="HotProductWrapper"><a href="'+stiLinkThree+'"><img src="' + stiImageThree + '" alt="Hot Product 3"></a></span><a href="'+stiLinkThree+'">'+stiTitleThree+'</a></li>'

stiProductsCarousel[3] = '<li><span class="HotProductWrapper"><a href="'+stiLinkFour+'"><img src="' + stiImageFour + '" alt="Hot Product 4"></a></span><a href="'+stiLinkFour+'">'+stiTitleFour+'</a></li>'

stiProductsCarousel[4] = '<li><span class="HotProductWrapper"><a href="'+stiLinkFive+'"><img src="' + stiImageFive + '" alt="Hot Product 5"></a></span><a href="'+stiLinkFive+'">'+stiTitleFive+'</a></li>'

stiProductsCarousel[5] = '<li><span class="HotProductWrapper"><a href="'+stiLinkSix+'"><img src="' + stiImageSix + '" alt="Hot Product 6"></a></span><a href="'+stiLinkSix+'">'+stiTitleSix+'</a></li>'

stiProductsCarousel[6] = '<li><span class="HotProductWrapper"><a href="'+stiLinkSeven+'"><img src="' + stiImageSeven + '" alt="Hot Product 7"></a></span><a href="'+stiLinkSeven+'">'+stiTitleSeven+'</a></li>'

stiProductsCarousel[7] = '<li><span class="HotProductWrapper"><a href="'+stiLinkEight+'"><img src="' + stiImageEight + '" alt="Hot Product 8"></a></span><a href="'+stiLinkEight+'">'+stiTitleEight+'</a></li>';


//An Array that contains the code for each top product for AOL
var stiProductsAOL = new Array()
stiProductsAOL[0] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://shop2.aol.ca'+stiLinkOne+'"><img src="http://shop2.aol.ca' + stiImageOne + '" alt="Hot Product 1"></a></span><a href="http://shop2.aol.ca'+stiLinkOne+'">'+stiTitleOne+'</a></span>'

stiProductsAOL[1] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://shop2.aol.ca'+stiLinkTwo+'"><img src="http://shop2.aol.ca' + stiImageTwo + '" alt="Hot Product 2"></a></span><a href="http://shop2.aol.ca'+stiLinkTwo+'">'+stiTitleTwo+'</a></span>'

stiProductsAOL[2] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://shop2.aol.ca'+stiLinkThree+'"><img src="http://shop2.aol.ca' + stiImageThree + '" alt="Hot Product 3"></a></span><a href="http://shop2.aol.ca'+stiLinkThree+'">'+stiTitleThree+'</a></span>'

stiProductsAOL[3] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://shop2.aol.ca'+stiLinkFour+'"><img src="http://shop2.aol.ca' + stiImageFour + '" alt="Hot Product 4"></a></span><a href="http://shop2.aol.ca'+stiLinkFour+'">'+stiTitleFour+'</a></span>'

stiProductsAOL[4] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://shop2.aol.ca'+stiLinkFive+'"><img src="http://shop2.aol.ca' + stiImageFive + '" alt="Hot Product 5"></a></span><a href="http://shop2.aol.ca'+stiLinkFive+'">'+stiTitleFive+'</a></span>'

stiProductsAOL[5] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://shop2.aol.ca'+stiLinkSix+'"><img src="http://shop2.aol.ca' + stiImageSix + '" alt="Hot Product 6"></a></span><a href="http://shop2.aol.ca'+stiLinkSix+'">'+stiTitleSix+'</a></span>'

stiProductsAOL[6] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://shop2.aol.ca'+stiLinkSeven+'"><img src="http://shop2.aol.ca' + stiImageSeven + '" alt="Hot Product 7"></a></span><a href="http://shop2.aol.ca'+stiLinkSeven+'">'+stiTitleSeven+'</a></span>'

stiProductsAOL[7] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://shop2.aol.ca'+stiLinkEight+'"><img src="http://shop2.aol.ca' + stiImageEight + '" alt="Hot Product 8"></a></span><a href="http://shop2.aol.ca'+stiLinkEight+'">'+stiTitleEight+'</a></span>';


//An Array that contains the code for each top product for AOL
var stiProductsDirect = new Array()
stiProductsDirect[0] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://www.shoptoit.ca'+stiLinkOne+'"><img src="http://shop2.aol.ca' + stiImageOne + '" alt="Hot Product 1"></a></span><a href="'+stiLinkOne+'">'+stiTitleOne+'</a></span>'

stiProductsDirect[1] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://www.shoptoit.ca'+stiLinkTwo+'"><img src="http://shop2.aol.ca' + stiImageTwo + '" alt="Hot Product 2"></a></span><a href="'+stiLinkTwo+'">'+stiTitleTwo+'</a></span>'

stiProductsDirect[2] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://www.shoptoit.ca'+stiLinkThree+'"><img src="http://shop2.aol.ca' + stiImageThree + '" alt="Hot Product 3"></a></span><a href="'+stiLinkThree+'">'+stiTitleThree+'</a></span>'

stiProductsDirect[3] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://www.shoptoit.ca'+stiLinkFour+'"><img src="http://shop2.aol.ca' + stiImageFour + '" alt="Hot Product 4"></a></span><a href="'+stiLinkFour+'">'+stiTitleFour+'</a></span>'

stiProductsDirect[4] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://www.shoptoit.ca'+stiLinkFive+'"><img src="http://shop2.aol.ca' + stiImageFive + '" alt="Hot Product 5"></a></span><a href="'+stiLinkFive+'">'+stiTitleFive+'</a></span>'

stiProductsDirect[5] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://www.shoptoit.ca'+stiLinkSix+'"><img src="http://shop2.aol.ca' + stiImageSix + '" alt="Hot Product 6"></a></span><a href="'+stiLinkSix+'">'+stiTitleSix+'</a></span>'

stiProductsDirect[6] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://www.shoptoit.ca'+stiLinkSeven+'"><img src="http://shop2.aol.ca' + stiImageSeven + '" alt="Hot Product 7"></a></span><a href="'+stiLinkSeven+'">'+stiTitleSeven+'</a></span>'

stiProductsDirect[7] = '<span class="HotProduct"><span class="HotProductWrapper"><a href="http://www.shoptoit.ca'+stiLinkEight+'"><img src="http://shop2.aol.ca' + stiImageEight + '" alt="Hot Product 8"></a></span><a href="'+stiLinkEight+'">'+stiTitleEight+'</a></span>';


//Function to write the top products depending on the number defined
function stiWriteProducts(n) {
		for (i=0;i<n;i++) {
			document.write(stiProducts[i]);
		}
}

//Function to write the top products depending on the number defined
function stiWriteProductsCarousel(n) {
		for (i=0;i<n;i++) {
			document.write(stiProductsCarousel[i]);
		}
}

//Function to write the top products depending on the number defined
function stiWriteProductsTelus(n) {
		for (i=0;i<n;i++) {
			document.write(stiProductsTelus[i]);
		}
}

//Function to write the top products depending on the number defined
function stiWriteProductsAOL(n) {
		for (i=0;i<n;i++) {
			document.write(stiProductsAOL[i]);
		}
}


//Function for Shaw
function stiWriteProductsDirect(n) {
		for (i=0;i<n;i++) {
			document.write(stiProductsDirect[i]);
		}
}