function request_apiscript(url_request_script)
{
	var headID = document.getElementsByTagName("head")[0];
	var newScript = document.createElement('script');
	newScript.type = 'text/javascript';
	newScript.src = url_request_script;
	headID.appendChild(newScript);
}

//Analytics
document.write('<script type="text/javascript">');
document.write('var _gaq = _gaq || [];');
document.write("_gaq.push(['_setAccount', 'UA-513063-4']);");
document.write("_gaq.push(['_addOrganic', 'pesquisa.sapo.pt', 'q']);");
document.write("_gaq.push(['_addOrganic', 'www.aeiou.pt', 'p']);");
document.write("_gaq.push(['_addOrganic', 'pesquisa.clix.pt', 'question']);");
document.write("_gaq.push(['_addOrganic', 'www.iol.pt', 'query']);");
document.write("_gaq.push(['_setAllowLinker', true]);");
document.write("_gaq.push(['_trackPageview']);");
document.write('(function() {');
document.write("var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;");
document.write("ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';");
document.write("var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);");
document.write('})();');
document.write('</script>');

//mouseflow (hand tracking)
document.write('<script type="text/javascript">');
document.write('var mouseflowJsHost = (("https:" == document.location.protocol) ? "https://" : "http://");');
document.write('request_apiscript(mouseflowJsHost + "a.mouseflow.com/projects/5228b8de-72e7-4cb6-a4c6-5f98f99e87d0.js");');
document.write('</script>');

//btbuckets
document.write('<script type="text/javascript">'+"\n");
document.write("//<![CDATA[[\n");
document.write("$BTB={s:11006};\n");
document.write("$BTB.jsh='btbuckets.com/bt.js';\n");
document.write("//]]>\n");
document.write('</script>'+"\n");
document.write('<script type="text/javascript">'+"\n");
document.write('$BTB.jshost = (("https:" == document.location.protocol) ? "https://ssl." : "http://static.");'+"\n");
document.write('document.write(unescape("%3Cscript src=\'" + $BTB.jshost + $BTB.jsh + "\' type=\'text/javascript\'%3E%3C/script%3E"))'+"\n");
document.write('</script>'+"\n");