/* Special Adsense created by Mendre Rodion & Nyitrai Levente */
if (!window.mrm_google_count) { var mrm_google_count = 0; }
if ((!window.mrm_google_ad_channel) && (window.google_ad_channel)) { var mrm_google_ad_channel = google_ad_channel; }
if ((!window.mrm_google_hints) && (window.google_hints)) { var mrm_google_hints = google_hints; }
if ((!window.mrm_google_contents) && (window.google_contents)) { var mrm_google_contents = google_contents; }
function ss(w,id) {window.status = w;return true;}function cs(){window.status='';}function ha(a){  pha=document.getElementById(a); nhi=pha.href.indexOf("&nh=");if(nhi < 1) {phb=pha.href+"&nh=1";} pha.href=phb;}function ca(a) {  pha=document.getElementById(a); nci=pha.href.indexOf("&nc=");if(nci < 1) {phb=pha.href+"&nc=1";} pha.href=phb;window.open(document.getElementById(a).href);}function ga(o,e) {if (document.getElementById) {a=o.id.substring(1);p = "";r = "";g = e.target;if (g) {t = g.id;f = g.parentNode;if (f) {p = f.id;h = f.parentNode;if (h)r = h.id;}} else {h = e.srcElement;f = h.parentNode;if (f)p = f.id;t = h.id;}if (t==a || p==a || r==a)return true;pha=document.getElementById(a); nbi=pha.href.indexOf("&nb=");if(nbi < 1) {phb=pha.href+"&nb=1";} pha.href=phb;window.open(document.getElementById(a).href);}}

function google_ad_request_done(ads) {
    var s = '';
    var i;

    if (ads.length == 0) {
        return;
    }

    if (ads[0].type == "image") {
        s += '<div style="width:' + google_image_width +'; position:relative; overflow:hidden;"><div class="adsense-image-box"><div class="adsense-image"><a href="' + ads[0].url +
        '" target="_blank" title="go to ' + ads[0].visible_url +
        '"><img border="0" src="' + ads[0].image_url +
        '"width="' + ads[0].image_width +
        '"height="' + ads[0].image_height + '"></a></div><div class="adsense-image-label"><a href=\"' + google_info.feedback_url + '\" target="_blank" style="background:url(' + google_image_label + ') no-repeat 18px #666;"><img class="googleinfo" src="http://pagead2.googlesyndication.com/pagead/images/i.png"/></a></div></div></div>';
    } else if (ads[0].type == "flash") {
        s += '<div style="width:' + google_image_width +'; position:relative; overflow:hidden;"><div class="adsense-image-box"><div class="adsense-image"><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></div></div></div>';
		
		} else if (ads[0].type == "html") {
         s += '<div style="width:' + google_image_width +'; position:relative; overflow:hidden;">' + ads[0].snippet + '</div>';
		
    } else if (ads[0].type == "text") {
        mrm_google_count += ads.length;
		
        s += '<div class="' + google_style + '" style="font-family:' + google_font_family + '"> <span class="adsense-label"> <a href=\"' + google_info.feedback_url + '\" target="_blank">' + google_text_label +'</a></span>';
        for (i = 0; i < ads.length; ++i) {
            s += '<div class="adsense-ad" style="width:'+ google_width +'; margin-right:'+ google_margin_right +'; margin-top:'+ google_margin_top +'; background-color:'+ google_background_color +'; border:'+ google_border_size +' solid '+ google_border_color +'; padding:'+ google_padding +'"><span class="adsense-title"><a href="' + ads[i].url + '" target="_blank">' + ads[i].line1 + '</a></span><span class="adsense-text1">' + ads[i].line2 + '</span><span class="adsense-text2">' + ads[i].line3 + '</span><span class="adsense-url"><a href="' + ads[i].url + '" target="_blank">' + ads[i].visible_url + '</a></span></div>';
			s += '<style>span.adsense-title a {color:' + google_title_color + '; font-size:' + google_title_size + '; text-decoration:' + google_title_decoration + ';} span.adsense-title a:hover {color:' + google_title_color_hover + '; text-decoration:' + google_title_decoration_hover + ';} span.adsense-url a {font-size:' + google_link_size + '; color:' + google_link_color + '; text-decoration:' + google_link_decoration + ';} span.adsense-url a:hover {color:' + google_link_color_hover + '; text-decoration:' + google_link_decoration_hover + ';} </style>';
        }
        s += '</div>';
    }
    document.write(s);
    return;
}
/* End of Special Adsense */
