// Copiright (R) iVirtual Pty Ltd

function bookmarkThisPage() {
 var u = window.location.href;
 var t = document.title;
 if (window.sidebar) {
 window.sidebar.addPanel(t, u,"");
 } else if( document.all ) {
 window.external.AddFavorite( u, t);
 } else if( window.opera && window.print ) {
 var elem = document.createElement('a');
 elem.setAttribute('href',u);
 elem.setAttribute('title',t);
 elem.setAttribute('rel','sidebar');
 elem.click();
 }
}

function login_open()
{
	 var src;
	src=document.getElementById('ilogin');
	src.style.visibility='visible';
}

function login_close()
{
	document.getElementById('ilogin').style.visibility='hidden';
}

function iframe_show(src,h,w,isadjust,style){
	var s='<iframe name="spo_frame" width="'+w+'" height="'+h+'" frameborder="0" src="'+src+'" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" ';
	if(isadjust) s+='onload="iframe_onload(this)" ';
	if (style!='') s+='style="'+style+'" ';
	s+='></iframe>';
	document.write(s);
}

function iframe_onload(ifrm)
{
	var height=ifrm.contentWindow.ads_height;
	if(height>0){
		ifrm.height=height;
	}
}

function ad_request_done(google_ads, feedback_url){
var s = '';
var i;
if (google_ads.length == 0) {
	if(ovt_url){
		iframe_show('ovt_show.asp?target='+ovt_target+'&keywords='+ovt_keywords+'&keywords2='+ovt_keywords2+'&format='+ovt_format+'&url='+ovt_url+'&type='+ovt_type+'&cut='+ovt_cut,ovt_h,ovt_w,ovt_adjust,'');
	}
	return;
}


s += '<a class="ad_l" href=\"' + feedback_url + '\" style="color:000000">Ads by Google</a><br>'
for(i = 0; i < google_ads.length; ++i) {
s += '<br><a class="ad_h" href="' +
google_ads[i].url + '" onmouseout="window.status=\'\'" onmouseover="window.status=\'go to ' +
google_ads[i].visible_url + '\';return true">' +
google_ads[i].line1 + '<br></a> <span class="ad_t">' +
google_ads[i].line2;
if(google_ads[i].line3){
	s+=' '+google_ads[i].line3;
}
s+='<br></span> <span><a class="ad_u" 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 + '</span></a><br>';
}
s+='<br>';
document.write(s);
return;
}