function test(url)
{
maxlength = 30;
dis_url = url;
if(url.length > 30) {
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 += '<TABLE WIDTH="775" BORDER="0" ALIGN="CENTER" HEIGHT="95"><TR><TD VALIGN="TOP"><br><P ALIGN="right">Ads by Google</p><div class="w1 m2 m3 lh an"><a target="_blank" href="' + google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[0].visible_url + '\';return true" class="g3 bo">' + google_ads[0].line1 + '</a><br><nobr>' + google_ads[0].line2 + '' + google_ads[0].line3 + '</nobr> <a target="_blank" class="gr g7 td bo"  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></TD></TR></TABLE>';
}
else if(google_ads.length > 1)
{
s += '<TABLE WIDTH="775" ALIGN="CENTER" HEIGHT="95"><TR><TD VALIGN="TOP" colspan="3"><P ALIGN="right">Ads by Google</p></td><tr>';
for(i = 0; i < google_ads.length; ++i)
{
s += '<td valign="top" width="33%"><div class="w1 m2 m3 lh an"><nobr><a target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true" class="g3 bo">' + google_ads[i].line1 + '</a></nobr><br>' + google_ads[i].line2 + '<br>' + google_ads[i].line3 + '<br><a target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true" class="gr g7 td bo">' + google_ads[i].visible_url + '</a></div></td>';
}
}
s += '</tr></table></TD></TR></TABLE>';
}
if (document.getElementById('gtop'))
{
document.getElementById('gtop').innerHTML = s;
}
else
{
document.write(s);
}
return;
}

if(google_p =="right")
{


var s = '';
var i;

/*
* Verify that there are actually ads to display.
*/
if (google_ads.length == 0) {
return;
}

if (google_ads[0].type == "html")
{
s += google_ads[0].snippet;
}
else
{
if (google_ads.length == 1)
{
s += '<P CLASS="m2" ALIGN="right">Ads by Google</p><p class="w1 m2 m3 lh"><a target="_blank" href="' + google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[0].visible_url + '\';return true" class="g8 bo">' + google_ads[0].line1 + ' </a><br>' + google_ads[0].line2 + '&nbsp;' + google_ads[0].line3 + '<br><a target="_blank" class="gr g7 td bo" 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 style="height:200px; border:0px;"></div></p>';
}
else if(google_ads.length > 1)
{
for(i = 0; i < google_ads.length; ++i)
{




s += '<p class="w1 m2 m3 lh"><a  target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true" class="g8 bo">' + google_ads[i].line1 + '</a><br>' + google_ads[i].line2 + ' ' + google_ads[i].line3 + '<br><a  target="_blank" class="gr g7 td bo" 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) + '</a></p><br>';
}
s += '<P CLASS="m2 gr1" ALIGN="right" ><b>Ads by Google</b></p>'



}
}


if (document.getElementById('gright1'))
{
document.getElementById('gright1').innerHTML = s;
}

else
	{
document.write(s);
	}

return;
}

if (google_p=="bottom")
{

var s = '';
var i;

/*
* Verify that there are actually ads to display.
*/
if (google_ads.length == 0) {
return;
}

if (google_ads[0].type == "html")
{
s += google_ads[0].snippet;
}
else
{
if (google_ads.length == 1)
{
s += '<P CLASS="g7 p6 bo gr1" ALIGN="right"><br>Ads by Google</p><br><p class="w1 m2 m3 lh an"><a  target="_blank" class="g8 bo" href="' + google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[0].visible_url + '\';return true">' + google_ads[0].line1 + '</a><br>' + google_ads[0].line2 + '&nbsp;' + google_ads[0].line3 + '<br><a target="_blank" href="' + google_ads[0].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[0].visible_url + '\';return true" class="gr g7 td bo">' + google_ads[0].visible_url + '</a></p>';
}
else if(google_ads.length > 1)
{
s += '<P CLASS="w1"></p>';


for(i = 0; i < google_ads.length; ++i)

{
s += '<p class="w1 m2 m3 lh an"><a target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true" class="g8 bo">' + google_ads[i].line1 + '</a><br>' + google_ads[i].line2 + '&nbsp;' + google_ads[i].line3 + '<br><b><a target="_blank" href="' + google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' + google_ads[i].visible_url + '\';return true" class="gr g7 td bo">' + test(google_ads[i].visible_url) + '</a></b></p><br>';
}

s += '<P CLASS="g7 p6 bo gr1" ALIGN="right">Ads by Google</p>';



}
}

if (document.getElementById('gbottom'))
{
document.getElementById('gbottom').innerHTML = s;
}

else
	{
document.write(s);
	}
return;
}
}
google_ad_client = 'pub-8525015516580200';
google_ad_output = 'js';
google_ad_type = 'text';
google_feedback = 'on';
