function leftlinks(frequency) {
            var max = random1.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(random1[tipIndex]);
          }
		  
		  
		  
		   function randomcontent(frequency) {
            var max = random2.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(random2[tipIndex]);
          }
		  
		  	   function anankhira(frequency) {
            var max = random3.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(random3[tipIndex]);
          }

		  function video(frequency) {
            var max = video.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(video[tipIndex]);
          }

		  
function getRandomIndex(max) {
           var randomNum = Math.random();
           randomNum = randomNum * max;
           randomNum = parseInt(randomNum);
           if(isNaN(randomNum)) randomNum = 0; // for Netscape
           return randomNum;
          }
		  
		  