
  thisDate = new Date();
  var months = new Array("Jan", "Feb",
  "Mar", "Apr", "May", "Jun", "Jul", "Aug",
  "Sep", "Oct", "Nov", "Dec");

  function setCurrentDate() {
    document.write('<option value = "'+thisDate.getDate()+'" selected=\"selected\">' + thisDate.getDate());
    };

  function setCurrentMonth() {
    document.write('<option value = "'+
      (thisDate.getMonth()+1)+'" selected=\"selected\">' + months[thisDate.getMonth()]);
      };

  function setCurrentYear() {
    document.write('<option value = "'+thisDate.getFullYear()+'" selected=\"selected\">' +    thisDate.getFullYear());
    };

  function submitform() {document.searchForm.submit();}

  function contact_window(location) {
    window.open(location,"cwin",'width=670,height=450,toolbar=0');
    }

	
  function slideshow() {
  	initImage("slide1",3000); 
	setTimeout("initImage('slide2'  ,3000)",6000);
	setTimeout("initImage('slide3'  ,3000)",12000);
	setTimeout("initImage('slide4'  ,3000)",18000);	
	setTimeout("initImage('slide5'  ,3000)",24000);	
	setTimeout("initImage('slide6'  ,3000)",30000);	
	setTimeout("initImage('slide7'  ,3000)",36000);	
	setTimeout("initImage('slide8'  ,3000)",42000);	
	setTimeout("initImage('slide9'  ,3000)",48000);	
	setTimeout("initImage('slide10' ,3000)",54000);	
	setTimeout("initImage('slide11' ,3000)",60000);	
	setTimeout("initImage('slide12' ,3000)",66000);	
	setTimeout("initImage('slide13' ,3000)",72000);	
	setTimeout("initImage('slide14' ,3000)",78000);	
	setTimeout("initImage('slide15' ,3000)",84000);	
	setTimeout("initImage('slide16' ,3000)",90000);	
	setTimeout("initImage('slide17' ,3000)",96000);	
	setTimeout("initImage('slide18' ,3000)",102000);	
	setTimeout("initImage('slide19' ,3000)",108000);	
	setTimeout("initImage('slide20' ,3000)",114000);	
	setTimeout("initImage('slide21' ,3000)",120000);	
	setTimeout("initImage('slide22' ,3000)",126000);	
	setTimeout("initImage('slide23' ,3000)",132000);	
	setTimeout("initImage('slide24' ,3000)",138000);	
	setTimeout("initImage('slide25' ,3000)",144000);	
	setTimeout("initImage('slide26' ,3000)",150000);	
	setTimeout("initImage('slide27' ,3000)",156000);	
	setTimeout("slideshow()", 162000);
		}
	
	  
	function initImage(imageId,interval) { 
	  image = document.getElementById(imageId);
	  setOpacity(image, 0);
	  image.style.display = 'inline';
	  fadeIn(imageId,0); 
	  window.setTimeout("fadeOut('"+imageId+"'," + "100" + ")",interval);  /* number of ms for the pic */
	  }
	
	function setOpacity(obj, opacity) {
	    opacity = (opacity == 100)?99.999:opacity;
	  // IE/Win
	    obj.style.filter = "alpha(opacity:"+opacity+")";
	  // Safari<1.2, Konqueror
	    obj.style.KHTMLOpacity = opacity/100;
	  // Older Mozilla and Firefox
	    obj.style.MozOpacity = opacity/100;
	  // Safari 1.2, newer Firefox and Mozilla, CSS3
	    obj.style.opacity = opacity/100;
	  }
	
	function fadeIn(objId,opacity) {
	  if (document.getElementById) {
	    obj = document.getElementById(objId);
	    if (opacity <= 100) {
	      setOpacity(obj, opacity);
	      opacity += 10;
	      window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 100);  /* fade-in is 1 sec */
	    }
	  }
	}
	
	function fadeOut(objId,opacity) {
	  if (document.getElementById) {
	    obj = document.getElementById(objId);
	    if (opacity >= 0) {
	      opacity = opacity - 10;
	      setOpacity(obj, opacity);
	      window.setTimeout("fadeOut('"+objId+"',"+opacity+")", 100);  /* fade-out is 1 sec */
	      }
	    else {
	      obj.style.display = "none";
	      }
	   }
	}

function start() {
//  slideshow();
  flasher();
  }

function flasher() {
  initImage("saleFlasher",1000); 
  setTimeout("flasher()", 2500);  
  }

function contact(mailtoID,rhs,lhs) {
     	var rhs; 
 	var lhs;
        if(document.getElementById("bla") != null) {
	document.getElementById(mailtoID).href = 'mailto://' + rhs + '@' + lhs};
	}
