function showAd(ImageUrl, ImageName, iWidth, iHeight,wmode1,wmode2)
{
	var pos;
	var strScript='';

	var strUrl ;
	strUrl = ImageName ;
	pos=strUrl.substr(strUrl.length-4,strUrl.length) 
	if (pos != '.swf')
	{
		if (ImageUrl != '')
		{
		strScript = '<a href="'+ImageUrl+'" target=_blank>';
		}
		strScript += '<img src="' + strUrl +  '" height=' + iHeight + ' width=' + iWidth + ' border=0>' ;
		if (ImageUrl != '')
		{
		strScript +='</a>';
		}
	}
	else
	{
		strScript='<embed src="'+strUrl+'" quality="high" width='+ iWidth +' height='+  iHeight;
		if (wmode1 != '')
		{
		strScript +=' wmode='+wmode1
		}
		if (wmode2 != '')
		{
		strScript +=' wmode='+wmode2
		}
		strScript +='></embed>'
	}
	
	document.write(strScript);
}

function showA(ImageUrl, ImageName, iWidth, iHeight,wmode1,wmode2)
{
	var pos;
	var strScript='';

	var strUrl ;
	strUrl = ImageName ;
	pos=strUrl.substr(strUrl.length-4,strUrl.length) 
	if (pos != '.swf')
	{
		if (ImageUrl != '')
		{
		strScript = '<a href="'+ImageUrl+'" target=_blank>';
		}
		strScript += '<img src="' + strUrl +  '" height=' + iHeight + ' width=' + iWidth + ' border=0>' ;
		if (ImageUrl != '')
		{
		strScript +='</a>';
		}
	}
	else
	{
		strScript='<embed src="'+strUrl+'" quality="high" width='+ iWidth +' height='+  iHeight;
		if (wmode1 != '')
		{
		strScript +=' wmode='+wmode1
		}
		if (wmode2 != '')
		{
		strScript +=' wmode='+wmode2
		}
		strScript +='></embed>'
	}
	
	document.write(strScript);
}

window.onload=function(){
	if(typeof(eval(KeyLoad))=="function"){KeyLoad();}
}

