mydate = new Date();
yyear = mydate.getYear();
if(yyear<1000) yyear+=1900;

function newWindow(url){
    open(url,'example2','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=750,height=550')
}

// JS code by Andy Blau of JustAdequate Media - justadequate.net
function pixPopper(image_loc)
{
  HTML = "<html><style>body{margin:0px;}</style><body onLoad='top.focus()' onRefresh='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);
}


var galPixAr = new Array ("gallery/pix/faire1.jpg","gallery/pix/faire2.jpg","gallery/pix/faire3.jpg","gallery/pix/faire4.jpg","gallery/pix/faire5.jpg","gallery/pix/faire6.jpg","gallery/pix/faire7.jpg","gallery/pix/faire8.jpg","gallery/pix/faire9.jpg","gallery/pix/faire10.jpg","gallery/pix/faire11.jpg","gallery/pix/faire12.jpg","gallery/pix/faire13.jpg","gallery/pix/faire14.jpg","gallery/pix/faire15.jpg","gallery/pix/faire16.jpg","gallery/pix/faire17.jpg","gallery/pix/studio1.jpg","gallery/pix/studio2.jpg","gallery/pix/studio3.jpg","gallery/pix/studio4.jpg","gallery/pix/studio5.jpg","gallery/pix/studio6.jpg","gallery/pix/xmas1.jpg","gallery/pix/xmas2.jpg","gallery/pix/xmas3.jpg","gallery/pix/xmas4.jpg","gallery/pix/xmas5.jpg","gallery/pix/xmas6.jpg","gallery/pix/xmas7.jpg","gallery/pix/xmas8.jpg","gallery/pix/xmas9.jpg","gallery/pix/xmas10.jpg","gallery/pix/xmas11.jpg","gallery/pix/xmas12.jpg","gallery/pix/xmas13.jpg","gallery/pix/xmas14.jpg","gallery/pix/xmas15.jpg","gallery/pix/xmas16.jpg","gallery/pix/xmas17.jpg","gallery/pix/xmas18.jpg","gallery/pix/xmas19.jpg","gallery/pix/xmas20.jpg","gallery/pix/xmas21.jpg","gallery/pix/xmas22.jpg","gallery/pix/xmas23.jpg","gallery/pix/xmas24.jpg","gallery/pix/xmas25.jpg","gallery/pix/xmas26.jpg","gallery/pix/xmas27.jpg","gallery/pix/xmas28.jpg","gallery/pix/xmas29.jpg","gallery/pix/xmas30.jpg","gallery/pix/xmas31.jpg","gallery/pix/xmas32.jpg","gallery/pix/xmas33.jpg","gallery/pix/blueMarley.jpg","gallery/pix/redScroogeBed.jpg","gallery/pix/brianKnee.jpg","gallery/pix/brianFrame.jpg","gallery/pix/sootGrime.jpg","gallery/pix/dedBob.jpg","gallery/pix/groupSing.jpg","gallery/pix/crowd.jpg","gallery/pix/cuteGirls.jpg","gallery/pix/santaElf.jpg","gallery/pix/sootBrianGrime.jpg","gallery/pix/scrooge.jpg","gallery/pix/opswash1.jpg","gallery/pix/opswash2.jpg","gallery/pix/opswash3.jpg","gallery/pix/opswash4.jpg","gallery/pix/opswash5.jpg","gallery/pix/opswash6.jpg","gallery/pix/opswash7.jpg","gallery/pix/opswash8.jpg","gallery/pix/opswash9.jpg","gallery/pix/opswash10.jpg","gallery/pix/opswash11.jpg","gallery/pix/opswash12.jpg","gallery/pix/opswash13.jpg","gallery/pix/croaker1.jpg","gallery/pix/croaker2.jpg","gallery/pix/croaker3.jpg","gallery/pix/croaker4.jpg");

// JS code by Andy Blau of JustAdequate Media - justadequate.net
function galPop(image_loc)
{
	pic_num = 0
	while (image_loc != galPixAr[pic_num])
	{ pic_num++ }

	if ( pic_num == 0)
	{ prevlink = "" }
	else
	{
	prev_num = pic_num - 1
	prevlink = "[ <b><a href='javascript:galPop(&#39;"+ galPixAr[prev_num] +"&#39;)'>Previous</a></b> ]|"
	}

	if ( pic_num == galPixAr.length - 1)
	{ nextlink = "" }
	else
	{
	next_num = pic_num + 1
	nextlink = "|[ <b><a href='javascript:galPop(&#39;"+ galPixAr[next_num] +"&#39;)'>Next</a></b> ]"
	} 

	HTML = "<html><head><title>Hack and Slash Gallery Photo</title><style>body{margin:0px;}</style><script language='javascript' src='copydate.js'></script></head><body onLoad='top.focus()'><img src='"+ image_loc +"' border=0 name=loadedPic onLoad='window.resizeTo(document.loadedPic.width+10,document.loadedPic.height+85)' style='margin-bottom: 10px;'><br><center>"+ prevlink +"[ <a href='javascript:self.close()'>Close this Window</a> ]"+ nextlink +"</center></body></html>";

newPicWin = window.open('','_new','toolbar=no,scrollbars=no');
newPicWin.document.open();
newPicWin.document.write(HTML);
}


