home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 March / Chip_2011.03_CD.iso / Tools / modules / resize.js < prev    next >
Encoding:
Text File  |  2010-12-14  |  383 b   |  14 lines

  1. // On change size of the window
  2. try {
  3.     self.resizeTo(width,height - 25);
  4.     self.moveTo((screen.width / 2) - (width / 2), (screen.height / 2) - (height / 2));
  5.     if (screen.width==640){
  6.         self.moveTo(0,0);
  7.         window.attachEvent('onload',function(){tooglePanel();});
  8.     }
  9. }
  10. catch(err) { }
  11.  
  12. // Change title window
  13. document.title = document.title + " " + version + " " + verType;
  14.