function openEmail(){
	popUpWindow("email.htm","popup",0,0,560,360,"no","no");
}

function openSynopsis(){
	//popUpWindow("synopsis.htm","popup",0,0,640,480,"yes","yes");
	openPDF( "pdfs/Synopsis.pdf");
}

function openCurriculum(){
	//popUpWindow("curriculum.htm","popup",0,0,640,480,"yes","yes");
	openPDF( "pdfs/CurrLinks.pdf");
}
function openStudyGuide(type){
	var ext = (type==1)?"doc":"pdf";
	openPDF( "pdfs/RobotsStudyGuide." + ext);
}

function openPDF(file){
	open(file,"document");
}

function openTrailer(num){
	//var popUpWin=0;
	var url;
	var wi;
	var he;
	
	switch(num){
		case 1:
			//var url="http://www.apple.com/trailers/fox/robots/international/small.html";
			url="trailer_small.htm";
			wi=480;
			he=360;
			break;
		case 2:
			//var url="http://www.apple.com/trailers/fox/robots/international/medium.html";
			url="trailer_medium.htm";
			wi=640;
			he=480;
			break;
		case 3:
			//var url="http://www.apple.com/trailers/fox/robots/international/large.html";
			url="trailer_large.htm";
			wi=800;
			he=600;
			break;
	}
	
	popUpWindow(url,"trailer",0,0,wi,he,"no","no");
	
}

var popUpWin=0;
function popUpWindow(URLStr, winName, left, top, width, height, scrollbars, resizable){
  if(popUpWin)  {
    if(!popUpWin.closed) popUpWin.close();
  }
  //scrollbar=2;
  left = (screen.width-width)/2;
  top = (screen.height-height)/2;
  
 // scrollbar="";
  var features="toolbar=no,location=no,directories=no,status=no";
  features += ",scrollbars=" + scrollbars;
  features += ",resizable=" + resizable;
  features += ",copyhistory=yes"
  features += ",width=" + width + ",height=" + height
  features += ",left=" + left + ", top=" + top + ",screenX=" + left + ",screenY=" + top 
  popUpWin = open(URLStr, winName, features);
  
	popUpWin.focus();
}
