home *** CD-ROM | disk | FTP | other *** search
- function getArray(str, d)
- {
- var arr;
- var str;
- var d;
- str = String(str);
- d = String(d);
- arr = str.split(d);
- return arr;
- }
- function setBannerF(bPath)
- {
- var bPath;
- i = 0;
- while(i < bCount)
- {
- if(cPath[i] == bPath)
- {
- tellTarget(cPath[i])
- {
- gotoAndStop("d");
- }
- }
- else
- {
- tellTarget(cPath[i])
- {
- gotoAndStop("n");
- }
- }
- i++;
- }
- bSelect = bPath;
- _root.bCurrent = bPath;
- loadMovie(bArr[Number(bPath.substring(9,bPath.length))][1],_root.banner);
- _root.bShow[Number(bPath.substring(9,bPath.length))] = 1;
- }
- function setBannerL(bPath)
- {
- var bPath;
- i = 0;
- while(i < bCount)
- {
- if(cPath[i] == bPath)
- {
- tellTarget(cPath[i])
- {
- gotoAndStop("d");
- }
- }
- else
- {
- tellTarget(cPath[i])
- {
- gotoAndStop("n");
- }
- }
- i++;
- }
- bSelect = bPath;
- _root.bCurrent = bPath;
- }
- function setBannerD(bPath)
- {
- var bPath;
- i = 0;
- while(i < bCount)
- {
- if(cPath[i] == bPath)
- {
- tellTarget(cPath[i])
- {
- gotoAndStop("d");
- }
- }
- else
- {
- tellTarget(cPath[i])
- {
- gotoAndStop("n");
- }
- }
- i++;
- }
- bSelect = bPath;
- _root.bCurrent = bPath;
- loadMovie(bArr[Number(bPath.substring(9,bPath.length))][1],_root.banner);
- _root.getUrl(bPath);
- }
- function getUrl(bPath)
- {
- var bPath;
- var url;
- var win;
- var ftr;
- url = bArr[Number(bPath.substring(9,bPath.length))][2];
- win = bArr[Number(bPath.substring(9,bPath.length))][3];
- ftr = bArr[Number(bPath.substring(9,bPath.length))][4];
- nam = String(bPath.substring(8,bPath.length));
- jstr = "javascript:FlashControlNewWin(\'" + url + "\',\'" + this._name + "\',\'" + ftr + "\')";
- redirStrJava = "javascript:getRedir(\'" + url + "\',\'" + nam + "\',\'" + ftr + "\',\'" + win + "\')";
- redirStr = "javascript:getRedir(\'" + url + "\',\'" + nam + "\',\'width=760 height=560 scrollbars=1,status=1,toolbar=1,menubar=1,location=1,resizable=1 resize\',\'" + win + "\')";
- if(win == "_java")
- {
- getURL(redirStrJava,"");
- }
- else
- {
- getURL(redirStr,"");
- }
- }
- function setBannerR(bPath)
- {
- var bPath;
- i = 0;
- while(i < bCount)
- {
- if(cPath[i] == bPath)
- {
- tellTarget(cPath[i])
- {
- gotoAndStop("r");
- }
- }
- else if(cPath[i] != bSelect)
- {
- tellTarget(cPath[i])
- {
- gotoAndStop("n");
- }
- }
- i++;
- }
- }
- function loadBanner()
- {
- var bPath;
- bPath = random(_root.bCount);
- var full;
- full = true;
- i = 0;
- while(i < bCount)
- {
- if(bShow[i] == 0)
- {
- full = false;
- break;
- }
- i++;
- }
- if(full == true)
- {
- i = 0;
- while(i < bCount)
- {
- bShow[i] = 0;
- i++;
- }
- }
- if(_root.bShow[bPath] != 0)
- {
- do
- {
- bPath = random(_root.bCount);
- }
- while(_root.bShow[bPath] == 1);
-
- }
- _root.bShow[bPath] = 1;
- bPath = "_level0.c" + bPath;
- _root.attachMovie("banner","bannerload",102);
- _root.bannerload._x = -200;
- _root.bannerload._y = -200;
- loadMovie(bArr[Number(bPath.substring(9,bPath.length))][1],_root.bannerload);
- _root.loadBannerPath = bPath;
- }
- function getText(bName)
- {
- var bName;
- var searchStr;
- var subStr;
- var textSource;
- var text;
- searchStr = "/n";
- textSource = _root.bArr[Number(bName.substring(1,bName.length))][0];
- i = 0;
- while(i < textSource.length)
- {
- subStr = textSource.substr(i,searchStr.length);
- if(subStr != searchStr)
- {
- text += textSource.substring(i,i + 1);
- }
- else if(subStr == searchStr)
- {
- text += "\n";
- i += searchStr.length - 1;
- }
- i++;
- }
- return text;
- }
- function setSpeed(yMouse)
- {
- _root.speed = - yMouse / 24;
- if(_root.speed < 0.5 and -0.5 < _root.speed)
- {
- _root.speed = 0;
- }
- }
- function getTextColor(cislo_banneru)
- {
- var rgb_textu;
- var cislo_banneru;
- _root.bArr[cislo_banneru][4];
- if(_root.bArr[cislo_banneru][4] != undefined)
- {
- rgb_textu = new Number();
- rgb_textu = parseInt(_root.bArr[cislo_banneru][4]);
- my_color = new Color("_level0.c" + cislo_banneru + ".text_container");
- my_color.setRGB(rgb_textu);
- }
- }
-