function recipepopup(ID)
	{
	newwindow=window.open('recipesprint.php?ID='+ID,'recipe','height=200,width=300');
	}
function csapopup()
	{
	newwindow=window.open('csaprint.php','csa','height=200,width=500');
	}
function enlarge(Image)
	{
	newwindow=window.open('imageopen.php?file='+Image,'name','height=400,width=500');
	if (window.focus) {newwindow.focus()}
	}
function PriceList(Type)
	{
	var Type;
	if (Type== 'Wholesale')
 		{
		alert ("Please contact us for Wholesale prices");
		window.location.href='contactus.php';
		}
	else
		{
		newwindow=window.open('imageopen.php?file='+Image,'name','height=400,width=500');
		if (window.focus) {newwindow.focus()}
		}
	}
function cktip(CatName,ProdName,Description)
	{
	newwindow=window.open('cookingtipsopen.php?CatName='+CatName+'&ProdName='+ProdName+'&Description='+Description,'cookingtips','height=200,width=500');
	if (window.focus) {newwindow.focus()}
	}

var ImgPath='images/';
var ImgAry=["homeimage1.jpg","homeimage2.jpg"];
var SRCAry=[]

for (var zxc0=0;zxc0<ImgAry.length;zxc0++)
	{
	SRCAry[zxc0]=new Image();
	SRCAry[zxc0].src=ImgPath+ImgAry[zxc0];
	}

var Cnt=0;

function startTime() 	
	{
	document.getElementById('img1').src=SRCAry[Cnt].src;
	timerID = setInterval('chgImage()', 5000) // change the image every 5 seconds
	}

function chgImage() 
	{
	Cnt=++Cnt%ImgAry.length; // this just cycles 0,1,2,3,4,5,0,1,2,3,4,5,0...............
	document.getElementById('img1').src=SRCAry[Cnt].src;
	}
function makeVis(divID) 
	{
	document.getElementById(divID).style.visibility = "visible";
	}


