function Ad_Layer(width, height, left, top, visibility, zindex){
	if (zindex==null) zindex=5;
	if (!visibility) visibility='visible';
	ret  = '<DIV ';
	ret += 'id="ad_layer" name="ad_layer" style="';
	ret += 'position: absolute; ';
	ret += 'visibility:'+visibility+'; ';
	ret += 'width:'+width+'px; height:'+height+'px; '; 
	if (top!=null) ret += 'top:'+top+'px; '
	if (left!=null) ret += 'left:'+left+'px; ';
	ret += 'z-index:'+zindex+'; ';
	ret += '"';
	ret += '>';
	ret += '</DIV>';
	return ret;
}
function Ad_Flash(src, width, height, wmode, bgcolor){
	if (!bgcolor) bgcolor='#FFFFFF';
	ret =  '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="" ';
	ret += 'WIDTH='+width+' HEIGHT='+height+'>';
	ret += '<PARAM NAME=movie VALUE="'+src+'"><PARAM NAME=quality VALUE=high>';
	ret += '<PARAM NAME=bgcolor VALUE='+bgcolor+'>';
	if (wmode) ret += '<PARAM NAME=wmode VALUE='+wmode+'>';
	ret += '<EMBED src="'+src+'" WIDTH='+width+' HEIGHT='+height+' quality=high ';
	if (wmode) ret += 'wmode='+wmode+' ';
	ret += 'bgcolor='+bgcolor+' '; 
	ret += 'TYPE="application/x-shockwave-flash" PLUGINSPAGE=""></EMBED>';
	ret += '</OBJECT>';
	return ret;
}
function Ad_Set(){
	dw = document.body.clientWidth; dh = document.body.clientHeight;
	ad_w = dw/2 - ad_width/2 + document.body.scrollLeft;
	ad_h = dh/2 - ad_height/2 + document.body.scrollTop;
	if (ad_h<0)ad_h=0; if (ad_w<0)ad_w=0;
	ad_layer.style.left = ad_w;
	ad_layer.style.top = ad_h;	
}
var ad_plugin = 0;
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { if (navigator.plugins && navigator.plugins["Shockwave Flash"]) ad_plugin = 1; }
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	ret =  '<SCRIPT language=VBScript\> \n';
	ret += 'on error resume next \n';
	ret += 'ad_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n';
	ret += 'if ( ad_plugin <= 0 ) then ad_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n';
	ret += 'if ( ad_plugin <= 0 ) then ad_plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n';
	ret += '</SCRIPT\> \n';
	document.write(ret);
}
var IE=navigator.userAgent;IEi=IE.indexOf("MSIE");IE=(IE.indexOf("Opera")<0 && IEi>=0 && IE.charAt(IEi+5)>4);
ad_m=0; if (ad_plugin&&IE) ad_m=1;