function openWindow(url, name) {
  var l = openWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = openWindow.arguments[i];
    if ( (parseInt(param) == 0) ||
      (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
       h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popupWin = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
  }


// home scrolling

function Lvl_targetIframe(f,i,u){ //v1.0 4LevelWebs
 var b=(!f)?i:f+".frames['"+i+"']",o=(eval("opener&&opener.parent."+b))?"opener.":'';
 var el=eval(o+"parent."+b);el.location=u;document.MM_returnValue=false;
}
var iF_timer=null;
function stopScroll(){
clearTimeout(iF_timer)}
function Lvl_iFrameScroller(f,i,t,d,a){ //v1.0 4LevelWebs
  var r="frames['"+i+"']",ie=document.all,y,c=(f&&!i)?f:(f&&i)?r:i;
 var b=(!f)?r:f+"."+r,o=(eval("opener&&opener.parent."+b))?"opener.":'';
 var v=(f&&i)?y=o+"parent."+f+"."+c:y=o+"parent."+r;
  var e=(a==1)?'scrollLeft':'scrollTop',n =(a==1)?'pageXOffset':'pageYOffset';
   var x=(a==1)?'p,0':(a==2)?'10000,0':(a==3)?'0,10000':'0,p',s=(d==0)?(ie)?t:t+.9:(ie)?-t:-(t-.9);
    var p=(document.all)?eval(y+".document.body."+e+"")+s:eval(y+"."+n+"")+s;
     var m =eval(y+".window.scrollTo("+x+")");
  iF_timer=setTimeout("Lvl_iFrameScroller('"+f+"','"+i+"',"+t+","+d+","+a+")",1)
}

// topnav rollovers
function timeline1() {if (document.images) document.n1.src= '/wnet/americannovel/images/topnav_on_01.gif';}
function timeline0() {if (document.images) document.n1.src= '/wnet/americannovel/images/topnav_off_01.gif';}

function ideas1() {if (document.images) document.n2.src= '/wnet/americannovel/images/topnav_on_02.gif';}
function ideas0() {if (document.images) document.n2.src= '/wnet/americannovel/images/topnav_off_02.gif';}

function favorite1() {if (document.images) document.n3.src= '/wnet/americannovel/images/topnav_on_03.gif';}
function favorite0() {if (document.images) document.n3.src= '/wnet/americannovel/images/topnav_off_03.gif';}

function elements1() {if (document.images) document.n4.src= '/wnet/americannovel/images/topnav_on_04.gif';}
function elements0() {if (document.images) document.n4.src= '/wnet/americannovel/images/topnav_off_04.gif';}

function topnovel1() {if (document.images) document.n5.src= '/wnet/americannovel/images/topnav_on_05.gif';}
function topnovel0() {if (document.images) document.n5.src= '/wnet/americannovel/images/topnav_off_05.gif';}

function about1() {if (document.images) document.n6.src= '/wnet/americannovel/images/topnav_on_06.gif';}
function about0() {if (document.images) document.n6.src= '/wnet/americannovel/images/topnav_off_06.gif';}


 // drop down menu
function gotosite(site) {            
        if (site != "") {                    
                self.location=site; 
        }
}    



//dhtml
function SymAn1() {HideContent('question'); HideContent('intro'); ShowContent('right'); ShowContent('anwser');}
function SymAn0() {ReverseContentDisplay('question'); HideContent('intro'); ShowContent('wrong');  ShowContent('anwser');}

function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseContentDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}