function PreLoader(ImageName,ImageHolder)
{
  PreLoader1 = new Image();
  PreLoader1.src = "images/aaboutus.gif";
  PreLoader2 = new Image();
  PreLoader2.src = "images/amainmenu.gif";
  PreLoader3 = new Image();
  PreLoader3.src = "images/aspecial.gif";
  PreLoader4 = new Image();
  PreLoader4.src = "images/acoupon.gif";
  PreLoader5 = new Image();
  PreLoader5.src = "images/acontactus.gif";
}

function ChangeImage(ImageName,ImageHolder)
{
  eval("document." + ImageHolder + ".src= 'images/" + ImageName + "'");
}

function Zoom(ImageWidth, ImageHeight)
{
  Map.width = ImageWidth;
  Map.height = ImageHeight;
}

function ShowCoupon()
{
  window.open("coupon_print.htm", "_blank", "toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, width=500 height=200");
}

function PrintCoupon()
{
  window.print();
}

function writeList()
{	
	var listWhat = eval(writeList.arguments[0]);
	var spicy = false;
	
	//alert(listWhat[0][2]);
	for(var i=0; i<listWhat.length; i++)
	{
		if (listWhat[i][2].indexOf('*')>-1)
		{	spicy = true;
		}
		document.writeln("<tr><td class=tablerowHeader>"+listWhat[i][0]+"</td><td class=tablerow>"+listWhat[i][1]+"</td><td class=tablerowHilite nowrap>"+listWhat[i][2]+"</td></tr>");
	}
	if (spicy)
	{	document.writeln("<tr><th colspan=3 class=tablerowHilite>* Piquant</th></tr>");
	}
}

function writeCategory()
{
	for (var i=0;i<category.length; i++)
	{
	  var matchPtr = category[i][0].indexOf(writeCategory.arguments[0]);

		document.writeln("<li type=");
		if (matchPtr >-1)
		{ document.writeln("radius");
		}
		else
		{ document.writeln("circle");
		}
		document.writeln("><a href="+category[i][0]+" class=");

		if (matchPtr>-1)
		{ document.writeln("buttons");
		}
		else
		{ document.writeln("buttonEffect");
		}
		document.writeln(">"+category[i][1]+"</a></li>");
	}
}

function writeTitle()
{
	for (var i=0;i<category.length; i++)
	{
		if (category[i][0].indexOf(writeTitle.arguments[0])>-1)
		{ document.writeln(category[i][1]);
		  i = category.length;
		}
	}
}