<!--
// This is the source for making Random Text
// The code written by HABEB NAKTAR .G for Microcredit
// Clasticon Solution PVT LTD.
//-->
function showContent(RID)
{
	var imageArray = new Array("dairy_","sweet_","tailoring_","handicraft_0","ran_");
	
	rid1 = parseInt(Math.random()*5); 
	rid2 = parseInt(Math.random()*5); 
	
	imageUrl1 = "images/" + imageArray[rid1];
	imageUrl2 = "images/" + imageArray[rid2];

//	alert(imageUrl);

	document.getElementById('imgArea1').src = imageUrl1 + "1.jpg";
	document.getElementById('imgArea2').src = imageUrl2 + "2.jpg";

}


function changefooter_image()
{
	var theImages = new Array("sanitary-napkins.gif","jasmine.gif","ropes.gif","butter.gif","floor-mats.gif","flowers.gif","hand-bags.gif","handheld-fans.gif","lemon-pickle.jpg","palmyra-baskets.gif","terracotta-figures.gif","terracotta-urns.gif","wedding-mats.gif","womens-purse.gif","wedding-murukkus.gif","cd-holders.jpg","drumstick.jpg","onions.jpg","palmyra-baskets1.gif","cotton-ropes.gif","ladysfinger.gif","schoolbags.gif","stone_sculptures.jpg");

	rid = parseInt(Math.random()*23); 

	if((theImages[rid] == "lemon-pickle.jpg") || (theImages[rid] == "terracotta-figures.gif") || (theImages[rid] == "terracotta-urns.gif") || (theImages[rid] == "floor-mats.gif") || (theImages[rid] == "sanitary-napkins.gif") || (theImages[rid] == "schoolbags.gif"))
	{
		linkurl = "rural_suppliers.html";
	}
	else if(theImages[rid] == "butter.gif")
	{
		linkurl = "dairy.html";
	}
	else if((theImages[rid] == "ropes.gif") || (theImages[rid] == "jasmine.gif") || (theImages[rid] == "flowers.gif") || (theImages[rid] == "drumstick.jpg") || (theImages[rid] == "onions.jpg") || (theImages[rid] == "ladysfinger.gif") || (theImages[rid] == "cotton-ropes.gif"))
	{
		linkurl = "agri_products.html";
	}
	else if(theImages[rid] == "wedding-murukkus.gif")
	{
		linkurl = "sweets_snacks.html";
	}
	else if((theImages[rid] == "handheld-fans.gif") || (theImages[rid] == "hand-bags.gif") || (theImages[rid] == "womens-purse.gif") || (theImages[rid] == "wedding-mats.gif") || (theImages[rid] == "palmyra-baskets.gif") || (theImages[rid] == "cd-holders.jpg") || (theImages[rid] == "palmyra-baskets1.gif") || (theImages[rid] == "stone_sculptures.jpg"))
	{
		linkurl = "handicraft.html";
	}
	else
	{
		linkurl = "contact.html";
	}

	imageUrl = "images/banners/" + theImages[rid];
	document.getElementById('footerimg').src = imageUrl;
	document.getElementById('fotterId').href = linkurl;

}

function changefooter_image1()
{
	var theImages = new Array("sanitary-napkins.gif","jasmine.gif","ropes.gif","butter.gif","floor-mats.gif","flowers.gif","hand-bags.gif","handheld-fans.gif","lemon-pickle.jpg","palmyra-baskets.gif","terracotta-figures.gif","terracotta-urns.gif","wedding-mats.gif","womens-purse.gif","wedding-murukkus.gif","cd-holders.jpg","drumstick.jpg","onions.jpg","palmyra-baskets1.gif","cotton-ropes.gif","ladysfinger.gif","schoolbags.gif","stone_sculptures.jpg");

	rid = parseInt(Math.random()*23); 

	if((theImages[rid] == "lemon-pickle.jpg") || (theImages[rid] == "terracotta-figures.gif") || (theImages[rid] == "terracotta-urns.gif") || (theImages[rid] == "floor-mats.gif") || (theImages[rid] == "sanitary-napkins.gif") || (theImages[rid] == "schoolbags.gif"))
	{
		linkurl = "rural_suppliers.html";
	}
	else if(theImages[rid] == "butter.gif")
	{
		linkurl = "dairy.html";
	}
	else if((theImages[rid] == "ropes.gif") || (theImages[rid] == "jasmine.gif") || (theImages[rid] == "flowers.gif") || (theImages[rid] == "drumstick.jpg") || (theImages[rid] == "onions.jpg") || (theImages[rid] == "ladysfinger.gif") || (theImages[rid] == "cotton-ropes.gif"))
	{
		linkurl = "agri_products.html";
	}
	else if(theImages[rid] == "wedding-murukkus.gif")
	{
		linkurl = "sweets_snacks.html";
	}
	else if((theImages[rid] == "handheld-fans.gif") || (theImages[rid] == "hand-bags.gif") || (theImages[rid] == "womens-purse.gif") || (theImages[rid] == "wedding-mats.gif") || (theImages[rid] == "palmyra-baskets.gif") || (theImages[rid] == "cd-holders.jpg") || (theImages[rid] == "palmyra-baskets1.gif") || (theImages[rid] == "stone_sculptures.jpg"))
	{
		linkurl = "handicraft.html";
	}
	else
	{
		linkurl = "contact.html";
	}

	imageUrl = "images/banners/" + theImages[rid];
	
	document.getElementById('footerimg1').src = imageUrl;
	document.getElementById('fotterId1').href = linkurl;


}

