/*openSmallerWindow*/
//This function opens a page in a smaller window with set positioning.
//Specify page's URL when calling function.


function openSmallerInternal(url) {
OpenWin = this.open(url, "InternalWindow", "left=25,top=100,height=550,width=600,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=55,height=500,width=650,toolbar=no,menubar=no,location=yes,scrollbars=yes,resizable=yes");
OpenWin.focus();
}

function openSmallerDemo(url) {
OpenWin = this.open(url, "demo", "left=50,top=55,height=600,width=760,toolbar=yes,menubar=yes,location=no,scrollbars=yes,resizable=yes");
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);
