function test(url)
{
maxlength=35;
dis_url=url;
if(url.length > 35) {
url1=url.substring(0, maxlength);
url2=url.substring(maxlength, url.length);
dis_url=url1+'<BR>'+url2; }
return dis_url;
}
function google_ad_request_done(google_ads) {
if(google_p=="center")
{
var s='';
//var i;
if (google_ads.length==0) {
return;
}
if (google_ads[0].type=="html")
{
s+=google_ads[0].snippet;
}
else
{
if (google_ads.length==1)
{
s += '<DIV CLASS="bk1 bor1"><DIV CLASS="ads" ALIGN="LEFT"><a style="color:#8b8b8b;text-decoration:none" href=\"'+google_info.feedback_url+'\" Target="_blank">Ads by Google</a></div><div class="fl p33" style="padding-left:5px;width:732px;padding-bottom:5px"><a target="_blank" href="' + google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[0].visible_url + '\';return true" class="bo" style="font-size:15px">' + google_ads[0].line1 + '</a><br>' + google_ads[0].line2 + '' + google_ads[0].line3 + '<br><a target="_blank" class="c12" 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 + '</a></div><div style="clear:left"></div>';
}
else if(google_ads.length>1)
{
s += '<DIV CLASS="bk1 bor1"><DIV CLASS="ads" ALIGN="LEFT"><a style="color:#000;text-decoration:none" href=\"'+google_info.feedback_url+'\" Target="_blank">Ads by Google</a></div><div style="width:738px">';
for(i = 0; i < google_ads.length; ++i)
{
s += '<div class="fl p33" style="width:225px;margin-left:5px;margin-bottom:5px"><a target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true" class="bo" style="font-size:15px">' + google_ads[i].line1 + '</a><br>' + google_ads[i].line2 + '<br>' + google_ads[i].line3 + '<br><a target="_blank" class="c12" 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>';
}
s +='<div style="clear:left"></div></div>';
}
s += '</div>';
}
if(google_ads[0].bidtype=="CPC")
{
google_adnum=google_adnum+google_ads.length;
}
if (document.getElementById('gtop'))
{
document.getElementById('gtop').innerHTML=s;
}
else
{
document.write(s);
}
return;
}
if(google_p=="right")
{
var s='';
//var i;
if (google_ads.length==0) {
return;
}
if (google_ads[0].type=="html")
{
s+=google_ads[0].snippet;
}
else
{
if (google_ads.length==1)
{
s += '<div CLASS="bor1" STYLE="margin:auto;"><DIV CLASS="ads" ALIGN="LEFT"><a style="color:#000;text-decoration:underline" href=\"'+google_info.feedback_url+'\" Target="_blank">Ads by Google</a></div><DIV><P CLASS="p25" style="font-size:15px"><a target="_blank" href="' + google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[0].visible_url + '\';return true" class="bo">' + google_ads[0].line1 + ' </a><br>' + google_ads[0].line2 + '&nbsp;' + google_ads[0].line3 + '<br><a target="_blank" class="c12" 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 + ' </a></p></div>';

s+='</div>'
}
else if(google_ads.length>1)
{
s +='<div CLASS="bor1"><DIV CLASS="ads" ALIGN="LEFT"><a href=\"'+google_info.feedback_url+'\" Target="_blank">Ads by Google</a></div>'
for(var i=0; i < google_ads.length; ++i)
{
s += '<DIV><P CLASS="p25"><a  target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true" class="bo" style="font-size:15px">' + google_ads[i].line1 + '</a><br>' + google_ads[i].line2 + ' ' + google_ads[i].line3 + '<br><a  target="_blank" class="c12" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true">' + test(google_ads[i].visible_url) + '</p></a></div>';
}

s+='</div>'
}
}
if(google_ads[0].bidtype=="CPC")
{
google_adnum=google_adnum+google_ads.length;
}
if (document.getElementById('gright1'))
{
document.getElementById('gright1').innerHTML = s;
}
else
{
document.write(s);
}
return;
}
}
function ad2()
{
google_ad_client='pub-0673059417528889';
google_ad_output='js';
google_ad_type='text';
google_feedback='on';
}
function ad1()
{
google_ad_client='pub-0673059417528889';
google_ad_output='js';
google_ad_type='text';
google_feedback='on';
google_skip=google_adnum; 
}

