function nadia_ShowAd(section,catid,keywords,width,height,type,lang)
{
	bannerRandom  = Math.round(Math.random()*1000) + 1;
	bannerWidth   = width;
	bannerHeight  = height;
	bannerURL     = "/nadia/showbanner.php?section="+section+"&catid="+catid+"&keywords=+"+keywords+"&type="+type+"&lang="+lang+"&width="+width+"&height="+height+"&rnd="+bannerRandom;
	bannerHeight += 24;

	document.write('<div align="center"><center><table border="0" cellpadding="10" cellspacing="0"><tr><td>');
	document.write('<div align="center"><center><table border="0" cellpadding="1" cellspacing="0" bgcolor="#008080"><tr><td>');
	document.write('<div align="center"><table border="0" cellpadding="1" cellspacing="0" bgcolor="#DCFFF0"><tr><td>');

	if((navigator.userAgent.indexOf("MSIE") >= 0) ||
	   (navigator.userAgent.indexOf("ozilla/5") >= 0))
	{
		document.write('<iframe id="nadia_banner" name="nadia_banner" width="' + bannerWidth + '" height="' + bannerHeight + '" '); 
		document.write('scrolling="no" frameborder="0" framespacing="0" marginheight="0" ');
		document.write('marginwidth="0" border="0" hspace="0" vspace="0" ');
		document.write('align="center" src="' + bannerURL + '">');
		document.write('</iframe>');
	}
	else
	{
		document.write('<div align="center">');
		document.write('<center>');
		document.write('<table border="0" cellpadding="0" cellspacing="0">');
		document.write('<tr>');
		document.write('<td>');
	
		document.write('<ilayer id="nadia_banner" visibility="hide" bgcolor="#FFFFFF" width="' + bannerWidth + '" height="' + bannerHeight + '">');
		document.write('</ilayer>');
		
		document.write('</td>');
		document.write('</tr>');
		document.write('</table>');
		document.write('</center>');
		document.write('</div>');
	}
	document.write('</td></tr></table></div>');
	document.write('</td></tr></table></center></div>');
	document.write('</td></tr></table></center></div>');

	return bannerURL;
}

function nadia_Footer(bannerURL)
{
	if((navigator.userAgent.indexOf("MSIE") >= 0) ||
	   (navigator.userAgent.indexOf("ozilla/5") >= 0)) return ;

	document.write('<LAYER SRC="' + bannerURL + '&t=html" WIDTH="' + bannerHeight + '" ');
	document.write('HEIGHT="' + bannerWidth + '" VISIBILITY="hide" onLoad=');
	document.write('"moveToAbsolute(nadia_banner.pageX,nadia_banner.pageY); clip.width=' + bannerWidth + '; ');
	document.write('clip.height=' + bannerHeight + '; visibility=\'show\'"></LAYER>');
}

function nadia_ShowBanner(section,catid,keywords) { return nadia_ShowAd(section,catid,keywords,468,60,0,'en'); }
function nadia_ShowBannerEx(section,catid,keywords,lang) { return nadia_ShowAd(section,catid,keywords,468,60,0,lang); }