function menu(frequency) {
            var max = tips1.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips1[tipIndex]);
          }

function hejsa(frequency) {
            var max = tips2.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips2[tipIndex]);
          }

  
		  function randomcontent2(frequency) {
            var max = tips3.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips3[tipIndex]);
          }

	  
		  function bottomlinks(frequency) {
            var max = tips4.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips4[tipIndex]);
          }


		  
		  function khaolak(frequency) {
            var max = tips5.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips5[tipIndex]);
          }
		  
		  function samui(frequency) {
            var max = tips6.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips6[tipIndex]);
          }
		  
		  function kohchang(frequency) {
            var max = tips7.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips7[tipIndex]);
          }
		  
		  function krabi(frequency) {
            var max = tips8.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips8[tipIndex]);
          }
		  
		  function phiphi(frequency) {
            var max = tips9.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips9[tipIndex]);
          }
		  
		  function kohlanta(frequency) {
            var max = tips10.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips10[tipIndex]);
          }
		  
		         
		  
		  function phuket(frequency) {
            var max = tips11.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips11[tipIndex]);
          }
		  
		  function kohphangan(frequency) {
            var max = tips12.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips12[tipIndex]);
          }
		  
		  function getRandomIndex(max) {
           var randomNum = Math.random();
           randomNum = randomNum * max;
           randomNum = parseInt(randomNum);
           if(isNaN(randomNum)) randomNum = 0; // for Netscape
           return randomNum;
          }
		  
		  function chaam(frequency) {
            var max = tips13.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips13[tipIndex]);
          }
		  
		  function getRandomIndex(max) {
           var randomNum = Math.random();
           randomNum = randomNum * max;
           randomNum = parseInt(randomNum);
           if(isNaN(randomNum)) randomNum = 0; // for Netscape
           return randomNum;
          }
		  
		  function chiangmai(frequency) {
            var max = tips14.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips14[tipIndex]);
          }
		  
		  function getRandomIndex(max) {
           var randomNum = Math.random();
           randomNum = randomNum * max;
           randomNum = parseInt(randomNum);
           if(isNaN(randomNum)) randomNum = 0; // for Netscape
           return randomNum;
          }
		  
		  
		  	  function kohphanganhotels(frequency) {
            var max = tips15.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips15[tipIndex]);
          }
		  
		  function getRandomIndex(max) {
           var randomNum = Math.random();
           randomNum = randomNum * max;
           randomNum = parseInt(randomNum);
           if(isNaN(randomNum)) randomNum = 0; // for Netscape
           return randomNum;
          }
		  
		  function kohsamet(frequency) {
            var max = tips16.length;
            var dateObj = new Date();
            switch(frequency) {
              case "month": // 0 - 11
                tipIndex = dateObj.getMonth();
                break
              case "dayOfTheMonth": // 1 - 31
                tipIndex = dateObj.getDate() - 1 // 0 - 30
                break;
              case "dayOfTheWeek": // 0 - 6
                tipIndex = dateObj.getDay();
                break;
              case "hour": // 0 - 23
                tipIndex = dateObj.getHours();
                break;
              case "now": // Default
              default:
                tipIndex = getRandomIndex(max);
             }
           tipIndex = tipIndex % max;
           document.write(tips16[tipIndex]);
          }
		  
		  function getRandomIndex(max) {
           var randomNum = Math.random();
           randomNum = randomNum * max;
           randomNum = parseInt(randomNum);
           if(isNaN(randomNum)) randomNum = 0; // for Netscape
           return randomNum;
          }