// Rollovers - Preload images into the array & set the functions

var imageURL = new Array("images/home-2.gif","images/home.gif","images/about-us-2.gif","images/about-us.gif","images/gallery-2.gif","images/gallery.gif","images/prices-2.gif","images/prices.gif","images/flavours-2.gif","images/flavours.gif","images/contact-us-2.gif","images/contact-us.gif");

var imageRoll = new Array();
for (i=0;i<imageURL.length;i++) {imageRoll[i] = new Image();imageRoll[i].src = imageURL[i];}

function rollon(xid, rollover) { if (rollover == "yes") {document[xid].src = eval("imageRoll[" + xid*2 + "].src");} }
function rolloff(xid, rollover) { if (rollover == "yes") {document[xid].src = eval("imageRoll[" + (xid*2+1) + "].src");} }


// Show/Hide DIV layers

function showDIV(nameDIV,fileName) {
document.getElementById(nameDIV).style.visibility = "visible";
}

function hideDIV(nameDIV) {
document.getElementById(nameDIV).style.visibility = "hidden";
}


// Gallery Flash System

function showDIVgallery(noPics) {
document.getElementById('gallery').style.visibility = "visible";
document.getElementById('galleryContent').innerHTML = "<iframe src =\"gallery-loader.asp?noPics="+noPics+"\" width=\"569\" height=\"320\" scrolling=\"no\" border=\"0\"></iframe>";
}

function gallery(noPics) {
var strString = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width=569 height=320><param name=movie value="gallery/gallery.swf?noPics='+noPics+'"><param name=quality value=high><param name="wmode" value="transparent"><embed src="gallery/gallery.swf?noPics='+noPics+'" quality=high wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width=569 height=320></embed></object>';
document.write (strString);
}