// JS code by Andy Blau of JustAdequate Media - justadequate.net
// if you steal this code without crediting me, you just better hope that God gets to you first

if (top.location != location) top.location.href = location.href;

function newWindow(url){
    open(url,'example2','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=640,height=550')
}

function pixPopper(image_loc)
{
  HTML = "<html><style>body{margin:0px;}</style><body onLoad='top.focus()'><img src='"+ image_loc +"' border=0 name=loadedPic onLoad='window.resizeTo(document.loadedPic.width+10,document.loadedPic.height+20)'></body></html>";
  newPicWin = window.open('','_new','toolbar=no,scrollbars=no');
  newPicWin.document.open();
  newPicWin.document.write(HTML);
}

mydate = new Date();
yyear = mydate.getYear();
if(yyear<1000) yyear+=1900;

//Preload MouseOver images for navbar
if (document.images){
	var hgoldon=new Image();
	hgoldon.src="labels/harbourGoldX.gif";
	var hgoldoff=new Image();
	hgoldoff.src="labels/harbourGold.gif";
	var hgoldspigot=new Image();
	hgoldspigot.src="labels/harbourGoldS.jpg";
	var hlighton=new Image();
	hlighton.src="labels/harbourLightX.gif";
	var hlightoff=new Image();
	hlightoff.src="labels/harbourLight.gif";
	var hlightspigot=new Image();
	hlightspigot.src="labels/harbourLightS.jpg";
	var portsideon=new Image();
	portsideon.src="labels/portsideX.gif";
	var portsideoff=new Image();
	portsideoff.src="labels/portside.gif";
	var portsidespigot=new Image();
	portsidespigot.src="labels/portsideS.jpg";
	var paddyson=new Image();
	paddyson.src="labels/paddysX.gif";
	var paddysoff=new Image();
	paddysoff.src="labels/paddys.gif";
	var paddysspigot=new Image();
	paddysspigot.src="labels/paddysS.jpg";	
	var redhillon=new Image();
	redhillon.src="labels/redhillX.gif";
	var redhilloff=new Image();
	redhilloff.src="labels/redhill.gif";
	var redhillspigot=new Image();
	redhillspigot.src="labels/redhillS.jpg";
	var celticon=new Image();
	celticon.src="labels/celticX.gif";
	var celticoff=new Image();
	celticoff.src="labels/celtic.gif";
	var celticspigot=new Image();
	celticspigot.src="labels/celticS.jpg";
	var eloraESBon=new Image();
	eloraESBon.src="labels/eloraESBX.gif";
	var eloraESBoff=new Image();
	eloraESBoff.src="labels/eloraESB.gif";
	var eloraESBspigot=new Image();
	eloraESBspigot.src="labels/eloraESBS.jpg";
	var eloraLageron=new Image();
	eloraLageron.src="labels/eloraLagerX.gif";
	var eloraLageroff=new Image();
	eloraLageroff.src="labels/eloraLager.gif";
	var eloraLagerspigot=new Image();
	eloraLagerspigot.src="labels/eloraLagerS.jpg";
	var eloraIrishon=new Image();
	eloraIrishon.src="labels/eloraIrishX.gif";
	var eloraIrishoff=new Image();
	eloraIrishoff.src="labels/eloraIrish.gif";
	var eloraIrishspigot=new Image();
	eloraIrishspigot.src="labels/eloraIrishS.jpg";
	var downriggeron=new Image();
	downriggeron.src="labels/downriggerX.gif";
	var downriggeroff=new Image();
	downriggeroff.src="labels/downrigger.gif";
	var downriggerspigot=new Image();
	downriggerspigot.src="labels/downriggerS.jpg";
	var granaryon=new Image();
	granaryon.src="labels/granaryX.gif";
	var granaryoff=new Image();
	granaryoff.src="labels/granary.gif";
	var granaryspigot=new Image();
	granaryspigot.src="labels/granaryS.jpg";
	var belgianon=new Image();
	belgianon.src="labels/belgianX.gif";
	var belgianoff=new Image();
	belgianoff.src="labels/belgian.gif";
	var belgianspigot=new Image();
	belgianspigot.src="labels/belgianS.jpg";
	var raspberryon=new Image();
	raspberryon.src="labels/raspberryX.gif";
	var raspberryoff=new Image();
	raspberryoff.src="labels/raspberry.gif";
	var raspberryspigot=new Image();
	raspberryspigot.src="labels/raspberryS.jpg";
	var blueberryon=new Image();
	blueberryon.src="labels/blueberryX.gif";
	var blueberryoff=new Image();
	blueberryoff.src="labels/blueberry.gif";
	var blueberryspigot=new Image();
	blueberryspigot.src="labels/blueberryS.jpg";	
	var blackCurranton=new Image();
	blackCurranton.src="labels/blackCurrantX.gif";
	var blackCurrantoff=new Image();
	blackCurrantoff.src="labels/blackCurrant.gif";
	var blackCurrantspigot=new Image();
	blackCurrantspigot.src="labels/blackCurrantS.jpg";
	var tropicalon=new Image();
	tropicalon.src="labels/tropicalX.gif";
	var tropicaloff=new Image();
	tropicaloff.src="labels/tropical.gif";
	var tropicalspigot=new Image();
	tropicalspigot.src="labels/tropicalS.jpg";
	var citruson=new Image();
	citruson.src="labels/citrusX.gif";
	var citrusoff=new Image();
	citrusoff.src="labels/citrus.gif";
	var citrusspigot=new Image();
	citrusspigot.src="labels/citrusS.jpg";
	var wildberryon=new Image();
	wildberryon.src="labels/wildberryX.gif";
	var wildberryoff=new Image();
	wildberryoff.src="labels/wildberry.gif";
	var wildberryspigot=new Image();
	wildberryspigot.src="labels/wildberryS.jpg";
}

function hot(imgName){
	if (document.images)
	  document[imgName].src=eval(imgName+'on.src');
	  document.spigot.src=eval(imgName+'spigot.src');
	}
function cold(imgName){
	if (document.images)
	  document[imgName].src=eval(imgName+'off.src');
	  document.spigot.src="labels/trafalgarS.jpg";	
}



function animateBeer() {

var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i];
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write(' ID="beer_lager" WIDTH="700" HEIGHT="120" ALIGN="">');
	document.write(' <PARAM NAME=movie VALUE="beer_lager.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  ');
	document.write(' <EMBED src="beer_lager.swf" quality=high bgcolor=#FFFFFF  ');
	document.write(' swLiveConnect=FALSE WIDTH="700" HEIGHT="120" NAME="beer_lager" ALIGN=""');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
	document.write(' </EMBED>');
	document.write(' </OBJECT>');
} else{
	document.write('<IMG SRC="beer_lager.jpg" WIDTH="700" HEIGHT="120" usemap="#beer_lager" BORDER=0>');
}

}

