var isOpen=1;
function menueSwitch()
{
   if(isOpen)
    {
       $('.level2').css("display", "none");
       $('.level3').css("display", "none");
       isOpen=0;
    }
    else
    {
       $('.level2').css("display", "block");
       $('.level3').css("display", "block");
       isOpen=1;
    }
}

function recommendOpen()
{
   $('#recommend').css("display", "block");
   $('#contentArea').css("display", "none");
   $('#recommendFrame').attr("src", $('#recommendLink').attr("href")+"?forPage="+escape(thisPage));
   $('html,body').animate({scrollTop: 60}, 500);
}



function recommendClose()
{
   $('#recommend').css("display", "none");
   $('#contentArea').css("display", "block");
}



 $(document).ready(function() {
   // put all your jQuery goodness in here.
   $("#menueSwitcher").click(function() {   menueSwitch();   });
   $("#recommendLink").click(function() {   recommendOpen();   });

 });

   var videoWin = "";

   function startVideo(lang)
   {
      if(videoWin)
      {
          videoWin.close();
          videoWin="";
      }

      x = (window.screen.width / 2) -212;
      y= (window.screen.height/2)-200;
      url = "/video.html";

      if(lang == "eng")
      {
          url = "/video_eng.html";
      }
      else if(lang == "fr")
      {
          url = "/video_fr.html";
      }
      videoWin = open(url,'video','width=500,height=281,status=no,resizable=yes,screenx='+x+',screeny='+y);
   }



   function artVideo(aid)
   {
      if(videoWin)
      {
          videoWin.close();
          pvideoWin="";
      }

      x = (window.screen.width / 2) -212;
      y= (window.screen.height/2)-200;
      url = "/artVideo.html?aid="+aid;
      videoWin = open(url,'video','width=700,height=384,status=no,resizable=yes,screenx='+x+',screeny='+y);
   }


