//

// --------------------- WINDOWS -------------------

//

// Open Windows

//

function open_aboutme() {

   window.open( '../common/aboutme.html', 'aboutme', 'scrollbars=no,resizable=no,width=710,height=510');

}



function open_copyright() {

   window.open( '../common/copyright.html', 'copyright', 'scrollbars=no,resizable=no,width=500,height=200');

}



function open_sound( url ) {

   window.open( url, 'sound', 'scrollbars=no,resizable=no,width=240,height=120');

}



function open_fix( url, name, param ) {

   window.open( url, name, 'scrollbars=no,resizable=no,' + param );

}



function open_fixloc( url, name, param, w, h, x, y ) {    // no "resizable" specified
   var p = null;
   if ( x < 0 ) {
      x = ( screen.availWidth - w ) / 2;
      if ( x < 0 ) x = 0;
   }
   if ( y < 0 ) {
      y = ( screen.availHeight - h ) / 2;
      if ( y < 0 ) y = 0;
   }
   p = 'toolbar=0,dependent=1,directories=0,location=0,menubar=0' + param +
       ',width='   + w + ',height='  + h +
       ',screenX=' + x + ',screenY=' + y + ',left=' + x + ',top=' + y;
   return( window.open( url, name, p ) );
}
//

function toggle_size( big, ws, hs, wb, hb ) {
   if ( big ) { var w=ws; var h=hs; big=0; }
   else       { var w=wb; var h=hb; big=1; }
   if ( document.all ) {           /* MSIE */
      w += 12; h += 31;
   }
   else if ( !document.layers ) {  /* not NN, resize not supported */
      w = wb + 12; h = hb + 31;
   }
   window.resizeTo(w,h);
   return( big );
}

