var mainImg = new Array(4);
for (var i = 0; i < 4; ++i)
{
	mainImg[i] = new Image;
}
mainImg[0].src = 'images/tomato-raisins.jpg';
mainImg[1].src = 'images/tomato-raisins.jpg';
mainImg[2].src = 'images/tomato-raisins.jpg';
mainImg[3].src = 'images/tomato-raisins.jpg';

var mainTxt = new Array(4);
mainTxt [2] = "<p class=bodytext style=\"margin-top:-10px;color:#000000;font-size:13px;\">	\n<b>Tomato Raisins - Healthy Advantages:</b></p>\n<p class=bodytext style=\"margin-top:-10px;\">\n<ul>\n<li>Low fat\n<li>Low Sodium\n<li>Rich in nutritional fibers\n<li>Rich in iron, calcium and zinc \n<li>Rich in anti-oxidants\n<li>Include 20 times more lycopene than a regular tomato\n<li>Include Beta-Carotene, Provitamin  A, as found in carrot \n<li>100 gr. of raisin tomatoes contains 75% of the daily recommended intake of Vitamin E for an adult \n</ul>\n</p>\n<p class=bodytext>\n<b>A portion of 10 tomato raisins (approx. 20gr):</b> \n<ul>\n<li>Represents a fruit portion\n<li>Contains only 50 calories\n<li>Contains less than 0.5 g of fats\n<li>Contains 2.5 g of fibers, which are 10% of the recommended daily intake \n<li>Contains 1/3 of Lycopene daily recommended intake\n<li>Contains 1 gram of iron per serving \n<li>Is naturally low in sodium (salt)\n</ul>\n</p>\n<p class=bodytext>\n<b>Nutritional Value per 100gr:</b>\n<ul>\n<li>Energy (calories)		254\n<li>Protein (g)			10.4\n<li>Carbohydrates (g)		49.4\n<li>Fats (g) 		                  1.7       		\n<li>Dietary fiber (g)		11.8\n<li>Sodium (mg)          		60.0\n<li>Iron (mg)                            	  5.0\n<li>Calcium (mg)               	                             72.0\n<li>Beta Carotene	(mg)      	  7.3\n</ul>\n</p>\n<p class=bodytext>\n		<img src=\"images/tomato-raisins3.jpg\" alt=\"Tomato Raisins>\n<br>\n";
mainTxt [0] = "<p class=bodytext style=\"margin-top:-10px;color:#000000;font-size:13px;\">\n\n<b>A revolutionary new Israeli patent! 100% natural!</b></p>\n<p class=bodytext style=\"margin-top:-10px;\">\nTomaisins are self-dehydrated cherry tomatoes, dried as a whole, while keeping all nutritional advantages remain locked inside,\n preserving better quality, flavor and aroma. \n<br><br>\n<b>The patent for this unique product is owned by the Volcanic-Center, Israeli Agricultural Research Organization.  </b>\n<br><br>\n<b>How does it work?</b>\n<br><br>\nThe patent is based on a new type, non GMO,  of cherry tomato, which contains the C.W.P. (Cuticle Water Permeability) gene. \nOnce tomatoes reach maturity, numerous micro fissures are created on the tomato skin, enabling self release of its water content, \nwhile keeping the natural sugar content and aromatic flavors locked inside.\n<br><br>\nThis advanced, innovative process offers a tastier, cleaner and more attractive alternative to sun-dried and oven-dried tomatoes. \n<br><br>\nAmazing Tomaisins are 100% natural – without any preservatives or additives.  \n<br><br>\n\n		<img src=\"images/tomato-raisins3.jpg\" alt=\"Tomato Raisins\">\n<br><br>\n<br><br>\n <br>\n\n<br>\n\n	</p>\n";
mainTxt [1] = "<p class=bodytext style=\"margin-top:-10px;color:#000000;font-size:13px;\">	\n<b>Tomato Raisins – Unique Advantages:</b></p>\n<p class=bodytext style=\"margin-top:-10px;\">\n<ul>\n<li>Real nutritional advantages\n<li>A “good looking”, clean product\n<li>Exceptional natural sweetness\n<li>Richer flavor and special aroma\n<li>Soft and fine texture similar to a raisin, easy to chew\n<li>Deep red color\n<li>No preserving additives\n<li>Amazing tomaisins have unique aroma that 'captures\" your mouth\n</ul>\n		<p class=bodytext style=\"margin-top:-10px;\">\n		<img src=\"images/tomato-raisins3.jpg\" alt=\"Tomato Raisins\">\n<br><br>\n<br>\n	</p>";
mainTxt [3] = "<p class=bodytext style=\"margin-top:-10px;\">\n		<p class=bodytext style=\"margin-top:-10px;color:#000000;font-size:13px;\">\n<b>Amazing Tomaisins – Special Usages </b></p>\n<p class=bodytext style=\"margin-top:-10px;\">\n\n\nTomato Raisins (Tomaisins™) add great flavor and aroma to omelets, salads, cheeses, fish dishes, soups and breads.<br> They also add special color and taste to pasta and antipasti. <br>\nFurthermore, use them as an appetizer or as a natural healthy snack.<br><br>\n	</p>\n";

var header = new Array(4);
header [0] = "&nbsp;&nbsp;Tomato Raisins -<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whole dried cherry tomatoes";
header [1] = "&nbsp;&nbsp;Tomato Raisins -<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whole dried cherry tomatoes";
header [2] = "&nbsp;&nbsp;Tomato Raisins -<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whole dried cherry tomatoes";
header [3] = "&nbsp;&nbsp;Tomato Raisins -<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Whole dried cherry tomatoes";

function change (id, total)
{
	var mainImgLoc = new Image;
	mainImgLoc = document.getElementById ("mainImg");
	mainImgLoc.src = mainImg[id].src;

	var mainTxtLoc = document.getElementById ("mainTxt");
	document.getElementById ("mainTxt").innerHTML = mainTxt[id];
	
	var links;
	for (var i = 0; i < total; ++i)
	{
		links = document.getElementById ("links" + i);
		links.style.fontWeight = "normal";
		links.style.color = "#ffffff";
	}

	links = document.getElementById ("links" + id);
	links.style.fontWeight = "bold";
	//links.style.color = "#343233";
	
	/*var headerLoc = document.getElementById ("header");
	headerLoc.innerHTML = header[id];
	if (id > 0)
	{
		headerLoc.style.fontSize = "32px";
		headerLoc.style.fontWeight = "normal";
	}
	else
	{
		headerLoc.style.fontSize = "20px";
		headerLoc.style.fontWeight = "bold";
	}*/
}
