// JS code by JustAdequate Media - justadequate.net

if (top.location != location) top.location.href = location.href;

mydate = new Date();
yyear = mydate.getYear();
if(yyear<1000) yyear+=1900;

function newWindow(url,wide,high) {
    open(url, 'GLMF', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width='+wide+',height='+high)
}


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=yes');
  newPicWin.document.open();
  newPicWin.document.write(HTML);
}


function galPop(image_loc, title, credit) {

	HTML = "<html><head><title>Great Lakes Medieval Faire Photo Contest Gallery</title><link rel=stylesheet type='text/css' href='glmf2006.css'><style type='text/css'>body { background: url('clipart/background.jpg'); }</style></head><body marginwidth=0 leftmargin=0 marginheight=10 topmargin=10><center><font class='pagetit'>"+ title +"</font><P><img src='"+ image_loc +"' border=1 name=loadedPic onLoad='window.resizeTo(document.loadedPic.width+40,document.loadedPic.height+210)'><br><div style='font-size: 80%; text-align: right; font-style: italic; margin: 3px 5px 25px 0px;'><b>Credit:&nbsp; &nbsp;"+ credit +"&nbsp; &nbsp;</b></div><span class='fnba' style='font-size: 70%;'>[ <a href='javascript:self.close()'>Close Window</a> ]</span></center></body></html>";

newPicWin = window.open('','_blank','toolbar=no,scrollbars=no');
newPicWin.document.open();
newPicWin.document.write(HTML);
}
