// JavaScript Document


<!--//--><![CDATA[//><!--

popWindow=null;
function openStoryIdeas(url,width,height) {
  windowName="fish_neave_popup";
  agent=navigator.appVersion;
  version=parseInt(agent);
  if (version>=4) {
    leftCorner=screen.width/2 - width/2;
    topCorner=screen.height/2 - height/2;
  }else{
    leftCorner=20;
    topCorner=20;
  }
  features=",screenX="+leftCorner+",screenY="+topCorner+",left="+leftCorner+",top="+topCorner;
  features=features+",toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=530,height=580";
  if (popWindow==null) {
    popWindow=open(url,windowName, "width="+width+",height="+height+ features);
    if (version<3) 
      setTimeout("popWindow.mama=window",250);
  }else{
    if (version<3) {
      popWindow.close();
      popWindow=null;
      setTimeout("openStoryIdeas('"+url+"',"+width+","+height+")", 250);
      setTimeout("popWindow.mama=window",500);
    }else if (!popWindow.closed){
      popWindow.close();
      popWindow=null;
      setTimeout("openStoryIdeas('"+url+"',"+width+","+height+")", 250);
    }else{
      popWindow=null;
      popWindow=open(url,windowName, "width="+width+",height="+height+features);
    }
  }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//--><!]]>
