/*
    ** external JavaScript-functions **
    by Axel Hahn * http://www.axel-hahn.de/

    Feel free to use and modify this code
    for your own page.
*/


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// START: Tooltip
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	// -- preload images
	function MM_preloadImages(){ //v3.0 - http://www.searchbliss.com/webmaster_tools/preload_images_generator.htm
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
        for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	// -- show tooltip
	//    e: event
	//    sHead: string: headerinfo/ title
	//    sText: string: main text
	//    sImageLeft: string: image to show on the left (optional)
    function show_tooltip(e, sHead, sText, sImageLeft)
    {
       tooltip = document.getElementById('tooltip');
       if (tooltip)
       {
       	  var sImageLeft2='';
       	  if (sImageLeft) sImageLeft2='<img src="' + sImageLeft + '">';
          document.getElementById('tooltiphead').innerHTML = sHead;
          document.getElementById('tooltipinfo').innerHTML = sText;
          document.getElementById('tooltipimage').innerHTML = sImageLeft2;
          if (e.pageX) {
             tooltip.style.left = (pageXOffset + e.clientX - 100) + "px";
             tooltip.style.top  = (pageYOffset + e.clientY + 25) + "px";
          } else {
             tooltip.style.left = (e.clientX + document.body.scrollLeft - 100 ) + "px";
             tooltip.style.top  = (e.clientY + document.body.scrollTop + 25) + "px";
             // tooltip.style.left = (document.body.scrollLeft + e.x - 100) + "px";
             // tooltip.style.top  = (document.body.scrollTop + e.y + 25) + "px";
          }
          tooltip.style.visibility = "visible";
       }
    }

	// -- hide tooltip
    function hide_tooltip()
    {
       if (tooltip) {
          tooltip.style.visibility = "hidden";
       }
    }

	// -- init
    var tooltip = null;
    document.write('<div id="tooltip"><div id="tooltiphead"></div><div id="tooltipimage"></div><div id="tooltipinfo"></div></div>');

	MM_preloadImages(
		'/axel/defaultimages/tooltip_avi.gif',
		'/axel/defaultimages/tooltip_email.gif',
		'/axel/defaultimages/tooltip_exe.gif',
		'/axel/defaultimages/tooltip_mp3.gif',
		'/axel/defaultimages/tooltip_search.gif',
		'/axel/defaultimages/tooltip_url.gif',
		'/axel/defaultimages/tooltip_wav.gif',
		'/axel/defaultimages/tooltip_xm.gif',
		'/axel/defaultimages/tooltip_zip.gif'
		);

	hide_tooltip();

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ENDE: Tooltip
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// START: exchange CSS
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	// Style Switcher
	function switchStyle(s) {
		if (!document.getElementsByTagName) return;
		var el = document.getElementsByTagName("link");
		for (var i = 0; i < el.length; i++ ) {
			if (el[i].getAttribute("rel").indexOf("style") != -1 && el[i].getAttribute("title")) {
			el[i].disabled = true;
			if (el[i].getAttribute("title") == s) el[i].disabled = false;
			}
		}
	}


    // ----------------------------------------------
    // StyleSwitcher functions written by Paul Sowden
    // http://www.idontsmoke.co.uk/ss/
    // - - - - - - - - - - - - - - - - - - - - - - -
    // For the details, visit ALA:
    // http://www.alistapart.com/stories/alternate/

    function setActiveStyleSheet(title) {
      if (title){
	      var i, a, main;
    	  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
        	if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
	          a.disabled = true;
    	      if(a.getAttribute("title") == title) a.disabled = false;
        	}
	      }
	  }
    }

    function getActiveStyleSheet() {
      var i, a;
      for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
        if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
      }
      return null;
    }

    function getPreferredStyleSheet() {
      var i, a;
      for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
        if(a.getAttribute("rel").indexOf("style") != -1
           && a.getAttribute("rel").indexOf("alt") == -1
           && a.getAttribute("title")
           ) return a.getAttribute("title");
      }
      return null;
    }

    function createCookie(name,value,days) {
      if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
      }
      else expires = "";
      document.cookie = name+"="+value+expires+"; path=/";
	  return false;
    }

    function readCookie(name) {
      var nameEQ = name + "=";
      var ca = document.cookie.split(';');
      for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
      }
      return null;
    }

/*
    window.onload = function(e) {
      var cookie = readCookie("style");
      var title = cookie ? cookie : getPreferredStyleSheet();
      setActiveStyleSheet(title);
    }

    window.onunload = function(e) {
      var title = getActiveStyleSheet();
      createCookie("style", title, 365);
    }

    var cookie = readCookie("style");
    var title = cookie ? cookie : getPreferredStyleSheet();
    setActiveStyleSheet(title);
*/

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ENDE: exchange CSS
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// START: get selected text
// basic source: http://www.webreference.com/js/column12/crossbrowser.html
// 2004-10-13  v1.0
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function display(e) {
  var str = "";
  var iMax=30;

  if (window.getSelection) {
    str = str+window.getSelection();
  } else if (document.selection && document.selection.createRange) {
    var range = document.selection.createRange();
    str = str+range.text;
  } // if (window.getSelection)

  if (str.length > iMax || (str.length == 0) ) hide_tooltip()
  else {

  		var strshort = str.substr(0, iMax);
  		if (str.length > iMax) strshort = strshort + '...'
  			show_tooltip(e,
                strshort,
                '<B>suchen in ...</B><BR>'
                + '<a href="#" OnMousedown="hide_tooltip();createCookie(\'sLastExternalSearch\', \''+str+'\'); window.location.href=\'/axel/suche.htm?startsearch=1\'">Axels Webseite</A><BR>'
                // + '<a href="#" OnMousedown="hide_tooltip(); window.location.href=\'/cgi-bin/sitesearch.php.cgi?query='+escape(str)+'&searchprocess=&language=&maxresults=20&template=axelhahn.tpl\'">Axels Webseite (alt)</A><BR>'
                + '<a href="#" OnMousedown="hide_tooltip(); window.location.href=\'http://de.wikipedia.org/w/wiki.phtml?search='+escape(str)+'\'">de.wikipedia.org</A><BR>'
                + '<a href="#" OnMousedown="hide_tooltip(); window.location.href=\'http://www.google.de/search?q='+escape(str)+'\'">google.de</A><BR>'
                + '<BR><B>übersetzen...</B><BR>'
                + '<a href="#" OnMousedown="hide_tooltip(); window.location.href=\'http://dict.leo.org/?search='+escape(str)+'\'">leo.org</A> (de &lt;-&gt; en)<BR>'
				, '/axel/defaultimages/tooltip_search.gif'
                );
  		} // if (str.length > 40 ...
} // function display(e)

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ENDE: get selected text
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// START: underline accesskeys
// basic source: http://clagnut.com/sandbox/dynamic-accesskeys
// 2005-05-22  v1.0
// changes:
// - added parameter sMenuId to function
// - add accesskey in title of link
// - set a return value to function
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function underlineAccesskeys(sMenuId) {
	var nav = document.getElementById(sMenuId);
	var navlinks = nav.getElementsByTagName('A');
	var sAllKeys = "";
	for (var i = 0; i < navlinks.length; i++) {
		var accesskey = navlinks[i].getAttribute('accesskey');
		if (accesskey) {
			sAllKeys = sAllKeys + accesskey;
			var link = navlinks[i];

			// var linktext = link.childNodes[0].nodeValue;
			var linktext = link.childNodes[0].innerHTML;
			var keypos = linktext.indexOf(accesskey);
			var firstportion = linktext.substring(0,keypos);
			var keyportion = linktext.substring(keypos,keypos+1);
			var lastportion = linktext.substring(keypos+1,linktext.length);

			link.childNodes[0].nodeValue = firstportion;
			var s = document.createElement("span");
			var span = link.appendChild(s);
			var keyt = document.createTextNode(keyportion);
			span.appendChild(keyt);
			var lastt = document.createTextNode(lastportion);
			link.appendChild(lastt);

			// axel hahn: add accesskey in title of link
			var title = link.getAttribute('title');
			if (title) title = title + " ... ";
			else title = "";

			link.title = title + 'accesskey: ['+accesskey+']';
		}
	}
	// axel hahn: set a return value
	return sAllKeys;
}

// -- init
window.onload = function() {

	var sKeys="";
	markKeywords();

	// sKeys = sKeys + underlineAccesskeys('mmain');
	// sKeys = sKeys + underlineAccesskeys('mnavi2');
	// sKeys = sKeys + underlineAccesskeys('dFooter');
	// alert(sKeys);
	
}
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// ENDE: underline accesskeys
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// START: Quicksearch
// 2do: load aPages before this file (globalfunctions.js)
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

	// alert(aPages.length);
	aPages.sort();

	var sResultDiv="qsresult";
	var sGoogleLink="<div class='googlesearch'>Google: <a href='/axel/googlesearch.htm'>&nbsp;zur erweiterten Suche ...</a></div>";
	var sGoogleLink="";
	var sDefaultQuicksearchText="Qicksearch";

	var params=window.location.search;
	var q="";
	var iMaxResults=10;
	var oIntSearch; 
	var iTimeoutSearch=5000;

	params="&" + params.substr(1,params.length);
	var data=params.split("&");
	if (data.length)
	for (i=1; i<data.length;i++) {
		var my_par=data[i].split("=");
		if (my_par[0]=="q") q=my_par[1];
	}

	/*
	**************************************
	* String.highlight v1.0              *
	* Autor: Carlos R. L. Rodrigues      *
	**************************************
	*/
	// http://jsfromhell.com/string/highlight
	String.prototype.highlight = function(f, c, i){
	    var r = this, t = /([(){}|*+?.,^$\[\]\\])/gi, i = !i ? "i" : "", rf = function(t, i){
	        return r.lastIndexOf("<", i) > r.lastIndexOf(">", i) ? t : c(t, p);
	    };
	    for(var p = -1, l = (f = f instanceof Array ? f : [f]).length; ++p < l;)
	        r = r.replace(new RegExp(f[p].replace(t, "\\\$1"), "gm" + i), rf);
	    return r;
	}
	function c(s, i){
		return '<span class="bg' + i + '">' + s + '</span>';
	}

	function resetSearch(){
		clearInterval(oIntSearch);
		document.getElementById(sResultDiv).innerHTML = sGoogleLink;
		document.getElementById(sResultDiv).style.visibility="hidden";
	}

	function doSearch(o) {

		var q=o.value;
		if (q==sDefaultQuicksearchText) {
			o.value='';
			return false;
		}
		var aResult=new Array();
		// Treffer am Anfang tes Textes zuerst
		for (i=1; i<aPages.length;i++) {
			if (q) {
				if (aPages[i][0].toLowerCase().indexOf(q.toLowerCase())==0)
					aResult.push(aPages[i]);
			}
			// else aResult.push(aPages[i]);
		}

		// ... dann Treffer im Text
		for (i=1; i<aPages.length;i++) {
			if (q) {
				if (aPages[i][0].toLowerCase().indexOf(q.toLowerCase())>0)
					aResult.push(aPages[i]);
			}
		}

		var sOut;
		// Ausgabe
		sOut="";
		// sOut="Suche nach: <strong>" + q + "</strong><br>";
		if (q>"") sOut+="<div class=\"head\"><span style=\"float:right;\"><a href=\"#\" class=\"close\" OnClick=\"resetSearch();\" >X</a></span><strong>Axels Quicksearch - ges.: "+ aResult.length + " Treffer</strong>:<br></div>";
		if (aResult.length) {
			sOut+="<ol>";
			for (i=0; i<aResult.length;i++) {
				if (i<iMaxResults) {
					sOut+="<li><a href=\""+aResult[i][1];
					if (aResult[i][1].indexOf("?")>=0) sOut+='&'
					else sOut+='?';
					sOut+="qicksearch=" + escape(q) + "\">" + aResult[i][0].highlight(q, c) +"</a></li>";
				}
			}
			sOut+="</ol>";
		}

		if (aResult.length>iMaxResults) sOut+="... weitere Treffer wurden ausgeblendet ...<br>";
		if (sOut) {
			sOut+="<hr size=1><a href='/axel/suche.htm' >&nbsp;zur erweiterten Suche ...</a>";
		}
		
		if (sOut) {
			document.getElementById(sResultDiv).innerHTML = sOut + sGoogleLink;
			document.getElementById(sResultDiv).style.visibility="visible";
			clearInterval(oIntSearch);oIntSearch=setInterval("resetSearch();", iTimeoutSearch);
		} else resetSearch();

	} // doSearch

	
	function CreateSearchField() {
		
		/*
		document.write("<style type=\"text/css\">");
		document.write("#" + sResultDiv +" .bg0{color: #f00;}");
		document.write("#" + sResultDiv +" a{display:block; text-decoration: none; color:#88c}");
		document.write("#" + sResultDiv +" ol{margin:5px;}");
		document.write("#" + sResultDiv +" a:hover{background:#ddd;}");
		document.write("#" + sResultDiv +" .head{background:#ddf; border-bottom: 2px solid #cce;border-top: 2px solid #eef;}");
		document.write("#" + sResultDiv +"{width: 400px; background:#eee; position:absolute;left: -230px;text-align:left;}");
		document.write("</style>");
		*/
		
		// vereinfachte Variante - sucht nur im 1. URL-Parameter

		var q="";
		var data=window.location.search.split("&");
		if (data.length) for (i=0; i<data.length;i++) {
			var my_par=data[i].split("=");
			if (my_par[0]=="qicksearch" || my_par[0]=="?qicksearch") q=my_par[1];
		}
		var v=q;
		if (!v)v=sDefaultQuicksearchText;

		document.write("<input id='eQuicksearch' type=text onKeyUp=doSearch(this) onClick=doSearch(this) value="+ v +">");
		document.write("<div id="+sResultDiv+" style=\"visibility:hidden;\" OnMouseOver=\"clearInterval(oIntSearch);oIntSearch=setInterval('resetSearch();', iTimeoutSearch);\">"+sGoogleLink+"</div>");
		if (q>"") doSearch(document.getElementById('eQuicksearch'));
		
	}
	// CreateSearchField()


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// START: MP3-Player
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	
function GenPlayerDewplayer(sId, sMp3file, bAutostart, bLoop, bRandomplay, iVolume) {
	var sReturn='';
	var sSwf="dewplayer-multi.swf"; var iPlayerWidth=240; var iPlayerHeight=20;
	
	var sBgcolor='EEEEEE';
	// var sSwf="dewplayer-vol.swf"; var iPlayerWidth=240; var iPlayerHeight=20;
	// var sSwf="dewplayer-mini.swf"; var iPlayerWidth=20; var iPlayerHeight=20;
	
	sReturn+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
	sReturn+='  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"';
	sReturn+='  width="'+iPlayerWidth+'" height="'+iPlayerHeight+'" id="'+sId+'" align="middle">';
	sReturn+='  <param name="allowScriptAccess" value="sameDomain" />';
	sReturn+='  <param name="movie" value="../swf/'+sSwf+'?son='+sMp3file+'&amp;autostart='+bAutostart+'&amp;autoreplay='+bLoop+'&amp;bgcolor='+sBgcolor+'&amp;volume='+iVolume+'&amp;randomplay='+bRandomplay+'" />';
	sReturn+='  <param name="quality" value="high" />';
	sReturn+='  <param name="bgcolor" value="'+sBgcolor+'" />';
	
	sReturn+='  <embed src="../swf/'+sSwf+'?son='+sMp3file+'&amp;autostart='+bAutostart+'&amp;autoreplay='+bLoop+'&amp;bgcolor='+sBgcolor+'&amp;volume='+iVolume+'&amp;randomplay='+bRandomplay+'" ';
	sReturn+='    quality="high" bgcolor="'+sBgcolor+'" width="'+iPlayerWidth+'" height="'+iPlayerHeight+'" name="'+sId+'"';
	sReturn+='    align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"';
	sReturn+='    pluginspage="http://www.macromedia.com/go/getflashplayer">';
	sReturn+='  </embed>';
	sReturn+='</object>';
	return sReturn
}
function PlayMp3(sFile){
	sBgPlayer=GenPlayerDewplayer('soundBg', sFile, 1, 1, 0, 30);
	document.getElementById("bgplayer").innerHTML = sBgPlayer;
	return true;
}
function StopMp3(){
	document.getElementById("bgplayer").innerHTML = '';
	return true;
}

function GenLink(sFile, sText){
	if (!sText) sText=sFile;
	document.write('<a href="#" id="lnk_'+sFile+'" OnClick="blur(); PlayMp3(\'' + sFile +'\'); return false;">'+sText+'</a> ');
	return true;
}

// PlayMp3(sPlaylist1);

			
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// START: Sidebar
// http://home.arcor.de/xbo/sidebar-cross-browser/
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function add2Sidebar(sUrl, sTitle, sDescr) {

	var p_description = "Füge Sidebar hinzu";
	var p_title = "Test Sidebar";
	var p_url = "http://home.arcor.de/xbo/sidebar-cross-browser/sidebar.html";

	if (document.all && !window.opera){ //IE5+
	    document.write("<a href=\"javascript:window.external.AddFavorite('javascript:void(_search=open(\\'" + sUrl + "\\',\\'_search\\'))', '" + sTitle + "')\">" + sDescr + "</a>");
	}
	else if ((typeof window.sidebar == 'object') && (typeof window.sidebar.addPanel == 'function')){ //Gecko
	    document.write("<a href=\"javascript:window.sidebar.addPanel ('" + sTitle + "', '" + sUrl + "','');\" title=\"" + sTitle + "\">" + sDescr + "</a>");
	}
	else{
	    document.write("<a href=\"" + sUrl + "\" title=\"" + sTitle + "\" rel=\"sidebar\">" + sDescr + "</a>");
	}
}


// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// START: Highlight
// http://www.kryogenix.org/code/browser/searchhi/searchhi.js
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

function stripHtml(s) {
	return s.replace(/<[^>]*>/g, "")
}

// markKeywords() - wenn im Referrer ein Parameter q= (Suchmaschine) war, 
// dann im Text Suchbegriffe markieren und Info-Box einblenden.
// TODO:
// - Umlaute
// - Text in Anfuehrungszeichen
function markKeywords(){
	var sDivContent="dContent04"; // Id des Div mit Page Content
	var sDivInfo="dTopInfobar"; // Id des Div fuer Infobar

	var sTxtRemove="Hervorhebung entfernen";
	var sTxtClose="Hervorhebung belassen und Infobox Schliessen";

	var sImgSearch="/axel/images/nuvola/16x16/apps/xmag.png";
	var sImgEmpty="/axel/images/nuvola/16x16/actions/color_fill.png";
	var sImgClose="/axel/images/nuvola/16x16/actions/no.png";

	  var ref = document.referrer;
	    if (ref.indexOf('?')>=0){
			var aKw=new Array();
			var sHtml='';
		    var qs = ref.substr(ref.indexOf('?')+1);
		    var qsa = qs.split('&');
		    for (var i=0;i<qsa.length;i++) {
			    var qsip = qsa[i].split('=');
		      if (qsip.length == 1) continue;
		      if (qsip[0] == 'q' || qsip[0] == 'p') { // q= for Google, p= for Yahoo
				    var wordstring = unescape(qsip[1].replace(/\+/g,' '));
				    // searchhi.process(wordstring);
					aKw=wordstring.split(" ");
		      }
		    }
			
            // wenn es Keywords aus der Suche gibt, dann was anzeigen
			if(aKw.length>0) {

				var aHits=new Array();
				var sTmp='';

				// Inhalt der Seite holen
				var s2=stripHtml(document.getElementById(sDivContent).innerHTML);
				// Hits fuer jeden Suchbegriff ermitteln
				for (i=0;i<aKw.length;i++) {
					sTmp=new RegExp(aKw[i],'gi');
					var aTmp=s2.match(sTmp);
					aHits[i]=0; if (aTmp) aHits[i]=aTmp.length;
				}

				// Hinweisbox zusammenbauen
				var s=''
					+ '<div id="bgterms">'
					+ '<img src="'+sImgSearch+'" alt=""> '
					+ '<strong>Schön, dass Sie zu mir "gefunden" haben!</strong> '
					
					+'<span style="float:right; margin:2px 5px 0 20px;">'
					+'<a href="javascript:location.href=window.location.href" title="'+sTxtRemove+'"><img src="'+sImgClose+'" border=0 alt="'+sTxtRemove+'"></a> '
					+'<a href="#" onclick="$(\'#'+sDivInfo+'\').fadeOut(500)" title="'+sTxtClose+'"><img src="'+sImgEmpty+'" border=0 alt="'+sTxtClose+'"></a>'
					+'</span>'

					+'Ihre Such-Begriffe von eben: '

					for (i=0;i<aKw.length;i++) {
						s+=' ' + aKw[i].highlight(aKw, c) + ' ('+ aHits[i];
						if (i==0) s+=' Treffer';
						s+=') &nbsp; ';
					}

					+'</div>';

				// Hinweisbox + Inhalt ausgeben
				// s2=s2.highlight(aKw, c);
				s2=document.getElementById(sDivContent).innerHTML.highlight(aKw, c);
				document.getElementById(sDivContent).innerHTML=s2;

				s=s;
				document.getElementById(sDivInfo).style.display='none';
				document.getElementById(sDivInfo).innerHTML=s;
				$('#'+sDivInfo+'').fadeIn(1000);
			}
			
	    }
  }

	
	

document.write("<div id='bgplayer' style='position:absolute;visibility: hidden;left:-1000px;'>PLAYER</div>");

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// EOF * info@Axel-Hahn.de
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~