////////////////////////////////////////////////////////////////////////////////////////////
//Funcao de popup
function MM_openBrWindow(theURL,winName,features) 
{
	var myWin =  window.open(theURL,winName,features);
	myWin.focus();
}
////////////////////////////////////////////////////////////////////////////////////////////
function fnLocalizacao(){document.write('<iframe width="500" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=pt-BR&amp;geocode=&amp;q=Rua+das+Violetas,+66+-+Vila+Mimosa+-+CEP:+13050-063+-+Campinas%2FSP&amp;ie=UTF8&amp;hq=&amp;hnear=R.+das+Violetas,+66+-+Vila+Mimosa,+Campinas+-+SP,+13050-063,+Brasil&amp;ll=-22.934099,-47.091093&amp;spn=0.003952,0.005364&amp;z=17&amp;iwloc=A&amp;output=embed"></iframe>');}
////////////////////////////////////////////////////////////////////////////////////////////
/*Funcao para target*/
function fnTarget(str_target) 
{
	//declaracao de variaveis
	var ch_tag_A, vet_A, int_i;
	var str_titulo;	
	//pega todos os <a> da pagina e percorre um por um para achar o rel="external"
    ch_tag_A = document.getElementsByTagName('a');
    for(int_i=0; int_i<ch_tag_A.length; int_i++) 
	{
		vet_A = ch_tag_A[int_i];
		if(vet_A.getAttribute("href") && vet_A.getAttribute('rel') != null) 
		{
			if (vet_A.getAttribute('rel').substring(0,8) == 'external')
			{
				vet_A.target = str_target;
				str_titulo = ch_tag_A.title;
				ch_tag_A.title = str_titulo;
			}
		}
	}
}
////////////////////////////////////////////////////////////////////////////////////////////
/*Funcao Adiciona a Favoritos*/
function fnAdicionaFavoritos(){
	str_titulo = "Unisolo Terraplanagem e Fundações";
	str_url = "http://www.unisolofundacoes.com.br";
	try{
		if(window.external){window.external.AddFavorite(str_url,str_titulo); }
	}
	catch(e)
	{
		try{
			if(window.sidebar){ window.sidebar.addPanel(str_titulo,str_url,""); }
		}
		catch(ee)
		{
			if(window.opera && window.print){ return true; }
		}
	}	
}
///////////////////////////////////////////////////////////////////////////////////////////
//Funcao para flash
function fnFlash(str_url, int_largura, int_altura)
{
	document.writeln('<object type="application/x-shockwave-flash" data="' + str_url + '" width="' + int_largura + '" height="' + int_altura + '">');
	document.writeln('<param name="movie" value="' + str_url + '">');
	document.writeln('<param name="quality" value="high">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('</object>');
}
