if( ! Fse ) Fse = {}; if( ! Fse.Support ) Fse.Support = {}; Fse.Support.initialize = function() { Fse.Support.bringToFront(); Fse.Support.fitWindow( 800, 535 ); }; Fse.Support.bringToFront = function () { }; Fse.Support.fitWindow = function ( nWidth, nHeight ) { /* For Firefox */ var isFirefox = typeof InstallTrigger !== 'undefined'; if( isFirefox ) { if( window.innerWidth == nWidth && window.innerHeight == nHeight ) { /* do nothing */ } else { window.innerWidth = 800; window.innerHeight = 535; //window.location.reload(); } } /* For Chrome, IE and Safari */ var isChrome = !!window.chrome; var isIE = /*@cc_on!@*/false || document.documentMode; var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0; if( isChrome || isIE || isSafari ) { var fixedWidth = nWidth + ( window.outerWidth - window.innerWidth ); var fixedHeight = nHeight + ( window.outerHeight - window.innerHeight ); window.resizeTo( fixedWidth, fixedHeight ); } };