(function() {
var d=document, w=window, el=function(i) { return d.getElementById(i); }, su=el('searchterm'); function loadjs(src){var s=d.createElement('script'); s.type='text/javascript'; s.src=src; d.body.appendChild(s);return s;}; w.b={}; su.focus();
qs=function(lnk) { location.href=lnk.href.replace(/(([?&]su=)[^&]*|$)/, function(full, all, par) { return all ? (par||'?su=')+(el('searchterm').value||'') : ''; }); return false; }; su.onkeydown = su.onkeydown || function() { loadjs('//js.ui-portal.de/search/gmxat/js/suggest3.js'); };
loadjs('//js.ui-portal.de/search/gmxat/js/browserad2.js');
var hotspots='Auto Beruf Computer Finanzen Geld Gesundheit Horoskop Kultur Liebe Lifestyle Musik Nachrichten Partnersuche Spiele Stars Tagesaktuell Top-Themen Unterhaltung Wetter Wissen'.split(' '), hotspotUrl='http://suche.gmx.at/hotspots/singlelist/?su=HOTSPOT&brand=gmxat&elementCount=10&type=jsonp', hotspotdata=[]; h1='', h2='';datacollection=[];s1={};s2={};
getHotspots=function(data){if(!data){if(s1.parentNode){document.body.removeChild(s1);};if(s2.parentNode){document.body.removeChild(s2);};var l=hotspots.length,r1=(l*Math.random())|0,r2=(r1+((l-2)*Math.random())|0)%l;if (h2==h1){h2+=3;};h1=hotspots[r1%l]||'';h2=hotspots[r2%l]||'';s1=loadjs(hotspotUrl.replace(/HOTSPOT/,encodeURIComponent(h1))+'&ts='+(+new Date()));s2=loadjs(hotspotUrl.replace(/HOTSPOT/,encodeURIComponent(h2))+'&ts='+(+new Date()));this.d=this.d||((document.getElementById('hotsearches')||{}).parentNode||document.createElement('div'));this.d.id='info';this.d.className='scheme-'+((1+Math.random()*20)|0);
}else{if (!data.hotspots[0].searchterm || (datacollection[0]||{}).searchterm==data.hotspots[0].searchterm){datacollection=[];getHotspots();}else if(datacollection.length<2){datacollection.push(data.hotspots[0]);};if(datacollection.length>=2) {
hotspotdata = hotspotdata.length ? hotspotdata : ['<div id="hotsearches"><div id="hotsearches-left"><h2>Top-Suchbegriffe: '+(datacollection[0].searchterm||'').replace(/[\xA0-\xFF]/g, function(x){return '&#'+x.charCodeAt(0)+';';})+'</h2><ul>'];
for(var i=0;i<10;i++){var h=datacollection[i>4?1:0].hotspot[i%5];if(hotspotdata.length==6){hotspotdata.push('</ul></div><div id="hotsearches-right"><h2>Top-Suchbegriffe: '+(datacollection[1].searchterm||'').replace(/[\xA0-\xFF]/g, function(x){return '&#'+x.charCodeAt(0)+';';})+'</h2><ul>');};hotspotdata.push('<li' + (i == 0 ? ' class="first"':'')+'><a href="'+h.url+'&origin='+(window.hotspotOrigin||'site')+'">'+h.term.replace(/[\xA0-\xFF]/g, function(x){return '&#'+x.charCodeAt(0)+';';})+'</a></li>');};
this.d.innerHTML = hotspotdata.join('') + '</ul></div><a href="#reload" id="hotsearches-reload">Suchbegriffe aktualisieren</a></div></div>';hotspotdata = [];datacollection=[];
var ad=document.getElementById('browserAd');document.getElementById('wrapper')[ad?'insertBefore':'appendChild'](this.d,ad);
var l=this.d.getElementsByTagName('a');l[l.length-1].onclick=function(){getHotspots();return false;}
}}};getHotspots();
})();
