Help with debugging

Hi all. I’ve dl this tutorial and have been tinkering around with it but no end in sight. Every time I test the movie, a page (debugging) opens up on top of the movie. It says “closed”. After closing the debugging window, I can test the movie.

However, after testing a few buttons, the window pops up again with the word “closed”. I’d appreciate any insight into this glitch. The code is below. Thanks for the time.

Cheers,
BRC

siteSections=[“fashionMC”, “fineartMC”, “portraitMC”];

loadSection=function(){
for(i=0; i<siteSections.length; i++){ myName=siteSections*;
if (myName!=_global.section){ myName=eval(myName); myName.gotoAndStop(“closed”); myName._x=(20*i)+700;
}else if(myName==_global.section){
loadMain(myName);
}}}
loadMain=function(myName) {
myName=eval(myName);
myName.gotoAndStop(“open”);
var targetX = 325;
var stepVar=4;
myName.onEnterFrame=function(){
var diffX = (myName._x - targetX)/stepVar;
if (diffX<1 ){
delete myName.onEnterFrame; } else myName._x -= diffX; }}

fashionBTN.onRelease=function(){
_global.section=“fashionMC”;
loadSection(); }

fineartBTN.onRelease=function(){
_global.section=“fineartMC”;
loadSection(); }

portraitBTN.onRelease=function(){
_global.section=“portraitMC”;
loadSection(); }