var toId = 0

function sbxPlay1() {
document.getElementById('sbxStaticMain').style.visibility='hidden';
document.getElementById('sbxStaticButton1').style.visibility='visible';
document.getElementById('sbxStaticButton2').style.visibility='hidden';
document.getElementById('sbxMovie1').style.visibility='visible';


var sbxmovie = new SBX("http://media.storyboxcentral.com/Clients/CCL/webintro/V7/Option2BNewDimensions.swf", "sbxMovie1","111","265","8","#336699");sbxmovie.setProperty("quality","medium");
sbxmovie.setProperty("wmode","transparent");
sbxmovie.setProperty("align","middle");
sbxmovie.write("sbxMovie1");

toId = setTimeout("sbxReset();",41000);
}


function sbxReset() {
document.getElementById('sbxMovie1').style.visibility='hidden';
document.getElementById('sbxStaticMain').style.visibility='visible';
document.getElementById('sbxStaticButton1').style.visibility='visible';
document.getElementById('sbxStaticButton2').style.visibility='visible';
document.getElementById('sbxbtn2').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/trans_button.gif";
}

function checkMouseOver(sbxmovienum) {


 switch(sbxmovienum)
      {
       case 1:
          document.getElementById('sbxbtn1').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/main_over_01.jpg";
       break;
       case 2:
              if (document.getElementById('sbxbtn2').src == "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/mini_stop.jpg" || document.getElementById('sbxbtn2').src == "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/mini_stop_over.jpg") {
               document.getElementById('sbxbtn2').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/mini_stop_over.jpg";
               } else {
               document.getElementById('sbxbtn2').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/trans_button.gif";
               }


       break;
       default:
               document.getElementById('sbxbtn3').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/trans_button.gif";
      
       break;
      }

}

function checkMouseOut(sbxmovienum) {

  switch(sbxmovienum)
      {
       case 1:
          document.getElementById('sbxbtn1').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/main_up_01.jpg";
       break;
       case 2:
              if (document.getElementById('sbxbtn2').src == "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/mini_stop_over.jpg" || document.getElementById('sbxbtn2').src == "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/mini_stop.jpg") {
               document.getElementById('sbxbtn2').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/mini_stop.jpg";
               } else {
               document.getElementById('sbxbtn2').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/trans_button.gif";
               }


       break;
       default:
               document.getElementById('sbxbtn3').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/trans_button.gif";
      
       break;
      }

}

function checkonClick(sbxmovienum) {


  if (document.getElementById('sbxbtn2').src == "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/trans_button.gif") {
      document.getElementById('sbxbtn2').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/mini_stop.jpg";
      

  switch(sbxmovienum)
      {
       case 1:
           sbxPlay1();
       break;
      }

     } else {
     document.getElementById('sbxbtn2').src = "http://www.sbxsighthouse.com/CCL/Player/Images_Site_Final/left_up_02.jpg";
     var sbxmovie = new SBX("nothing.swf", "sbxMovie1","99","265","8","#336699");sbxmovie.setProperty("quality","medium");
     sbxmovie.write("sbxMovie1");
     clearTimeout(toId);
     sbxReset();
     
  }
}
