/*2011_08_19_05:13:07*/
var g7 = false;var mclsPlayerSettings = new Settings(320,240,100,100,0,0);function Size(p,p1){this.Width = p;this.Height = p1;}function Settings(p,p1,p2,p3,p4,p5){this.VideoSize = new Point2D(p,p1);this.WindowPosition = new Point2D(p2,p3);this.ControlPanelHeightOffset = p4;this.CustomControlsHeightOffset = p5;}function m1c(){window.document.body.bottomMargin = 0;window.document.body.topMargin = 0;window.document.body.leftMargin = 0;window.document.body.rightMargin = 0;window.document.body.style.overflow = "hidden";window.document.documentElement.style.overflow = "hidden";}function playerWindow_OnLoadEventHandler(p){m1c();window.status = mstrStatus;g7 = m1g();if (g7){m1h();m1l();m1n(mclsPlayerSettings.WindowPosition.X,mclsPlayerSettings.WindowPosition.Y,false);}}function playerWindow_OnUnloadEventHandler(p){m1i();}function m1f(){var v = null;var v1 = null;if (window.screenX != null){v = window.screenX;v1 = window.screenY;}else{v = window.screenLeft;v1 = window.screenTop;}var v2 = new Point2D(v, v1);return v2;}function m1g(){var v = null;m1n(0, 0, true);var v1 = m1f();var v2 = -1;var v3 = -1;if (v1.X <= 0){v2 = -v2;}if (v1.Y <= 0){v3 = -v3;}m1n(v2, v3, true);var v4 = m1f();m1n(-v2, -v3, true);if (v1.X + v2 != v4.X &&v1.Y + v3 != v4.Y){v = false;}else{v = true;}return v;}function m1h(){var v = CookieGet("WindowPositionX");var v1 = CookieGet("WindowPositionY");if (v != null){mclsPlayerSettings.WindowPosition.X = parseInt(v);}if (v1 != null){mclsPlayerSettings.WindowPosition.Y = parseInt(v1);}}function m1i(p){var v1 = m1f();CookieAdd("WindowPositionX", v1.X, p);CookieAdd("WindowPositionY", v1.Y, p);}function m1j(p){var v1 = new Point2D(0, 0);var v2 = m1f();if (v2.X < 0){v1.X = v2.X;}else{var v3 = window.screen.availWidth - v2.X;var v4 = p.Width - v3;if (v4 < 0){v4 = 0;}v1.X = v4;}if (v2.Y < 0){v1.Y = v2.Y;}else{var v5 = window.screen.availHeight - v2.Y;var v6 = p.Height - v5;if (v6 < 0){v6 = 0;}v1.Y = v6;}return v1;}function m1k(p, p1){var v2 = new Size(p.Width,p.Height);var v3 = m1f();var v4 = window.screen.availWidth - (v3.X);var v5 = window.screen.availHeight - (v3.Y);if (p1.X != 0){v2.Width = v4;}if (p1.Y != 0){v2.Height = v5;}m1m(v2.Width, v2.Height);}function m1l(p){var v1 = mclsPlayerSettings.VideoSize;var v2 = new Size(v1.X,v1.Y + mclsPlayerSettings.ControlPanelHeightOffset);var v3 = window.document.documentElement.clientWidth;var v4 = window.document.documentElement.clientHeight;if (v3 != v2.Width ||v4 != v2.Height){var v5;if (p == null){v5 = v2;}else{var v6 = v2.Width - v3;var v7 = v2.Height - v4;v5 = p;v5.Width += v6;v5.Height += v7;}var v8 = m1j(v5);if (v8.X != 0 ||v8.Y != 0){var v9 = m1f();m1n(-v8.X, -v8.Y, true);var va = m1f();var vb = new Point2D(v9.X - va.X,v9.Y - va.Y);if (vb.X == 0 &&vb.Y == 0){return;}var vc = new Point2D(v9.X - v8.X - va.X,v9.Y - v8.Y - va.Y);if (vc.X != 0 ||vc.Y != 0){m1k(v5, vc);return;}}m1m(v5.Width, v5.Height);var vd = function (){var ve = window.document.documentElement.clientWidth;var vf = window.document.documentElement.clientHeight;if (v3 != ve ||vf != vf){m1l(v5);}};window.setTimeout(vd,100);}}function m1m(p, p1){window.resizeTo(p, p1);}function m1n(p, p1, p2){if (p2){window.moveBy(p, p1);}else{window.moveTo(p, p1);}}
