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

//Top Product One Variables
var stiTitleOne = 'Home Computers';
var stiLinkOne = '/shop/products--catId_1001323__catCrumbIds_1000006-1001610.html';
var stiImageOne = 'http://img2.shoptoit.ca/images/clip/55947000/55947179.jpg';

//Top Product Two Variables
var stiTitleTwo = 'Dishwashers';
var stiLinkTwo = '/shop/products--catId_1001310__catCrumbIds_1001199-1000009.html';
var stiImageTwo = 'http://img2.shoptoit.ca/images/clip/66290000/66290845.jpg';

//Top Product Three Variables
var stiTitleThree = 'Bedding';
var stiLinkThree = '/shop/products--catId_1001211__catCrumbIds_1001199-1001200.html';
var stiImageThree = 'http://img2.shoptoit.ca/images/clip/31330000/31330985.jpg';

//Top Product Four Variables
var stiTitleFour = 'Window Coverings';
var stiLinkFour = '/shop/products--catId_1001223__catCrumbIds_1001199-1001204.html';
var stiImageFour = 'http://img2.shoptoit.ca/images/clip/64041000/64041958.jpg';

//Top Product Five Variables
var stiTitleFive = 'Fashion Jewellery';
var stiLinkFive = '/shop/products--catId_1003131__catCrumbIds_1000003.html';
var stiImageFive = 'http://img2.shoptoit.ca/images/clip/51701000/51701987.jpg';

//Top Product Six Variables
var stiTitleSix = 'Maternity Wear';
var stiLinkSix = '/shop/products--catId_1002074__catCrumbIds_1000002.html';
var stiImageSix = 'http://img2.shoptoit.ca/images/clip/69479000/69479307.jpg';

//Top Product Seven Variables
var stiTitleSeven = 'Baby Shower Gifts';
var stiLinkSeven = '/library/baby-shower-gift-ideas/1097';
var stiImageSeven = 'http://img2.shoptoit.ca/ss/media/55607000/55607289.jpg';

//Top Product Eight Variables
var stiTitleEight = 'Back to School';
var stiLinkEight = '/shop/category--catId_1002091__catCrumbIds_1002005.html';
var stiImageEight = 'http://img2.shoptoit.ca/images/clip/43200000/43200648.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]);
		}
}