var x,y; var language_id=1; var anz_sub_1_1=0; var anz_sub_1_2=0; var anz_sub_1_3=0; var anz_sub_1_4=0; var anz_sub_1_5=0; var anz_sub_1_6=0; var anz_sub_1_7=0; var anz_sub_1_8=0; var anz_sub_2_1=0; var anz_sub_2_2=0; var anz_sub_2_3=0; var anz_sub_2_4=0; var anz_sub_2_5=0; var anz_sub_2_6=0; var anz_sub_2_7=0; var anz_sub_2_8=0; var anz_sub_3_1=0; var anz_sub_3_2=0; var anz_sub_3_3=0; var anz_sub_3_4=0; var anz_sub_3_5=0; var anz_sub_3_6=0; var anz_sub_3_7=0; var anz_sub_3_8=0; isIE=document.all; DLayerWantMove=false; DLayerWantResize=false; theTopZ=0; function goToHome() { if(language_id==1) { document.location.href="/index.php?directid=268&lang=1"; //doAjaxLink('&id=268'); } if(language_id==2) { document.location.href="/index.php?directid=269&lang=2"; //doAjaxLink('&id=269'); } if(language_id==3) { document.location.href="/index.php?directid=279&lang=3"; //doAjaxLink('&id=279'); } } function FadeBigPic() { parent.frames.document.getElementById("bigpic").style.display="none"; parent.frames.document.getElementById("bigpicsrc").src="/l.gif"; } function openMerkzettel(URL) { var widthpos=(screen.width/2)-512; var heightpos=(screen.height/2)-400; window.open(URL,"print","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,width=650,height=650,left="+widthpos+",top="+heightpos); } function openAGB(URL) { var widthpos=(screen.width/2)-512; var heightpos=(screen.height/2)-400; window.open(URL,"agb","toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=no,width=650,height=650,left="+widthpos+",top="+heightpos); } function intoWarenkorb(cmsid,id,lang_id) { if(id==0)ajaxDataWarenkorb('&cmsid='+cmsid+'&lang='+lang_id); else { document.getElementById("merkzettel").style.display="none"; var anzahl=document.getElementById("anzahl"+id).value; ajaxDataWarenkorb('&cmsid='+cmsid+'&lang='+lang_id+'&articleid='+id+'&anz='+anzahl); } } function loadNavigation(lang_id) { language_id=lang_id; if(lang_id==1) { document.getElementById("slogan").style.display="block"; document.getElementById("1nav1").setAttribute("id","nav1"); document.getElementById("1nav2").setAttribute("id","nav2"); for(i=1;i<=8;i++) { if(document.getElementById("1subnav"+i)!=null) { document.getElementById("1subnav"+i).setAttribute("id","subnav"+i); } } if(language_id==1) { doAjaxLink('&id=268'); } if(language_id==2) { doAjaxLink('&id=269'); } if(language_id==3) { doAjaxLink('&id=279'); } } if(lang_id==2) { document.getElementById("sloganen").style.display="block"; document.getElementById("2nav1").setAttribute("id","nav1"); document.getElementById("2nav2").setAttribute("id","nav2"); for(i=1;i<=8;i++) { if(document.getElementById("2subnav"+i)!=null) { document.getElementById("2subnav"+i).setAttribute("id","subnav"+i); } } doAjaxLink('&id=269'); } if(lang_id==3) { document.getElementById("sloganfr").style.display="block"; document.getElementById("3nav1").setAttribute("id","nav1"); document.getElementById("3nav2").setAttribute("id","nav2"); for(i=1;i<=8;i++) { if(document.getElementById("3subnav"+i)!=null) { document.getElementById("3subnav"+i).setAttribute("id","subnav"+i); } } doAjaxLink('&id=279'); } initWebPage(0,lang_id); } function DLayerToTop(id) { document.getElementById(id).style.zIndex = theTopZ; theTopZ+=1; } function ddInit(e) { if (DLayerWantMove) { wichDLayer = isIE ? document.all[DLayerWantMove] : document.getElementById(DLayerWantMove); offsetx = isIE ? event.clientX : e.clientX; offsety = isIE ? event.clientY : e.clientY; nowX = parseInt(wichDLayer.style.left); nowY = parseInt(wichDLayer.style.top); ddEnabled = true; document.onmousemove=dd; } if (DLayerWantResize) { wichDLayer = isIE ? document.all[DLayerWantResize] : document.getElementById(DLayerWantResize); offsetx = isIE ? event.clientX : e.clientX; offsety = isIE ? event.clientY : e.clientY; movesetx = 0; movesety = 0; ddEnabled = true; document.onmousemove=de; } } function dd(e) { if (!ddEnabled) return; wichDLayer.style.left = isIE ? Math.max(nowX+event.clientX-offsetx,0) : Math.max(nowX+e.clientX-offsetx,0)+"px"; wichDLayer.style.top = isIE ? Math.max(nowY+event.clientY-offsety,0) : Math.max(nowY+e.clientY-offsety,0)+"px"; return false; } function de(e) { if (!ddEnabled) return; wichDLayer.style.width = isIE ? Math.max(parseInt(wichDLayer.style.width) - (offsetx - event.clientX) + movesetx,200) : Math.max(parseInt(wichDLayer.style.width) - (offsetx - e.clientX) + movesetx,200); movesetx = isIE ? offsetx - event.clientX : offsetx - e.clientX; wichDLayer.style.height = isIE ? Math.max(parseInt(wichDLayer.style.height) - (offsety - event.clientY) + movesety,100) : Math.max(parseInt(wichDLayer.style.height) - (offsety - e.clientY) + movesety,100); movesety = isIE ? offsety - event.clientY : offsety - e.clientY; return false; } function hideMe() { wichDLayer.style.visibility="hidden"; } function showMe() { wichDLayer.style.visibility="visible"; } document.onmousedown=ddInit; document.onmouseup=Function("ddEnabled=false"); var navactive=1; var appeartimer1=0; var appeartimer2=0; var appeartimer3=0; var appeartimer4=0; var appeartimer5=0; var appeartimer6=0; var appeartimer7=0; var appeartimer8=0; var ajaxtimer=0; var ajaxtimer2=0; var emotimer=0; var divtimer=0; var divtimer2=0; function mouseOverMainNav(navid) { if(navid==1)window.clearTimeout(appeartimer1); if(navid==2)window.clearTimeout(appeartimer2); if(navid==3)window.clearTimeout(appeartimer3); if(navid==4)window.clearTimeout(appeartimer4); if(navid==5)window.clearTimeout(appeartimer5); if(navid==6)window.clearTimeout(appeartimer6); if(navid==7)window.clearTimeout(appeartimer7); if(navid==8)window.clearTimeout(appeartimer8); document.getElementById(language_id+"navarr"+navid).src='/cms/site/img/nav/'+navid+'.gif'; for(i=1;i<=8;i++) { if(i!=navid ) if(document.getElementById("subnav"+i)!=null) document.getElementById("subnav"+i).style.display="none"; } if(document.getElementById("subnav"+navid)!=null) { document.getElementById("subnav"+navid).style.display="block"; } } var lastid=0; esrc=0; function newEmo(id,id2) { window.clearTimeout(emotimer); //Mainnav switch(id) { case 1: esrc="dandaniell0.jpg";break; case 2: esrc="dandaniell1.jpg";break; case 3: esrc="light.jpg";break; case 4: esrc="shop.jpg";break; case 5: esrc="restaurant5.jpg";break; case 6: esrc="menue5.jpg";break; case 7: esrc="dandaniell3.jpg";break; case 8: esrc="menue6.jpg";break; default: esrc="dandaniell3.jpg"; } if(id2>0) { switch(id2) { //Rezepte case 249: esrc="menue1.jpg";break; case 251: esrc="menue2.jpg";break; case 287: esrc="menue1.jpg";break; case 288: esrc="menue2.jpg";break; case 311: esrc="menue1.jpg";break; case 312: esrc="menue2.jpg";break; //Weinkarte case 247: esrc="menue11.jpg";break; case 286: esrc="menue11.jpg";break; case 310: esrc="menue11.jpg";break; //Speisekarte case 248: esrc="restaurant.jpg";break; case 285: esrc="restaurant.jpg";break; case 309: esrc="restaurant.jpg";break; //Gallery-Gäste case 257: esrc="restaurant2.jpg";break; case 289: esrc="restaurant2.jpg";break; case 313: esrc="restaurant2.jpg";break; //Gallery-Restaurant case 258: esrc="restaurant4.jpg";break; case 291: esrc="restaurant4.jpg";break; case 315: esrc="restaurant4.jpg";break; //Gallery-DanDaniell case 259: esrc="dandaniell3.jpg";break; case 292: esrc="dandaniell3.jpg";break; case 316: esrc="dandaniell3.jpg";break; //Contact-DanDaniell case 252: esrc="dandaniell3.jpg";break; case 293: esrc="dandaniell3.jpg";break; case 317: esrc="dandaniell3.jpg";break; //Contact-Reservation case 254: esrc="restaurant1.jpg";break; case 295: esrc="restaurant1.jpg";break; case 319: esrc="restaurant1.jpg";break; default: esrc=esrc; } } if(document.getElementById(language_id+"label"+lastid)!=null) document.getElementById(language_id+"label"+lastid).style.display="none"; if(document.getElementById(language_id+"label"+id)!=null) document.getElementById(language_id+"label"+id).style.display="block"; if(id>0) { document.getElementById("emopic").innerHTML=''; new Effect.Appear($("emopic"), {duration: 0.5}); //document.getElementById("emopic").style.display="block"; } lastid=id; } function doSubNav(mainid,id) { document.getElementById('specialcontent').style.display='none'; navactive=mainid; new Effect.Fade($("emopic"), {duration: 0.5}); emotimer=window.setTimeout("newEmo("+mainid+","+id+")",800); for(i=1;i<=8;i++) { document.getElementById(language_id+"lknav"+i).style.fontWeight="normal"; document.getElementById(language_id+"navarr"+i).src='/cms/site/img/nav/0.gif'; } document.getElementById(language_id+"lknav"+mainid).style.fontWeight="bold"; document.getElementById(language_id+"navarr"+mainid).src='/cms/site/img/nav/'+mainid+'.gif'; overinit(); if(id==103) { document.getElementById("aboutContent").innerHTML=""; document.getElementById('specialcontent').style.display='block'; document.getElementById('specialcontent').src='/testgallery.php'; ajaxtimer=window.setTimeout("startInitScroller()",1200); } else { document.getElementById("loadingajax").style.display="block"; overblende("loadingajax"); new Effect.Fade($("aboutContent"), {duration: 0.5}); ajaxtimer=window.setTimeout("startAjaxData("+id+")",600); } } function doMainNav(id,cmsid) { navactive=id; document.getElementById('specialcontent').style.display='none'; new Effect.Fade($("emopic"), {duration: 0.5}); emotimer=window.setTimeout("newEmo("+id+",0)",800); for(i=1;i<=8;i++) { document.getElementById(language_id+"lknav"+i).style.fontWeight="normal"; document.getElementById(language_id+"navarr"+i).src='/cms/site/img/nav/0.gif'; } document.getElementById(language_id+"lknav"+id).style.fontWeight="bold"; document.getElementById(language_id+"navarr"+id).src='/cms/site/img/nav/'+id+'.gif'; overinit(); document.getElementById("loadingajax").style.display="block"; overblende("loadingajax"); new Effect.Fade($("aboutContent"), {duration: 0.5}); ajaxtimer=window.setTimeout("startAjaxData("+cmsid+")",600); } function doAjaxLink(str) { overinit(); document.getElementById("loadingajax").style.display="block"; overblende("loadingajax"); new Effect.Fade($("aboutContent"), {duration: 0.5}); //alert("test"); ajaxtimer2=window.setTimeout("startAjaxDataLink('"+str+"')",700); } function startAjaxDataLink(str) { window.clearTimeout(ajaxtimer2); ajaxData(str); initScroller(); } var uebergabe=""; function startAjaxData(id) { window.clearTimeout(ajaxtimer); if(id==242 || id==260 || id==261) { intoWarenkorb(id,0,language_id); document.getElementById("warenkorb").style.display="block"; document.getElementById("merkzettel").style.display="none"; } ajaxData("&id="+id+"&str="+uebergabe); uebergabe=""; } function ajaxData(postbodyvars) { var ajax_feed=new Ajax.Request( "/ajaxcontent.php", { method: "post", postBody: postbodyvars+"&PHPSESSID=a3d8b53debf19f0629e6de4841b2987d", onSuccess: ajaxDataOK, onFailure: ajaxDataError } ) } function startInitScroller() { window.clearTimeout(ajaxtimer); initScroller(); } function ajaxDataOK(request) { document.getElementById("aboutContent").innerHTML=request.responseText; document.getElementById("loadingajax").style.display="none"; blendehide(); new Effect.Appear($("aboutContent"), {duration: 0.5}); ajaxtimer=window.setTimeout("startInitScroller()",1200); } function ajaxDataError(request) { document.getElementById("loadingajax").style.display="none"; blendehide(); } function ajaxDataMerkzettel(postbodyvars) { document.getElementById("warenkorb").style.display="none"; var aktuellx=document.getElementById("mainframe").style.left; var aktuelly=document.getElementById("mainframe").style.top; aktuellx=parseInt((aktuellx.replace("px",""))); aktuelly=parseInt((aktuelly.replace("px",""))); document.getElementById("merkzettel").style.left=aktuellx+740+"px"; document.getElementById("merkzettel").style.top=aktuelly; overinit(); document.getElementById("loadingajax").style.display="block"; overblende("loadingajax"); var ajax_feed=new Ajax.Request( "/merkzettel.php", { method: "post", postBody: postbodyvars, onSuccess: MerkzettelOK, onFailure: MerkzettelError } ) } function MerkzettelOK(request) { document.getElementById("merkzettel").innerHTML=request.responseText; document.getElementById("loadingajax").style.display="none"; blendehide(); document.getElementById("merkzettel").style.display="block"; } function MerkzettelError(request) { document.getElementById("loadingajax").style.display="none"; blendehide(); } function ajaxDataWarenkorb(postbodyvars) { var aktuellx=document.getElementById("mainframe").style.left; var aktuelly=document.getElementById("mainframe").style.top; aktuellx=parseInt((aktuellx.replace("px",""))); aktuelly=parseInt((aktuelly.replace("px",""))); document.getElementById("warenkorb").style.left=aktuellx+740+"px"; document.getElementById("warenkorb").style.top=aktuelly; overinit(); document.getElementById("loadingajax").style.display="block"; overblende("loadingajax"); var ajax_feed=new Ajax.Request( "/warenkorb.php", { method: "post", postBody: postbodyvars, onSuccess: WarenkorbOK, onFailure: WarenkorbError } ) } function WarenkorbOK(request) { document.getElementById("warenkorb").innerHTML=request.responseText; document.getElementById("loadingajax").style.display="none"; blendehide(); document.getElementById("warenkorb").style.display="block"; } function WarenkorbError(request) { document.getElementById("loadingajax").style.display="none"; blendehide(); } function holdSub(navid) { if(navid==1)window.clearTimeout(appeartimer1); if(navid==2)window.clearTimeout(appeartimer2); if(navid==3)window.clearTimeout(appeartimer3); if(navid==4)window.clearTimeout(appeartimer4); if(navid==5)window.clearTimeout(appeartimer5); if(navid==6)window.clearTimeout(appeartimer6); if(navid==7)window.clearTimeout(appeartimer7); if(navid==8)window.clearTimeout(appeartimer8); document.getElementById(language_id+"navarr"+navid).src="/cms/site/img/nav/"+navid+".gif"; } function wegSubNav(navid) { document.getElementById("subnav"+navid).style.display="none"; if(navactive!=navid) document.getElementById(language_id+"navarr"+navid).src="/cms/site/img/nav/0.gif"; } function wegSubNavTimer(navid) { if(navid==1)window.clearTimeout(appeartimer1); if(navid==2)window.clearTimeout(appeartimer2); if(navid==3)window.clearTimeout(appeartimer3); if(navid==4)window.clearTimeout(appeartimer4); if(navid==5)window.clearTimeout(appeartimer5); if(navid==6)window.clearTimeout(appeartimer6); if(navid==7)window.clearTimeout(appeartimer7); if(navid==8)window.clearTimeout(appeartimer8); if(navid==1)appeartimer1=window.setTimeout("wegSubNav("+navid+")",200); if(navid==2)appeartimer2=window.setTimeout("wegSubNav("+navid+")",200); if(navid==3)appeartimer3=window.setTimeout("wegSubNav("+navid+")",200); if(navid==4)appeartimer4=window.setTimeout("wegSubNav("+navid+")",200); if(navid==5)appeartimer5=window.setTimeout("wegSubNav("+navid+")",200); if(navid==6)appeartimer6=window.setTimeout("wegSubNav("+navid+")",200); if(navid==7)appeartimer7=window.setTimeout("wegSubNav("+navid+")",200); if(navid==8)appeartimer8=window.setTimeout("wegSubNav("+navid+")",200); } function mouseOutMainNav(navid) { if(navactive!=navid) document.getElementById(language_id+"navarr"+navid).src='/cms/site/img/nav/0.gif'; if(document.getElementById("subnav"+navid)!=null) { if(navid==1)window.clearTimeout(appeartimer1); if(navid==2)window.clearTimeout(appeartimer2); if(navid==3)window.clearTimeout(appeartimer3); if(navid==4)window.clearTimeout(appeartimer4); if(navid==5)window.clearTimeout(appeartimer5); if(navid==6)window.clearTimeout(appeartimer6); if(navid==7)window.clearTimeout(appeartimer7); if(navid==8)window.clearTimeout(appeartimer8); if(navid==1)appeartimer1=window.setTimeout("wegSubNav("+navid+")",500); if(navid==2)appeartimer2=window.setTimeout("wegSubNav("+navid+")",500); if(navid==3)appeartimer3=window.setTimeout("wegSubNav("+navid+")",500); if(navid==4)appeartimer4=window.setTimeout("wegSubNav("+navid+")",500); if(navid==5)appeartimer5=window.setTimeout("wegSubNav("+navid+")",500); if(navid==6)appeartimer6=window.setTimeout("wegSubNav("+navid+")",500); if(navid==7)appeartimer7=window.setTimeout("wegSubNav("+navid+")",500); if(navid==8)appeartimer8=window.setTimeout("wegSubNav("+navid+")",500); } } function updatePosition(reset) { if(webstatus==0)return; var zeit = new Date(); document.getElementById("resetposition").style.display="block"; document.getElementById("loadingajax").style.display="none"; var str="/positionstorage.php?logoX="+document.getElementById("logo").style.left+"&logoY="+document.getElementById("logo").style.top; str+="&mainframeX="+document.getElementById("mainframe").style.left+"&mainframeY="+document.getElementById("mainframe").style.top; str+="&comigfigurX="+document.getElementById("comigfigur").style.left+"&comigfigurY="+document.getElementById("comigfigur").style.top; str+="&logodandaniellX="+document.getElementById("logodandaniell").style.left+"&logodandaniellY="+document.getElementById("logodandaniell").style.top; str+="&nav1X="+document.getElementById("nav1").style.left+"&nav1Y="+document.getElementById("nav1").style.top; str+="&nav2X="+document.getElementById("nav2").style.left+"&nav2Y="+document.getElementById("nav2").style.top; str+="&diamant1X="+document.getElementById("diamant1").style.left+"&diamant1Y="+document.getElementById("diamant1").style.top; str+="&diamant2X="+document.getElementById("diamant2").style.left+"&diamant2Y="+document.getElementById("diamant2").style.top; str+="&diamant3X="+document.getElementById("diamant3").style.left+"&diamant3Y="+document.getElementById("diamant3").style.top; str+="&diamant4X="+document.getElementById("diamant4").style.left+"&diamant4Y="+document.getElementById("diamant4").style.top; if(reset==0)str+="&original=2"; if(reset==1)str+="&original=1"; str+="&time="+zeit.getMilliseconds(); document.getElementById("controller").src=str; var aktuellx=document.getElementById("mainframe").style.left; var aktuelly=document.getElementById("mainframe").style.top; aktuellx=parseInt((aktuellx.replace("px",""))); aktuelly=parseInt((aktuelly.replace("px",""))); document.getElementById("merkzettel").style.left=aktuellx+740+"px"; document.getElementById("merkzettel").style.top=aktuelly; document.getElementById("warenkorb").style.left=aktuellx+740+"px"; document.getElementById("warenkorb").style.top=aktuelly; } function ShakeIt(id) { new Effect.Shake($(id), {duration: 0.2}); } var webstatus=0; var lang_id=1; function moveElement(elementname,zielX,zielY,wegX,wegY) { document.getElementById(elementname).style.left=parseInt(zielX+wegX)+"px"; document.getElementById(elementname).style.top=parseInt(zielY+wegY)+"px"; document.getElementById(elementname).style.display="block"; new Effect.Move(elementname,{ x: -wegX, y: -wegY }); } var webstart=0; function initWebPageStart(stat) { document.getElementById("loadingajax").style.display="none"; if (self.innerHeight) // all except Explorer { x = self.innerWidth; y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } else if (document.body) // other Explorers { x = document.body.clientWidth; y = document.body.clientHeight; } //Diamanten sichtbar schalten moveElement("diamant1",(x/2)-(320),(y/2)-(250)+20,-730,+180); moveElement("diamant2",(x/2)-(250),(y/2)-(200)+20,+730,+180); moveElement("diamant3",(x/2)-(280),(y/2)-(170)+20,+730,-180); moveElement("diamant4",(x/2)-(280),(y/2)-(240)+20,-730,-180); moveElement("langchoice",(x/2)-(170),(y/2)-(450/2)+80,+10,-1800); startAnsage(); } function initWebPage(reset,language) { if(webstatus==0)new Effect.Fade($("langchoice"), {duration: 0.5}); webstatus=1; if (self.innerHeight) // all except Explorer { x = self.innerWidth; y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } else if (document.body) // other Explorers { x = document.body.clientWidth; y = document.body.clientHeight; } if(reset==0) { moveElement("mainframe",(x/2)-(737/2),(y/2)-(450/2)+20,1000,+200); }else { var aktuellx=document.getElementById("mainframe").style.left; var aktuelly=document.getElementById("mainframe").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(aktuellx<(x/2)-(737/2))aktuellx=(x/2)-(737/2)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(737/2))); if(aktuelly<(y/2)-(450/2)+20)aktuelly=(y/2)-(450/2)+20-aktuelly; else aktuelly=-(aktuelly-((y/2)-(450/2)+20)); moveElement("mainframe",(x/2)-(737/2),(y/2)-(450/2)+20,-aktuellx,-aktuelly); } if(reset==0) { moveElement("logodandaniell",(x/2)-(5),((y/2)-(325))+20,-1000,-200); }else { var aktuellx=document.getElementById("logodandaniell").style.left; var aktuelly=document.getElementById("logodandaniell").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(aktuellx<(x/2)-(5))aktuellx=(x/2)-(5)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(5))); if(aktuelly<((y/2)-(325))+20)aktuelly=((y/2)-(325))+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)-(325))+20)); moveElement("logodandaniell",(x/2)-(5),((y/2)-(325))+20,-aktuellx,-aktuelly); } if(reset==0) { moveElement("logo",(x/2)-(370),((y/2)-(325))+20,+2000,-200); }else { var aktuellx=document.getElementById("logo").style.left; var aktuelly=document.getElementById("logo").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(aktuellx<(x/2)-(370))aktuellx=(x/2)-(370)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(370))); if(aktuelly<((y/2)-(325))+20)aktuelly=((y/2)-(325))+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)-(325))+20)); moveElement("logo",(x/2)-(370),((y/2)-(325))+20,-aktuellx,-aktuelly); } if(reset==0) { moveElement("comigfigur",(x/2)-(380),((y/2)-(230))+20,-500,0); }else { var aktuellx=document.getElementById("comigfigur").style.left; var aktuelly=document.getElementById("comigfigur").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(aktuellx<(x/2)-(380))aktuellx=(x/2)-(380)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(380))); if(aktuelly<((y/2)-(230))+20)aktuelly=((y/2)-(230))+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)-(230))+20)); moveElement("comigfigur",(x/2)-(380),((y/2)-(230))+20,-aktuellx,-aktuelly); } var aktuellx=document.getElementById("diamant1").style.left; var aktuelly=document.getElementById("diamant1").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(reset==0) { moveElement("diamant1",(x/2)-(320),((y/2)-(250))+20,-aktuellx,-aktuelly); }else { if(aktuellx<(x/2)-(320))aktuellx=(x/2)-(320)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(320))); if(aktuelly<((y/2)-(250))+20)aktuelly=((y/2)-(250))+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)-(250))+20)); moveElement("diamant1",(x/2)-(320),((y/2)-(250))+20,-aktuellx,-aktuelly); } var aktuellx=document.getElementById("diamant2").style.left; var aktuelly=document.getElementById("diamant2").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(reset==0) { moveElement("diamant2",(x/2)-(320),((y/2)-(220))+20,-aktuellx,-aktuelly); }else { if(aktuellx<(x/2)-(320))aktuellx=(x/2)-(320)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(320))); if(aktuelly<((y/2)-(220))+20)aktuelly=((y/2)-(220))+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)-(220))+20)); moveElement("diamant2",(x/2)-(320),((y/2)-(220))+20,-aktuellx,-aktuelly); } var aktuellx=document.getElementById("diamant3").style.left; var aktuelly=document.getElementById("diamant3").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(reset==0) { moveElement("diamant3",(x/2)-(280),((y/2)-(170))+20,-aktuellx,-aktuelly); }else { if(aktuellx<(x/2)-(280))aktuellx=(x/2)-(280)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(280))); if(aktuelly<((y/2)-(170))+20)aktuelly=((y/2)-(170))+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)-(170))+20)); moveElement("diamant3",(x/2)-(280),(y/2)-(170)+20,-aktuellx,-aktuelly); } var aktuellx=document.getElementById("diamant4").style.left; var aktuelly=document.getElementById("diamant4").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(reset==0) { moveElement("diamant4",(x/2)-(280),((y/2)-(240))+20,-aktuellx,-aktuelly); }else { if(aktuellx<(x/2)-(280))aktuellx=(x/2)-(280)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(280))); if(aktuelly<((y/2)-(240))+20)aktuelly=((y/2)-(240))+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)-(240))+20)); moveElement("diamant4",(x/2)-(280),((y/2)-(240))+20,-aktuellx,-aktuelly); } if(reset==0) { moveElement("nav1",(x/2)-(490),((y/2)+165)+20,0,+500); }else { var aktuellx=document.getElementById("nav1").style.left; var aktuelly=document.getElementById("nav1").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(aktuellx<(x/2)-(500))aktuellx=(x/2)-(490)-aktuellx; else aktuellx=-(aktuellx-((x/2)-(490))); if(aktuelly<((y/2)+165)+20)aktuelly=((y/2)+165)+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)+165)+20)); moveElement("nav1",(x/2)-(490),((y/2)+165)+20,-aktuellx,-aktuelly); } if(reset==0) { moveElement("nav2",((x/2)+10),((y/2)+165)+20,0,+500); }else { var aktuellx=document.getElementById("nav2").style.left; var aktuelly=document.getElementById("nav2").style.top; aktuellx=(aktuellx.replace("px","")); aktuelly=(aktuelly.replace("px","")); if(aktuellx<((x/2)+20))aktuellx=((x/2)+10)-aktuellx; else aktuellx=-(aktuellx-(((x/2)+10))); if(aktuelly<((y/2)+165)+20)aktuelly=((y/2)+165)+20-aktuelly; else aktuelly=-(aktuelly-(((y/2)+165)+20)); moveElement("nav2",((x/2)+10),((y/2)+165)+20,-aktuellx,-aktuelly); } initSubNavigation(); if(reset==1) { //warte 5 Sekunden divtimer=window.setTimeout("doUpdatePos()",2000); } //WEG WEGEN SOUND!!! divtimer2=window.setTimeout("allowScroll()",1400); } function allowScroll() { window.clearTimeout(divtimer2); document.body.style.overflow = "auto"; } function doUpdatePos() { window.clearTimeout(divtimer); updatePosition(1); document.getElementById("resetposition").style.display="none"; } function initSubNavigation() { var anzsub=0; var str=document.getElementById("nav1").style.top; if(language_id==1)anzsub=anz_sub_1_1; if(language_id==2)anzsub=anz_sub_2_1; if(language_id==3)anzsub=anz_sub_3_1; if(document.getElementById("subnav1")!=null) document.getElementById("subnav1").style.top=19-(anzsub*19)-11+"px"; if(language_id==1)anzsub=anz_sub_1_2; if(language_id==2)anzsub=anz_sub_2_2; if(language_id==3)anzsub=anz_sub_3_2; if(document.getElementById("subnav2")!=null) document.getElementById("subnav2").style.top=39-(anzsub*19)-11+"px"; if(language_id==1)anzsub=anz_sub_1_3; if(language_id==2)anzsub=anz_sub_2_3; if(language_id==3)anzsub=anz_sub_3_3; if(document.getElementById("subnav3")!=null) document.getElementById("subnav3").style.top=59-(anzsub*19)-11+"px"; if(language_id==1)anzsub=anz_sub_1_4; if(language_id==2)anzsub=anz_sub_2_4; if(language_id==3)anzsub=anz_sub_3_4; if(document.getElementById("subnav4")!=null) document.getElementById("subnav4").style.top=79-(anzsub*19)-11+"px"; str=document.getElementById("nav2").style.top; if(language_id==1)anzsub=anz_sub_1_5; if(language_id==2)anzsub=anz_sub_2_5; if(language_id==3)anzsub=anz_sub_3_5; if(document.getElementById("subnav5")!=null) document.getElementById("subnav5").style.top=19-(anzsub*19)-11+"px"; if(language_id==1)anzsub=anz_sub_1_6; if(language_id==2)anzsub=anz_sub_2_6; if(language_id==3)anzsub=anz_sub_3_6; if(document.getElementById("subnav6")!=null) document.getElementById("subnav6").style.top=39-(anzsub*19)-11+"px"; if(language_id==1)anzsub=anz_sub_1_7; if(language_id==2)anzsub=anz_sub_2_7; if(language_id==3)anzsub=anz_sub_3_7; if(document.getElementById("subnav7")!=null) document.getElementById("subnav7").style.top=59-(anzsub*19)-11+"px"; if(language_id==1)anzsub=anz_sub_1_8; if(language_id==2)anzsub=anz_sub_2_8; if(language_id==3)anzsub=anz_sub_3_8; if(document.getElementById("subnav8")!=null) document.getElementById("subnav8").style.top=79-(anzsub*19)-11+"px"; } function openBigPic(picturesrc,breite) { document.getElementById("bigpicsrc").src="/l.gif"; var aktuellx=document.getElementById("mainframe").style.left; var aktuelly=document.getElementById("mainframe").style.top; aktuellx=parseInt((aktuellx.replace("px",""))); aktuelly=parseInt((aktuelly.replace("px",""))); if(breite==600) { document.getElementById("bigpic").style.left=aktuellx+"px"; document.getElementById("bigpic").style.top=aktuelly-25+"px"; } else { document.getElementById("bigpic").style.left=aktuellx+260+"px"; document.getElementById("bigpic").style.top=aktuelly-25+"px"; } document.getElementById("bigpic").style.display="block"; document.getElementById("bigpicsrc").src=picturesrc; if(breite==400)document.getElementById("b2").style.left="334px"; if(breite==600)document.getElementById("b2").style.left="534px"; } var ansagentimer=0; function startAnsage2() { window.clearTimeout(ansagentimer); document.getElementById("ansage").src="/cms/site/ansage.php"; } function startAnsage() { ansagentimer=window.setTimeout("startAnsage2()",500); } function clearAnsage() { if(!isIE) document.getElementById("ansage").src="/l.gif"; } function openPopupSpecial(url,breite,hoehe) { win=window.open(url,"window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+breite+",height="+hoehe+",left=200,top=200"); }