/*openSmallerWindow*/
//This function opens a page in a smaller window with set positioning.
//Specify page's URL when calling function.

function openSmallerWindow(url) {
	OpenWin = window.open('','CtrlWindow','left=0,top=25,width=600,height=500,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes');
	OpenWin.document.write('<html><head><title>Outside URL</title>');
	OpenWin.document.write('<link rel="stylesheet" type="text/css" media="all" href="../styles/base.css" />');
	OpenWin.document.write('</head><body><p><b>You are leaving PHSchool.com to go to another Web site that might have material for adults as well as children.</b><br /><br />By providing links to other sites, Pearson Education does not guarantee, approve, or endorse the information or products available at these sites, nor does a link indicate any association with or endorsement by the linked site to Pearson Education. The linked site has its own and possibly different legal terms and policies, including privacy policies. You should read the terms and policies of that Web site before supplying information to that site or otherwise using the site.<br /><br />Because we do not control linked Web sites, we are not responsible or liable for the content, products, policies, or performance of such external Web sites. If you want to go, click Continue. Otherwise, click Cancel.<br /><br />Remember: Always check with your parents before you give information online and never give out your full name, phone number or address, or other personal information on the Internet because that information is yours and it is private.</p>');
	OpenWin.document.write('<p><a href="javascript:document.location.href=\''+url+'\'">Continue</a> &nbsp;&nbsp;&nbsp;&nbsp;');
	OpenWin.document.write('<a href="javascript:self.close()">Cancel</a></p>');
	OpenWin.document.write('</body></html>');
	OpenWin.document.close();
	OpenWin.focus();
}

function openSpanChar(url) {
OpenWin = this.open(url, "Spanish_Characters_Tool", "left=25,top=25,width=275,height=150,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
OpenWin.focus();
}

function openSmallerMP3(url) {
OpenWin = this.open(url, "MP3Window", "left=0,top=0,width=350,height=150,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,statusbar=no");
OpenWin.focus();
}

function openSmallerPDF(url) {
OpenWin = this.open(url, "PDFWindow", "left=0,top=0,width=400,height=400,toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes,statusbar=no");
OpenWin.focus();
}

function formselect(object) {
gotosite = object.options[object.selectedIndex].value;
OpenWin = this.open(gotosite, "Pearson", "left=25,top=25,width=600,height=500,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
OpenWin.focus();
}

function openSmallerVB(url) {
OpenWin = this.open(url, "Vocabulary Builder", "left=25,top=25,width=620,height=430,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,statusbar=yes");
OpenWin.focus();
}

function openSmallerVideo(url) {
OpenWin = this.open(url, "Video", "left=25,top=25,width=640,height=520,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
OpenWin.focus();
}

function openSmallerSnapshots(url) {
OpenWin = this.open(url, "SnapshotsWindow", "left=25,top=25,width=640,height=585,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
OpenWin.focus();
}

function openSmallerInternal(url) {
OpenWin = this.open(url, "InternalWindow", "left=25,top=25,width=650,height=500,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,statusbar=yes");
OpenWin.focus();
}

function openSmallerPlanetDiary(url) {
OpenWin = this.open(url, "PlanetDiary", "left=50,top=50,width=665,height=500,toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=yes");
OpenWin.focus();
}

function openTechTipsWindow(url) {
OpenWin = this.open(url, "InternalWindow", "left=0,top=25,width=676,height=450,toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes");
OpenWin.focus();
}

function openSmallerActiveArt(url) {
OpenWin = this.open(url, "ActiveArt", "left=25,top=25,width=700,height=500,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,statusbar=yes");
OpenWin.focus();
}

function openSmallerEcceRomani(url) {
OpenWin = this.open(url, "EcceRomaniWindow", "left=25,top=25,width=720,height=520,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
OpenWin.focus();
}

function openSmallerReal(url) {
OpenWin = this.open(url, "RealidadesWindow", "left=25,top=25,width=720,height=556,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
OpenWin.focus();
}

function openSmallerWP(url) {
OpenWin = this.open(url, "WritingPrompts", "left=0,top=0,width=725,height=475,toolbar=yes,menubar=no,location=no,scrollbars=yes,resizable=yes,statusbar=yes");
OpenWin.focus();
}

function openSmallerEventsSWF(url) {
OpenWin = this.open(url, "EventsWindow", "left=25,top=25,width=740,height=520,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
OpenWin.focus();
}

function openSmallerWHPuzzle(url) {
OpenWin = this.open(url, "Puzzle", "left=25,top=25,width=750,height=600,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,statusbar=yes");
OpenWin.focus();
}

function openSmallerMapSWF(url) {
OpenWin = this.open(url, "MapWindow", "left=25,top=25,width=780,height=480,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
OpenWin.focus();
}

function openSmallerAcad123(url) {
OpenWin = this.open(url, "HomeworkHelp", "left=25,top=25,width=800,height=575,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes,statusbar=yes");
OpenWin.focus();
}

function openSmallerCASS(url) {
OpenWin = this.open(url, "CASSWindow", "left=25,top=25,width=800,height=615,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,statusbar=yes");
OpenWin.focus();
}

function openSmallerRegister(url) {
OpenWin = this.open(url, "RegisterWindow", "left=0,top=0,width=850,height=500,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes");
OpenWin.focus();
}

function openSmallerKISI(url) {
OpenWin = this.open(url, "KnowItShowIt", "left=0,top=0,width=1000,height=600,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,statusbar=no");
OpenWin.focus();
}

function openSmallerCAP(url) {
OpenWin = this.open(url, "CAPWindow", "left=0,top=0,width=1000,height=700,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,statusbar=no");
OpenWin.focus();
}

function openSmallerInternalAds(url) {
	OpenWin = window.open('','InternalAds','left=0,top=75,width=500,height=550,toolbar=yes,menubar=yes,location=yes,scrollbars=yes,resizable=yes');
	OpenWin.document.write('<html><head><title>Outside URL</title>');
	OpenWin.document.write('<link rel="stylesheet" type="text/css" media="all" href="../styles/base.css" />');
	OpenWin.document.write('</head><body><p><b>You are leaving PHSchool.com to go to another Pearson Web site.</b><br /><br />The linked site has its own terms and policies, including privacy policies and terms of use. You should read the terms and policies of that site before supplying information to that site or otherwise using the site.<br /><br />If you want to go, click "Continue." Otherwise, click "Cancel."<br /><br />Students, remember: Always check with your parents before you give information online. Never give out your full name, phone number or address, or other personal information on the internet because that information is yours, and it is private.</p>');
	OpenWin.document.write('<p><a href="javascript:document.location.href=\''+url+'\'">Continue</a> &nbsp;&nbsp;&nbsp;&nbsp;');
	OpenWin.document.write('<a href="javascript:self.close()">Cancel</a></p>');
	OpenWin.document.write('</body></html>');
	OpenWin.document.close();
	OpenWin.focus();
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

