function reapply(){
setTimeout("slideit()",2000)
return true
}
//window.onerror=reapply
var image1=new Image()
image1.src="images/likoere.jpg"
var image2=new Image()
image2.src="images/stueberl.jpg"
var image3=new Image()
image3.src="images/cuvee.jpg"
var number_of_images=3
var speed=3						
var step=1						
var image=1						
function slideit(){
if (!document.images)
return
if (document.all)
slide.filters.blendTrans.apply()
document.images.slide.src=eval("image"+step+".src")
if (document.all)
slide.filters.blendTrans.play()
whichimage=step
if (step<number_of_images)
step++
else
step=1
if (document.all)
setTimeout("slideit()",speed*1000+2500)
else
setTimeout("slideit()",speed*1000)
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { 
window.open(theURL,winName,features);
}



function oeffnen1(bild,breite,hoehe,titel) {
posLeft=250;
posTop=100;
tb=breite+40;
th=hoehe+40;
bb=breite+80;
bh=hoehe+80;
var w = (screen.width / 2) - (bb / 2);
posLeft=w;


	newWindow = window.open("","newWindow", "width="+breite+", height="+hoehe+", left="+posLeft+", top="+posTop+", toolbar=no,status=no,scrollbars=no,resizable=no,menubar=no");
	newWindow.document.open();
	newWindow.document.write('<html><title>'+titel+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">'); 
	newWindow.document.write('<table align="center" width='+breite+' height='+hoehe+' cellpadding="0" cellpadding="0">');
	newWindow.document.write('<tr><td align="center"><img src='+bild+' width='+breite+' height='+hoehe+' alt=""></td></tr></table>'); 
	
	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}



function oeffnen4(url){

var breite = screen.width;
var hoehe = screen.height;
links = breite / 2 - 230;
oben = hoehe / 2 - 200;
fname = "Wein";
parm = "scrollbars=no, resizable=no, width=460,height=400,left="+links+",top="+oben;

F1 = window.open(url,fname,parm);
}




function check(){
     if(document.f.Betreff.selectedIndex < 2){
	 alert ("Bitte wählen Sie einen Betreff aus!");
             document.f.Betreff.focus();
             return false;             }    
        
 if (document.f.Name.value == "")       {
             alert ("Bitte geben Sie Ihren Namen  ein!");
             document.f.Name.focus();
             return false;             }
if ((document.f.Telefon.value == "")&&(document.f.Fax.value == "")&&(document.f.Email.value == ""))
             {
             alert ("Bitte geben Sie eine Telefonnummer, eine Faxnummer und/oder Ihre Mailadresse ein!");
		document.f.Telefon.focus();             
		return false;
             }
if(document.f.Email.value ==""){
	return true;}
if(document.f.Email.value.indexOf('@') == -1) {
   alert("Bitte geben Sie eine gültige Mailadresse ein!");
   document.f.Email.focus();
   return false;
  }
        return true;
        }
