
function YY_LS(das, ex, ey, dly, sx, loop, dx, dy){//v4.08
//copyright (c)2000,2001 Yaromat.com
    var s=MM_findObj(das),d=document,c,t,l,ct,cb,cl,cr,ncl,nct,ncr,ncb,doto,sy=sx,yx,yy,st;
    if(!s.ot){s.ot=(d.layers)?s.top:s.style.top;s.ol=(d.layers)?s.left:s.style.left;}
    with(Math)if(d.layers){
        ct=s.clip.top;cb=s.clip.bottom;cl=s.clip.left;cr=s.clip.right;t=s.top;l=s.left;
        yy=abs(round((ct-ey)/sy));dy=round((ey-ct)/yy);
        yx=abs(round((cl-ex)/sx));dx=round((ex-cl)/yx);
        if(yx<1){dx=0}else{yx--};if(yy<1){dy=0}else{yy--};
        s.clip.top=ct+dy; s.clip.bottom=cb+dy;s.top=t-dy;s.clip.left=cl+dx;s.clip.right=cr+dx;s.left=l-dx;
    }else if ((d.all||d.getElementById)&&s.style.clip){
      st=s.style;
        l=parseInt((d.getElementById)?st.left:st.pixelLeft);t=parseInt((d.getElementById)?st.top:st.pixelTop);
        c=st.clip.match(/rect.(\d+)[a-z,A-Z,\s]+(\d+)[a-z,A-Z,\s]+(\d+)[a-z,A-Z,\s]+(\d+).*/);
        ct=c[1]/1;cr=c[2]/1;cb=c[3]/1;cl=c[4]/1;
        yy=abs(round((ct-ey)/sy));yx=abs(round((cl-ex)/sx));
        dx=(yx<1)?0:round(-(cl-ex)/yx);dy=(yy<1)?0:round(-(ct-ey)/yy);
        ncl=cl+dx;nct=ct+dy;ncr=cr+dx;ncb=cb+dy;
        st.pixelTop=t-dy;st.pixelLeft=l-dx;st.left=l-dx;st.top=t-dy;
        eval("st.clip='rect('+nct+' '+ncr+' '+ncb+' '+ncl+')'");yy--;yx--;
    }
    if(s.yyto)clearTimeout(s.yyto);
    if(yy>0||yx>0){doto=true;}else if(dly>-1&&loop==true){
        if(d.layers){s.left=s.ol;s.clip.left=0;s.clip.right=cr-cl;s.top=s.ot;s.clip.top=0;s.clip.bottom=cb-ct;
        }else{eval("st.clip='rect('+0+' '+(cr-cl)+' '+(cb-ct)+' '+0+')'");st.top=s.ot;st.left=s.ol;}
        doto=true;
    }
    if(doto==true)s.yyto=setTimeout("YY_LS(\""+das+"\","+ex+","+ey+","+dly+","+sx+","+loop+","+dx+","+dy+")",dly);
}
//-->

function OpenWindow(strURL) {
newWindow=window.open(strURL,"Fotos","status=yes,scrollbars=yes,HEIGHT=800,WIDTH=800,resizable=yes")
newWindow.focus;
return newWindow;
}

function OpenTischplan(strURL) {
newWindow=window.open(strURL,"Reservierung","status=yes,scrollbars=yes,HEIGHT=800,WIDTH=600,resizable=yes")
newWindow.focus();
}

function changeColor(el) {
//alert(el.style.value);
if (el.style.value!="border:bottom: solid 1px #cccccc") {
		el.style.value="border:bottom: solid 1px #cccccc";
	} else {
		el.style.value="";
	}
}

function Groesse(klein, mittel, gross)
{
Vergleich=1024;
if (screen.width>Vergleich) {
	Groesse=gross;
} else if (screen.width==Vergleich) {
	Groesse=mittel;
} else {
	Groesse=klein;
}
document.all.Pic.width=Groesse;
return Groesse;
}

function CSS_Wechsel() {
	alert(screen.width);
	switch (screen.width){
	    case 1400:
	    case 1280:
 		case 1024:
 			document.getElementById("css").href = "content1280.css";
 			break;
 		case 640:
 			document.getElementById("css").href = "content640.css";
 			break;
 		case 800:
 		default:
 			document.getElementById("css").href = "content800.css";
 			break;
	}


 	return 1;
}


function zeigeBilder(){
	bildDiv =  MM_findObj('Fotos');
	bildDiv.style.visibility = 'visible';
}

function waehleBild(bildSrc){
	bildInput = MM_findObj('Bild');
	bildInput.value = bildSrc;
	bildDiv =  MM_findObj('Fotos');
	bildDiv.style.visibility = 'hidden';
}
