
var now = new Date();
var localConnectionID = Date.parse(now)+Math.floor(Math.random()*1000);

function myGetBrowser(){
   if(OSType == "MacOS" && browserName == "Explorer"){return;}
   if(browserName == "Netscape"){return;}
   //
   myOP = (navigator.userAgent.indexOf("Opera",0) != -1)?1:0; //OP
   myN6 = document.getElementById;  // N6 or IE
   myIE = document.all;             // IE
   myN4 = document.layers;          // N4

   if (myOP){                          // OP?
//alert("myOP");
      document.onmousemove = myMoveOP;
   }else if (myIE){                    // IE?
//alert("myIE");
      document.onmousemove = myMoveIE;
   }else if (myN6){                    // N6?
//alert("myIE");
      window.addEventListener("mousemove", myMoveN6, true);
   }else if (myN4){                    // N4?
//alert("myIE");
      window.captureEvents(Event.MOUSEMOVE);
      window.onmousemove = myMoveN4;
   }
}


function myMoveOP(){ // OP
  callFlashMouseMove(window.event.clientX);
//alert("myMoveOP");
}
function myMoveN6(myEvent){  // N6
  callFlashMouseMove(myEvent.clientX + window.pageXOffset);
//alert("myMoveN6");
}
function myMoveIE(){ // IE
  callFlashMouseMove(window.event.clientX + document.body.scrollLeft);
//alert("myMoveIE");
}
function myMoveN4(myEvent){ // N4
  callFlashMouseMove(myEvent.x);
//alert("myMoveN4");
}


function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }else {
        return document[movieName]
    }
}

function callFlashMouseMove(x) {
   thisMovie("main_swf1").SetVariable("_root.mX", x);
   thisMovie("main_swf2").SetVariable("_root.mX", x);
}
