/** comnex.net combined. timestamp: 1300201841 */
(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}
if(p==this){return false;}
var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}
if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);;(function($){$.fn.superfish=function(op){var sf=$.fn.superfish,c=sf.c,$arrow=$(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),over=function(){var $$=$(this),menu=getMenu($$);clearTimeout(menu.sfTimer);$$.showSuperfishUl().siblings().hideSuperfishUl();},out=function(){var $$=$(this),menu=getMenu($$),o=sf.op;clearTimeout(menu.sfTimer);menu.sfTimer=setTimeout(function(){o.retainPath=($.inArray($$[0],o.$path)>-1);$$.hideSuperfishUl();if(o.$path.length&&$$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}},o.delay);},getMenu=function($menu){var menu=$menu.parents(['ul.',c.menuClass,':first'].join(''))[0];sf.op=sf.o[menu.serial];return menu;},addArrow=function($a){$a.addClass(c.anchorClass).append($arrow.clone());};return this.each(function(){var s=this.serial=sf.o.length;var o=$.extend({},sf.defaults,op);o.$path=$('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){$(this).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass);});sf.o[s]=sf.op=o;$('li:has(ul)',this)[($.fn.hoverIntent&&!o.disableHI)?'hoverIntent':'hover'](over,out).each(function(){if(o.autoArrows)addArrow($('>a:first-child',this));}).not('.'+c.bcClass).hideSuperfishUl();var $a=$('a',this);$a.each(function(i){var $li=$a.eq(i).parents('li');$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});});o.onInit.call(this);}).each(function(){var menuClasses=[c.menuClass];if(sf.op.dropShadows&&!($.browser.msie&&$.browser.version<7))menuClasses.push(c.shadowClass);$(this).addClass(menuClasses.join(' '));});};var sf=$.fn.superfish;sf.o=[];sf.op={};sf.IE7fix=function(){var o=sf.op;if($.browser.msie&&$.browser.version>6&&o.dropShadows&&o.animation.opacity!=undefined)
this.toggleClass(sf.c.shadowClass+'-off');};sf.c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',arrowClass:'sf-sub-indicator',shadowClass:'sf-shadow'};sf.defaults={hoverClass:'sfHover',pathClass:'overideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},speed:'normal',autoArrows:true,dropShadows:true,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};$.fn.extend({hideSuperfishUl:function(){var o=sf.op,not=(o.retainPath===true)?o.$path:'';o.retainPath=false;var $ul=$(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass).find('>ul').hide().css('visibility','hidden');o.onHide.call($ul);return this;},showSuperfishUl:function(){var o=sf.op,sh=sf.c.shadowClass+'-off',$ul=this.addClass(o.hoverClass).find('>ul:hidden').css('visibility','visible');sf.IE7fix.call($ul);o.onBeforeShow.call($ul);$ul.animate(o.animation,o.speed,function(){sf.IE7fix.call($ul);o.onShow.call($ul);});return this;}});})(jQuery);$(document).ready(function(){$('ul.sf-menu').superfish({delay:200,animation:{opacity:'show'},speed:'fast',onInit:function(){$(".sf-vertical li.current ul").css("display","block").css("visibility","visible");}});$('ul.sf-menu').mouseout(function(){$(".sf-vertical li.current ul").css("display","block").css("visibility","visible");});$('ul.sf-menu li.current ul').mouseout(function(){$(".sf-vertical li.current ul").css("display","block").css("visibility","visible");});if($("#land :selected").text()=="Österreich"){$(".bundesland").fadeIn("fast");}
$("#land").change(function(){if($("#land :selected").text()=="Österreich"){$(".bundesland").fadeIn("fast");}else{$(".bundesland").fadeOut("hide");}});});var searchExtClosed=new Array(true);function toggleExtSearch(id){if(searchExtClosed[id-1]){searchExtClosed[id-1]=false;document.getElementById('searchtype_arrow_'+id).src='../arrowUp.png';document.getElementById('searchtype_box_01').style.visibility='visible';}else{searchExtClosed[id-1]=true;document.getElementById('searchtype_arrow_'+id).src='../arrowDown.png';document.getElementById('searchtype_box_01').style.visibility='hidden';}}
function chooseSearchtype(id,type){toggleExtSearch(id);document.getElementById('searchtype_selected_'+id).firstChild.nodeValue=document.getElementsByName('searchtype')[type].value;}
function showNewsGroup(count,row){var node=document.getElementById(newsGroupItems[count]['ID']);for(var i=0;i<node.getElementsByTagName('div').length;++i){if(row*3<=i&&i<=row*3+2){showElement(node.getElementsByTagName('div')[i]);}else{hideElement(node.getElementsByTagName('div')[i]);}}
for(var i=0;i<node.getElementsByTagName('div').length/3;++i){if(document.getElementById(newsGroupItems[count]['ID']+'_pager')!=null){if(document.getElementById(newsGroupItems[count]['ID']+'_pager').getElementsByTagName('input')[i]!=null){if(i==row){document.getElementById(newsGroupItems[count]['ID']+'_pager').getElementsByTagName('input')[i].src='fileadmin/templates/activeCar.gif';newsGroupItems[count]['row']=row;}else{document.getElementById(newsGroupItems[count]['ID']+'_pager').getElementsByTagName('input')[i].src='fileadmin/templates/inactiveCar.gif';}}}}}
function showNewsGroupLeft(count){if(newsGroupItems[count]['row']-1>=0){showNewsGroup(count,newsGroupItems[count]['row']-1);}}
function showNewsGroupRight(count){var node=document.getElementById(newsGroupItems[count]['ID']);if(newsGroupItems[count]['row']+1<node.getElementsByTagName('div').length/3){showNewsGroup(count,newsGroupItems[count]['row']+1);}}
function createNewsGroupMenu(count){if(newsGroupItems[count]&&document.getElementById(newsGroupItems[count]['ID']).getElementsByTagName('div').length>3){var inputNode;var attribute;for(var i=0;i<document.getElementById(newsGroupItems[count]['ID']).getElementsByTagName('div').length/3;++i){inputNode=document.createElement('input');inputNode.className='padding';inputNode.src='fileadmin/templates/inactiveCar.gif';inputNode.alt='Blättern';attribute=document.createAttribute('type');attribute.nodeValue='image';inputNode.setAttributeNode(attribute);attribute=document.createAttribute('onclick');attribute.nodeValue='showNewsGroup('+count+','+i+')';inputNode.setAttributeNode(attribute);document.getElementById(newsGroupItems[count]['ID']+'_pager').appendChild(inputNode);}
inputNode=document.createElement('input');inputNode.src='fileadmin/templates/backward.gif';inputNode.alt='Zurück blättern';attribute=document.createAttribute('type');attribute.nodeValue='image';inputNode.setAttributeNode(attribute);attribute=document.createAttribute('onclick');attribute.nodeValue='showNewsGroupLeft('+count+')';inputNode.setAttributeNode(attribute);document.getElementById(newsGroupItems[count]['ID']+'_pager').appendChild(inputNode);inputNode=document.createElement('input');inputNode.src='fileadmin/templates/forward.gif';inputNode.alt='Vorwärts blättern';attribute=document.createAttribute('type');attribute.nodeValue='image';inputNode.setAttributeNode(attribute);attribute=document.createAttribute('onclick');attribute.nodeValue='showNewsGroupRight('+count+')';inputNode.setAttributeNode(attribute);document.getElementById(newsGroupItems[count]['ID']+'_pager').appendChild(inputNode);}}
function getFormValues(){punkte=new Array();punkte["essen"]=document.getElementById("essen").value;punkte["service"]=document.getElementById("service").value;punkte["trinken"]=document.getElementById("weinkarte").value;punkte["ambiente"]=document.getElementById("ambiente").value;gesamt=0;if(!isNaN(parseInt(punkte["essen"])))
gesamt+=parseInt(punkte["essen"]);if(!isNaN(parseInt(punkte["service"])))
gesamt+=parseInt(punkte["service"]);if(!isNaN(parseInt(punkte["trinken"])))
gesamt+=parseInt(punkte["trinken"]);if(!isNaN(parseInt(punkte["ambiente"])))
gesamt+=parseInt(punkte["ambiente"]);document.getElementById("gesamt").value=gesamt;document.getElementById("gesamt_html").innerHTML=gesamt;return punkte;}
function setInputFieldError(inputField){document.getElementById(inputField).style.backgroundColor="#FCC";$("#fehler_"+inputField).remove();$("#"+inputField).after("<p id=\"fehler_"+inputField+"\" style=\"text-align:center;margin:5px 0px 0px 0px;color:#fff;\">Ungültige Eingabe</p>");$("#fehler_"+inputField).hide().fadeIn("200");}
function setInputFieldOk(inputField){document.getElementById(inputField).style.backgroundColor="#FFF";$("#fehler_"+inputField).remove();}
function checkessen(){punkte=new Array();punkte=getFormValues();if(punkte["essen"]){if(punkte["essen"]==parseInt(punkte["essen"])){if(punkte["essen"]>50){setInputFieldError("essen");}else{setInputFieldOk("essen");}}else{setInputFieldError("essen");}}else{setInputFieldOk("essen");}}
function checkservice(){punkte=new Array();punkte=getFormValues();ok=true;if(punkte["service"]){if(punkte["service"]==parseInt(punkte["service"])){if(punkte["service"]<0||punkte["service"]>20){setInputFieldError("service");ok=false;}else{setInputFieldOk("service");}}else{setInputFieldError("service");ok=false;}}else{setInputFieldOk("service");}}
function checkweinkarte(){punkte=new Array();punkte=getFormValues();if(punkte["trinken"]){if(punkte["trinken"]==parseInt(punkte["trinken"])){if(punkte["trinken"]<0||punkte["trinken"]>20){setInputFieldError("weinkarte");}else{setInputFieldOk("weinkarte");}}else{setInputFieldError("weinkarte");}}else{setInputFieldOk("weinkarte");}}
function checkambiente(){punkte=new Array();punkte=getFormValues();if(punkte["ambiente"]){if(punkte["ambiente"]==parseInt(punkte["ambiente"])){if(punkte["ambiente"]<0||punkte["ambiente"]>10){setInputFieldError("ambiente");ok=false;}else{setInputFieldOk("ambiente");}}else{setInputFieldError("ambiente");ok=false;}}else{setInputFieldOk("ambiente");}}
function checkform1(){punkte=new Array();punkte=getFormValues();ok=true;if(punkte["essen"]==parseInt(punkte["essen"])){if(punkte["essen"]<0||punkte["essen"]>50){setInputFieldError("essen");ok=false;}else{setInputFieldOk("essen");}}else{setInputFieldError("essen");ok=false;}
if(punkte["service"]==parseInt(punkte["service"])){if(punkte["service"]<0||punkte["service"]>20){setInputFieldError("service");ok=false;}else{setInputFieldOk("service");}}else{setInputFieldError("service");ok=false;}
if(punkte["trinken"]==parseInt(punkte["trinken"])){if(punkte["trinken"]<0||punkte["trinken"]>20){setInputFieldError("weinkarte");ok=false;}else{setInputFieldOk("weinkarte");}}else{setInputFieldError("weinkarte");ok=false;}
if(punkte["ambiente"]==parseInt(punkte["ambiente"])){if(punkte["ambiente"]<0||punkte["ambiente"]>10){setInputFieldError("ambiente");ok=false;}else{setInputFieldOk("ambiente");}}else{setInputFieldError("ambiente");ok=false;}
if(ok==false){alert("Ihre Bewertung konnte nicht abgeschickt werden! Bitte überprüfen Sie Ihre Eingaben!");}
return ok;}
function max_length(myTextarea){var myText=myTextarea.value;var myLength=myText.length;remain=300-myLength;if(remain<=0){alert("Die maximale Anzahl an Zeichen für Ihr Kommentar wurde erreicht!");myTextarea.value=myText.substring(0,299);document.getElementById("remain_html").innerHTML=0;}else{document.getElementById("remain_html").innerHTML=remain;}}
$(document).ready(function(){var currentPosition01=0;var currentPosition02=0;var currentPosition03=0;var newsWidth=210;var maxNews=15;var news_def=new Array(new Array(0,'newsGroup_01','newsInner01','newsGroup_01_pager','/index.php?id=171'),new Array(1,'newsGroup_RE','newsInner02','newsGroup_RE_pager','/index.php?id=145'),new Array(2,'newsGroup_03','newsInner03','newsGroup_03_pager','/index.php?id=166'));var news_state=new Array(new Array(0,0,0),new Array(0,0,0),new Array(0,0,0));initSlider(news_def[0]);initSlider(news_def[1]);initSlider(news_def[2]);function manageControls(currentID){for(i=0;i<Math.ceil(news_state[currentID][1]/3);i++){if(news_state[currentID][0]==i){$('#navpoint0'+currentID+i).attr("src",'fileadmin/templates/activeCar.gif');}else{$('#navpoint0'+currentID+i).attr("src",'fileadmin/templates/inactiveCar.gif');}}}
function initSlider(newsdef){var news=$('#'+newsdef[1]+' .news');if(news){news_state[newsdef[0]][1]=news.length;news_state[newsdef[0]][2]=Math.ceil(news_state[newsdef[0]][1]/3);$('#'+newsdef[1]).css('overflow','hidden');news.wrapAll('<div id="'+newsdef[2]+'"></div>').css({'float':'left','width':newsWidth-14,'padding':'0 7 0 7'});$('#'+newsdef[2]).css('width',(newsWidth)*news_state[newsdef[0]][1]);for(i=0;i<news_state[newsdef[0]][2];i++){$('#'+newsdef[3]).append('<img src="fileadmin/templates/inactiveCar.gif" id="navpoint0'+newsdef[0]+i+'" class="navcontrol0'+newsdef[0]+'">');}
$('#'+newsdef[3]).append('<img src="fileadmin/templates/backward.gif" id="navleft0'+newsdef[0]+'" class="navcontrol0'+newsdef[0]+'">');$('#'+newsdef[3]).append('<img src="fileadmin/templates/forward.gif" id="navright0'+newsdef[0]+'" class="navcontrol0'+newsdef[0]+'">');manageControls(newsdef[0]);$('.navcontrol0'+newsdef[0]).bind('click',function(){currentID=parseInt($(this).attr('class').substring(11));if($(this).attr('id').substring(0,8)=='navpoint'){news_state[currentID][0]=parseInt($(this).attr('id').substring(10));}else{if($(this).attr('id').substring(0,7)=='navleft'){if(news_state[currentID][0]>0){news_state[currentID][0]=news_state[currentID][0]-1;}}else{if(news_state[currentID][0]<(news_state[currentID][2]-1)){news_state[currentID][0]=news_state[currentID][0]+1;}
else{if((news_state[currentID][1]>=maxNews)&&(news_def[currentID][4]!=''))window.location.href=news_def[currentID][4];}}}
manageControls(currentID);$('#'+news_def[currentID][2]).animate({'marginLeft':newsWidth*3*(-news_state[currentID][0])},800);});}}});eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';5(10.M)(w($){$.N({11:w(j,k){5(!j)t{};w B(d,e){5(!d)t y;6 f=\'\',2=y,E=y;6 g=d.x,12=l(d.O||d.P);6 h=d.v||d.F||\'\';5(d.G){5(d.G.7>0){$.Q(d.G,w(n,a){6 b=a.x,u=l(a.O||a.P);6 c=a.v||a.F||\'\';5(b==8){t}z 5(b==3||b==4||!u){5(c.13(/^\\s+$/)){t};f+=c.H(/^\\s+/,\'\').H(/\\s+$/,\'\')}z{2=2||{};5(2[u]){5(!2[u].7)2[u]=p(2[u]);2[u][2[u].7]=B(a,R);2[u].7=2[u].7}z{2[u]=B(a)}}})}};5(d.I){5(d.I.7>0){E={};2=2||{};$.Q(d.I,w(a,b){6 c=l(b.14),C=b.15;E[c]=C;5(2[c]){5(!2[c].7)2[c]=p(2[c]);2[c][2[c].7]=C;2[c].7=2[c].7}z{2[c]=C}})}};5(2){2=$.N((f!=\'\'?A J(f):{}),2||{});f=(2.v)?(D(2.v)==\'16\'?2.v:[2.v||\'\']).17([f]):f;5(f)2.v=f;f=\'\'};6 i=2||f;5(k){5(f)i={};f=i.v||f||\'\';5(f)i.v=f;5(!e)i=p(i)};t i};6 l=w(s){t J(s||\'\').H(/-/g,"18")};6 m=w(s){t(D s=="19")||J((s&&D s=="K")?s:\'\').1a(/^((-)?([0-9]*)((\\.{0,1})([0-9]+))?$)/)};6 p=w(o){5(!o.7)o=[o];o.7=o.7;t o};5(D j==\'K\')j=$.S(j);5(!j.x)t;5(j.x==3||j.x==4)t j.F;6 q=(j.x==9)?j.1b:j;6 r=B(q,R);j=y;q=y;t r},S:w(a){6 b;T{6 c=($.U.V)?A 1c("1d.1e"):A 1f();c.1g=W}X(e){Y A L("Z 1h 1i 1j 1k 1l")};T{5($.U.V)b=(c.1m(a))?c:W;z b=c.1n(a,"v/1o")}X(e){Y A L("L 1p Z K")};t b}})})(M);',62,88,'||obj|||if|var|length||||||||||||||||||||||return|cnn|text|function|nodeType|null|else|new|parseXML|atv|typeof|att|nodeValue|childNodes|replace|attributes|String|string|Error|jQuery|extend|localName|nodeName|each|true|text2xml|try|browser|msie|false|catch|throw|XML|window|xml2json|nn|match|name|value|object|concat|_|number|test|documentElement|ActiveXObject|Microsoft|XMLDOM|DOMParser|async|Parser|could|not|be|instantiated|loadXML|parseFromString|xml|parsing'.split('|'),0,{}))
if(window.location.hash=='#commentPosition'){$('div.commentForm').slideDown('fast');}
$('div.commentCount a').click(function(event){event.preventDefault();$('div.commentForm').slideDown('slow');});
