﻿// JScript 文件
function mouseStyle(array)
{
   for(var i=0;i<array.length;i++)
   {
      switch(array[i])
      {
         case "img1":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/11.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/1.gif'};
             break;
         case "img2":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/22.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/2.gif'};
             break;
         case "img3":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/33.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/3.gif'};
             break;
         case "img4":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/44.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/4.gif'};
             break;
         case "img5":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/55.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/5.gif'};
             break;
         case "img6":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/66.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/6.gif'};
             break;
         case "img7":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/77.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/7.gif'};
             break;
         case "img8":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/88.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/8.gif'};
             break;
         case "img9":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/99.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/9.gif'};
             break;
         case "img10":
             document.getElementById(array[i]).onmouseover = function(){this.src='images/101.gif'};
             document.getElementById(array[i]).onmouseout = function(){this.src='images/10.gif'};
             break;
      }
   }
}
function menuStyle()
{
    var query = location.search.substring(1);
    if(query != "")
    {
       var index = query.indexOf('=');
       var qvalue = query.substring(index+1);
       switch(qvalue)
       {
          case "2":
             document.getElementById("li2").className="actief";
             break;
          case "3":
             document.getElementById("li3").className="actief";
             break;
          case "4":
             document.getElementById("li4").className="actief";
             break;
          case "5":
             document.getElementById("li5").className="actief";
             break;
          case "6":
             document.getElementById("li6").className="actief";
             break;
          case "7":
             document.getElementById("li7").className="actief";
             break;
          case "8":
             document.getElementById("li8").className="actief";
             break;
          case "9":
             document.getElementById("li9").className="actief";
             break;
       }
    }
}
function picStyle()
{
    var query = location.search.substring(1);
    if(query != "")
    {
       var index = query.indexOf('=');
       var qvalue = query.substring(index+1);
       switch(qvalue)
       {
          case "2":
             document.getElementById("pimg").src = "images/Heritage.jpg";
             break;
          case "3":
             document.getElementById("pimg").src = "images/Design.jpg";
             break;
          case "4":
             document.getElementById("pimg").src = "images/craftmanship.jpg";
             break;
          case "5":
             document.getElementById("pimg").src = "images/Exclusivity.jpg";
             break;
          case "6":
             document.getElementById("pdiv").style.display = "none";
             break;
       }
    }
}

