
function pic_open(i,m,w,h) {
w=parseInt(w);
h=parseInt(h);
w=w+20;
h=30+h;
 s=0;
 st='"javascript:function click(){if(event.button==2){ alert('+'\'Eric Adventures All rights reserved ©'+'\')}}document.onmousedown=click;"'

 m+=' - Eric Adventures Picture Gallery';
 p1=screen.availHeight/2-h/2;
 p2=screen.availWidth/2-w/2;
  if(w>screen.availWidth-50)
   {w=screen.availWidth-50
   s=1}
  if(h>screen.availHeight-50){h=screen.availHeight-50;s=1;};
  o='toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=no,scrollbars='+s+',width='+w+',height='+h+''
  if(s<1){o+=' ,top='+p1+',left='+p2+''};
  wd=window.open('','Picture',o);
  wd.document.write('<html><head><title>'+m+'</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload='+st+' ><table border=\'3\' cellpadding=\'0\' cellspacing=\'0\' style=\'border-collapse: collapse\' width=\'100%\' height=\'100%\' bordercolorlight=\'#000080\' bordercolordark=\'#000080\'><tr><td width=\'100%\' align=\'center\' bgcolor=\'#29406C\'> <a href=\'javascript:close()\'> <img border=\'0\' <img src=\''+i+'\' galleryimg=\'no\' onmouseover=javascript:close() alt=\'Press To Close\' ><p style=\'margin-top: 0; margin-bottom: 0\'> <b><font face=\'Arial\' color=\'#FFFFFF\' size=\'2\'>'+m+'</font></b></td></tr></table></body></html>');
  wd.document.close();wd.focus();
}

function swf_open(i,m,w,h) {
w=parseInt(w);
h=parseInt(h);
wt=w;
ht=h;
w=w+20;
h=30+h;
 s=0;
 st='"javascript:function click(){if(event.button==2){ alert('+'\'Eric Adventures All rights reserved ©'+'\')}}document.onmousedown=click;"'

 m+=' - Eric Adventures Map Gallery';
 p1=screen.availHeight/2-h/2;
 p2=screen.availWidth/2-w/2;
  if(w>screen.availWidth-50)
   {w=screen.availWidth-50
   s=1}
  if(h>screen.availHeight-50){h=screen.availHeight-50;s=1;};
  o='toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=no,scrollbars='+s+',width='+w+',height='+h+''
  if(s<1){o+=' ,top='+p1+',left='+p2+''};
  wd=window.open('','Picture',o);
  wd.document.write('<html><head><title>'+m+'</title></head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload='+st+' ><table border=\'3\' cellpadding=\'0\' cellspacing=\'0\' style=\'border-collapse: collapse\' width=\'100%\' height=\'100%\' bordercolorlight=\'#000080\' bordercolordark=\'#000080\'><tr><td width=\'100%\' align=\'center\' bgcolor=\'#29406C\'> <a href=\'javascript:close()\'> <object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\' width=\''+wt+'\' height=\''+ht+'\'><param name=\'movie\' value=\''+i+'\'><param name=\'quality\' value=\'high\'><embed src=\''+i+'\' quality=\'high\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\' type=\'application/x-shockwave-flash\' width=\''+wt+'\' height=\''+ht+'\'></embed></object><p style=\'margin-top: 0; margin-bottom: 0\'> <b><font face=\'Arial\' color=\'#FFFFFF\' size=\'2\'>'+m+'</font></b></td></tr></table></body></html>');
  wd.document.close();wd.focus();

}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
