BLANK_IMAGE="../aa-imgs/aa-spacer.gif";
//keywords
var code="code";var url="url";var sub="sub";
//styles
var color1 		= {"imagebg":"", "oimagebg":"", "bgON":"#DCD9D6","bgOVER":"#EAE8E7"};
var color2 		= {"imagebg":"", "oimagebg":"", "border":"#DCD9D6", "bgON":"#FFFFFF","bgOVER":"#EAE8E7"};
var color3 		= {"imagebg":"", "oimagebg":"", "bgON":"#DCD9D6","bgOVER":"#DCD9D6"};
var top1_css 	= {"imagebg":"", "oimagebg":"", "ON":"clsTop1On", "OVER":"clsTop1Over"};
var top2_css 	= {"imagebg":"", "oimagebg":"", "ON":"clsTop2On", "OVER":"clsTop2Over"};
var drp_css 	= {"imagebg":"", "oimagebg":"", "ON":"clsDrpOn", "OVER":"clsDrpOver"};
var div_css 	= {"imagebg":"", "oimagebg":"", "ON":"clsDivOn", "OVER":"clsDivOver"};

var STYLE 		= {"border":0, "shadow":0, "color":color1, "css":top1_css};
var STYLE1 		= {"border":0, "shadow":0, "color":color1, "css":top2_css};
var STYLE2 		= {"border":1, "shadow":0, "color":color2, "css":drp_css};
var STYLE3 		= {"border":0, "shadow":0, "color":color3, "css":div_css};


//items and formats
var MENU_ITEMS_CC =
[
	{"pos":"relative", "leveloff":[0,0]},

	{code:"shop online now",		"format":{image:"../aa-imgs/aa-asterisk-menu1.gif", oimage:"../aa-imgs/aa-asterisk-menu2.gif", imgsize:[20,22], "size":[20,145], "style":STYLE},
		sub:[
			{"itemoff":[20,0], "leveloff":[20,0], "style":STYLE2, "size":[21,145], image:"../aa-imgs/aa-spacer-wht.gif", oimage:"../aa-imgs/aa-arrow-menu.gif", imgsize:[20,20]},
			{code:"login", url:"#"},
			{code:"register now", url:"#"}]},

									{code:":", "format":{"itemoff":[0,145], "size":[20,5], "style":STYLE3}},
	{code:"browse the shop",					"format":{"itemoff":[0,5], "size":[20,130], "style":STYLE1},
		sub:[
			{"itemoff":[20,0], "leveloff":[20,0], "style":STYLE2, "size":[21,130], image:"../aa-imgs/aa-spacer-wht.gif", oimage:"../aa-imgs/aa-arrow-menu.gif", imgsize:[20,20]},
			{code:"Cancer Society", 	url:"#"},
			{code:"Barnardos", 			url:"#"},
			{code:"Heart Foundation",	url:"#"}]},
									{code:":",	"format":{"itemoff":[0,130], "size":[20,5],   "style":STYLE3}},
	{code:"about CharitiesChoice",	url:"#",	"format":{"itemoff":[0,5],   "size":[20,160], "style":STYLE1}},
									{code:":",	"format":{"itemoff":[0,160], "size":[20,5],   "style":STYLE3}},
	{code:"terms & conditions",		url:"#",	"format":{"itemoff":[0,5],   "size":[20,140], "style":STYLE1}},
									{code:":",	"format":{"itemoff":[0,140], "size":[20,5],   "style":STYLE3}},
	{code:"news",					url:"#",	"format":{"itemoff":[0,5],   "size":[20,65],  "style":STYLE1}},
									{code:":",	"format":{"itemoff":[0,65],  "size":[20,5],   "style":STYLE3}},
	{code:"contact us",				url:"#",	"format":{"itemoff":[0,5],   "size":[20,95],  "style":STYLE1}}
];
// Type the number of images you are rotating.
NumberOfImagesToRotate = 3;
// Specify the first and last part of the image tag. 
FirstPart = '<img src="../aa-imgs/inxpic0';
LastPart = '.jpg" height="247" width="591">';
function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}

var theImages = new Array() // do not change this



theImages[0] = '../aa-imgs/hdpic01.jpg'
theImages[1] = '../aa-imgs/hdpic02.jpg'
theImages[2] = '../aa-imgs/hdpic03.jpg'



var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(catID)
{
	if (catID==10 || catID==12 || catID==13 || catID==22 || catID==19 || catID==18 || catID==21 || catID==20 || catID==17 || catID==23 || catID==14)
	{
	theImages[0] = '../aa-imgs/hdps01.jpg'
	theImages[1] = '../aa-imgs/hdps02.jpg'
	theImages[2] = '../aa-imgs/hdps01.jpg'
	}
	else if (catID==1099)
	{
		
		theImages[0] = '../aa-imgs/hdpic-DaffDay.jpg'
		theImages[1] = '../aa-imgs/hdpic-DaffDay.jpg'
		theImages[2] = '../aa-imgs/hdpic-DaffDay.jpg'
	}
	else
	{
		if (catID==1100)
	{
		
		theImages[0] = '../aa-imgs/elements01.jpg'
		theImages[1] = '../aa-imgs/elements01.jpg'
		theImages[2] = '../aa-imgs/elements01.jpg'
	}
	
	}
	document.write('<table width="760" height="105" border="0" align="center" cellpadding="0" cellspacing="0" background="'+theImages[whichImage]+'">')
}
