  function google_ad_request_done(google_ads) {

     if (google_ads.length < 1 )
      return;
	
	nodeDIV = document.createElement('div')
	nodeDIV.id = 'googlejs';
	if (pos == 'seite') {
	nodeDIV.style.width = '225px';
	}	
	nodeH3 = document.createElement('h3')
	nodeH3.style.fontSize = '13px';
	nodeH3.style.fontFamily = 'Trebuchet MS';
	nodeH3.style.margin = '0 0 5px 0';
	if (pos == 'seite') {
	nodeH3.style.textAlign = 'left';
	}	
	if (google_info.feedback_url) {
		nodeA = document.createElement('a')
		//nodeA.style.color= "#6A5120";
		nodeA.href = google_info.feedback_url;
		nodeA.target = '_blank';
		nodeA.appendChild(document.createTextNode('Google-Anzeigen'));
		nodeH3.appendChild(nodeA);
	} else
		nodeH3.appendChild(document.createTextNode('Google-Anzeigen'));
	
	nodeDIV.appendChild(nodeH3);
		
	if (pos != 'seite') {
		if(google_ads.length > 3) {
			nodeDIV2 = nodeDIV.cloneNode(true)
			nodeDL2 = document.createElement('dl');
			nodeDIV2.appendChild(nodeDL2);
		}
	}
	nodeDL = document.createElement('dl');
	nodeDIV.appendChild(nodeDL);
	
		if (google_ads[0].type == 'text') { 
      for(i = 0; i < google_ads.length; ++i) {
			if (pos == 'seite') {
				tmpDL = nodeDL;
			}
			else{			
				if(i >2){
					tmpDL = nodeDL2;
				}
				else{
					tmpDL = nodeDL;
				}
			}
			nodeDT = document.createElement('dt');
			nodeDT.style.backgroundColor = dt_bg_color;
			tmpDL.appendChild(nodeDT);
			nodeDT.innerHTML = '<strong><a target="_blank" style="cursor:pointer;cursor:hand;text-decoration:underline; color:' + dt_link_color + ';font-family:Trebuchet MS;" href="' + google_ads[i].url + '" onmouseover="window.status=\'gehe zu ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' + google_ads[i].line1 + '</a></strong>';
			nodeDD = document.createElement('dd');
			tmpDL.appendChild(nodeDD);
			nodeDD.innerHTML = google_ads[i].line2 + '&nbsp;' + google_ads[i].line3 + '<br/><a style="cursor:pointer;cursor:hand;text-decoration:none;color:' + dd_link_color + '" href="' + google_ads[i].url + '" onmouseover="window.status=\'gehe zu ' + google_ads[i].visible_url + '\'" onmouseout="window.status=\'\'">' + google_ads[i].visible_url +
         '</a>';
		nodeDD.style.margin = '0 0 20px 0';
		//nodeDD.style.paddingLeft = '10%';
		if (pos == 'seite') {
		nodeDD.style.paddingLeft = '3px';
		}
		nodeDD.style.fontFamily = 'Trebuchet MS';
		nodeDD.style.backgroundColor = dd_bg_color;
		addEvent(nodeDT,'mouseover',changeBg);
		addEvent(nodeDT,'mouseout',changeBg );
		addEvent(nodeDD,'mouseover',changeBg );
		addEvent(nodeDD,'mouseout',changeBg );

	
		}
	}
	
	
	if (pos == 'seite') {
	document.getElementById('seite').appendChild(nodeDIV); 
	}
	else
	{
	document.getElementById('results').appendChild(nodeDIV); 
	}
	return;
  }

	function addEvent( obj, type, fn )
{
	if (obj.addEventListener)
		obj.addEventListener( type, fn, false );
	else if (obj.attachEvent)
	{
		obj["e"+type+fn] = fn;
		obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
		obj.attachEvent( "on"+type, obj[type+fn] );
	}
}



  
	function changeBg(e) {
		if(this.style.backgroundColor != 'rgb(170, 174, 185)' && this.style.backgroundColor != 'rgb(226, 227, 231)' && this.style.backgroundColor != '#aaaeb9' && this.style.backgroundColor != '#e2e3e7') {
			color = '#aaaeb9';
			color2 = '#e2e3e7';
			color3 = '#30466F';
		} else {
			color = '#30466F';
			color2 = '#8098C6';
			color3 = '#FFF';
		};
		if(this.tagName == 'DT') {
			this.style.backgroundColor=color;
			this.nextSibling.style.backgroundColor=color2;
			this.nextSibling.lastChild.style.color= color3;
		}else if(this.tagName == 'DD') {
			this.style.backgroundColor=color2;
			this.previousSibling.style.backgroundColor=color;
			this.lastChild.style.color= color3;
		}
	}
	
	function banner_oben() {
		dt_bg_color = "#30466F";
		dt_link_color = "#FFFFFF";
		dd_bg_color = "#8098C6";
		dd_link_color = "#FFF";
		document.write('<scr'+'ipt language="JavaScript" >')
		document.write('google_ad_client = "pub-5866557683227494";')
		document.write('google_ad_channel ="6777315003";')
		if (typeof num_ads!='undefined' && num_ads != '') {
		document.write('google_max_num_ads = '+num_ads+';')
		}
		document.write('google_feedback = "on";')
		document.write('google_ad_output = "js";')
		document.write('google_ad_type = "text_image";')
		document.write('google_image_size = "728x90";')
		document.write('google_encoding = "latin1";')
		if (typeof hints!='undefined' && hints != '') {
		document.write('google_hints = "'+hints+'";')
		}
		document.write('google_language = "de";')
		document.write('google_skip = 0;')
		document.write('//-->')
		document.write('<\/scr'+'ipt>')
		document.write('<scr'+'ipt language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">')
		document.write('<\/scr'+'ipt>')	
	}
	function banner_seite() {
		dt_bg_color = "#30466F";	
		dt_link_color = "#FFFFFF";	
		dd_bg_color = "#8098C6";
		dd_link_color = "#FFF";	
		document.write('<scr'+'ipt language="JavaScript" >')
		document.write('google_ad_client = "pub-5866557683227494";')
		document.write('google_ad_channel ="6777315003";')
		if (typeof num_ads!='undefined' && num_ads != '') {
		document.write('google_skip = '+num_ads+';')
		}
		document.write('google_max_num_ads = 5;')
		document.write('google_feedback = "on";')
		document.write('google_ad_output = "js";')
		document.write('google_ad_type = "text_image";')
		document.write('google_image_size = "160x600";')
		document.write('google_encoding = "latin1";')
		if (typeof hints!='undefined' && hints != '') {
		document.write('google_hints = "'+hints+'";')
		}
		document.write('google_language = "de";')
		document.write('//-->')
		document.write('<\/scr'+'ipt>')
		document.write('<scr'+'ipt language="JavaScript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">')
		document.write('<\/scr'+'ipt>')
	}
