<!--

var newWin;

window.onunload=bye;


 if (document.all)
         var xMax = screen.width, yMax = screen.height;
     else
         if (document.layers)
             var xMax = window.outerWidth, yMax = window.outerHeight;
         else
             var xMax = 640, yMax=480;

     var xOffset = (xMax - 420)/2, yOffset = (yMax - 360)/2;


function winopen(msg){

	//if (newWin) newWin.close();
if (msg==1){
	newWin=window.open("/trip/day1/day1.html","WIN1","screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=636,height=501" );	
	}

	if (msg==2){
	newWin=window.open("/trip/day2/day2.html","WIN1","screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=636,height=501" );
	}
	if (msg==3){
	newWin=window.open("/trip/day3/day3.html","WIN1","screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=636,height=501" );	
	}
	if (msg==4){
	newWin=window.open("/trip/day4/day4.html","WIN1","screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=636,height=501" );	
	}
	if (msg==5){
	newWin=window.open("/trip/day5/day5.html","WIN1","screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=636,height=501" );
	}
	if (msg==6){
	newWin=window.open("/trip/nbc/nbc.html","WIN1","screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=250,height=250" );
	}

}

  
  
  function bye(){

if (newWin) newWin.close();
  }


  
//-->