function MM_Gallery(pk,id) { MM_window('/_misc/galleries/detail.cfm?pk=' + pk + '&id=' + id,'Bildergalerie','width=890,height=750,resizable=yes,scrollbars=yes'); }
function MM_Video(pk,id) { MM_window('/videoplayer/popup/video.cfm?pk=' + pk + '&id=' + id,'Videoplayer','width=890,height=640,resizable=yes,scrollbars=no'); }
function MM_preloadStyles() { var d=document; if(d.Styles){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadStyles.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Style; d.MM_p[j++].src=a[i];}}} 
function MM_print(pid,pk) { MM_window('/_misc/article/print/index.cfm?pid=' + pid + '&pk=' + pk + '&op=prn','Drucken','width=768,height=600,resizable=no,scrollbars=yes'); }
function MM_printtp(pid,pk) { MM_window('/_misc/article/print/indextp.cfm?pid=' + pid + '&pk=' + pk + '&op=prn','Drucken','width=768,height=600,resizable=no,scrollbars=yes'); }
function MM_send(QueryString) { MM_window('/_misc/article/send/index.cfm?' + QueryString,'Verschicken','width=500,height=450,resizable=no,scrollbars=yes'); }
function MM_comment(pk) { MM_window('/_misc/article/comments/index.cfm?pk=' + pk,'Kommentar','width=700,height=680,resizable=no,scrollbars=yes'); }
function MM_SavePoll(pk) { MM_window('/_misc/polls/index.cfm?pk=' + pk,'Umfrage','width=500,height=450,resizable=no,scrollbars=yes'); eval('document.Poll_' + pk).submit(); }
function MM_ShowPoll(pk) { MM_window('/_misc/polls/index.cfm?pk=' + pk,'Umfrage','width=500,height=450,resizable=no,scrollbars=yes'); }
function MM_ImgDetailTP(pk) { MM_window('/_misc/img/detailtp.cfm?pk=' + pk,'BildPopup','width=800,height=600,resizable=yes,scrollbars=yes'); }
function MM_window(theURL,wname,features) { window.open(theURL,wname,features);	}
function ClearFormField(FF, FFValue) { if(FF.value == FFValue) { FF.value = ''; } else if(FF.value == '') { FF.value = FFValue; } }	/* Funktion fuer Loeschen bzw. Fuellen der Formularfelder beim Focus bzw. Blur */
function MM_ShowMovies(pk) { MM_window('/_misc/movies/index.cfm?pk=' + pk,'Movies','width=550,height=700,resizable=no,scrollbars=yes'); }
function MM_ShowEPaper(pk) { MM_window('/_misc/epaper/index.cfm?pk=' + pk,'ePaper','width=1000,height=800,resizable=yes,scrollbars=yes'); }
function isnotdefined( variable) {    return (typeof(window[variable]) == "undefined")?  true: false;}
function MM_SavePollPopUp(pk) { eval('document.Poll_' + pk).submit(); }
function OpenWissensquiz(pk) { MM_window('/_misc/quiz/index.cfm?pk=' + pk,'Quiz','width=650,height=500,toolbar=no,locationbar=no,directories=no,scrollbars=yes,status=no,menubar=yes,resizable=no'); }
function MM_ImgDetail(pk) { MM_window('/_misc/img/detail.cfm?fk=0&pk=' + pk,'BildPopup','width=800,height=600,resizable=yes,scrollbars=yes'); }
function MM_ImgDetailfk(pk,fk) { MM_window('/_misc/img/detail.cfm?fk='+fk+'&pk=' + pk,'BildPopup','width=800,height=600,resizable=yes,scrollbars=yes'); }

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 += '<a href="' + google_ads[0].url +
              '" target="_top" title="go to ' + google_ads[0].visible_url +
              '"><img border="0" src="' + google_ads[0].image_url +
              '"width="' + google_ads[0].image_width +
              '"height="' + google_ads[0].image_height + '"></a>';

    } else if (google_ads[0].type == "flash") {
      s += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' +
              ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"' +
              ' WIDTH="' + google_ad.image_width +
              '" HEIGHT="' + google_ad.image_height + '">' +
              '<PARAM NAME="movie" VALUE="' + google_ad.image_url + '">' +
              '<PARAM NAME="quality" VALUE="high">' +
              '<PARAM NAME="AllowScriptAccess" VALUE="never">' +
              '<EMBED src="' + google_ad.image_url +
              '" WIDTH="' + google_ad.image_width +
              '" HEIGHT="' + google_ad.image_height + 
              '" TYPE="application/x-shockwave-flash"' + 
              ' AllowScriptAccess="never" ' + 
              ' PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>';

    } else if (google_ads[0].type="text") {
        s += '<div class="article_ad"><span id="nointelliTXT"><div class="boxtitle"><a href="' + google_info.feedback_url + '" target="_blank" style="margin:0;color:#7F7F7F;text-transform:none;font-size:80%;">Google Anzeige:</a></div><div name="google_ad">';
        if (google_ads.length == 1) {
            /*
             * Partners should adjust text sizes
             * so ads occupy the majority of ad space.
             */
            s += '<a href="' + google_ads[0].url + '" ' +
                            'onmouseout="window.status=\'\'" ' +
                            'onmouseover="window.status=\'go to ' +
                            google_ads[0].visible_url + '\'" ' +
                            'style="text-decoration:none">' +
                            '<h2 class="googleadarticle" style="font-size:12pt;padding-top:1pt;padding-bottom:1pt">' + google_ads[0].line1 + '</h2></a>' + 
                            '<span style="color:#000000">' +
                            google_ads[0].line2 + ' ' +
                            google_ads[0].line3 + '</span><br/>' +
							'<a href="' + google_ads[0].url + '" ' +
                            'onmouseout="window.status=\'\'" ' +
                            'onmouseover="window.status=\'go to ' +
                            google_ads[0].visible_url + '\'" ' +
                            'style="text-decoration:none;color:#7F7F7F;" class="googlead">' +
                            google_ads[0].visible_url + '</a><br/>';
        } else if (google_ads.length > 1) {
            /*
             * For text ads, append each ad to the string.
             */
            for(i=0; i < google_ads.length; ++i) {
                s += '<a href="' + google_ads[i].url + '" ' +
                                  'onmouseout="window.status=\'\'" ' +
                                  'onmouseover="window.status=\'go to ' +
                                  google_ads[i].visible_url + '\'" ' +
                                  ' class="googlead">' +
                                  '<h3 class="googleadarticle">' + google_ads[i].line1 + '</h3></a>' + 
                                  '<span class="googlead">' +
                                  google_ads[i].line2 + '&nbsp;' +
                                  google_ads[i].line3 + '</span><br/>' +
								  '<a href="' + google_ads[0].url + '" ' +
								  'onmouseout="window.status=\'\'" ' +
                            	  'onmouseover="window.status=\'go to ' +
                            	  google_ads[0].visible_url + '\'" ' +
                            	  'style="text-decoration:none;color:#7F7F7F;" class="googlead">' +
                                  google_ads[i].visible_url + '</a><br/>';
            }
        }
        s += '</div></span></div>';
    }

    document.write(s);
    return;
  }
