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

//Top Product One Variables
var stiTitleOne = 'La Senza';
var stiLinkOne = '/shop/storeWithinAStore--locale_en__av_1008493%253AIntimates__merchantId_1000028__.html';
var stiImageOne = '/ss/media/53292000/53292045.jpg';

//Top Product Two Variables
var stiTitleTwo = 'Luggage';
var stiLinkTwo = '/shop/products--catId_1002022__locale_en__catCrumbIds_1002463__page_1.html';
var stiImageTwo = '/ss/media/36316000/36316709.jpg';

//Top Product Three Variables
var stiTitleThree = 'Blu-Ray Players';
var stiLinkThree = '/shop/products--catId_1001092__lstSel_search__nkw_blu-ray__x_0__y_0__locale_en.html';
var stiImageThree = '/ss/media/35634000/35634828.jpg';

//Top Product Four Variables
var stiTitleFour = 'Valentine\'s Day';
var stiLinkFour = '/shop/category--catId_1002311__locale_en__catCrumbIds_1002005.html';
var stiImageFour = '/ss/media/18176000/18176914.jpg';

//Top Product Five Variables
var stiTitleFive = 'Photo Printers';
var stiLinkFive = '/shop/products--catId_1000159__refinedTerm_photo__sortBy_6__itemsPerPage_30__locale_en__page_1.html';
var stiImageFive = '/ss/media/22734000/22734999.jpg';

//Top Product Six Variables
var stiTitleSix = 'Biotherm Products';
var stiLinkSix = '/shop/productSearch--catId_1000001__gps_2__sortBy_0__page_1__locale_en__term_biotherm.html';
var stiImageSix = '/ss/media/26328000/26328937.jpg';

//Top Product Seven Variables
var stiTitleSeven = 'Men\'s Watches';
var stiLinkSeven = '/shop/products--catId_1000046__locale_en__catCrumbIds_1002005-1002311-1003006__sortBy_5__page_1.html';
var stiImageSeven = '/ss/media/29165000/29165470.jpg';

//Top Product Eight Variables
var stiTitleEight = 'Wine Glasses';
var stiLinkEight = '/shop/products--catId_1003007__locale_en__catCrumbIds_1002005-1002311-1003005__sortBy_5__page_1.html';
var stiImageEight = '/ss/media/19604000/19604773.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]);
		}
}