// JavaScript Document


// Begin Arcadiy Advanced Pop-Up Script
// To use this script, include the following sample code inside of the <A HREF=""> tag:
// javascript:openNewWindow('http://www.arcadiy.com/',760,500,'yes','yes','yes','yes','yes','yes');
// 
// The following settings can be configured in this order:
// 1) URL
// 2) Window Width (pixels)
// 3) Window Height (pixels)
// 4) Toolbar Visible (yes / no)
// 5) Location Bar Visible (yes / no)
// 6) Bottom Status Bar Visible (yes / no)
// 7) Menubar Visible (yes / no)
// 8) Scrollbars (yes / no)
// 9) Window Resizable (yes / no)
//
// ENJOY!

popWindow=null;
function openNewWindow(url,width,height,toolbar,location,status,menubar,scrollbars,resizable) {
  windowName="new_popup";
  leftCorner=screen.width/2 - width/2;
  topCorner=screen.height/2 - height/2;
  features=",screenX="+leftCorner+",screenY="+topCorner+",left="+leftCorner+",top="+topCorner;
  features=features+",toolbar="+toolbar+",location="+location+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable;
  //features=",toolbar="+toolbar+",location="+location+",status="+status+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable;
  
  if ((navigator.appVersion.indexOf('Win') != -1) && (navigator.appName == "Microsoft Internet Explorer")) {
     
     if (popWindow==null) {
        popWindow=open(url,'', "width="+width+",height="+height+ features);        
        popWindow.focus();
        }
     else {
        popWindow.close();
        popWindow=null;
        popWindow=open(url,'', "width="+width+",height="+height+features);
        popWindow.focus();        
    }
  }
  else {    
    popWindow=window.open(url,windowName, "width="+width+",height="+height+ features);
    popWindow.focus();
  }
}