//   Constantes de detecção de Browser:
var myuseragent = navigator.userAgent.toLowerCase();
var ns7 = myuseragent.indexOf('netscape/7')>-1;
var ns6 = myuseragent.indexOf('netscape6')>-1;
var ns4 = (myuseragent.indexOf('mozilla/4')>-1 && myuseragent.indexOf('msie')==-1);
var ie = myuseragent.indexOf('msie')>-1;


//  Função de Bullets em HTML-Javascript:
function mybullet(color1, color2,size,vspace,hspace){
 if (ns4){spc='<table border=0 width=1 border=1 cellspacing=0 cellpadding=0><tr><td></td></tr></table>'} else {spc=''}
 a='';
 a=a+'<table align="left" width="'+(size+hspace)+'" border="0" cellspacing="0" cellpadding="0">';
 a=a+'<tr><td height="'+vspace+'" width="'+(size-1)+'"></td><td width="1"></td><td rowspan="3" width="'+hspace+'"></td></tr>';
 a=a+'<tr><td bgcolor="'+color1+'" height="'+(size-1)+'">'+spc+'</td><td rowspan="2" bgcolor="'+color2+'">'+spc+'</td></tr>';
 a=a+'<tr><td bgcolor="'+color2+'" height="1">'+spc+'</td></tr></table>';
 document.write(a);
}
function mybullet2(color1, color2,size,vspace,hspace){
 if (ns4){spc='<spacer type="block" width=1 height=1></spacer>'} else {spc=''}
 a="<table border=0 cellspacing=0 cellpadding=0>"
 a+="<tr><td colspan=4 height="+vspace+"> </td><td rowspan=5 width="+hspace+"></td></tr>"
 a+="<tr><td width=1>"+spc+"</td><td width="+(size-3)+" bgcolor='"+color1+"'>"+spc+"</td><td width=1 bgcolor='"+color2+"'>"+spc+"</td><td width=1>"+spc+"</td></tr>"
 a+="<tr><td colspan=3 height="+(size-3)+" bgcolor='"+color1+"'>"+spc+"</td><td bgcolor="+color2+">"+spc+"</td></tr>"
 a+="<tr><td>"+spc+"</td><td bgcolor='"+color1+"'>"+spc+"</td><td bgcolor="+color2+">"+spc+"</td><td>"+spc+"</td></tr>"
 a+="</table>"
 document.write(a);	
}


function abrebox(w,corL,corD){			
	if (ns4){spc='<spacer type="block" width=1 height=1></spacer>'} else {spc=''}	
	if(corD!=null)corD="bgcolor='"+corD+"'"
	else corD=""
	a="<table width="+w+" border=0 cellspacing=0 cellpadding=0>"
	a+="<tr><td colspan=3 width=1 height=1>"+spc+"</td><td  bgcolor='"+corL+"' height=1><spacer type='block' width="+(w-6)+" height=1></spacer></td><td colspan=3 width=1 height=1>"+spc+"</td></tr>"		
	a+="<tr><td width=1 height=1 rowspan=2>"+spc+"</td><td>"+spc+"</td><td bgcolor='"+corL+"' width=1 height=1>"+spc+"</td><td width="+(w-6)+" height=2 rowspan=2 "+corD+">"+spc+"</td><td bgcolor='"+corL+"' width=1 height=1>"+spc+"</td><td>"+spc+"</td><td width=1 height=1 rowspan=2>"+spc+"</td></tr>"
	a+="<tr><td width=1 height=1 bgcolor='"+corL+"'>"+spc+"</td><td width=1 height=1 "+corD+">"+spc+"</td><td width=1 height=1 "+corD+">"+spc+"</td><td width=1 height=1 bgcolor='"+corL+"'>"+spc+"</td></tr></table>"		
	document.write(a)
}

function fechabox(w,corL,corD){			
	if (ns4){spc='<spacer type="block" width=1 height=1></spacer>'} else {spc=''}	
	if(corD!=null)corD="bgcolor='"+corD+"'"
	else corD=""
	spc='<spacer type=block height=1 width=1>'
	a="<table width="+w+" border=0 cellspacing=0 cellpadding=0>"
	a+="<tr><td width=1 height=1 rowspan=2>"+spc+"</td><td width=1 height=1 bgcolor='"+corL+"'>"+spc+"</td><td width=1 height=1 "+corD+">"+spc+"</td><td width="+(w-6)+" height=2 rowspan=2 "+corD+">"+spc+"</td><td width=1 height=1 "+corD+">"+spc+"</td><td width=1 height=1 bgcolor='"+corL+"'>"+spc+"</td><td width=1 height=1 rowspan=2>"+spc+"</td></tr>"
	a+="<tr><td width=1 height=1>"+spc+"</td><td bgcolor='"+corL+"' width=1 height=1>"+spc+"</td><td bgcolor='"+corL+"' width=1 height=1>"+spc+"</td><td>"+spc+"</td></tr>"
	a+="<tr><td colspan=3 width=1 height=1>"+spc+"</td><td  bgcolor='"+corL+"' height=1><spacer type='block' width="+(w-6)+" height=1></spacer></td><td colspan=3 width=1 height=1>"+spc+"</td></tr></table>"
	document.write(a)
}

function shadow(q){			
	a=''+
	'<table cellspacing=0 cellpadding=0 border=0 width=45>'+
		'<tr>'+
			'<td height=2 class="sh-'+q+'1"><spacer type="block" height=2></spacer></td>'+
		'</tr>'+
		'<tr>'+
			'<td height=1 class="sh-'+q+'2"><spacer type="block" height=1></spacer></td>'+
		'</tr>'+
		'<tr>'+
			'<td height=1 class="sh-'+q+'3"><spacer type="block" height=1></spacer></td>'+
		'</tr>'+
	'</table>'
	document.write(a)
}


function divider(q,w){
	a=''+			
	'<table cellspacing=0 cellpadding=0 border=0 width='+w+'>'+
		'<tr>'+
			'<td height=8><spacer type="block" height=8></spacer></td>'+
		'</tr>'+
		'<tr>'+
			'<td class="div-'+q+'1" height=1><spacer type="block" height=1></spacer></td>'+
		'</tr>'+
		'<tr>'+
			'<td class="div-'+q+'2" height=1><spacer type="block" height=1></spacer></td>'+
		'</tr>'+
		'<tr>'+
			'<td height=8><spacer type="block" height=8></spacer></td>'+
		'</tr>'+
	'</table>'
	document.write(a)
}

function dividerbox(q,h){
	a=''+			
	'<table cellspacing=0 cellpadding=0 border=0>'+
		'<tr>'+
			'<td class="div-'+q+'1" width=1 height='+h+'><spacer type="block" width=1 height='+h+'></spacer></td>'+
			'<td class="div-'+q+'2" width=1 height='+h+'><spacer type="block" width=1 height='+h+'></spacer></td>'+
		'</tr>'+
	'</table>'
	document.write(a)
}
