<!--

google_skip = 0;
google_skipper = 0;

google_ad_client = 'pub-9884014808731319'; // substitute your client_id (pub-#)
google_ad_channel = '9639174400';
google_ad_output = 'js';
google_max_num_ads = '3';
google_ad_type = 'text,image,flash,html';
google_image_size = '728x90';
google_feedback = 'on';
google_adtest = 'off';

var google_ad_placement = '';
var google_ad_placements = {
	adsense_box_left : {
		id : 'adsense_box_left',
		skip : 5,
		num_ads : 5,
		ad_type : 'text,image,html',
		image_size : '200x200'
	},
	adsense_box_content : {
		id : 'adsense_box_content',
		skip : 0,
		num_ads : 3,
		ad_type : 'text,image',
		image_size : '728x90'
	},
	adsense_box_bottom : {
		id : 'adsense_box_bottom',
		skip : 10,
		num_ads : 3,
		ad_type : 'text,image',
		image_size : '728x90'
	},
	adsense_box_product : {
		id : 'adsense_box_product',
		skip : 10,
		num_ads : 5,
		ad_type : 'text,image,html',
		image_size : '728x90'
	},
	adsense_box_hersteller : {
		id : 'adsense_box_hersteller',
		skip : 10,
		num_ads : 3,
		ad_type : 'text,image,html',
		image_size : '728x90'
	}		
}

function get_ad_parameter(ad_placement)
{

		google_ad_placement = ad_placement;
		google_ad_client = 'pub-9884014808731319';
		google_ad_channel = '9639174400';
		google_ad_output = 'js';
		google_max_num_ads = google_ad_placements[ad_placement].num_ads;
		google_ad_type = google_ad_placements[ad_placement].ad_type;
		google_image_size = google_ad_placements[ad_placement].image_size;
		google_feedback = 'on';
		google_adtest = 'off';
//		google_skip = google_skipper;
//		google_skipper = google_skip + google_ad_placements[ad_placement].num_ads;
}




function google_ad_request_done(google_ads) {
/*
* This function is required and is used to display
* the ads that are returned from the JavaScript
* request. You should modify the document.write
* commands so that the HTML they write out fits
* with your desired ad layout.
*/
var s = '';
var i;

/*
* Verify that there are actually ads to display.
*/
if (google_ads.length == 0) {
return;
}

/*
* If an image or flash ad is returned, display that ad.
* Otherwise, build a string containing all of the ads and
* then use a document.write() command to print that string.
*/

if (google_ads[0].type == "image") {

   s += '<div class="google_ads_box"><div class="google_ads"><div class="google_ads_header"><div class="google_ads_hint"><a href=\"' +
google_info.feedback_url + '\" style="color:000000">Google Anzeigen</a></div></div><div class="google_image_ad"><a href="' +
google_ads[0].url + '" target="_top" title="go to ' +
google_ads[0].visible_url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[0].visible_url + '\';return true"><img border="0" src="' +
google_ads[0].image_url + '"width="' +
google_ads[0].image_width + '"height="' +
google_ads[0].image_height + '"></a></div></div></div>';

} else if (google_ads[0].type == "html") {

s += google_ads[0].snippet;

} else {

if (google_ads.length == 1) {

/*
* Partners should adjust text sizes
* so ads occupy the majority of ad space.
*/
   s += '<a href=\"' +
google_info.feedback_url + '\" style="color:000000">Google Anzeigen</a><br> <a style="text-decoration:none" href="' +
google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[0].visible_url + '\';return true"> <span style="text-decoration:underline;font-size:20pt"> <b>' +
google_ads[0].line1 + '</b><br></span></a> <span style="color:#000000;font-size:16pt">' +
google_ads[0].line2 + '&nbsp;' +
google_ads[0].line3 + '<br></span> <span><a style="color:#008000;font-size:14pt;text-decoration:none" href="' +
google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[0].visible_url + '\';return true">' +
google_ads[0].visible_url + '</span></a><br>';

} else if (google_ads.length > 1) {

   s += '<div class="google_ads_box"><div class="google_ads"><div class="google_ads_header"><div class="google_ads_hint"><a href=\"' + google_info.feedback_url + '\">Google Anzeigen</a></div></div>'

  /*
  * For text ads, append each ad to the string.
  */

for(i = 0; i < google_ads.length; ++i) {

s += '<div class="google_ad"><div class="google_ads_title">' + 
        '<a style="text-decoration:none" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
	google_ads[i].visible_url + '\';return true">' + '<h3>' +
	google_ads[i].line1 +  '</a></h3></div><div class="google_ads_content">' +
	google_ads[i].line2 + 
	google_ads[i].line3 + '<br></div><div class="google_ads_link"><a href="' +
	google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
	google_ads[i].visible_url + '\';return true">' +
	google_ads[i].visible_url + '</a></div></div>' + '';
}

}
    }
    
    s += '<div class="google_ads_footer"><div class="google_ads_advert"><a href="http://www.mobello.de/service/werbung_buchen">Auf dieser Seite werben</a></div><div class="google_ads_footer_bottom"></div></div></div></div>'

    document.getElementById(google_ad_placement).innerHTML = s;

    return;
  }


// -->