function banner(swf) 
{
	var swfwidth = "535";
	var swfheight = "130";
	
	if (document.URL.indexOf('https') == 0) 
		var ssl = 'https';
	else 
		var ssl = 'http';
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+ssl+'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="banner" align="middle" style="width: '+swfwidth+'px; height: '+swfheight+'px;">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="/content/banners/' + swf + '.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#000000" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="/content/banners/' + swf + '.swf" quality="high" wmode="transparent" bgcolor="#000000" style="width: '+swfwidth+'px; height: '+swfheight+'px;" name="banner" id="banner2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="'+ssl+'://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
	document.getElementById('banner').style.width = '100%';
	document.getElementsByName('banner')[0].style.width = '100%';
}

function banner2(swf) 
{
	var swfwidth = "198";
	var swfheight = "130";
	
	var ssl = (document.URL.indexOf('https') == 0) ? 'https' : 'http';
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+ssl+'://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="banner2" align="middle" style="width: '+swfwidth+'px; height: '+swfheight+'px;">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="/content/banners/' + swf + '.swf" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#000000" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="/content/banners/' + swf + '.swf" quality="high" wmode="transparent" bgcolor="#000000" style="width: '+swfwidth+'px; height: '+swfheight+'px;" name="banner" id="banner2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="'+ssl+'://www.macromedia.com/go/getflashplayer" />\n');
	document.write('</object>\n');
	document.getElementById('banner2').style.width = '100%';
	document.getElementsByName('banner2')[0].style.width = '100%';
}