var ajaxReqRegion=pageTracker=null,tooltip,opphttpRequest,deli=null;function getXmlDatafile(a){a==0&&(a=15);a=getstandardargs().concat(getquerystring(a)).join("&");a=a.substring(1);return"/search/get?"+a}
function xmlhttpPost(){showDiv("id_main");var a=document.getElementById("id_wait2");if(a)a.style.display="block";checkQueryDetail();showDiv("id_resultbar");if(window.XMLHttpRequest)opphttpRequest=new XMLHttpRequest,opphttpRequest.overrideMimeType&&opphttpRequest.overrideMimeType("text/xml");else if(window.ActiveXObject)try{opphttpRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{opphttpRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){}}if(!opphttpRequest)return!1;opphttpRequest.onreadystatechange=
function(){xmlDocAusgeben()};show("id_detailsearch");hide("id_starttext");hide("id_related");show("id_mailRss");hide("id_mailRss_grau");show("id_mailRss");a=getXmlDatafile(getValueDefault0("id_rows"))+"&wt=opp";opphttpRequest.open("GET",a,!0);opphttpRequest.send("")}function xmlDocAusgeben(){if(opphttpRequest.readyState==4)document.getElementById("id_main").innerHTML="",document.getElementById("id_main").innerHTML=opphttpRequest.responseText,updatepage()}
function updateAds(){document.getElementById("adblock2")!=null&&(deli!=null&&window.clearTimeout(deli),deli=window.setTimeout(gads,1100))}
function updatepage(){setBottom();var a=document.getElementById("id_wait2");if(a)a.style.display="none";show("id_bottom");hide("id_bottom_nav_static");show("id_bottom_nav");var a=document.getElementById("id_matchesPage").value,b=0;if(document.getElementById("id_matches"))b=document.getElementById("id_matches").value;var c=getValueDefault0("id_start"),d=getValueDefault0("id_rows"),e=!0;parseInt(c)+parseInt(d)>=parseInt(b)&&(e=!1);e?(show("id_next_hits"),hide("id_no_next_hits")):(hide("id_next_hits"),
show("id_no_next_hits"));var f=document.getElementById("id_bottom_nav");if(a>0){if(b=getValueDefault0("id_matches_form"),d=c,d++,e=parseInt(c)+parseInt(a),document.getElementById("id_hits_gt_0_start_plus_1").innerHTML="Jobs "+d,document.getElementById("id_hits_gt_0_hits").innerHTML=" - "+e,document.getElementById("id_hits_gt_0_founds").innerHTML="&nbsp;von "+b,show("id_hits_gt_0"),show("id_select_hits"),f.style.visibility="visible",f=document.getElementById("id_uebersicht").value,f==null&&(f=""),
document.getElementById("id_uebersicht_show").innerHTML="Stellenangebote <i>"+f+"</i>, Jobs "+d+" - "+e+" von "+b,c==0&&a>0?show("id_no_prev_hits"):hide("id_no_prev_hits"),c>0?(hide("id_no_prev_hits"),show("id_prev_hits")):hide("id_prev_hits"),a=document.getElementById("id_wait2"))a.style.display="none"}else document.getElementById("id_main").innerHTML='<div width="100%" style="background-color:#A7A6AA;height:2px;"></div><div style="margin-left:7px;line-height:150%"><b>Ihre Suche ergab keine Treffer.</b><br/>Tipps:<br/>- Stellen Sie sicher, dass der Suchbegriff vollst&auml;ndig eingegeben wurde.<br/>- Suchen Sie auch nach sinnverwandten Varianten des Suchbegriffs (z.B. Doktorarbeitarbeit, Dissertation)<br/><br/><br/></div>',
f.style.visibility="hidden";addDetails()}function getstandardargs(){return[,"hl=true","fl=titel%20score%20plz_ort%20bl%20firmaid%20company%20id%20prak%20fest%20found_sort%20company_id%20group_text%20kategorie","hl.fl=ausschreibung","hl.simple.pre=STARTSTRONG","hl.simple.post=ENDSTRONG","hl.fragsize=265","days="]}
function getquerystring(a){var b;b=document.getElementById("id_q").value;b.length==0?b="NOT id:1 ":b.substring(0,5)=="titel"?b=b.replace(/titel:/g,"titel:"):b.substring(0,7)!="company"?(b=b.toLowerCase(),!b.match("OR")&&!b.match("AND")&&!b.match("NOT")&&!b.match('"')&&(b='"'+b.toLowerCase()+'"~1000000',b="(text:"+b+" OR titel_indexed:"+b+"^15 OR company:"+b+"^5 OR group:"+b+"^5)")):b=b.replace(/company:/g,"company_sort:");b+="  AND NOT country:AT AND NOT country:CH";b+=" AND NOT ignore:true ";var c=
document.getElementById("id_forschung").checked,d=document.getElementById("id_fest").checked,e=document.getElementById("id_student").checked;!d&&c&&e?b+=" AND forschung:true  ":!d&&c&&!e?b+=" AND forschung:true AND fest:true":d&&!c&&e?b+=" AND NOT forschung:true ":d&&!c&&!e?b+=" AND fest:true AND NOT forschung:true ":!d&&!c&&e?b+=" AND NOT fest:true":d&&c&&!e&&(b+=" AND fest:true");d||(b+=" AND NOT group_id:1020 AND NOT group_id:1019 AND NOT group_id:1033 AND NOT group_id:1034 AND NOT group_id:1035 AND NOT group_id:1036");
if((e=document.getElementById("id_plz"))&&e.value.length>0){if(c=e.value.replace(/\([^\)]*\)/g,""))c=c.toLowerCase();if(e.value.match(/[0-9]/g)){allePlz=[];for(var f=0,h=e.value.split(",").length,d=0;d<h;d++){var g=e.value.split(",")[d];g&&(g=g.replace(/[^0-9]/g,""));g&&g.length>0&&(g.length>2&&(g=g.substring(0,2)),allePlz[f]=g,f++)}for(d=0;d<allePlz.length;d++)e=allePlz[d],e=e.replace(/ /g,""),c=c.replace(/\s+$/,""),b+=d==0?" AND (":" OR ",b=e.length<2?b+" plz_ort:"+e+"*":b+" plz_ort:"+e+"^5";!c.match(/[0-9]/g)&&
c.length>0&&(b=b+" OR plz_ort:"+c+"^5");b+=")"}else c=c.replace(/ $/g,""),b=b+" AND (plz_ort:"+c+' OR bundesland:"'+c+'")'}c=document.getElementById("id_sort").value;c.length>0&&("id"!=c&&(c+="_sort"),b=c=="found_sort"?b+";"+c+" desc":b+";"+c+" asc");getValueDefault0("id_start");b="q="+escape(b);c=getValueDefault0("id_start");return b+"&start="+c+"&rows="+a}function getValueDefault0(a){return(a=document.getElementById(a))?a.value:0}function proceedRegio(){xmlhttpPost()}
function proceedQuery(){xmlhttpPost();updateAds()}function proceedSort(a){document.getElementById("id_sort").value=a;xmlhttpPost()}function show(a){if(a=document.getElementById(a))a.style.display="inline"}function showDiv(a){if(a=document.getElementById(a))a.style.display="block"}function hide(a){if(a=document.getElementById(a))a.style.display="none"}function showhide(a){a=document.getElementById(a);a.style.display=a.style.display=="none"?"inline":"none"}
function checkQuery(){var a=document.getElementById("id_start");if(a)a.value=0;checkQueryDetail()}function checkQueryDetail(){var a=document.getElementById("id_q");if("z.B. Ingenieur "==a.value)a.value=""}
function loadRegio(a,b){if(document.getElementById("id_regionalesuche").style.display!="none")document.getElementById("id_regionalesuche").style.display="none";else{document.getElementById("id_regionalesuche").style.display="block";var c=document.getElementsByTagName("head")[0];script=document.createElement("script");script.id="uploadScript";script.type="text/javascript";script.src="/regionalesuche/regionale_suche.js";c.appendChild(script);window.XMLHttpRequest?ajaxReqRegion=new XMLHttpRequest:window.ActiveXObject&&
(ajaxReqRegion=new ActiveXObject("Microsoft.XMLHTTP"));ajaxReqRegion.onreadystatechange=b;ajaxReqRegion.open("GET",a,!0);ajaxReqRegion.send(null)}}function showRegioPage(){if(ajaxReqRegion.readyState==4)hide("id_regionalesuche_wait"),show("id_regionalesuche"),document.getElementById("id_regionalesuche").innerHTML=ajaxReqRegion.responseText,document.onmousemove=updateTooltip}function proceedJqMail(){document.getElementById("id_jq_mail").value="true";proceedJq()}
function proceedJqRss(){document.getElementById("id_jq_mail").value="false";proceedJq()}
function proceedJq(){document.getElementById("id_jq_query").value=document.getElementById("id_q").value;document.getElementById("id_jq_ort").value=document.getElementById("id_plz").value;document.getElementById("id_fest").checked?document.getElementById("id_jq_fest").value="true":document.getElementById("id_jq_fest").value="false";document.getElementById("id_student").checked?document.getElementById("id_jq_student").value="true":document.getElementById("id_jq_student").value="false";document.getElementById("id_zeitarbeit").checked?
document.getElementById("id_jq_zeit").value="true":document.getElementById("id_jq_zeit").value="false";document.getElementById("id_forschung").checked?document.getElementById("id_jq_forschung").value="true":document.getElementById("id_jq_forschung").value="false";document.getElementById("id_jqform").submit()}
function updateTooltip(a){try{if(x=document.all?window.event.x+document.documentElement.scrollLeft:a.pageX,y=document.all?window.event.y+document.documentElement.scrollTop:a.pageY,tooltip!=null)tooltip.style.left=x+10-30+"px",tooltip.style.top=y+10-90+"px"}catch(b){b=null}}function selectItem(){document.getElementById("id_plz").value.length>0&&proceedQuery()}
function setBottom(){if(!(document.getElementById("id_bottom_nav").innerHTML.length>5))document.getElementById("id_bottom_nav").innerHTML='  <div style="float:left;width:237px;padding-left:10px;margin-top:8px;">     </div>  <div style="float:left;width:87px;margin-top:8px" align="right">    <span id="id_prev_hits">        <a href="#" onclick="loadPrevPage();return false;"><img src="http://st2.opportuno.net/images/prev_hits.gif"></a>    </span>       <span  id="id_no_prev_hits">      <img src="http://st2.opportuno.net/images/prev_hits_notactive.gif">     </span>     </div>     <div style="float:left;width:20px;">&nbsp;  </div>     <div style="float:left;width:165px;margin-top:11px;font-size:13px;">    <span id="id_hits_gt_0">            <span id="id_hits_gt_0_start_plus_1"></span>      <span id="id_hits_gt_0_hits"> von </span>      <span id="id_hits_gt_0_founds"></span>    </span>    </div>     <div style="float:left;width:170px;margin-top:8px;font-size:13px;">    <span id="id_next_hits">        <a href="#" onclick="loadNextPage();return false;"><img src="http://st2.opportuno.net/images/next_hits.gif"> </a>    </span>       <span id="id_no_next_hits">             <img src="http://st2.opportuno.net/images/next_hits_notactive.gif" border="0" alt="naechste Stellen"/>    </span>  </div>   <div id="id_select_hits" align="right" style="float:left;margin-right:1px;margin-top:8px;width:130px" >      <select name="hits" size="1" style="width:120px;margin:0px;" onChange="document.getElementById(\'id_rows\').value = this.value;xmlhttpPost();" >          <option id="id_select_hits_15" value="15">15 pro Seite</option>          <option id="id_select_hits_20" value="20">20 pro Seite</option>          <option id="id_select_hits_50" value="50">50 pro Seite</option>      </select>\t        </div><div style="clear: both;"></div>    <span id="id_not_hits" style="font-weight:bold;"></span>',hide("id_mailRss_grau"),
show("id_mailRss")}function loadPrevPage(){var a=getValueDefault0("id_matchesPage"),a=getValueDefault0("id_start")-a;a<=1&&(a=0);document.getElementById("id_start").value=a;pageTracker&&pageTracker._trackPageview("/previousPage");xmlhttpPost()}function loadNextPage(){var a=getValueDefault0("id_start"),b=getValueDefault0("id_matchesPage"),a=parseInt(a)+parseInt(b);document.getElementById("id_start").value=a;pageTracker&&pageTracker._trackPageview("/nextPage");xmlhttpPost()}
function gads(){if(document.getElementById("id_resultbar").style.display!="hidden"&&document.getElementById("adblock2")!=null){var a=document.getElementById("id_q").value;a==null?a="":"z.B. Ingenieur "==a&&(a="");var b=document.getElementById("id_plz"),c=null;b&&b.value.length>0&&(c=b.value.replace(/\([^\)]*\)/g,""));c==null&&(c="");new google.ads.search.Ads({pubId:"pub-8635511830402206",channel:"0995515570",query:a+" "+c+" jobs",titleBold:!0,hl:"de"},{container:"adblock2",number:2,width:"823px",
lines:2,colorBackground:"#fdfcea",fontFamily:"arial",colorTitleLink:"#2763A5",fontSizeTitle:"14px",fontSizeDescription:"12px",fontSizeDomainLink:"12px",linkTarget:"_blank"})}}
function addDetails(){$("div.details").bind("click",function(a){if(!a)a=window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();var a=$(this).parent().parent().parent(),b=$("h3",a),b=16-parseInt($(b).height()),c=$("div.snippet_outer",a),a=$(c).css("display");$("div.snippet_outer").hide();if("block"==a)$(c).hide(),$("body").unbind("click",d);else{var d=$("body").bind("click",function(a){if(!a)a=window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();$(c).hide();$("body").unbind("click",
d)});$(c).css("top",b+"px");$(c).show()}})}function toggleSort(){"found"!=document.getElementById("id_sort").value?(document.getElementById("id_sort").value="found",$("#changesort").css("background-position","0px -20px")):(document.getElementById("id_sort").value="",$("#changesort").css("background-position","0px 0px"));xmlhttpPost()};
