class cmenu extends mx.core.UIComponent { var removeSubDelay, invalidate, __get___removeSubDelay, __searchFieldWidth, __get__searchFieldWidth, __searchBGColor, __get__searchFieldColor, __searchTColor, __get__searchTextColor, _mainSoundURL, __get__mainSoundURL, _subSoundURL, __get__subSoundURL, _clickSoundURL, __get__clickSoundURL, __mainHighlightColor, __get___mainHighlightColor, __subHighlightColor, __get___subHighlightColor, __subHlTransparency, __get___subHlTransparency, minSubWidth, __get___minSubWidth, __butWidthExt, __get___mainButWidthExt, bgPicURL, __get__bg_Pic_URL, xml_path, __get__xml_Path, __mainFont, __get___mainFont, __subFont, __get___subFont, __mainFontSize, __get___mainFontSize, __mainButSize, __get___mainButtonHeight, __subFontSize, __get___subFontSize, __subButH, __get___subButtonHeight, __subMenC, __get___subMenuColor, __c, __get___menuColor, __textColor2, __get___mainButtonTextColor, __sTextColor, __get___subButtonTextColor, __autosizeTo, __get__stretch_width_to, __showSearch, __get__showSearchField, M1, M2, total, src, attachMovie, lastMainButton, my1_sound, my2_sound, my3_sound, backGround_mc, createEmptyMovieClip, bgPic_mc, zz, _parent, _visible, stageWidth, __set___mainButWidthExt, __set___mainButtonHeight, __set___mainButtonTextColor, __set___mainFont, __set___mainFontSize, __set___mainHighlightColor, __set___menuColor, __set___minSubWidth, __set___removeSubDelay, __set___subButtonHeight, __set___subButtonTextColor, __set___subFont, __set___subFontSize, __set___subHighlightColor, __set___subHlTransparency, __set___subMenuColor, __set__bg_Pic_URL, __set__clickSoundURL, __set__mainSoundURL, __set__searchFieldColor, __set__searchFieldWidth, __set__searchTextColor, __set__showSearchField, __set__stretch_width_to, __set__subSoundURL, __set__xml_Path; function cmenu() { super(); } // End of the function function set _removeSubDelay(param) { removeSubDelay = param; this.invalidate(); //return (this._removeSubDelay()); null; } // End of the function function get _removeSubDelay() { return (removeSubDelay); } // End of the function function set searchFieldWidth(param) { __searchFieldWidth = param; this.invalidate(); //return (this.searchFieldWidth()); null; } // End of the function function get searchFieldWidth() { return (__searchFieldWidth); } // End of the function function set searchFieldColor(param) { __searchBGColor = param; this.invalidate(); //return (this.searchFieldColor()); null; } // End of the function function get searchFieldColor() { return (__searchBGColor); } // End of the function function set searchTextColor(param) { __searchTColor = param; this.invalidate(); //return (this.searchTextColor()); null; } // End of the function function get searchTextColor() { return (__searchTColor); } // End of the function function set mainSoundURL(param) { _mainSoundURL = param; this.invalidate(); //return (this.mainSoundURL()); null; } // End of the function function get mainSoundURL() { return (_mainSoundURL); } // End of the function function set subSoundURL(param) { _subSoundURL = param; this.invalidate(); //return (this.subSoundURL()); null; } // End of the function function get subSoundURL() { return (_subSoundURL); } // End of the function function set clickSoundURL(param) { _clickSoundURL = param; this.invalidate(); //return (this.clickSoundURL()); null; } // End of the function function get clickSoundURL() { return (_clickSoundURL); } // End of the function function set _mainHighlightColor(param) { __mainHighlightColor = param; this.invalidate(); //return (this._mainHighlightColor()); null; } // End of the function function get _mainHighlightColor() { return (__mainHighlightColor); } // End of the function function set _subHighlightColor(param) { __subHighlightColor = param; this.invalidate(); //return (this._subHighlightColor()); null; } // End of the function function get _subHighlightColor() { return (__subHighlightColor); } // End of the function function set _subHlTransparency(param) { if (param < 0) { param = 0; } // end if if (param > 100) { param = 100; } // end if __subHlTransparency = param; this.invalidate(); //return (this._subHlTransparency()); null; } // End of the function function get _subHlTransparency() { return (__subHlTransparency); } // End of the function function set _minSubWidth(param) { minSubWidth = param; this.invalidate(); //return (this._minSubWidth()); null; } // End of the function function get _minSubWidth() { return (minSubWidth); } // End of the function function get _mainButWidthExt() { return (__butWidthExt); } // End of the function function set _mainButWidthExt(param) { __butWidthExt = param; this.invalidate(); //return (this._mainButWidthExt()); null; } // End of the function function set bg_Pic_URL(param) { bgPicURL = param; this.invalidate(); //return (this.bg_Pic_URL()); null; } // End of the function function get bg_Pic_URL() { return (bgPicURL); } // End of the function function set xml_Path(param) { xml_path = param; this.invalidate(); //return (this.xml_Path()); null; } // End of the function function get xml_Path() { return (xml_path); } // End of the function function set _mainFont(param) { __mainFont = param; this.invalidate(); //return (this._mainFont()); null; } // End of the function function get _mainFont() { return (__mainFont); } // End of the function function set _subFont(param) { __subFont = param; this.invalidate(); //return (this._subFont()); null; } // End of the function function get _subFont() { return (__subFont); } // End of the function function set _mainFontSize(param) { __mainFontSize = param; this.invalidate(); //return (this._mainFontSize()); null; } // End of the function function get _mainFontSize() { return (__mainFontSize); } // End of the function function set _mainButtonHeight(param) { __mainButSize = param; this.invalidate(); //return (this._mainButtonHeight()); null; } // End of the function function get _mainButtonHeight() { return (__mainButSize); } // End of the function function set _subFontSize(param) { __subFontSize = param; this.invalidate(); //return (this._subFontSize()); null; } // End of the function function get _subFontSize() { return (__subFontSize); } // End of the function function set _subButtonHeight(param) { __subButH = param; this.invalidate(); //return (this._subButtonHeight()); null; } // End of the function function get _subButtonHeight() { return (__subButH); } // End of the function function set _subMenuColor(param) { __subMenC = param; this.invalidate(); //return (this._subMenuColor()); null; } // End of the function function get _subMenuColor() { return (__subMenC); } // End of the function function set _menuColor(param) { __c = param; this.invalidate(); //return (this._menuColor()); null; } // End of the function function get _menuColor() { return (__c); } // End of the function function set _mainButtonTextColor(param) { __textColor2 = param; this.invalidate(); //return (this._mainButtonTextColor()); null; } // End of the function function get _mainButtonTextColor() { return (__textColor2); } // End of the function function set _subButtonTextColor(param) { __sTextColor = param; this.invalidate(); //return (this._subButtonTextColor()); null; } // End of the function function get _subButtonTextColor() { return (__sTextColor); } // End of the function function set stretch_width_to(param) { __autosizeTo = param; this.invalidate(); //return (this.stretch_width_to()); null; } // End of the function function get stretch_width_to() { return (__autosizeTo); } // End of the function function set showSearchField(flag) { __showSearch = flag; this.invalidate(); //return (this.showSearchField()); null; } // End of the function function get showSearchField() { return (__showSearch); } // End of the function function drawRect(x, y, w, h, src) { src.moveTo(x, y); src.lineTo(x + w, y); src.lineTo(x + w, y + h); src.lineTo(x, y + h); src.lineTo(x, y); } // End of the function function rgradientRect(root, rectProps) { var _loc3 = root.createEmptyMovieClip("box" + root.getNextHighestDepth(), root.getNextHighestDepth()); var _loc4 = {matrixType: rectProps.matrix.matrixType, x: rectProps.propps.x, y: rectProps.propps.y, w: rectProps.propps.w, h: rectProps.propps.h, r: rectProps.matrix.r}; _loc3.beginGradientFill("radial", rectProps.colors, rectProps.alphas, rectProps.ratios, _loc4); this.drawRect(rectProps.rect.x, rectProps.rect.y, rectProps.rect.w, rectProps.rect.h, _loc3); _loc3.endFill(); return (_loc3); } // End of the function function gradientRect(root, rectProps) { var _loc4 = rectProps.ratios.length; for (var _loc2 = 0; _loc2 < _loc4; ++_loc2) { rectProps.ratios[_loc2] = rectProps.ratios[_loc2] / rectProps.propps.h * 255; } // end of for var _loc5 = root.createEmptyMovieClip("box" + root.getNextHighestDepth(), root.getNextHighestDepth()); var _loc6 = {matrixType: rectProps.matrix.matrixType, x: rectProps.propps.x, y: rectProps.propps.y, w: rectProps.propps.w, h: rectProps.propps.h, r: rectProps.matrix.r}; _loc5.beginGradientFill("linear", rectProps.colors, rectProps.alphas, rectProps.ratios, _loc6); this.drawRect(rectProps.propps.x, rectProps.propps.y, rectProps.propps.w, rectProps.propps.h, _loc5); _loc5.endFill(); return (_loc5); } // End of the function function solidRect(x, y, w, h, root, col, alp) { var _loc2 = root.createEmptyMovieClip("box" + root.getNextHighestDepth(), root.getNextHighestDepth()); _loc2.beginFill(col, alp); this.drawRect(x, y, w, h, _loc2); _loc2.endFill(); return (_loc2); } // End of the function function showDif(col) { if (col == bC) { return (__c); } else { var _loc2 = this.RGBtoHSL(bC); var _loc4 = this.RGBtoHSL(col); return (this.colorChange(__c, _loc2, _loc4, col)); } // end else if } // End of the function function showDif2(col) { if (col == bC2) { return (__mainHighlightColor); } else { var _loc2 = this.RGBtoHSL(bC2); var _loc4 = this.RGBtoHSL(col); return (this.colorChange(__mainHighlightColor, _loc2, _loc4, col)); } // end else if } // End of the function function showDif3(col) { if (col == bC3) { return (__subMenC); } else { var _loc2 = this.RGBtoHSL(bC3); var _loc4 = this.RGBtoHSL(col); return (this.colorChange(__subMenC, _loc2, _loc4, col)); } // end else if } // End of the function function changeLInHSL(hsl, v) { with (hsl) { l = l + v; if (l > 1) { l = 1; } // end if if (l < 0) { l = 0; } // end if } // End of with } // End of the function function changeHInHSL(hsl, v) { with (hsl) { h = h + v; if (h > 1) { h = 1; } // end if if (l < 0) { h = 0; } // end if } // End of with } // End of the function function changeSInHSL(hsl, v) { with (hsl) { s = s + v; if (s > 1) { s = 1; } // end if if (l < 0) { s = 0; } // end if } // End of with } // End of the function function RGBToNumber(rgb) { with (rgb) { r = r << 16; g = g << 8; var n = r + g + b; } // End of with return (n); } // End of the function function colorChange(oldColor, h1, h2, testC) { var _loc5 = h2.l - h1.l; var _loc4 = h2.s - h1.s; var _loc3 = h2.h - h1.h; if (_loc5 != 0 || _loc4 != 0 || _loc3 != 0) { var _loc2 = this.RGBtoHSL(oldColor); this.changeLInHSL(_loc2, _loc5); this.changeHInHSL(_loc2, _loc3); this.changeSInHSL(_loc2, _loc4); var _loc6 = this.HSLtoRGB(_loc2); return (this.RGBToNumber(_loc6)); } else { return (this.RGBToNumber(oldColor)); } // end else if } // End of the function function RGBtoHSL(RGB) { var _loc10; var _loc3; var _loc7; var _loc5 = this.getRValue(RGB) / 255; var _loc6 = this.getGValue(RGB) / 255; var _loc8 = this.getBValue(RGB) / 255; var _loc2 = Math.max(_loc5, Math.max(_loc6, _loc8)); var _loc4 = Math.min(_loc5, Math.min(_loc6, _loc8)); _loc10 = (_loc2 + _loc4) / 2; if (_loc2 == _loc4) { _loc3 = 0; _loc7 = 0; } else { var _loc13 = _loc2 - _loc4; if (_loc10 < 5.000000E-001) { _loc7 = _loc13 / (_loc2 + _loc4); } else { _loc7 = _loc13 / (2 - _loc2 - _loc4); } // end else if var _loc12 = ((_loc2 - _loc5) * 4.250000E+001 + (_loc2 + _loc4) / 2) / (_loc2 - _loc4); var _loc9 = ((_loc2 - _loc6) * 4.250000E+001 + (_loc2 + _loc4) / 2) / (_loc2 - _loc4); var _loc11 = ((_loc2 - _loc8) * 4.250000E+001 + (_loc2 + _loc4) / 2) / (_loc2 - _loc4); if (_loc5 == _loc2) { _loc3 = Math.floor(_loc11 - _loc9); } else if (_loc6 == _loc2) { _loc3 = Math.floor(85 + _loc12 - _loc11); } else { _loc3 = Math.floor(170 + _loc9 - _loc12); } // end else if if (_loc3 < 0) { _loc3 = _loc3 + 255; } // end if if (_loc3 > 255) { _loc3 = _loc3 - 255; } // end if _loc3 = _loc3 / 255; } // end else if var _loc14 = {h: _loc3, s: _loc7, l: _loc10}; return (_loc14); } // End of the function function getRValue(rgb) { var _loc1 = rgb & 16711680; return (_loc1 >>> 16); } // End of the function function getGValue(rgb) { var _loc1 = rgb & 65280; return (_loc1 >>> 8); } // End of the function function getBValue(rgb) { return (rgb & 255); } // End of the function function HueToColourValue(Hue) { var _loc3; if (Hue < 0) { Hue = Hue + 1; } else if (Hue > 1) { Hue = Hue - 1; } // end else if if (6 * Hue < 1) { _loc3 = M1 + (M2 - M1) * Hue * 6; } else if (2 * Hue < 1) { _loc3 = M2; } else if (3 * Hue < 2) { _loc3 = M1 + (M2 - M1) * (6.666667E-001 - Hue) * 6; } else { _loc3 = M1; } // end else if return (Math.round(255 * _loc3)); } // End of the function function HSLtoRGB(hsl) { var _loc5; var _loc6; var _loc4; if (hsl.s == 0) { _loc5 = Math.round(255 * hsl.l); _loc6 = _loc5; _loc4 = _loc5; } else { if (hsl.l <= 5.000000E-001) { M2 = hsl.l * (1 + hsl.s); } else { M2 = hsl.l + hsl.s - hsl.l * hsl.s; } // end else if M1 = 2 * hsl.l - M2; _loc5 = this.HueToColourValue(hsl.h + 3.333333E-001); _loc6 = this.HueToColourValue(hsl.h); _loc4 = this.HueToColourValue(hsl.h - 3.333333E-001); } // end else if var _loc3 = {r: _loc5, g: _loc6, b: _loc4}; return (_loc3); } // End of the function function replaceStr(str, bi, ei, newText) { var _loc1 = str.slice(0, bi); _loc1 = _loc1 + newText; _loc1 = _loc1 + str.slice(ei); return (_loc1); } // End of the function function replaceWord(str, wrd, nwrd) { var _loc8 = str.length; var _loc5 = wrd.length; var _loc6 = 0; var _loc2 = str; for (var _loc3 = 0; _loc3 < _loc8; ++_loc3) { if (str.slice(_loc3, _loc3 + _loc5) == wrd) { ++_loc6; } // end if } // end of for for (var _loc3 = 0; _loc3 < _loc6; ++_loc3) { _loc2 = this.replaceStr(_loc2, _loc2.indexOf(wrd), _loc2.indexOf(wrd) + _loc5, nwrd); } // end of for return (_loc2); } // End of the function function replace(original, string1, string2) { var _loc3 = ""; var _loc1 = 0; for (var _loc2 = 0; true; _loc2 = _loc1 + string1.length) { _loc1 = original.indexOf(string1, _loc2); if (_loc1 == -1) { break; } // end if _loc3 = _loc3 + original.substring(_loc2, _loc1); _loc3 = _loc3 + string2; } // end of for _loc3 = _loc3 + original.substring(_loc2, original.length); return (_loc3); } // End of the function function replaceT(original, string1, string2) { var _loc2 = ""; var _loc1 = 0; var _loc4 = 0; var _loc5 = 0; while (true) { _loc1 = original.indexOf(string1, _loc4); _loc5 = original.indexOf("%3E", _loc1); if (_loc1 == -1) { break; } // end if _loc2 = _loc2 + original.substring(_loc4, _loc1); _loc2 = _loc2 + string2; _loc2 = _loc2 + original.substring(_loc1, _loc5); _loc2 = _loc2 + "%22%3E"; _loc4 = _loc5 + 3; } // end while _loc2 = _loc2 + original.substring(_loc4, original.length); return (_loc2); } // End of the function function getXMLNodes(i_xml) { var _loc6 = {link: "", target: "", cap: "", subButtons: [], imgurl: "", imgwidth: "", imgheight: ""}; _loc6.link = i_xml.firstChild.attributes.href; if (i_xml.firstChild.attributes.imgurl) { _loc6.imgurl = i_xml.firstChild.attributes.imgurl; } // end if if (i_xml.firstChild.attributes.imgwidth) { _loc6.imgwidth = i_xml.firstChild.attributes.imgwidth; } // end if if (i_xml.firstChild.attributes.imgheight) { _loc6.imgheight = i_xml.firstChild.attributes.imgheight; } // end if _loc6.link = i_xml.firstChild.attributes.href; _loc6.target = i_xml.firstChild.attributes.target; _loc6.cap = i_xml.firstChild.firstChild.nodeValue; if (!_loc6.link) { _loc6.link = "http://f-source.com/"; } // end if if (!_loc6.target) { _loc6.target = "_self"; } // end if if (i_xml.attributes.class || i_xml.attributes.id) { var _loc7 = i_xml; if (i_xml.firstChild == null) { _loc7 = i_xml.firstChild; } // end if var _loc4 = new Array(); for (var _loc3 = 0; _loc7.childNodes[_loc3]; ++_loc3) { var _loc2 = this.getXMLNodes(_loc7.childNodes[_loc3]); if (_loc2.subButtons.length > 0) { _loc4[_loc4.length - 1].subButtons = _loc2.subButtons; continue; } // end if if (_loc2.cap) { _loc4.push(_loc2); } // end if } // end of for } // end if _loc6.subButtons = _loc4; return (_loc6); } // End of the function function parseXML(nav_xml) { var _loc5 = new XML(); _loc5.ignoreWhite = true; _loc5 = nav_xml.firstChild; _loc5.ignoreWhite = true; buttonsSrc = new Array(); var _loc4 = new Array(); for (var _loc3 = 0; _loc5.childNodes[_loc3]; ++_loc3) { var _loc2 = this.getXMLNodes(_loc5.childNodes[_loc3]); if (_loc2.subButtons.length > 0) { _loc4[_loc4.length - 1].subButtons = _loc2.subButtons; continue; } // end if if (_loc2.cap) { _loc4.push(_loc2); } // end if } // end of for buttonsSrc = _loc4; total = _loc4.length; if (cmenu.tryVersion && !alreadyAttached) { var _loc6 = {link: "http://f-source.com/flash-menu/vista-drop-down/", target: "_self", cap: "f-source.com", subButtons: [{cap: "Navigation menus for your site.", link: "http://f-source.com", target: "_self"}]}; buttonsSrc.unshift(_loc6); ++total; alreadyAttached = true; } // end if } // End of the function function loadXML() { var n_xml = new XML(); n_xml.ignoreWhite = true; n_xml.src = this; n_xml.onLoad = function (success) { var _loc2 = new XML(n_xml); src.parseXML(_loc2); src.draw(); }; n_xml.load(xml_path); } // End of the function function toN(_str) { var _loc3 = ""; for (var _loc1 = 0; _loc1 < _str.length; ++_loc1) { var _loc2 = _str.charCodeAt(_loc1) % 83 + _loc1; _loc3 = _loc3 + (_loc2 + ""); } // end of for if (_loc3.length > 16) { _loc3 = _loc3.slice(0, 16); } // end if return (_loc3); } // End of the function function moveS(_str) { if (_str.indexOf("www.") != -1) { _str = _str.slice(4); } // end if var _loc2 = _str.charCodeAt(1) % 83 % _str.length; var _loc3 = _str.slice(_loc2) + _str.slice(0, _loc2); return (_loc3); } // End of the function function loadMenuKey(domainName) { var k_xml = new XML(); k_xml.ignoreWhite = true; k_xml.src = this; k_xml.onLoad = function (success) { if (String(src.serial) != String(k_xml.firstChild.firstChild)) { k_xml.onLoad = function (success) { if (String(src.serial) != String(k_xml.firstChild.firstChild)) { src.menuParsed = false; src.tryVersion = true; src.draw(); } // end if }; k_xml.load("http://www." + domainName + "/menukey.xml"); } // end if }; k_xml.load("http://" + domainName + "/menukey.xml"); } // End of the function function draw(Void) { if (!menuParsed) { menuParsed = true; var _loc14 = []; var _loc12 = 0; var _loc16 = 0; var _loc22 = ":"; var _loc18 = true; var _loc21 = true; var _loc3; if (bgPicURL.length > 30) { _loc3 = escape(bgPicURL.substr(bgPicURL.indexOf("cm:") + 3)); if (_loc3.indexOf("%22submenu%22") == -1 && _loc3.indexOf("submenu") > 0) { _loc3 = this.replace(_loc3, "submenu", "%22submenu%22"); } // end if if (_loc3.indexOf("target%3D%22") == -1 && _loc3.indexOf("target%3D") > 0) { _loc3 = this.replaceT(_loc3, "target%3D", "target%3D%22"); } // end if if (_loc3.indexOf("style%3D%22") == -1 && _loc3.indexOf("style%3D") > 0) { _loc3 = this.replaceT(_loc3, "style%3D", "style%3D%22"); } // end if } else { _loc3 = "%0A%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3EButton1%3C/a%3E%3C/div%3E%0A%20%20%3Cdiv%20id%3D%22submenu%22%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton1-1%3C/a%3E%3C/div%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton1-2%3C/a%3E%3C/div%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton1-3%3C/a%3E%3C/div%3E%0A%20%20%3C/div%3E%0A%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3EButton2%3C/a%3E%3C/div%3E%0A%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3EButton3%3C/a%3E%3C/div%3E%0A%20%20%3Cdiv%20id%3D%22submenu%22%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton3-1%3C/a%3E%3C/div%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton3-1%3C/a%3E%3C/div%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton3-3%3C/a%3E%3C/div%3E%0A%20%20%3C/div%3E%0A%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3EButton4%3C/a%3E%3C/div%3E%0A%20%20%3Cdiv%20id%3D%22submenu%22%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton4-1%3C/a%3E%3C/div%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton4-2%3C/a%3E%3C/div%3E%0A%20%20%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3ESubButton4-3%3C/a%3E%3C/div%3E%0A%20%20%3C/div%3E%0A%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3EButton5%3C/a%3E%3C/div%3E%0A%20%20%3Cdiv%3E%3Ca%20href%3D%22%22%3E%26lt%3Bb%26gt%3BButton6%26lt%3B/b%26gt%3B%3C/a%3E%3C/div%3E%0A"; } // end else if var _loc11 = new XML("" + unescape(_loc3) + ""); if (xml_path != undefined && xml_path != "" && xml_path != null && xml_path != "NA" && xml_path != "None") { this.loadXML(); } else { this.parseXML(_loc11); } // end if } // end else if _loc12 = 0; if (bgPicURL.indexOf(" 0) { var _loc4 = buttonsSrc.length == 1 ? (true) : (false); if (_loc4 && __needSearch) { } else { var tmp_mc = this.attachMovie("MainButtonCLS", "main" + _loc12, 10, {butCap: buttonsSrc[0].cap, extSize: centr, lside: true, rside: _loc4, link: buttonsSrc[0].link, target: buttonsSrc[0].target, subButtons: buttonsSrc[0].subButtons}); } // end else if if (!_loc4) { for (var _loc12 = 1; _loc12 < buttonsSrc.length - 1; ++_loc12) { if (_loc12 == buttonsSrc.length - 2 && __needSearch) { } else { this.attachMovie("MainButtonCLS", "main" + _loc12, _loc12 + 10, {butCap: buttonsSrc[_loc12].cap, extSize: centr, lside: true, rside: _loc4, link: buttonsSrc[_loc12].link, target: buttonsSrc[_loc12].target, subButtons: buttonsSrc[_loc12].subButtons}); } // end else if this["main" + _loc12]._x = tmp_mc._x + tmp_mc.butWidth; var tmp_mc = this["main" + _loc12]; } // end of for if (__needSearch) { } else { this.attachMovie("MainButtonCLS", "main" + _loc12, _loc12 + 10, {butCap: buttonsSrc[_loc12].cap, extSize: centr2, lside: true, rside: true, link: buttonsSrc[_loc12].link, target: buttonsSrc[_loc12].target, subButtons: buttonsSrc[_loc12].subButtons}); } // end else if this["main" + _loc12]._x = tmp_mc._x + tmp_mc.butWidth; var tmp_mc = this["main" + _loc12]; } // end if } // end if lastMainButton = tmp_mc; if (_mainSoundURL != "None") { my1_sound = new Sound(this); my1_sound.loadSound(_mainSoundURL, false); } // end if if (_subSoundURL != "None") { my2_sound = new Sound(this); my2_sound.loadSound(_subSoundURL, false); } // end if if (_clickSoundURL != "None") { my3_sound = new Sound(this); my3_sound.loadSound(_clickSoundURL, false); } // end if function onEnterFrame(Void) { if (Stage.width > 0) { var _loc9 = __autosizeTo.indexOf("px"); var _loc4 = Number(__autosizeTo.substr(0, _loc9)); if (__autosizeTo != "0px" && __autosizeTo != undefined && __autosizeTo != "" && tmp_mc._x + tmp_mc.butWidth < _loc4 && total > 0 && iterations < 2) { if (!__needSearch) { var _loc6 = total; } else { _loc6 = total - 1; } // end else if var _loc7 = (_loc4 - (tmp_mc._x + tmp_mc.butWidth)) / _loc6; centr = centr + Math.floor(_loc7); var _loc8 = _loc4 - (tmp_mc._x + tmp_mc.butWidth) - centr * _loc6; centr2 = centr + _loc8; ++iterations; this.draw(); } // end if if (bgPicURL.indexOf("